Releases: sass/dart-sass
Dart Sass 1.13.3
To install Dart Sass 1.13.3, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Properly generate source maps for stylesheets that emit
@charset
declarations.
Command-Line Interface
- Don't error out when passing
--embed-source-maps
along with--embed-sources
for stylesheets that contain non-ASCII characters.
See the full changelog for changes in earlier releases.
Dart Sass 1.13.2
To install Dart Sass 1.13.2, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Properly parse
:nth-child()
and:nth-last-child()
selectors with whitespace around the argument. -
Don't emit extra whitespace in the arguments for
:nth-child()
and:nth-last-child()
selectors. -
Fix support for CSS hacks in plain CSS mode.
See the full changelog for changes in earlier releases.
Dart Sass 1.13.1
To install Dart Sass 1.13.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Allow an IE-style single equals operator in plain CSS imports.
See the full changelog for changes in earlier releases.
Dart Sass 1.13.0
To install Dart Sass 1.13.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
Allow
@extend
to be used with multiple comma-separated simple selectors. This is already supported by other implementations, but fell through the cracks for Dart Sass until now. -
Don't crash when a media rule contains another media rule followed by a style rule.
See the full changelog for changes in earlier releases.
Dart Sass 1.12.0
To install Dart Sass 1.12.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Dart API
- Add a
SassException
type that provides information about Sass compilation failures.
JS API
- Remove the source map comment from the compiled JS. We don't ship with the source map, so this pointed to nothing.
See the full changelog for changes in earlier releases.
Dart Sass 1.11.0
To install Dart Sass 1.11.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 importing plain CSS files. They can only be imported without an extension—for example,
@import "style"
will importstyle.css
. Plain CSS files imported this way only support standard CSS features, not Sass extensions.See the proposal for details.
-
Add support for CSS's
min()
andmax()
math functions. Amin()
andmax()
call will continue to be parsed as a Sass function if it involves any Sass-specific features like variables or function calls, but if it's valid plain CSS (optionally with interpolation) it will be emitted as plain CSS instead.See the proposal for details.
-
Add support for range-format media features like
(10px < width < 100px)
. See the proposal for details. -
Normalize escape codes in identifiers so that, for example,
éclair
and\E9clair
are parsed to the same value. See the proposal for details. -
Don't choke on a byte-order mark at the beginning of a document when running in JavaScript.
Command-Line Interface
- The
--watch
command now continues to recompile a file after a syntax error has been detected.
Dart API
-
Added a
Syntax
enum to indicate syntaxes for Sass source files. -
The
compile()
andcompileAsync()
functions now parse files with the.css
extension as plain CSS. -
Added a
syntax
parameter tocompileString()
andcompileStringAsync()
. -
Deprecated the
indented
parameter tocompileString()
andcompileStringAsync()
. -
Added a
syntax
parameter tonew ImporterResult()
and aImporterResult.syntax
getter to set the syntax of the source file. -
Deprecated the
indented
parameter tonew ImporterResult()
and theImporterResult.indented
getter in favor ofsyntax
.
See the full changelog for changes in earlier releases.
Dart Sass 1.10.4
To install Dart Sass 1.10.4, 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 Homebrew installation failure.
See the full changelog for changes in earlier releases.
Dart Sass 1.10.3
To install Dart Sass 1.10.3, 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
- Run the Chocolatey script with the correct arguments so it doesn't crash.
See the full changelog for changes in earlier releases.
Dart Sass 1.10.2
To install Dart Sass 1.10.2, 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.10.1
To install Dart Sass 1.10.1, 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
- Don't crash when passing both
includePaths
andimporter
.
See the full changelog for changes in earlier releases.