Skip to content

Releases: sass/dart-sass

Dart Sass 1.16.1

17 Jan 23:39
9fdf561

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

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

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

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

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

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

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

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.

Dart Sass 1.14.1

27 Sep 01:32
ff3cea5

Choose a tag to compare

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

Changes

  • Canonicalize escaped digits at the beginning of identifiers as hex escapes.

  • Properly parse property declarations that are both in content blocks and written after content blocks.

Command-Line Interface

  • Print more readable paths in --watch mode.

See the full changelog for changes in earlier releases.

Dart Sass 1.14.0

19 Sep 21:12
89b86be

Choose a tag to compare

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

Changes

BREAKING CHANGE

In accordance with our compatibility policy, breaking changes made for CSS compatibility reasons are released as minor version revision after a three-month deprecation period.

  • Tokens such as #abcd that are now interpreted as hex colors with alpha channels, rather than unquoted ID strings.

See the full changelog for changes in earlier releases.