Natalie Weizenbaum
01ed720e9c
Temporarily disable deploying to Chocolatey ( #960 )
...
The cli_pkg Chocolatey deployment is still failing for unknown
reasons, and until I have time to debug it I want to get a full
release out.
2020-02-24 11:38:42 -08:00
Natalie Weizenbaum
4f8f509584
Cut a release ( #958 )
...
* Use cli_pkg's updated Chocolatey support
* Stop running Node tests on the Dart dev channel for now
See dart-lang/test#1184
2020-02-19 13:42:56 -08:00
Natalie Weizenbaum
0d0270cb12
Cut a release ( #957 )
2020-02-13 16:05:04 -08:00
Natalie Weizenbaum
7d8002ec9b
Cut a release
2020-02-07 17:04:13 -08:00
Natalie Weizenbaum
67c4e1bdea
Don't throw conflict errors for identical members ( #947 )
...
See sass/sass#2820
Closes #946
2020-02-07 15:17:05 -08:00
Natalie Weizenbaum
73ddae9c34
Bump the pubspec and add a CHANGELOG entry
...
Normally I'd just release this, but releasing is currently on hold
until a few cli_pkg bugs are fixed.
2020-02-07 01:00:41 -08:00
Natalie Weizenbaum
7457d2e9e7
Create a release to test cli_pkg infrastructure ( #940 )
2020-01-24 16:49:59 -08:00
Natalie Weizenbaum
5450c1c07b
Use cli_pkg to build and release executables ( #924 )
2020-01-24 13:05:04 -08:00
awjin
4c0c6b48e4
Merge branch 'master' into math-functions
2020-01-16 14:55:40 -08:00
Natalie Weizenbaum
99c58029d8
Bump the pubspec version
2020-01-15 17:20:58 -08:00
awjin
5f72acb14d
Revert "Revert "Adds built-in clamp() and hypot() ( #906 )""
...
This reverts commit 76280409bd
.
2020-01-15 14:44:13 -08:00
Natalie Weizenbaum
6118ded4b2
Don't upgrade source_span to avoid formatting changes
2020-01-15 11:42:06 -08:00
Natalie Weizenbaum
ed9052af3e
Delete source_span override
2020-01-14 19:49:31 -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
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
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
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
2755a8186d
Avoid a path dependency
2019-12-18 17:49:54 -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
15be59be31
Make SassFormatException implement SourceSpanFormatException ( #891 )
2019-11-25 18:54:45 -08:00
Natalie Weizenbaum
aa76c8ab3b
Always create scopes for nested imports
2019-11-20 16:21:03 -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
e1e96338d8
Bump the version
2019-11-15 16:40:47 -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
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
95bb3aceb6
Add support for importers ( #8 )
2019-11-07 16:03:47 -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
3de78be2f0
Plug in the actual Sass compiler ( #5 )
...
This now supports real CompileRequest and CompileResponses, although
it's missing features like importers, custom functions, and source
maps.
2019-11-04 19:50:50 -08:00
Natalie Weizenbaum
44059573bb
Watch files through @forward rules ( #871 )
...
Closes #870
2019-11-04 13:32:27 -08:00
Natalie Weizenbaum
2b11aa1c21
Use cli_pkg to deploy to GitHub
2019-11-01 19:23:33 -07:00
Natalie Weizenbaum
7489d5796d
Add a very basic protocol dispatcher and a few tests
...
Currently this doesn't actually invoke the compiler, it just always
returns the expanded output for "a {b: c}".
2019-11-01 19:02:12 -07:00
Natalie Weizenbaum
3bf67e0011
Add a grinder task to generate protocol buffer libraries
2019-11-01 19:02:12 -07:00
Natalie Weizenbaum
be4ca60045
Propagate selector source specificity between modules
...
Closes #866
2019-10-30 15:11:25 -07:00
Natalie Weizenbaum
3392db0074
Don't compile .css files in directories to themselves ( #862 )
...
This also adds support for compiling .css files in directories *at
all*, which had previously only worked in --watch mode.
Closes #853
2019-10-29 23:48:21 +00:00
Natalie Weizenbaum
be35dbb7cc
Add a length-delimited StreamChannelTransformer ( #1 )
...
This implements the packet scheme that the embedded protocol uses when
communicating over stdin and stdout.
2019-10-29 21:05:18 +00:00
Natalie Weizenbaum
bb81bdd2c3
Release 1.23.1 ( #858 )
2019-10-22 20:58:14 +01:00
Jennifer Thakar
664260159e
Update changelog and bump pubspec version
2019-10-10 15:42:39 -07:00
Natalie Weizenbaum
5052350150
Bump the pubspec and add a changelog entry for @use
2019-10-01 14:54:54 -07:00
Natalie Weizenbaum
25fa4a772f
Release 1.22.12
2019-09-11 10:34:40 -07:00
Natalie Weizenbaum
35880d171f
Check fs.existsSync() before running fs.statSync() ( #812 )
...
This produces non-negligible speed improvements for Node users with
lots of imports.
2019-09-03 13:26:57 -07:00
Natalie Weizenbaum
fc8c987fc1
Fix a few @extend edge cases ( #797 )
2019-08-16 14:00:14 -07:00
Natalie Weizenbaum
0e5ed4a37d
Fix dash-insensitivity in get-function() ( #795 )
...
Closes #792
2019-08-14 12:20:47 -07:00
Natalie Weizenbaum
057d891c27
Update the author declaration in the pubspec ( #788 )
2019-08-05 16:18:32 -07:00
Natalie Weizenbaum
c8ac543d1e
Re-add support for Node Carbon ( #785 )
...
Apparently npm and Yarn won't avoid installing a package version that
declares incompatibility with them, so dropping compatibility for an
old version is actually a breaking change 😭 .
2019-07-29 22:32:53 +01:00
Natalie Weizenbaum
8d5e3d9a67
Include argument names when reporting range errors
...
Closes #771
2019-07-25 08:37:00 +01:00
Natalie Weizenbaum
b1707f61cd
Release 1.22.8
...
This doesn't contain any code changes relative to 1.22.7, but the JS
release will pick up mbullington/node_preamble.dart#16 .
2019-07-22 14:47:38 -07:00
Natalie Weizenbaum
ea4436b87d
Limit the Dart SDK constraint to ^2.4.0 ( #769 )
...
2.3.2 and earlier releases suffered from dart-lang/sdk#37027, which
causes them to fail to parse Dart Sass.
Closes #768
2019-07-18 21:49:36 +01:00
Natalie Weizenbaum
c794abd858
Eagerly dash-normalize Sass identifiers
...
This avoids using maps and sets with custom equality, which are
moderately inefficient relative to built-in maps and sets on both Node
and the Dart VM. In order to make error messages continue to use the
original identifiers where possible, this updates some of them to rely
more heavily on their associated source spans for context.
2019-07-16 19:42:38 -07:00
Natalie Weizenbaum
535030bb0f
Release 1.22.5
2019-07-15 21:59:54 +01:00
Natalie Weizenbaum
0e47e03305
Fix at-rules in nested imports ( #758 )
...
Closes #755
2019-07-12 01:55:30 +01:00
Natalie Weizenbaum
faa053733a
Release 1.22.3
2019-07-03 15:31:56 -07:00
Natalie Weizenbaum
60af5f6c25
Release 1.22.2 ( #745 )
...
The CHANGELOG entry from #727 got misplaced; that code hasn't been
released yet.
2019-07-01 13:31:13 -07:00
Natalie Weizenbaum
2cdbbebcaf
Declare support for Chokidar 3.0.0 ( #731 )
...
Closes #730
2019-06-26 16:06:22 -07:00
Natalie Weizenbaum
033533ae75
Avoid deprecated analyzer APIs ( #735 )
2019-06-26 14:53:37 -07:00
Natalie Weizenbaum
7955bab749
Mark the pubspec as a release version
2019-06-24 14:55:19 -07:00
Natalie Weizenbaum
4716349a0e
Add new module-system features for existing functions ( #720 )
2019-06-18 12:03:12 -07:00
Natalie Weizenbaum
a87631777b
Declare a "sass" executable in the pubspec ( #712 )
2019-06-06 21:19:09 +01:00
Natalie Weizenbaum
bea609d74b
Add a top-level warn() function for functions and importers ( #711 )
...
In addition to being useful for users of Sass, this will make it
possible for core Sass functions to produce warnings without needing
an explicit reference to the evaluator.
2019-06-06 19:42:44 +01:00
Natalie Weizenbaum
48c284b4ef
Properly mark secure variables so they're decrypted by Travis ( #697 )
2019-05-31 17:01:33 +01:00
Natalie Weizenbaum
0fe0208f6e
Remove exponent notation for integers on Node.js
...
Closes #688
2019-05-21 13:36:36 -07:00
Natalie Weizenbaum
5ed3bbc9c7
Update dependencies
2019-05-15 18:17:06 -07:00
Natalie Weizenbaum
4b7699291c
Compile release executables in native mode ( #679 )
2019-05-15 16:02:02 -07:00
Natalie Weizenbaum
60fc306ab4
Release 1.20.1
...
This doesn't have any code changes, but I want to verify that the new
deployment infrastructure works and the only way to do that is to
actually deploy.
2019-05-03 13:13:20 -07:00
Natalie Weizenbaum
34c068a189
Generate a CSS file describing an error when one occurs ( #659 )
...
Closes #657
2019-05-02 18:14:25 -07:00
Natalie Weizenbaum
407eefded1
Add support for attribute selector modifiers ( #658 )
...
Closes #656
2019-04-30 11:31:18 -07:00
Natalie Weizenbaum
37f0740307
Allow ! in url()s ( #650 )
...
Closes #646
2019-04-18 17:37:20 -07:00
Natalie Weizenbaum
413c949446
Make FilesystemImport._loadPath absolute ( #651 )
...
This avoids having the effective load path change when the process's
working directory changes.
2019-04-18 16:34:48 -07:00
Natalie Weizenbaum
3b3a43a8f9
Add a --charset flag and API option ( #644 )
...
The automatic @charset adding is useful in general, but there are
consistently cases where it trips up naïve downstream tools. This
option makes it easier for users to control when it occurs.
2019-04-08 14:49:08 -07:00
Natalie Weizenbaum
8c9412b520
Fix importing files relative to "package:" imports ( #638 )
...
The PackageImporter wasn't accepting paths relative to its
canonicalized outputs as inputs.
Closes #631
2019-04-03 13:57:52 -07:00
Natalie Weizenbaum
9999835df0
Add a sass.types.Error constructor to the JS API ( #627 )
...
Closes #590
2019-04-03 01:07:12 -07:00
Natalie Weizenbaum
bc5e3c4f8f
Properly parse CR, CR LF, and FF as newlines everywhere ( #626 )
...
Closes #623
2019-03-18 16:50:23 -07:00
Natalie Weizenbaum
13d0820c37
Release 1.17.3 ( #622 )
2019-03-15 12:50:48 -07:00
Natalie Weizenbaum
e84c8b1995
Don't put style rules inside empty @keyframes rules ( #613 )
...
Closes #611
2019-03-07 17:04:30 -08:00
Natalie Weizenbaum
0929aa5ce2
Update pub credentials ( #605 )
...
Pub recently started requiring more OAuth2 scopes than our old
credentials held.
2019-02-22 15:53:44 -08:00
Natalie Weizenbaum
149bf85b4d
Explicitly mark classes as sealed ( #602 )
2019-02-20 16:39:46 -08:00
Natalie Weizenbaum
26401fb135
Fix an attribute selector quoting bug ( #599 )
...
Closes #598
2019-02-20 13:38:21 -08:00
Natalie Weizenbaum
7ca989a4f7
Produce a better error for invalid function contents ( #587 )
...
Closes #584
2019-02-04 13:14:25 -08:00
Natalie Weizenbaum
e8ac314f56
Support dart-lang/source_span#25 ( #566 )
...
This adds a --no-unicode option to disable Unicode span rendering,
decouples repl highlighting from SourceSpan.highlight, and updates
tests to work with the new error highlighting.
It also tightly scopes source spans for statements with children.
Previously, source spans for these nodes extended all the way through
any whitespace that followed the node. This led to messy-looking
multiline span highlights with dart-lang/source_span#25 .
Now, StylesheetParser.children doesn't consume trailing whitespace.
Instead, we add a helper method StylesheetParser._withChildren that
parses children, creates the appropriate span, and then consumes the
trailing whitespace.
2019-01-28 20:42:32 -05:00
Natalie Weizenbaum
9fdf5612ea
Fix a performance bug in BinaryOperatorExpression.span ( #569 )
...
Previously, evaluator called BinaryOperationExpression.span for each
binary operation it evaluated, which in turn called spanForList() to
create a span covering both child expressions. spanForList() then
called .span for both the left and right child operations *twice*,
leading to exponential behavior.
This is now avoided in three complementary ways:
1. The evaluator avoids eagerly calling AstNode.span, instead keeping
the original AstNode until the span itself needs to be accessed.
This means that a span will only be accessed when an error actually
occurs, and then only one operation's span will be accessed.
2. BinaryOperationExpression.span now iterates through any child
operations before calling their .span methods, so it only performs
O(1) allocations.
3. spanForList() now only calls each AstNode.span once.
2019-01-17 18:04:14 -05:00
Natalie Weizenbaum
b0242767ee
Temporarily limit source_span to 1.4.x ( #570 )
...
Getting all the tests update and the output looking nice is proving
more difficult than expected, and I want to unblock other pull
requests for Dart Sass in the meantime.
2019-01-15 03:02:06 -05:00
Natalie Weizenbaum
e3ae4705f1
Release 1.16.0 ( #562 )
2019-01-09 19:18:45 -05:00
Natalie Weizenbaum
55ebe56d3c
Add support for new special number strings ( #556 )
...
See sass/sass#2584
2019-01-09 15:50:04 -05:00
Natalie Weizenbaum
12f53f5e1c
Release 1.15.3 ( #561 )
2019-01-04 15:32:45 -05:00
Natalie Weizenbaum
dbda396401
Compile to JS with -O4 ( #555 )
...
Closes #526
2019-01-03 10:47:12 -08:00
Natalie Weizenbaum
f3db1d6a66
Properly merge "all and" media queries ( #539 )
...
Closes #537
2018-12-10 13:13:19 -08:00
Natalie Weizenbaum
dad8491035
Make types.String.prototype.setValue() de-quote a string ( #535 )
...
Closes #513
2018-12-06 15:06:32 -08:00
Natalie Weizenbaum
aa52cf1474
Always add quotes to attribute selector values that begin with -- ( #529 )
...
Closes #527
2018-11-16 13:51:36 -08:00
Natalie Weizenbaum
5d885e6905
Enforce non-whitespace formatting rules
2018-11-14 13:53:55 -08:00
Natalie Weizenbaum
50efdabcce
Add support for CSS Color Level 4 rgb() and hsl() syntax
...
Closes #497
2018-11-12 16:33:54 -08:00
Natalie Weizenbaum
bf71ca359d
Add support for interpolation in at-rule names ( #509 )
...
Closes #496
2018-11-01 14:31:46 -07:00
Natalie Weizenbaum
6bdb49a9d5
Properly escape U+0009 CHARACTER TABULATION in unquoted strings ( #504 )
2018-10-18 18:50:03 -07:00
Natalie Weizenbaum
d9c836e9d0
Remove the unused convert dependency ( #502 )
...
Closes #501
2018-10-17 17:34:19 -07:00
Natalie Weizenbaum
a25bbb3fc7
Add a ParenthesizedExpression class ( #503 )
...
This allows us to accurately track the source spans for parenthesized
expressions, which in turn allows us to print accurate error
indications.
Adding a new class for this more accurately represents the structure
of the expression, but it also involves an extra allocation during
parsing and an extra level of nesting during evaluation which could
have a small but real performance impact.
We could alternatively add a package-internal setter for
Expression.span, and update the source span for parenthesized
expressions after they're initially parsed. However, this has its own
downsides: it adds complexity and mutability to the object model; and
many expression classes currently use lazily-generated spans, so
making them settable would require adding extra slots on those
classes.
I decided to go with the extra class because it only adds overhead
when parentheses are actually used in practice, as opposed to adding
overhead to every list/color/etc. The runtime overhead is also likely
to be mitigated if at any point we add a constant-folding step.
2018-10-17 16:52:32 -07:00
Jen Thakar
9a1f322d7f
Remove space around combinators in compressed mode ( #494 )
...
Complex selectors like "a > b" will now be output as "a>b" in
compressed mode.
2018-10-11 18:03:09 -07:00
Natalie Weizenbaum
0595ac3e71
Fix an import-resolution bug ( #488 )
...
When a stylesheet is imported, the parsed stylesheet object is cached
based on its canonical URL. However, the stylesheet.span.sourceUrl was
based on the text of the import that was used to load that stylesheet.
The idea was to make the source URL in stack traces look nicer, but it
meant that relative URLs could be resolved based on the old importer's
URL before being sent to the new importer, which caused bugs.
Now stylesheet.span.sourceUrl is always the canonical URL of the
stylesheet, and thus safe to cache. We then use the import cache to
convert the canonical URL to a human-friendly URL at the point at
which we generate stack traces.
This also deprecates support for relative canonical URLs. The
semantics of these URLs were always unclear, and with the new change
in import internals the old behavior doesn't make much sense. It's
preserved for backwards-compatibility, but deprecated.
2018-10-11 15:06:26 -07:00
Natalie Weizenbaum
0620ccc19a
Fix @debug on stdin ( #493 )
2018-10-10 15:05:23 -07:00
Natalie Weizenbaum
ff3cea5312
Properly parse escaped digits at the beginning of identifiers ( #486 )
...
See sass/sass#1542
Closes sass/dart-sass#485
2018-09-26 21:01:46 -04:00
Progracientist
a6164217df
Prettify URIs ( #481 )
...
Closes #464
2018-09-26 13:39:49 -04:00
Natalie Weizenbaum
89b86be5e8
Enable full alpha hex support ( #478 )
...
Closes #371
2018-09-19 16:03:32 -04:00
Natalie Weizenbaum
918a3fedf2
Pass --omit-implicit-checks to dart2js in release mode ( #473 )
...
Substantially addresses #113
2018-09-11 14:39:47 -07:00
Natalie Weizenbaum
1a5eb2a2e3
Fix embedding source maps with non-ASCII characters ( #471 )
...
Closes #457
2018-09-11 12:13:43 -07:00
Natalie Weizenbaum
ede9c81e0b
Properly adjust source maps when prepending encoding information ( #470 )
...
Closes #469
2018-09-10 15:38:30 -07:00
Natalie Weizenbaum
edf3370cd9
Parse :nth-child() selectors with extra whitespace ( #467 )
...
As a side effect of the new parse, this also removes extra whitespace
from :nth-child() selectors.
Closes #465
2018-09-05 15:28:26 -07:00
Natalie Weizenbaum
048b17495e
Support browser hacks in plain CSS mode ( #468 )
...
Closes #466
2018-09-05 14:31:59 -07:00
Natalie Weizenbaum
9e5ef91f22
Add support for the single-equals operator in plain CSS ( #463 )
...
Closes #462
2018-08-31 18:15:23 -06:00
Natalie Weizenbaum
15202c48dc
Simplify trimming for extend ( #460 )
...
We were previously trimming at bath the compound selector level and
the selector list level. This now only trims at the selector list
level.
The _trim() function also took a list of selector lists, on the
idea (from Ruby Sass) that it could avoid trimming selectors generated
from the same extension that were very unlikely to be redundant. In
practice, though, the fact that we weaved together selector lists at
the compound level meant that we didn't have meaningful
known-non-redundant lists like Ruby Sass did, so this wasn't useful.
This has no behavioral effect, although it does seem to improve
performance slightly for extend-heavy stylesheets.
2018-08-30 01:02:05 -06:00
Natalie Weizenbaum
997e068499
Add support for extending selector lists ( #455 )
...
Closes #452
2018-08-17 13:32:10 -07:00
Natalie Weizenbaum
677d781c52
Fix a crash with nested media rules ( #454 )
...
Closes #453
2018-08-17 12:34:31 -07:00
Natalie Weizenbaum
c5dff3e841
Remove the source map comment from the JS blob we release ( #448 )
...
See bazelbuild/rules_sass#44
2018-08-15 13:28:02 -07:00
Natalie Weizenbaum
874ee0b076
Expose the SassException class publicly ( #446 )
2018-08-14 12:58:47 -07:00
Natalie Weizenbaum
0f7f9e69a7
Add support for plain CSS imports ( #436 )
...
Closes #424
2018-08-10 15:58:15 -07:00
Natalie Weizenbaum
534256a381
Merge branch '1.10.x' into master
2018-08-09 17:56:30 -07:00
Natalie Weizenbaum
511319a3b4
Declare support for test 1.0.0
...
Closes sass/homebrew-sass#10
2018-08-09 15:16:56 -07:00
Natalie Weizenbaum
89ce44aac4
Pass --no-preview-dart-2 to the Chocolatey script ( #434 )
...
I missed this in c462b82
.
Closes #433
2018-08-03 14:24:53 -07:00
Natalie Weizenbaum
5ee73e2ead
Release 1.10.2
...
This is just intended to trigger a new Chocolatey build.
Closes #413
2018-08-02 16:28:07 -07:00
Natalie Weizenbaum
313b939ed8
Add support for range-form media queries ( #423 )
...
See sass/sass#1864
2018-07-25 15:48:24 -07:00
Natalie Weizenbaum
e1750216ee
Don't crash when passing includePaths with importer
...
Closes #412
2018-07-23 16:20:06 -07:00
Natalie Weizenbaum
b5c9ed41b9
Declare support for Dart 2 ( #418 )
2018-07-23 13:31:38 -07:00
Natalie Weizenbaum
45da11dad5
Preserve nested media queries when they can't be merged ( #410 )
...
See sass/sass#1831
2018-07-18 12:12:17 -07:00
Natalie Weizenbaum
f740e97e05
Fix a typo in an error message ( #411 )
2018-07-18 12:11:24 -07:00
Natalie Weizenbaum
02781130b8
Give the dummy Node.js FileSystemException a usable toString() ( #407 )
...
Closes #406
2018-07-12 19:26:21 -07:00
Jenny Messerly
6d3cd8dd06
Fix --watch option with node on Mac OS ( #402 )
...
Closes #399
2018-07-11 13:15:55 -07:00
Natalie Weizenbaum
df7c1030cf
Don't emit ANSI codes to Windows terminals that don't support them ( #403 )
...
These codes *could* be supported on all Windows terminals, but
dart-lang/sdk#28614 means that they won't actually be recognized.
Partially addresses #395
2018-07-10 15:59:16 -07:00
Natalie Weizenbaum
9bb272dcff
Support Node Sass's sass.types.Color(argb) constructor ( #398 )
...
Closes #397
2018-07-03 17:09:54 -07:00
Natalie Weizenbaum
96c46a242e
Add a --stop-on-error flag ( #391 )
...
Closes #264
2018-06-29 18:12:36 -07:00
Natalie Weizenbaum
425305725b
Add a --poll option ( #390 )
...
Partially addresses #264 .
2018-06-28 18:20:28 -07:00
Natalie Weizenbaum
cd0211c2ab
Fix the Chocolatey version of the Dart SDK ( #389 )
...
Dev SDKs changed from 2.0.0.XX-dev to 2.0.0.XX-dev-Y.
2018-06-27 17:42:07 -07:00
Natalie Weizenbaum
c462b82102
Run snapshots in Dart 1 mode
...
Until dart-lang/sdk#33257 is fixed, this ensures that users get as
much performance as possible.
2018-06-27 15:51:16 -07:00
Natalie Weizenbaum
aa9aff8120
Release 1.7.2 ( #386 )
2018-06-27 12:56:23 -07:00
Natalie Weizenbaum
e95d57ce25
Fix @-moz-document parsing and add deprecation warnings ( #379 )
...
Partially addresses #378
Closes #372
2018-06-26 17:11:25 -07:00
Natalie Weizenbaum
3b6730369b
Pin the version of Dart that gets published ( #382 )
...
This version was set separately than the version we test against, for
some reason.
Closes #380
2018-06-25 13:14:36 -07:00
Natalie Weizenbaum
023bf91745
Add deprecation warnings for hex alpha colors ( #367 )
...
Also support unambiguous hex alpha colors.
Closes #360
See sass/sass#2179
2018-06-21 17:47:06 -07:00
Natalie Weizenbaum
87e568faa4
Fix a bug where we were setting the base URL of stylesheets wrong ( #370 )
...
Closes #369
2018-06-20 17:43:40 -07:00
Natalie Weizenbaum
6693a82f3b
Use the latest test_descriptor features to clean up tests ( #366 )
2018-06-19 17:50:49 -07:00
Natalie Weizenbaum
c97e36409d
Support the latest version of cli_repl ( #362 )
2018-06-19 13:44:52 -07:00
Natalie Weizenbaum
c5071ef843
Stop using a deprecated API
2018-06-15 13:59:28 -07:00
Natalie Weizenbaum
b949f9fe72
Use Dart 2 constants
2018-06-15 13:59:28 -07:00
Natalie Weizenbaum
7a2d724cc9
Use of() constructors instead of from()
2018-06-14 16:15:27 -07:00
Natalie Weizenbaum
6ad67a6f28
Remove the workaround for dart-lang/sdk#30098
...
This un-reverts pull request #320 from sass/remove-path-workaround,
which was reverted by commit 0fb5d25ee2
.
2018-06-14 16:15:27 -07:00
Natalie Weizenbaum
7e19b9e7d6
Update the pubspec and changelog
...
[skip ci]
2018-06-13 18:28:52 -07:00
Natalie Weizenbaum
0cb2bfa0a5
Debounce filesystem events on Node
2018-06-13 16:41:29 -07:00
Natalie Weizenbaum
1ddc7c0e3e
Copy the implementation of PathMap
...
This allows us to continue supporting Dart 1. The version of path that
added PathMap only supports Dart 2, so we can't depend on it until we
support Dart 2 as well.
2018-06-13 12:14:21 -07:00
Natalie Weizenbaum
6bbb961675
Add a --watch command
...
Partially addresses #264
2018-06-09 14:13:36 -04:00
Natalie Weizenbaum
a2c0f15d67
Make ExecutableOptions.sourcesToDestinations a PathMap
2018-06-09 14:09:20 -04:00
Natalie Weizenbaum
f5e9dcb688
Expand dependencies on archive and analyzer ( #351 )
2018-06-08 21:14:00 -04:00
Natalie Weizenbaum
e2266ded68
Produce better errors when expected tokens are missing ( #344 )
2018-06-01 20:56:12 -04:00
Natalie Weizenbaum
c26903e30e
Don't consider drive separators to be path-separating colons ( #342 )
...
Closes #340
2018-05-31 20:38:45 -04:00
Natalie Weizenbaum
0fb5d25ee2
Revert "Merge pull request #320 from sass/remove-path-workaround"
...
This reverts commit 08bfb46f16
, reversing
changes made to ad73a91f84
.
2018-05-31 14:37:21 -04:00
Natalie Weizenbaum
942d1e4099
Error out on ambiguous imports ( #339 )
...
Closes #335
2018-05-30 21:03:23 -04:00
Natalie Weizenbaum
c854e341fe
Make the current pubspec a dev version
...
[skip ci]
2018-05-30 19:27:53 -04:00
Natalie Weizenbaum
920a79b408
Pubspec and changelog
...
[skip ci]
2018-05-30 19:15:06 -04:00
Natalie Weizenbaum
1d7b0aa5ad
Merge branch 'master' into jathak-interactive
2018-05-30 18:41:15 -04:00
Natalie Weizenbaum
d4655f22bd
Fix an Importer-calling bug ( #338 )
...
We were resolving URLs relative to the canonical URL rather than the
original URL, which broke importers for which those were different,
like the package importer.
Closes #334
2018-05-30 17:47:37 -04:00
Jen Thakar
930f361026
Merge branch 'master' of git://github.com/sass/dart-sass into interactive
2018-05-29 21:33:53 -07:00
Natalie Weizenbaum
ac8c01a595
Add an --update flag
...
Partially addresses #264
2018-05-28 16:58:09 -04:00
Natalie Weizenbaum
31c77fb1cc
Remove the workaround for dart-lang/sdk#30098
2018-05-28 15:23:47 -04:00
Jen Thakar
6351458f35
Merge branch 'master' of git://github.com/sass/dart-sass into interactive
2018-05-26 21:49:48 -07:00
Natalie Weizenbaum
1450c241c6
Support input:output syntax for compiling multiple files at once
...
Partially addresses #264
2018-05-20 20:57:33 +01:00
Jen Thakar
6d86b5fbdf
Merge branch 'master' of git://github.com/sass/dart-sass into interactive
2018-05-08 10:23:33 -07:00
Jen Thakar
adf2b80eeb
Update cli_repl version
2018-05-07 23:29:43 -07:00
Natalie Weizenbaum
2d72f1cdca
Add support for @elseif ( #317 )
...
Closes #316
2018-05-03 17:12:40 -07:00
Natalie Weizenbaum
b5fd1409ce
Fix relative imports through relative load paths in the Node API ( #315 )
...
Closes #314
2018-05-02 17:04:36 -07:00
Natalie Weizenbaum
c060f29ba9
Release 1.3.0
2018-04-25 18:11:55 -07:00
Natalie Weizenbaum
234aa12e08
Add CLI source map support ( #309 )
...
Partially addresses #2
2018-04-25 16:12:37 -07:00
Natalie Weizenbaum
19408d943b
Refactor the way CLI options are handled
...
Exposing the options through a stateless object makes it easier to
separate out the procedure of compilation from the logic behind
parsing each option.
2018-04-25 13:41:22 -07:00
Natalie Weizenbaum
9ea001598a
Add a Dart API for source map generation ( #299 )
...
Partially addresses #2
2018-04-19 16:51:20 -07:00
Natalie Weizenbaum
b23993ea66
Always emit units for non-length/angle 0 values ( #300 )
...
Closes #297
2018-04-19 15:20:17 -07:00
Natalie Weizenbaum
2e3f125e7d
Broaden some dependency constraints ( #298 )
2018-04-19 14:43:31 -07:00
Jen Thakar
7c64f222e0
Merge branch 'master' of git://github.com/sass/dart-sass into interactive
2018-04-14 20:28:15 -07:00
Jen Thakar
b9d1317d90
Update cli_repl to support running on Node
2018-04-14 20:24:28 -07:00
Natalie Weizenbaum
6fd0f6d6e3
Improve the error message for extending compound selectors. ( #294 )
...
Closes #286
2018-04-14 16:02:53 -07:00
Jen Thakar
74d3693ec6
Upgrade cli_repl to fix bug on Windows/Dart 2
2018-04-14 13:57:00 -07:00
Jen Thakar
d262e28603
Add interactive SassScript REPL
2018-04-14 11:40:04 -07:00
Natalie Weizenbaum
a31251fdc9
Create a directory for CSS output if necessary ( #291 )
...
Closes #288
2018-04-12 16:40:53 -07:00
Natalie Weizenbaum
5cce76b6d4
Use constants from dart2_constants ( #282 )
2018-04-04 15:49:07 -07:00
Natalie Weizenbaum
e131fd0a36
Stop using deprecated args APIs ( #278 )
2018-03-29 14:16:14 -07:00
Natalie Weizenbaum
dd61b8cf1d
Merge tag '1.1.0'
...
This will be released as 1.1.1, since 1.1.0 accidentally didn't
include 880c914
.
2018-03-27 14:20:45 -07:00
Natalie Weizenbaum
11a44b0557
Release 1.1.0
2018-03-27 13:47:49 -07:00
Natalie Weizenbaum
880c91444e
Add support for "sass input.scss output.css" ( #275 )
...
Closes #274
2018-03-27 13:45:03 -07:00
Natalie Weizenbaum
7b2dfef289
Release 1.0.0
2018-03-26 12:49:52 -07:00
Natalie Weizenbaum
4c293f3ca7
Allow "!" in custom property values ( #266 )
...
Closes #260
2018-03-22 17:07:19 -07:00
Natalie Weizenbaum
2dae4f61f3
Release 1.0.0-rc.1
2018-03-16 16:23:57 -07:00
John Harvey
e63b8e1b40
Add support for _index files ( #220 )
...
See sass/sass#690
2018-03-09 14:46:46 -08:00
Natalie Weizenbaum
33004e4eff
Release 1.0.0-beta.5.3
2018-03-02 17:58:34 -08:00
Natalie Weizenbaum
bacc380d5b
Don't deadlock on /* comments in the indented syntax
...
Closes #238
2018-02-23 16:29:23 -08:00
Natalie Weizenbaum
25d90e5525
Release 1.0.0-beta.5.2
2018-02-03 17:03:05 -08:00
Natalie Weizenbaum
4db5d49048
Pubspec and CHANGELOG
2018-02-03 13:25:07 -08:00
Natalie Weizenbaum
fb07af6956
Release 1.0.0-beta.5.1
...
I pushed 1.0.0-beta.5 before merging in the latest change, so this has
a different version number.
2018-02-02 17:39:16 -08:00
Natalie Weizenbaum
629ac3b187
Support args 1.0.0
...
Closes #214
2018-01-19 13:26:27 -08:00
Natalie Weizenbaum
1e09cec5aa
Split Value and its subtypes into public and private interfaces ( #210 )
2018-01-13 01:30:42 -08:00
Natalie Weizenbaum
c49e037e34
Fix round() for negative numbers ( #205 )
...
See sass/sass#2409
2017-12-15 15:11:32 -08:00
Natalie Weizenbaum
3f0422575f
Release 1.0.0-beta.4
2017-12-08 15:54:37 -08:00
Natalie Weizenbaum
8fd211d789
Clean up UTF-8 error handling in Dart
2017-12-02 16:37:57 -08:00
Natalie Weizenbaum
0a67d3845f
Add a dev dependency on fibers from NPM
2017-12-01 14:36:37 -08:00
Natalie Weizenbaum
0df3463213
Compile asynchronous code to synchronous ( #194 )
...
See #9
2017-12-01 14:29:11 -08:00
Natalie Weizenbaum
2cb325a3df
Fix a crash when extending :not(...) into :not(:not(...)) ( #192 )
...
Closes #191
2017-11-16 16:25:19 -08:00
Natalie Weizenbaum
bd1c788cd5
Release 1.0.0-beta.3
2017-11-03 14:47:22 -07:00
Natalie Weizenbaum
530c4244d0
Refactor some Node API testing
2017-10-20 16:56:54 -07:00
Natalie Weizenbaum
1651dcab96
Support dev SDKs on Chocolatey ( #183 )
...
Made possible by daftspaniel/Chocolatey-Packages#10
2017-10-13 15:44:27 -07:00
Natalie Weizenbaum
5987b12119
Merge pull request #179 from sass/dart-importer
...
Expose a Dart API for importers
2017-10-13 14:25:47 -07:00
Natalie Weizenbaum
7126cfcc0f
Use the latest version of the archive package
...
brendan-duncan/archive#41 has been fixed as of 1.0.32.
2017-10-13 13:00:23 -07:00
Natalie Weizenbaum
ed1d6ef6b1
Add importer infrastructure
...
This isn't yet exposed by any public-facing API.
2017-10-12 21:54:58 -07:00
Natalie Weizenbaum
d39060842c
Narrow the upper bound on the archive package
...
This works around brendan-duncan/archive#41.
Closes #180
2017-10-12 11:50:46 -07:00
Sam Rawlins
97f678a770
Read Sass from stdin ( #137 )
...
See #105
2017-10-06 18:59:49 -07:00
Natalie Weizenbaum
35f879abde
Don't crash on a fully-interpolated CSS variable name ( #177 )
...
Closes #176
2017-10-04 15:20:15 -07:00
Natalie Weizenbaum
8ba2ea670c
Release 1.0.0-beta.2
2017-07-14 18:52:13 -07:00
Natalie Weizenbaum
bf493b95a1
Remove dependency_override for test.
...
The stable version has been released.
2017-07-07 16:44:00 -07:00
Natalie Weizenbaum
6ed530c895
Test the Node.js API.
...
Closes #150
2017-07-06 17:39:07 -07:00
Sam Rawlins
7d92f2c1ad
Support lineFeed in the Node API ( #153 )
2017-06-15 15:19:26 -07:00
Natalie Weizenbaum
bd912aee4f
Release 1.0.0-beta.1.
2017-06-05 12:50:47 -07:00
Natalie Weizenbaum
ab48b7104d
Upgrade to the latest source_span. ( #151 )
2017-06-05 12:35:30 -07:00
Natalie Weizenbaum
4243535941
Update the formatter version.
2017-05-27 17:18:13 -07:00
Natalie Weizenbaum
4db551e603
Stop using scheduled_test. ( #142 )
2017-05-25 14:23:48 -07:00
Natalie Weizenbaum
7248cf0e27
Use real generic method syntax.
2017-05-18 17:11:32 -07:00
Natalie Weizenbaum
f00c6c8c5d
Compile JS with --trust-type-annotations.
2017-02-16 17:05:01 -08:00
Natalie Weizenbaum
e95847746f
Release 1.0.0-alpha.9.
2017-02-16 15:24:52 -08:00
Luis Vargas
cfc3a15041
Support package: URLs as a Dart library ( #53 )
2017-02-03 01:08:06 -08:00
Natalie Weizenbaum
35d1af51d1
Update namespace extend per sass/sass#2229. ( #106 )
2017-01-26 20:12:22 -08:00
Natalie Weizenbaum
54c65c1e8d
Pass keyword args through call().
2017-01-15 15:34:17 -08:00
Natalie Weizenbaum
bdad2fdce2
Bump version to 1.0.0-alpha.8.
2017-01-13 16:28:17 -08:00
Natalie Weizenbaum
5e80408f90
Add support for building a Chocolatey package. ( #98 )
...
Closes #67
2017-01-13 16:13:26 -08:00
Natalie Weizenbaum
de69e7ae1b
Parse terse indented mixin syntax.
2017-01-08 17:13:08 -08:00
Natalie Weizenbaum
d215742503
Bump the version to 1.0.0-alpha.7.
2017-01-06 21:48:11 -08:00
Natalie Weizenbaum
17521b5a3b
Update the pubspec and changelog.
2016-12-29 12:33:12 -08:00
Natalie Weizenbaum
bf1127bcf5
Bump version to 1.0.0-alpha.6.
2016-12-19 15:24:18 -08:00
Natalie Weizenbaum
9d678469d0
Support var() in plain CSS color functions. ( #69 )
...
See sass/sass-spec#1002
See sass/sass#2175
2016-12-16 18:20:03 -08:00
Natalie Weizenbaum
5ac62e01ba
Bump version to 1.0.0-alpha.5.
2016-12-10 21:26:51 -08:00
Natalie Weizenbaum
224d9cdb47
Add CLI test files for Dart and Node.
...
More tests will be added in a future commit.
2016-12-02 16:09:20 -08:00
Natalie Weizenbaum
20fbe9b5ad
Use the released node_preamble.
2016-12-02 15:20:08 -08:00
Natalie Weizenbaum
71264f83bb
Use my fork of the node_preamble package.
...
We'll go back to the published package once
mbullington/node_preamble.dart#1 lands.
Closes #51
2016-12-02 14:26:27 -08:00
Natalie Weizenbaum
d71e530622
Fix bounds-checking for opacify() et al.
2016-11-14 22:46:58 -08:00
Natalie Weizenbaum
2edc6210d3
Bump version to 1.0.0-alpha.4.
2016-11-14 22:34:26 -08:00
Natalie Weizenbaum
5f78a8b40a
Fix an expression-parsing bug. ( #38 )
...
A binary operator followed by a unary operator (for example, `1 + - 2`)
would crash the parser.
2016-11-11 17:47:00 -08:00
Natalie Weizenbaum
d691c77db5
Don't duplicate line/column info in error output. ( #36 )
...
All span information is now presented as a stack frame, and elided if
it's redundant with the existing stack.
2016-11-08 12:22:55 -08:00
Natalie Weizenbaum
b41dcfb457
Tag 1.0.0-alpha.3.
2016-11-07 18:49:05 -08:00
Natalie Weizenbaum
bcd7f90ad8
Add a dependency on stack_trace.
...
Closes #26
2016-11-07 17:15:44 -08:00
Natalie Weizenbaum
bab6ebb59a
Track and use colors' original representations.
2016-11-02 17:37:10 -07:00
Natalie Weizenbaum
e0fd5ea65c
Fix a bug where names were broken through imports.
...
Closes #20
Closes #8
2016-11-01 14:43:46 -07:00
Adão Júnior
9e71e652ae
fix homepage link
2016-10-31 21:14:36 -02:00
Natalie Weizenbaum
64dc85c80c
Tag 1.0.0-alpha.1.
2016-10-31 13:19:10 -07:00
Natalie Weizenbaum
cb613ee2e4
Use a more conservative SDK version.
2016-10-14 17:40:56 -07:00
Natalie Weizenbaum
127c7f9df8
Declare an executable to pub.
2016-10-14 17:40:31 -07:00
Natalie Weizenbaum
44e1f895d8
Add a grinder task for making standalone packages.
2016-10-14 15:48:34 -07:00
Natalie Weizenbaum
aa614bd0cc
Print the version number.
2016-10-07 15:46:58 -07:00
Natalie Weizenbaum
483305e7bc
Update version to 1.0.0-dev.
2016-10-07 15:28:14 -07:00
Natalie Weizenbaum
d90b8e52ae
Support compiling to node.js.
2016-10-07 15:05:56 -07:00
Natalie Weizenbaum
8bbaf46fe6
Use the tuple package.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
83c8c1a9b7
Add args support.
...
It doesn't really do anything yet.
2016-08-30 15:51:23 -07:00
Natalie Weizenbaum
f1ce6ea599
Format all code.
2016-08-30 15:51:23 -07:00
Natalie Weizenbaum
4de13946b9
Update pubspec.
2016-08-30 15:51:21 -07:00
Natalie Weizenbaum
5e93ee8667
Extend WIP
2016-08-30 15:51:19 -07:00
Natalie Weizenbaum
8d46af6b56
Add support for unrecognized at-rules.
2016-08-30 15:51:18 -07:00
Natalie Weizenbaum
162ea29c14
Use built-in string scanner methods.
2016-08-30 15:51:18 -07:00
Natalie Weizenbaum
2f332b4bbc
Add an executable and fix some bugs.
2016-08-30 15:51:15 -07:00
Natalie Weizenbaum
53c5fb8e13
Checked-mode clean.
2016-08-30 15:51:15 -07:00
Natalie Weizenbaum
cf28c7ed20
Template files.
2016-08-30 15:51:06 -07:00