Skip to content

Releases: sass/dart-sass

Dart Sass 1.17.3

15 Mar 20:23
13d0820
Compare
Choose a tag to compare

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

Changes

  • Fix an edge case where slash-separated numbers were written to the stylesheet with a slash even when they're used as part of another arithmetic operation, such as being concatenated with a string.

  • Don't put style rules inside empty @keyframes selectors.

See the full changelog for changes in earlier releases.

Dart Sass 1.17.2

23 Feb 00:27
0929aa5
Compare
Choose a tag to compare

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

Changes

  • Deprecate !global variable assignments to variables that aren't yet defined. This deprecation message can be avoided by assigning variables to null at the top level before globally assigning values to them.

Dart API

  • Explicitly mark classes that were never intended to be subclassed or implemented as "sealed".

See the full changelog for changes in earlier releases.

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.