Skip to content

Releases: sass/dart-sass

Dart Sass 1.17.1

20 Feb 22:14
26401fb
Compare
Choose a tag to compare

To install Dart Sass 1.17.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

  • Properly quote attribute selector values that start with identifiers but end with a non-identifier character.

See the full changelog for changes in earlier releases.

Dart Sass 1.17.0

04 Feb 21:55
7ca989a
Compare
Choose a tag to compare

To install Dart Sass 1.17.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

  • Improve error output, particularly for errors that cover multiple lines.

  • Improve source locations for some parse errors. Rather than pointing to the next token that wasn't what was expected, they point after the previous token. This should generally provide more context for the syntax error.

  • Produce a better error message for style rules that are missing the closing }.

  • Produce a better error message for style rules and property declarations within @function rules.

Command-Line Interface

  • Passing a directory on the command line now compiles all Sass source files in the directory to CSS files in the same directory, as though dir:dir were passed instead of just dir.

  • The new error output uses non-ASCII Unicode characters by default. Add a --no-unicode flag to disable this.

See the full changelog for changes in earlier releases.

Dart Sass 1.16.1

17 Jan 23:39
9fdf561
Compare
Choose a tag to compare

To install Dart Sass 1.16.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

  • Fix a performance bug where stylesheet evaluation could take a very long time when many binary operators were used in sequence.

See the full changelog for changes in earlier releases.

Dart Sass 1.16.0

10 Jan 00:48
e3ae470
Compare
Choose a tag to compare

To install Dart Sass 1.16.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

  • rgb() and hsl() now treat unquoted strings beginning with env(), min(), and max() as special number strings like calc().

See the full changelog for changes in earlier releases.

Dart Sass 1.15.3

04 Jan 21:04
12f53f5
Compare
Choose a tag to compare

To install Dart Sass 1.15.3, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

  • Properly merge all and media queries. These queries were previously being merged as though all referred to a specific media type, rather than all media types.

  • Never remove units from 0 values in compressed mode. This wasn't safe in general, since some properties (such as line-height) interpret 0 as a <number> rather than a <length> which can break CSS transforms. It's better to do this optimization in a dedicated compressor that's aware of CSS property semantics.

  • Match Ruby Sass's behavior in some edge-cases involving numbers with many significant digits.

  • Emit escaped tab characters in identifiers as \9 rather than a backslash followed by a literal tab.

Command-Line Interface

  • The source map generated for a stylesheet read from standard input now uses a data: URL to include that stylesheet's contents in the source map.

Node JS API

  • this.includePaths for a running importer is now a ;-separated string on Windows, rather than :-separated. This matches Node Sass's behavior.

Dart API

  • The URL used in a source map to refer to a stylesheet loaded from an importer is now ImportResult.sourceMapUrl as documented.

See the full changelog for changes in earlier releases.

Dart Sass 1.15.2

06 Dec 23:37
dad8491
Compare
Choose a tag to compare

To install Dart Sass 1.15.2, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

Node JS API

  • When setValue() is called on a Sass string object, make it unquoted even if it was quoted originally, to match the behavior of Node Sass.

See the full changelog for changes in earlier releases.

Dart Sass 1.15.1

16 Nov 22:24
aa52cf1
Compare
Choose a tag to compare

To install Dart Sass 1.15.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

  • Always add quotes to attribute selector values that begin with --, since IE 11 doesn't consider them to be identifiers.

See the full changelog for changes in earlier releases.

Dart Sass 1.15.0

14 Nov 22:10
0aca829
Compare
Choose a tag to compare

To install Dart Sass 1.15.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

  • Add support for passing arguments to @content blocks. See [the proposal][content-args] for details.

  • Add support for the new rgb() and hsl() syntax introduced in CSS Colors Level 4, such as rgb(0% 100% 0% / 0.5). See [the proposal][color-4-rgb-hsl] for more details.

  • Add support for interpolation in at-rule names. See [the proposal][at-rule-interpolation] for details.

  • Add paths from the SASS_PATH environment variable to the load paths in the command-line interface, Dart API, and JS API. These load paths are checked just after the load paths explicitly passed by the user.

  • Allow saturation and lightness values outside of the 0% to 100% range in the hsl() and hsla() functions. They're now clamped to be within that range rather than producing an error if they're outside it.

  • Properly compile selectors that end in escaped whitespace.

[content-args]: https://github.com/sass/language/blob/master/accepted/content-args.md [color-4-rgb-hsl]: https://github.com/sass/language/blob/master/accepted/color-4-rgb-hsl.md [at-rule-interpolation]: https://github.com/sass/language/blob/master/accepted/at-rule-interpolation.md

JavaScript API

  • Always include the error location in error messages.

See the full changelog for changes in earlier releases.

Dart Sass 1.14.3

18 Oct 00:26
a25bbb3
Compare
Choose a tag to compare

To install Dart Sass 1.14.3, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

  • Treat :before, :after, :first-line, and :first-letter as pseudo-elements for the purposes of @extend.

  • When running in compressed mode, remove spaces around combinators in complex selectors, so a selector like a > b is output as a>b.

  • Properly indicate the source span for errors involving binary operation expressions whose operands are parenthesized.

See the full changelog for changes in earlier releases.

Dart Sass 1.14.2

11 Oct 22:37
0595ac3
Compare
Choose a tag to compare

To install Dart Sass 1.14.2, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.

Changes

  • Fix a bug where loading the same stylesheet from two different import paths could cause its imports to fail to resolve.

  • Properly escape U+001F INFORMATION SEPARATOR ONE in unquoted strings.

Command-Line Interface

  • Don't crash when using @debug in a stylesheet passed on standard input.

Dart API

  • AsyncImporter.canonicalize() and Importer.canonicalize() must now return absolute URLs. Relative URLs are still supported, but are deprecated and will be removed in a future release.

See the full changelog for changes in earlier releases.