Skip to content

Releases: sass/dart-sass

Dart Sass 1.24.1

03 Jan 00:51
79d9a73
Compare
Choose a tag to compare

To install Dart Sass 1.24.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 bug where the wrong file could be loaded when the same URL is used by both a @use rule and an @import rule.

See the full changelog for changes in earlier releases.

Dart Sass 1.24.0

20 Dec 18:51
b3671c6
Compare
Choose a tag to compare

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

Changes

  • Add an optional with clause to the @forward rule. This works like the @use rule's with clause, except that @forward ... with can declare variables as !default to allow downstream modules to reconfigure their values.

  • Support configuring modules through @import rules.

See the full changelog for changes in earlier releases.

Dart Sass 1.23.7

19 Nov 23:31
f1410ff
Compare
Choose a tag to compare

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

Changes

  • No user-visible changes.

See the full changelog for changes in earlier releases.

Dart Sass 1.23.6

16 Nov 01:45
ab0a2b6
Compare
Choose a tag to compare

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

Changes

  • No user-visible changes.

See the full changelog for changes in earlier releases.

Dart Sass 1.23.5

16 Nov 00:34
0d782fb
Compare
Choose a tag to compare

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

Changes

  • Support inline comments in the indented syntax.

  • When an overloaded function receives the wrong number of arguments, guess which overload the user actually meant to invoke, and display the invalid argument error for that overload.

  • When @error is used in a function or mixin, print the call site rather than the location of the @error itself to better match the behavior of calling a built-in function that throws an error.

See the full changelog for changes in earlier releases.

Dart Sass 1.23.3

01 Nov 06:33
1a5102b
Compare
Choose a tag to compare

To install Dart Sass 1.23.3, 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 selectors were being trimmed over-eagerly when @extend crossed module boundaries.

See the full changelog for changes in earlier releases.

Dart Sass 1.23.2

30 Oct 19:29
3392db0
Compare
Choose a tag to compare

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

Changes

Command-Line Interface

  • Fix a bug when compiling all Sass files in a directory where a CSS file could be compiled to its own location, creating an infinite loop in --watch mode.

  • Properly compile CSS entrypoints in directories outside of --watch mode.

See the full changelog for changes in earlier releases.

Dart Sass 1.23.1

23 Oct 00:31
3b36b5e
Compare
Choose a tag to compare

To install Dart Sass 1.23.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 bug preventing built-in modules from being loaded within a configured module.

  • Fix a bug preventing an unconfigured module from being loaded from within two different configured modules.

  • Fix a bug when meta.load-css() was used to load some files that included media queries.

  • Allow saturate() in plain CSS files, since it can be used as a plain CSS filter function.

  • Improve the error messages for trying to access functions like lighten() from the sass:color module.

See the full changelog for changes in earlier releases.

Dart Sass 1.23.0

02 Oct 01:29
b3cd44f
Compare
Choose a tag to compare

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

Changes

  • Launch the new Sass module system! This adds:

    • The @use rule, which loads Sass files as modules and makes their members available only in the current file, with automatic namespacing.

    • The @forward rule, which makes members of another Sass file available to stylesheets that @use the current file.

    • Built-in modules named sass:color, sass:list, sass:map, sass:math, sass:meta, sass:selector, and sass:string that provide access to all the built-in Sass functions you know and love, with automatic module namespaces.

    • The meta.load-css() mixin, which includes the CSS contents of a module loaded from a (potentially dynamic) URL.

    • The meta.module-variables() function, which provides access to the variables defined in a given module.

    • The meta.module-functions() function, which provides access to the functions defined in a given module.

    Check out the Sass blog for more information on the new module system. You can also use the new Sass migrator to automatically migrate your stylesheets to the new module system!

See the full changelog for changes in earlier releases.

Dart Sass 1.22.12

11 Sep 21:23
42ac7a8
Compare
Choose a tag to compare

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

Changes

  • Potentially breaking bug fix: character sequences consisting of two or more hyphens followed by a number (such as --123), or two or more hyphens on their own (such as --), are now parsed as identifiers in accordance with the CSS spec.

    The sequence -- was previously parsed as multiple applications of the - operator. Since this is unlikely to be used intentionally in practice, we consider this bug fix safe.

Command-Line Interface

  • Fix a bug where changes in .css files would be ignored in --watch mode.

JavaScript API

  • Allow underscore-separated custom functions to be defined.

  • Improve the performance of Node.js compilation involving many @imports.

See the full changelog for changes in earlier releases.