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
Jennifer Thakar
4f428ca5f5
Release 1.35.2 ( #1390 )
2021-07-07 12:14:26 -07:00
Natalie Weizenbaum
5a9dd9161b
Fix a variable-assignment bug ( #1372 )
...
Closes #1250
2021-06-22 15:10:32 -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
Jennifer Thakar
754501145c
Fix a bug with implicit dependencies ( #1348 )
...
Encountered this while migrating internal code to math.div
2021-06-08 13:06:34 -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
fd1bfd293b
Fix the URL for the @-moz-document deprecation message ( #1339 )
...
Closes #1336
2021-06-01 18:07:46 -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
7f982a1b3a
Only emit each warning once per source location ( #1322 )
2021-05-21 16:23:53 -07:00
Natalie Weizenbaum
ba805f1039
Release 1.33.0 ( #1316 )
2021-05-20 16:41:30 -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
Jennifer Thakar
5d4950db36
Fix bug with null values in configuration ( #1305 )
...
Fixes #1281 .
2021-05-12 09:09:35 -07:00
Christophe Coevoet
be2d3e848a
Fix argument names in str-slice errors ( #1303 )
2021-05-05 17:02:14 -07:00
Awjin Ahn
30ede40732
Fix extending selectors across multiple modules. ( #1298 )
...
* Fix extending selectors across multiple modules.
Allows more than one module to extend the same upstream selector that,
in turn, extends a selector from its upstream module.
Properly skips creating an extra extension that was being counted as
unresolved when evaluating @extends.
See https://github.com/sass/sass-spec/pull/1635
Fixes https://github.com/sass/dart-sass/issues/1295
2021-04-28 14:19:12 -07:00
Natalie Weizenbaum
45c1333276
Properly reset variables in the loop in _peekIndentation() ( #1288 )
...
Closes #1287
2021-04-19 12:41:57 -07:00
Jennifer Thakar
1e14b3ec65
Add missing package_config dep ( #1286 )
2021-04-16 16:38:45 -07:00
Natalie Weizenbaum
16d6711eb1
Limit Chokidar's lower bound to 3.0.0 ( #1279 )
...
There's no reason we *should* have to do this, since we do declare
support for Chokidar 3.0.0 and npm *should* just install the latest
available version that matches the constraint. But in practice it
doesn't for some reason, so I guess we'll narrow the constraint to
work around that.
See #863
2021-04-15 15:49:49 -07:00
Natalie Weizenbaum
59b9dac236
Update the pubspec
2021-04-14 19:02:51 -07:00
Natalie Weizenbaum
81d952dc7d
Automated null-safety migration
2021-04-14 17:15:08 -07:00
Jennifer Thakar
247cb3d816
Update dependencies to null-safe versions
...
This also replaces package_resolver with package_config, since
package_resolver is archived and is incompatible with null-safe Dart
packages.
2021-04-12 17:31:09 -07:00
Lukasz Kolodziejczyk
84cae191bd
Allow the null safety release of args and watcher ( #1238 )
2021-02-25 13:45:14 -08:00
Awjin Ahn
ad4a1692a8
Adds RenderOptions to the context of custom functions. ( #1236 )
2021-02-18 13:48:47 -08:00
Awjin Ahn
94d1fc407b
Update chokidar. ( #1235 )
2021-02-18 13:15:11 -08:00
lukaszkolodziejczyk
1df37b1ee9
Allow the null safety release of stream_transform ( #1223 )
2021-02-09 16:43:55 -08:00
Natalie Weizenbaum
cebf71b39e
Revert "Limit the version of source_span ( #1227 )" ( #1229 )
...
This reverts commit 8afc238db7
. The
upstream bug has been fixed and the fix has been published.
2021-02-05 17:32:17 -08:00
Awjin Ahn
4ea9fff2bb
Let last !default value of @forward...with be commaless. ( #1226 )
...
This advances the scanner to the next line even if the !default
identifier is not followed by a comma.
2021-02-04 14:18:19 -08:00
Natalie Weizenbaum
8afc238db7
Limit the version of source_span ( #1227 )
...
This is a workaround to get the build working again until
dart-lang/source_span#72 lands.
2021-02-04 13:01:43 -08:00
Natalie Weizenbaum
2682992bd4
Split SassNumber into separate subclasses based on units ( #1221 )
...
This allows us to use more efficient implementations in the common
case where numbers don't have complex units.
See #113
2021-02-02 17:37:56 -08:00
Mary
b4c6054cc6
Bump version
2021-01-25 13:33:34 -05:00
Christophe Coevoet
9005c6bed5
Remove useless dev dependency ( #1210 )
...
source_span is already a normal dependency of the package.
2021-01-20 11:21:20 -08:00
Natalie Weizenbaum
f93feaf592
Don't try to cast an error to JsError
...
Dart's runtime understanding of what a "JsError" is isn't sufficient
to make sense of everything that might be thrown by, for example, a
custom function with an error.
2021-01-15 16:14:20 -08:00
Natalie Weizenbaum
19555e9a7a
Release 1.32.4
2021-01-11 17:04:09 -08:00
Natalie Weizenbaum
66cb55c76f
Avoid throw/catch in Number.== ( #1188 )
...
Throwing and catching exceptions is expensive. Testing this on one
user's number-heavy codebase resulted in a 2x speed improvement.
2021-01-11 13:41:37 -08:00
Natalie Weizenbaum
01231e2f4c
Print the values of deprecated numbers passed to color functions ( #1184 )
...
See #1174
2021-01-06 15:17:53 -08:00
Natalie Weizenbaum
f24a2b9ca4
Avoid permissions errors in _realCasePath. ( #1181 )
...
This catches permissions errors and treats them as indicating that the
path component we have so far is canonical. This also improves the
efficiency of case matching by caching results for higher directories.
2021-01-06 12:49:45 -08:00
Natalie Weizenbaum
7ba7351148
Mark deprecation warnings as such
2020-12-28 14:44:00 -08:00
Natalie Weizenbaum
02c92aa7cd
Add support for clamp() as a special math function ( #1168 )
...
Closes #1146
See sass/sass#2860
2020-12-28 13:42:04 -08:00
Natalie Weizenbaum
bf623752fb
Avoid always downcasing file paths on Windows ( #1172 )
...
Closes #1169
2020-12-23 18:07:20 -08:00
Natalie Weizenbaum
e51ec0455a
Re-enable fetching the latest test package version ( #1155 )
2020-11-23 14:40:44 -08:00
Kevin Choi
43f4607c78
Update cli_pkg ( #1153 )
...
This makes the main function (cli_pkg_main_0) return a Promise instead of void.
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
2020-11-23 13:11:37 -08:00
Natalie Weizenbaum
b826bd361a
Add an upper bound to our test constraint
...
This works around dart-lang/test#1382 .
2020-11-19 14:53:46 -08:00
Natalie Weizenbaum
c0e6ba1b07
Fix a buggy interaction between @at-root and @keyframes ( #1135 )
2020-11-05 12:55:11 -08:00
Natalie Weizenbaum
939dca8e38
Support generalized @supports conditions ( #1134 )
...
Closes #894
See sass/sass#2780
2020-11-04 16:10:37 -08:00
Natalie Weizenbaum
908515065f
Merge branch 'master' into feature.hwb
2020-10-29 14:49:58 -07:00
Natalie Weizenbaum
4a0da21ed3
Fix a stack overflow when setting pkg.githubReleaseNotes ( #1130 )
2020-10-29 13:43:27 -07:00
Natalie Weizenbaum
093ff58673
Merge branch 'master' into feature.hwb
2020-10-28 16:22:18 -07:00
Natalie Weizenbaum
5c3f550a05
Revert "Temporarily disable deploying to Chocolatey ( #960 )" ( #1128 )
...
This reverts commit 01ed720e9c
. Now that
google/dart_cli_pkg#56 has landed, Chocolatey deployment should work
again.
2020-10-28 15:47:31 -07:00
Natalie Weizenbaum
290e55c2f1
Trim extends at the compound selector level ( #1124 )
...
This reverts a portion of #460 (15202c4
). It turns out that trimming
compound selector extends allows us to avoid exponential behavior in
certain recursive @extend cases.
See sass/dart-sass#1109
2020-10-28 15:11:22 -07:00