Releases: sass/dart-sass
Dart Sass 1.54.0
To install Sass 1.54.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Deprecate selectors with leading or trailing combinators, or with multiple combinators in a row. If they're included in style rules after nesting is resolved, Sass will now produce a deprecation warning and, in most cases, omit the selector. Leading and trailing combinators can still be freely used for nesting purposes.
See https://sass-lang.com/d/bogus-combinators for more details.
-
Add partial support for new media query syntax from Media Queries Level 4. The only exception are logical operations nested within parentheses, as these were previously interpreted differently as SassScript expressions.
A parenthesized media condition that begins with
not
or an opening parenthesis now produces a deprecation warning. In a future release, these will be interpreted as plain CSS instead. -
Deprecate passing non-
deg
units tocolor.hwb()
's$hue
argument. -
Fix a number of bugs when determining whether selectors with pseudo-elements are superselectors.
-
Treat
*
as a superselector of all selectors.
Dart API
- Add a top-level
fakeFromImport()
function for testing custom importers that useAsyncImporter.fromImport
.
JS API
-
Add a
charset
option that controls whether or not Sass emits a@charset
/BOM for non-ASCII stylesheets. -
Fix Sass npm package types for TS 4.7+ Node16 and NodeNext module resolution.
See the full changelog for changes in earlier releases.
Dart Sass 1.53.0
To install Sass 1.53.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Add support for calling
var()
with an empty second argument, such asvar(--side, )
.
JS API
- Fix a bug where
meta.load-css()
would sometimes resolve relative URLs incorrectly when called from a mixin using the legacy JS API.
Embedded Sass
- Respect npm's proxy settings when downloading the embedded Sass compiler.
See the full changelog for changes in earlier releases.
Dart Sass 1.52.3
To install Sass 1.52.3, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Fix crash when trailing loud comments (
/* ... */
) appear twice in a row across two different imports which themselves imported the same file each.
See the full changelog for changes in earlier releases.
Dart Sass 1.52.2
To install Sass 1.52.2, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Preserve location of trailing loud comments (
/* ... */
) instead of pushing the comment to the next line.
See the full changelog for changes in earlier releases.
Dart Sass 1.52.1
To install Sass 1.52.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Command Line Interface
- Fix a bug where
--watch
mode would close immediately in TTY mode. This was caused by our change to close--watch
when stdin was closed outside of TTY mode, which has been reverted for now while we work on a fix.
See the full changelog for changes in earlier releases.
Dart Sass 1.52.0
To install Sass 1.52.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Add support for arbitrary modifiers at the end of plain CSS imports, in addition to the existing
supports()
and media queries. Sass now allows any sequence of identifiers of functions after the URL of an import for forwards compatibility with future additions to the CSS spec. -
Fix an issue where source locations tracked through variable references could potentially become incorrect.
-
Fix a bug where a loud comment in the source can break the source map when embedding the sources, when using the command-line interface or the legacy JS API.
JS API
SassNumber.assertUnit()
andSassNumber.assertNoUnits()
now correctly return the number called on when it passes the assertion.
See the full changelog for changes in earlier releases.
Dart Sass 1.51.0
To install Sass 1.51.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Potentially breaking change: Change the order of maps returned by
map.deep-merge()
to match those returned bymap.merge()
. All keys that appeared in the first map will now be listed first in the same order they appeared in that map, followed by any new keys added from the second map. -
Improve the string output of some AST nodes in error messages.
See the full changelog for changes in earlier releases.
Dart Sass 1.50.1
To install Sass 1.50.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Embedded Sass
-
The JS embedded host and the embedded compiler will now properly avoid resolving imports relative to the current working directory unless
'.'
is passed as a load path. -
Fix a bug in the JS embedded host's implementation of the legacy JS API where imports that began with
/
could crash on Windows.
See the full changelog for changes in earlier releases.
Dart Sass 1.50.0
To install Sass 1.50.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
@extend
now treats:where()
the same as:is()
.
Command Line Interface
- Closing the standard input stream will now cause the
--watch
command to stop running.
Embedded Sass
-
Fix a bug where the JS embedded host crashed when invoking a legacy importer after resolving a relative filesystem import.
-
Improve error messages when returning non-
Object
values from legacy importers.
See the full changelog for changes in earlier releases.
Dart Sass 1.49.11
To install Sass 1.49.11, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Add support for 64-bit ARM releases on Linux.
Embedded Sass
- The embedded compiler now correctly sets the
id
field for allOutboundMessage
s.
See the full changelog for changes in earlier releases.