Releases: sass/dart-sass
Dart Sass 1.17.1
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
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 justdir
. -
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
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
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()
andhsl()
now treat unquoted strings beginning withenv()
,min()
, andmax()
as special number strings likecalc()
.
See the full changelog for changes in earlier releases.
Dart Sass 1.15.3
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 thoughall
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
) interpret0
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
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
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
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()
andhsl()
syntax introduced in CSS Colors Level 4, such asrgb(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%
to100%
range in thehsl()
andhsla()
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
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 asa>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
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()
andImporter.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.