Releases: sass/dart-sass
Dart Sass 1.96.0
To install Sass 1.96.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Allow numbers with complex units (more than one numerator unit or more than zero denominator units) to be emitted to CSS. These are now emitted as
calc()expressions, which now support complex units in plain CSS.
See the full changelog for changes in earlier releases.
Dart Sass 1.95.1
To install Sass 1.95.1, download one of the packages below 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.95.0
To install Sass 1.95.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 the CSS-style
if()function. In addition to supporting the plain CSS syntax, this also supports asass()query that takes a Sass expression that evaluates totrueorfalseat preprocessing time depending on whether the Sass value is truthy. If there are no plain-CSS queries, the function will return the first value whose query returns true during preprocessing. For example,if(sass(false): 1; sass(true): 2; else: 3)returns2. -
The old Sass
if()syntax is now deprecated. Users are encouraged to migrate to the new CSS syntax.if($condition, $if-true, $if-false)can be changed toif(sass($condition): $if-true; else: $if-false).See the Sass website for details.
-
Plain-CSS
if()functions are now considered "special numbers", meaning that they can be used in place of arguments to CSS color functions. -
Plain-CSS
if()functions andattr()functions are now considered "special variable strings" (likevar()), meaning they can now be used in place of multiple arguments or syntax fragments in various CSS functions.
See the full changelog for changes in earlier releases.
Dart Sass 1.94.3
To install Sass 1.94.3, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Fix the span reported for standalone
%expressions followed by whitespace.
See the full changelog for changes in earlier releases.
Dart Sass 1.94.2
To install Sass 1.94.2, 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
- Using
--fatal-deprecation <version>no longer emits warnings about deprecations that are obsolete.
Dart API
Deprecation.forVersionnow excludes obsolete deprecations from the set it returns.
JS API
- Excludes obsolete deprecations from
fatalDeprecationswhen aVersionis passed.
Node.js Embedded Host
- Fix a bug where a variable could be used before it was initialized during async compilation.
See the full changelog for changes in earlier releases.
Dart Sass 1.94.1
To install Sass 1.94.1, download one of the packages below 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.94.0
To install Sass 1.94.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 compatibility fix:
@functionrules whose names begin with--are now parsed as unknown at-rules to support the plain CSS@functionrule. Within this rule, theresultproperty is parsed as raw CSS just like custom properties. -
Potentially breaking compatibility fix:
@mixinrules whose names begin with--are now errors. These are not yet parsed as unknown at-rules because no browser currently supports CSS mixins.
See the full changelog for changes in earlier releases.
Dart Sass 1.93.3
To install Sass 1.93.3, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Fix a performance regression that was introduced in 1.92.0.
See the full changelog for changes in earlier releases.
Dart Sass 1.93.2
To install Sass 1.93.2, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- No user-visible changes.
JavaScript API
- Fix another error in the release process for
@sass/types.
See the full changelog for changes in earlier releases.
Dart Sass 1.93.1
To install Sass 1.93.1, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- No user-visible changes.
JavaScript API
- Fix an error in the release process for
@sass/types.
See the full changelog for changes in earlier releases.