dannypernik
c4523884bf
Add timestamp to printed compile statement ( #1876 )
...
Co-authored-by: dannypernik <dannypernik@mail.com>
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
Co-authored-by: なつき <i@ntk.me>
2023-02-16 17:27:30 -08:00
Natalie Weizenbaum
6310dfb129
Update synchronization tests to verify the entire file ( #1880 )
...
This catches cases where the target file is edited directly without
also editing the source file.
Also re-run `pub run grinder`.
2023-02-01 16:23:37 -08:00
Natalie Weizenbaum
98fe9a43dd
Track dependencies through meta.load-css()
with --watch
( #1877 )
...
Closes #1808
2023-01-31 16:58:45 -08:00
Natalie Weizenbaum
103cb19b41
Consistently use floating-point numbers everywhere ( #1802 )
...
Closes #1794
2022-09-21 14:15:42 -07:00
Natalie Weizenbaum
98f326b507
Convert visitor classes to mixins ( #1784 )
...
Co-authored-by: Jennifer Thakar <jathak@google.com>
2022-08-19 15:17:58 -07:00
Natalie Weizenbaum
eeedebcee5
Add partial support for Media Queries Level 4 ( #1749 )
...
See sass/sass#2538
See #1728
2022-07-22 13:34:07 -07:00
Nicholas Behrens
1faf81cee4
Fix #417 preserve the location of trailing loud comments ( #849 )
...
See sass/sass-spec#1485
- Update lib/src/visitor/serialize.dart to stop using old-style int-based for loop.
- Extend FileSpan with a .contains(targetSpan) method
Co-authored-by: Nick Behrens <nbehrens@google.com>
Co-authored-by: Carlos Israel Ortiz García <goodwine@google.com>
Co-Authored-By: Natalie Weizenbaum <nweiz@google.com>
2022-06-02 18:46:12 -07:00
Natalie Weizenbaum
3abcc20595
Silence compiler warnings in dependency callables with --quiet-deps ( #1650 )
...
Closes #1560
2022-03-14 15:52:13 -07: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
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
e86897be97
Fix new analysis issues from Dart 2.15
2021-12-10 14:02:17 -08:00
Natalie Weizenbaum
97c51d6285
Add support for the JS API value types ( #1552 )
2021-11-30 00:10:47 +00: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
2cf2f27499
Use the latest version of cli_pkg
...
Closes #1531
2021-10-12 16:39:55 -07:00
Jennifer Thakar
4f67c4dd30
Fix RecursiveAstVisitor ( #1525 )
...
`visitCalculationExpression` is now properly implemented.
This also adds concrete test classes that extend `RecursiveAstVisitor`
and `RecursiveStatementVisitor` to ensure similar issues are avoided in
the future whenever new AST nodes are added.
2021-10-05 18:36:45 -07:00
Natalie Weizenbaum
f73e4bec3c
Stop testing fibers
...
We'll still include the code for this, but on a best-effort basis and
with the understanding that it will never work on Node 16 or later.
Once Node 14 is out of LTS or we fully remove the old Node Sass API,
we can get rid of fiber support entirely.
2021-10-05 13:21:19 -07:00
Natalie Weizenbaum
fb180ff9f5
Update to the latest linter package and fix lints
2021-10-05 13:21:19 -07:00
Christophe Coevoet
8bade1d071
Fix typos in doc ( #1480 )
2021-10-04 11:16:19 -07:00
Natalie Weizenbaum
31689a3637
Add basic compile functions for the new JS API ( #1503 )
2021-10-02 00:35:10 +00:00
Natalie Weizenbaum
ba38c09c68
Cordon the Node Sass API off into a legacy directory ( #1501 )
2021-09-23 01:48:06 +00:00
Jennifer Thakar
f06937e2df
Fix analysis errors ( #1470 )
2021-09-09 22:35:12 +00:00
Christophe Coevoet
8012e0e9c9
Avoid the /-as-division warning when running the dart_api tests ( #1467 )
2021-09-07 12:25:08 -07:00
Christophe Coevoet
49c75b1509
Fix the test covering space-separated list to actually do it ( #1466 )
2021-09-07 12:23:33 -07:00
Christophe Coevoet
f098c7f5ac
Fix the test description for the list separator of non-empty maps ( #1464 )
2021-09-07 12:22:39 -07:00
Christophe Coevoet
1288b92b4e
Fix the description of some tests for SassNumber ( #1463 )
...
123/5 does not produce an integer.
2021-09-07 12:22:21 -07:00
Adam Hooper
ad886d97d6
Expose charset
option in Node API [ closes #567 ] ( #1446 )
...
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2021-09-02 00:48:11 +00:00
Natalie Weizenbaum
390deed540
Merge pull request #1438 from sass/extend-bugs
...
Fix a couple bugs with @extend
2021-08-16 22:01:32 +00:00
Natalie Weizenbaum
2a03907e95
Emit escape sequences for private-use characters in expanded mode ( #1430 )
2021-08-16 21:52:35 +00:00
Natalie Weizenbaum
000173c132
Reformat
2021-08-11 16:14:17 -07:00
Natalie Weizenbaum
d29acb0974
Don't try to force custom URL schemes to file paths in the Node API ( #1434 )
...
When an error occurred in a stylesheet loaded by a custom importer
with a custom URL scheme, the Node error wrapper tried to convert that
URL into a path and ended up crashing.
Closes #1138
2021-08-11 21:03:14 +00:00
Natalie Weizenbaum
3cb332724f
Update pkg/sass_api version
...
This also updates the CHANGELOG version-checking logic to be resilient
against pre-release versions in the CHANGELOG.
2021-08-09 16:54:57 -07:00
Natalie Weizenbaum
4fd0472f2e
Fix a crash in the Node importer
...
When a path was returned at the same time as a file's contents, it was
interpreted as a URL without first being translated to one. This
crashed for absolute Windows paths.
Closes #1410
2021-08-09 16:47:45 -07:00
Natalie Weizenbaum
7900dda573
Add a sass_api package and publishing infrastructure
2021-07-30 18:23:14 -07:00
Natalie Weizenbaum
1565b9ceed
Rename includedUrls to loadedUrls
...
This is more explicit, and matches the name in the embedded protocol.
2021-07-14 14:29:22 -07:00
Natalie Weizenbaum
558ca0aa72
Expose CompileResult publicly, along with methods that return it
...
This also exposes CompileResult.includedUrls.
Closes #1355
Partially addresses sass/embedded-protocol#62
2021-07-13 18:08:23 -07:00
Natalie Weizenbaum
43b69e60a0
Change CompileResult.includedFiles to CompileResult.includedUrls
...
Rather than constructing this explicitly to match Node Sass's API, we
construct it with canonical URLs and convert it into the format
expected by the Node Sass API (a mix of paths and URLs) in the
compatibility layer.
2021-07-13 18:08:18 -07:00
Natalie Weizenbaum
83343d7046
Fix a race condition in meta.load-css() ( #1376 )
...
We weren't properly awaiting a call to CssStylesheet.accept(), which
meant that it could try to continue doing work asynchronously in the
wrong context.
Closes #1318
2021-06-23 17:12:18 -07:00
Natalie Weizenbaum
629881212c
Fix root-relative @import URLs as passed to importers ( #1371 )
...
Closes #1137
2021-06-22 17:22:29 -07:00
Natalie Weizenbaum
0f68d7a511
Fix quiet deps when loaded through an @import of a file without @use ( #1362 )
...
Closes #1360
2021-06-15 13:37:48 -07:00
Natalie Weizenbaum
7e371666f4
Add quietDeps and verbose to the JS API ( #1353 )
...
To support this, we now run Node-Sass-style relative loads outside of
the Node importer. This allows the evaluator to check whether a
relative load succeeded and use that to determine whether the
stylesheet counts as a dependency.
See sass/sass#3065
2021-06-14 17:41:56 -07:00
aimuz
8557ce0b04
Update compressed_test.dart ( #1350 )
...
Delete duplicate test cases
2021-06-11 11:43:44 -07:00
Jennifer Thakar
af816d0941
Fix bug in --update with built-in modules ( #1338 )
...
Fixes #1335 .
2021-06-02 14:52:17 -07:00
Natalie Weizenbaum
16f181660c
Only omit 5 deprecation warnings per feature by default ( #1327 )
...
Closes #1323
2021-05-21 22:45:58 -07:00
Natalie Weizenbaum
d660bf12ef
Add an option to the CLI and Dart Sass to silence warnings from deps
...
Closes #672
2021-05-21 22:45:58 -07:00
Natalie Weizenbaum
47920ad032
Merge branch 'master' into slash-separator
2021-05-17 14:13:03 -07:00
Natalie Weizenbaum
136bd285b3
Add AsyncImporter.fromImport
for Dart importers
2021-05-13 18:06:43 -07:00
Natalie Weizenbaum
8a344e343f
Add this.fromImport
for JS importers
...
See sass/sass#3055
See webpack-contrib/sass-loader#905
2021-05-13 17:40:31 -07:00
Natalie Weizenbaum
5a0242a090
Code review
2021-05-13 16:43:15 -07:00
Natalie Weizenbaum
be1a414f07
Deprecate /-as-division and add replacements
...
Partially addresses #663
2021-05-12 13:21:28 -07:00
Christophe Coevoet
fbd9cfd8a2
Fix a bunch of typos in comments ( #1257 )
...
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2021-04-15 14:01:07 -07:00