Natalie Weizenbaum
e12ef6f481
Allow PRs to be linked to the Dart Sass and embedded protocol repos
2022-01-25 17:16:39 -08:00
Natalie Weizenbaum
69077ddcea
Delete legacy Node.js API tests ( #1610 )
...
These are now tested using the runner in sass-spec.
2022-01-25 17:16:24 -08:00
Natalie Weizenbaum
53464a7979
Use the Sass shared Dart analysis options ( #67 )
2022-01-25 17:16:17 -08:00
Natalie Weizenbaum
13099d497a
Cut a release ( #1600 )
...
This also adds a CHANGELOG entry for the TS declaration fix for
LegacyPluginThis.options.linefeed.
2022-01-18 14:35:51 -08:00
Christophe Coevoet
f055db0797
Implement the sourceMapIncludeSources JS option ( #1583 )
2022-01-14 16:38:26 -08:00
Jennifer Thakar
e1fcbaaf36
Fix string.insert with negative indices ( #1598 )
2022-01-13 16:40:02 -08:00
Natalie Weizenbaum
ff0afc3451
Update dependency versions ( #65 )
2022-01-13 16:20:13 -08:00
Natalie Weizenbaum
8fd0ffdb4b
Cut a release with a TS definition for NULL ( #1596 )
...
See sass/sass#3243
2022-01-12 18:37:06 -08:00
Natalie Weizenbaum
fc8b9fa3c7
Clone repos using https:// not git:// ( #1597 )
...
GitHub no longer supports the git:// protocol: https://github.blog/2021-09-01-improving-git-protocol-security-github/
2022-01-12 15:50:00 -08:00
Natalie Weizenbaum
720c358c06
Set LegacyResult.map to undefined rather than null ( #1592 )
2022-01-10 14:16:27 -08:00
Natalie Weizenbaum
54fd309079
Cut a release with TS definitions for TRUE/FALSE ( #1591 )
...
See sass/sass#3241
2022-01-07 15:12:42 -08:00
Natalie Weizenbaum
f9dff2ecff
Mention TypeScript type updates in the CHANGELOG ( #1589 )
2022-01-05 16:39:55 -08:00
Natalie Weizenbaum
78c98ee625
Merge pull request #1573 from sass/carbon
...
Use a more recent version of Carbon for our benchmarks
2022-01-05 16:39:45 -08:00
Natalie Weizenbaum
a6c3540f4f
Update performance numbers
2022-01-05 16:12:56 -08:00
Natalie Weizenbaum
6bf9853330
Pass undefined span instead of null to Logger.warn() in JS ( #1586 )
2022-01-05 15:59:15 -08:00
Natalie Weizenbaum
4fa365adca
Use a more recent version of Carbon for our benchmarks
...
See sass/dart-sass#1534
2022-01-05 15:49:17 -08:00
Natalie Weizenbaum
169178af6c
Fix the default separator for new SassArgumentList in the JS API ( #1580 )
2021-12-30 16:04:00 -08:00
Natalie Weizenbaum
e3e25c787c
Commit the lockfile ( #63 )
...
Closes #61
2021-12-30 14:01:54 -08:00
Natalie Weizenbaum
21f0219157
Don't return a CompileFailure without a span ( #60 )
...
We weren't adding a span for a compile failure due to a path not being
found. There's no real source in this situation, so we just create an
empty span instead.
2021-12-29 17:18:10 -08:00
Natalie Weizenbaum
5012b5c3da
Allow ImporterResponse.result to be null ( #59 )
2021-12-29 16:01:03 -08:00
Natalie Weizenbaum
26127d8a00
Treat invalid function signatures as function errors ( #58 )
...
See sass/embedded-protocol#85
2021-12-29 15:00:16 -08:00
Natalie Weizenbaum
a32000ea9a
Bump the sass-api version ( #1579 )
2021-12-20 16:15:04 -08:00
Natalie Weizenbaum
ad4ac5e5da
Cut a release ( #1574 )
2021-12-20 13:28:13 -08:00
Natalie Weizenbaum
811cffa2c1
Use the new JS API in the README ( #1572 )
2021-12-16 02:08:12 +00:00
Natalie Weizenbaum
1cbb0c5417
Implement FileImporter ( #57 )
2021-12-15 23:40:10 +00:00
Natalie Weizenbaum
17f1e69a46
Report a better error message for an empty CompileRequest.Input.path ( #56 )
2021-12-14 23:43:35 +00:00
Natalie Weizenbaum
f7669d5a99
Properly parse custom property values in @supports conditions ( #1570 )
...
Closes sass/sass#3216
2021-12-11 00:59:08 +00:00
Nate Bosch
6b35eb633e
Remove some dead code ( #1565 )
...
This change preserves behavior, though the current behavior has the
appearance of a bug so an author more familiar with the intention may
want to add a test.
There are no assignments to `first` so the conditional can be removed.
When building internally the analyze is surfacing a `dead_code`
diagnostic which needs to be ignored. Fixing the code will allow us to
remove the ignore.
I don't know why the diagnostic does not show up when analyzing using
the external analyzer.
https://github.com/dart-lang/sdk/issues/47837
2021-12-11 00:58:44 +00:00
Awjin Ahn
1798a7c275
Let inspect() print nested, empty, bracketed lists. ( #1547 )
...
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2021-12-10 23:01:16 +00:00
Natalie Weizenbaum
c59fee03c9
Merge pull request #1569 from sass/release
...
Release 1.45.0
2021-12-10 14:25:51 -08:00
Natalie Weizenbaum
e86897be97
Fix new analysis issues from Dart 2.15
2021-12-10 14:02:17 -08:00
Natalie Weizenbaum
f31d154037
Release 1.45.0
2021-12-10 13:35:00 -08:00
Natalie Weizenbaum
fcdaa4e3f4
Add TypeScript type declarations to the npm package ( #1563 )
...
Closes #13
2021-12-02 23:01:14 +00:00
Natalie Weizenbaum
79541905bc
Release a release candidate for the new JS API ( #1562 )
2021-11-30 23:32:09 +00:00
Natalie Weizenbaum
98a947056e
Add support for custom functions in the new JS API ( #1558 )
2021-11-30 22:46:39 +00:00
Christophe Coevoet
3e231f784b
Improve the deprecation message for /-as-division ( #1561 )
...
This also changes the string representation of ParenthesizedExpression
to fix the recommendations involving them (otherwise the calc
recommendation would be an invalid one).
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2021-11-30 01:43:08 +00:00
Natalie Weizenbaum
97c51d6285
Add support for the JS API value types ( #1552 )
2021-11-30 00:10:47 +00:00
Paul Golmann
926781b782
Add support for css empty namespace attribute selector ( #1554 )
...
Closes sass/sass#3199
2021-11-24 23:20:33 +00:00
Christophe Coevoet
da67438ac2
Update the contribution guidelines regarding behaviors not supported by libsass ( #1555 )
...
As libsass is deprecated, specs should not use `ignore_for` rather than `todo` but the contribution guide was still using the old behavior.
2021-11-16 13:55:12 -08:00
Christophe Coevoet
681bbb2a0d
Fix equality checks for CalculationOperation ( #1556 )
2021-11-16 13:05:29 -08:00
Natalie Weizenbaum
55cb4fd509
Track stack traces through rethrows ( #1545 )
...
This requires a lot of manual machinery when displaying stack traces
to the user, but it should make debugging errors (especially in JS)
much easier.
Works around dart-lang/sdk#10297 using expandos.
2021-11-05 06:05:50 +00:00
Natalie Weizenbaum
6622eebd79
Fix the Bazel deploy step again ( #1541 )
2021-10-26 22:24:46 +00:00
Natalie Weizenbaum
756fcd3911
Fix the logger option for render() ( #1538 )
...
Closes #1533
2021-10-26 21:06:40 +00:00
Natalie Weizenbaum
5606602bfa
Fix shared JS API tests ( #1537 )
2021-10-21 20:40:20 +00:00
Natalie Weizenbaum
435e1b2f71
Merge pull request #1535 from sass/perf
...
Improve performance
2021-10-20 17:21:28 -07:00
Natalie Weizenbaum
86b16f5500
Update benchmarks
2021-10-20 16:36:52 -07:00
Natalie Weizenbaum
2430ac6d20
Avoid creating zone variables inside _EvaluateVisitor
...
Instead, we create a single zone-scoped object that's visible for the
entire lifespan of the visitor, and which exposes evaluation internals
which can be updated as direct field modifications.
2021-10-20 16:36:52 -07:00
Natalie Weizenbaum
d13a38ed19
Cache relative import results as well as absolute ones
...
This dramatically improves the performance of a sample app using the
Carbon design system, and should generally improve apps that have a
lot of repeated @imports of library files. It's possible we can back
this out if it's not pulling its weight once we no longer support
@import.
2021-10-20 16:36:52 -07:00
Natalie Weizenbaum
6069708a83
Cache hash codes for Sass strings and numbers
...
These values are often stored in maps, so caching their hash codes
seems to be net valuable.
2021-10-20 16:36:52 -07:00
Natalie Weizenbaum
fa2576449e
Update benchmarks
2021-10-20 16:36:51 -07:00