Natalie Weizenbaum
9ecd4c3a87
Run Windows tests on Dart stable again
2020-01-14 19:33:11 -08:00
Natalie Weizenbaum
27c32d0582
Fix an error test
2020-01-14 16:54:23 -08:00
Natalie Weizenbaum
d67f341a17
Indicate the original configuration location for multi-config errors
2020-01-11 00:12:38 -08:00
Natalie Weizenbaum
c2baede4db
Throw multi-span exceptions for argument errors
2020-01-10 23:24:23 -08:00
Natalie Weizenbaum
0c1370ce25
Allow errors to refer to multiple source spans at once
...
This makes error messages for issues like configuring a module after
it's loaded much clearer.
2020-01-10 22:31:48 -08:00
Natalie Weizenbaum
ca63b1ba7d
Don't try to resolve relative Node importer URLs for source maps ( #923 )
...
* Don't try to resolve relative Node importer URLs for source maps
Closes #922
* Reformat
2020-01-09 13:14:44 -08:00
Lasse R.H. Nielsen
31c09606b9
Avoid depending on iterator.current != null
. ( #877 )
...
With the NNBD change to Dart, it's no longer safe to rely on an iterator returning `null` when it has hit the end (or before calling `moveNext` the first time). For non-nullable element types, it will have to throw instead.
This PR rewrites code that currently rely on a `null` value to recognize the end of an iterator.
2020-01-07 13:58:48 -08:00
Natalie Weizenbaum
e110961120
Pass the version variable to script snapshots at build time ( #920 )
...
Closes #914
See https://github.com/dart-lang/sdk/issues/36579#issuecomment-571386118
2020-01-07 13:53:30 -08:00
Jennifer Thakar
bfdf4b35a4
Fix import-only files for Node importers ( #919 )
2020-01-03 15:41:12 -08:00
Jennifer Thakar
79d9a73474
Cache separate canonical URLs for @use and @import ( #908 )
...
Fixes #899 .
The cache for canonical URLs is now keyed on *both* the rule URL and
whether that URL was canonicalized for an `@import` rule.
2020-01-02 15:25:02 -08:00
Natalie Weizenbaum
92a28feb25
Replace whitelist/blacklist with safelist/blocklist ( #917 )
...
Inspired by https://twitter.com/amlyhamm/status/1202684742069604353 .
2020-01-02 14:53:39 -08:00
Natalie Weizenbaum
7113a729cd
Update dependency versions ( #918 )
2020-01-02 14:53:19 -08:00
Jennifer Thakar
76280409bd
Revert "Adds built-in clamp() and hypot() ( #906 )"
...
This reverts commit 24f84e2c88
.
2020-01-02 13:45:51 -08:00
Jennifer Thakar
3c64addbf3
Revert "Add built-in variables e and pi. ( #907 )"
...
This reverts commit 2cb69e70ab
.
2020-01-02 13:45:49 -08:00
Awjin Ahn
2cb69e70ab
Add built-in variables e and pi. ( #907 )
2019-12-26 16:31:33 -08:00
Awjin Ahn
24f84e2c88
Adds built-in clamp() and hypot() ( #906 )
2019-12-26 12:40:08 -08:00
Natalie Weizenbaum
b3671c676b
Release 1.24.0 ( #905 )
2019-12-19 17:59:48 -08:00
Natalie Weizenbaum
b54643d319
Merge pull request #895 from sass/forward-with
...
Support @forward ... with
2019-12-19 17:12:29 -08:00
Natalie Weizenbaum
46be33e030
Merge branch 'master' of github.com:sass/dart-sass into forward-with
2019-12-19 16:10:51 -08:00
Natalie Weizenbaum
37534aaf7f
Merge pull request #903 from sass/fix-lints
...
Fix new pedantic lints
2019-12-19 16:08:54 -08:00
Natalie Weizenbaum
2755a8186d
Avoid a path dependency
2019-12-18 17:49:54 -08:00
Natalie Weizenbaum
64cc529421
Reformat
2019-12-18 17:00:19 -08:00
Natalie Weizenbaum
ec3d0ddc19
Fix new pedantic lints
2019-12-18 15:46:36 -08:00
Natalie Weizenbaum
08d0b8d159
Move analysis options into a nested package
...
This allows other Sass team packages to re-use our analysis
configuration without having to copy it.
2019-12-18 15:37:25 -08:00
Natalie Weizenbaum
e35b51135b
Code review
2019-12-17 15:26:43 -08:00
Natalie Weizenbaum
de3f3208e9
Support @forward ... with
...
See sass/sass#2744
Closes #846
2019-11-27 16:03:43 -08:00
Natalie Weizenbaum
af648bfa7c
Drop Configuration.clone()
...
There was no reason not to use the original configuration.
2019-11-27 13:42:43 -08:00
Jennifer Thakar
8270dc1664
Support configuring modules through imports ( #885 )
...
Fixes #882
See sass/sass-spec#1497
2019-11-26 09:46:51 -08:00
Natalie Weizenbaum
15be59be31
Make SassFormatException implement SourceSpanFormatException ( #891 )
2019-11-25 18:54:45 -08:00
Natalie Weizenbaum
9635a523b7
Merge pull request #890 from sass/import-forward-twice
...
Fix some @import edge cases
2019-11-21 11:42:45 -08:00
Natalie Weizenbaum
731bd441ca
Don't produce name conflict errors due to imports
...
Closes #888
2019-11-20 16:25:48 -08:00
Natalie Weizenbaum
3ec2f3faaa
Fix a documentation typo ( #889 )
2019-11-20 16:25:37 -08:00
Natalie Weizenbaum
aa76c8ab3b
Always create scopes for nested imports
2019-11-20 16:21:03 -08:00
Natalie Weizenbaum
f1410ffac1
Fix invalid YAML in .travis.yml ( #887 )
...
This also adds a test to verify that all YAML files are valid. Travis
won't run tests at all if its YAML is invalid, but this way Appveyor
can warn about broken Travis config and vice versa, and a local test
run will warn about either.
2019-11-19 14:27:20 -08:00
Natalie Weizenbaum
aac599947d
Run the GitHub Windows release on the latest Dart version ( #886 )
2019-11-18 17:33:56 -08:00
Natalie Weizenbaum
ab0a2b68cc
Merge pull request #884 from sass/fix-release
...
Fix release infrastructure for Dart 2.6
2019-11-15 17:02:29 -08:00
Natalie Weizenbaum
e1e96338d8
Bump the version
2019-11-15 16:40:47 -08:00
Natalie Weizenbaum
be05a5d77a
Use dart2native rather than dart2aot
2019-11-15 16:40:15 -08:00
Natalie Weizenbaum
3ab40b0d6a
Run Chocolatey on the latest Dart version
...
See dart-lang/sdk#38334
2019-11-15 16:37:16 -08:00
Natalie Weizenbaum
0d782fbccf
Fix inline comments in the indented syntax ( #881 )
...
Closes #880
2019-11-15 15:45:11 -08:00
Awjin Ahn
07b5c84b7d
Fix arity in overloaded function argument error ( #883 )
...
When overloaded functions receive an incorrect number of positional
arguments, determine which overload has the most similar number of
arguments, and then correctly display that number in the error.
Closes #520
sass/sass-spec#1496
2019-11-15 14:26:11 -08:00
Awjin Ahn
3d1dab3563
Print call-site for @errors in mixins and functions ( #878 )
...
For any @errors encountered in mixins or functions, use the call-site
(instead of the @error rule) as the span printed in the error message.
Closes #474
See sass/sass-spec#1494
2019-11-13 17:56:35 -08:00
Natalie Weizenbaum
c4b8932bf7
Merge pull request #875 from sass/fix-analysis
...
Fix new analysis hints
2019-11-06 16:04:10 -08:00
Nate Bosch
7b0faec321
Migrate to stream_transform extension methods
...
The non-extension implementation will be removed in the next version.
Bump the min SDK to 2.6.0 to reflect the fact that extension methods are
used.
2019-11-06 14:47:24 -08:00
Natalie Weizenbaum
20978e0320
Fix new strict inference hints from Dart 2.6
2019-11-06 14:47:24 -08:00
Natalie Weizenbaum
bf67080c62
Use the latest dev channel Dart ( #850 )
...
As suggested by https://github.com/dart-lang/sdk/issues/38334#issuecomment-542861835
2019-11-05 13:50:30 -08:00
Natalie Weizenbaum
44059573bb
Watch files through @forward rules ( #871 )
...
Closes #870
2019-11-04 13:32:27 -08:00
Natalie Weizenbaum
071c529772
Use nvm's "lts/*" alias for the latest stable Node ( #872 )
...
Follow-up from #859 . It turns out that nvm's "stable" alias is
deprecated, Node itself doesn't consider odd-numbered releases
"stable" in any real sense, and pertinently the fibers package doesn't
guarantee support for them. By only building on LTS releases we avoid
all these shenanigans.
2019-11-04 11:48:13 -08:00
Natalie Weizenbaum
1a5102bedb
Merge pull request #869 from sass/second-law-use
...
Propagate selector source specificity between modules
2019-10-31 22:51:39 -07:00
Natalie Weizenbaum
be4ca60045
Propagate selector source specificity between modules
...
Closes #866
2019-10-30 15:11:25 -07:00