Releases: sass/dart-sass
Release list
Dart Sass 1.3.2
To install Dart Sass 1.3.2, 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
@elseifas an alias of@else if. This is not an intentional feature, so using it will cause a deprecation warning. It will be removed at some point in the future.
See the full changelog for changes in earlier releases.
Dart Sass 1.3.1
To install Dart Sass 1.3.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Node API
- Fix loading imports relative to stylesheets that were themselves imported though relative include paths.
See the full changelog for changes in earlier releases.
Dart Sass 1.3.0
To install Dart Sass 1.3.0, 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
-
Generate source map files by default when writing to disk. This can be disabled by passing
--no-source-map. -
Add a
--source-map-urlsoption to control whether the source file URLs in the generated source map are relative or absolute. -
Add an
--embed-sourcesoption to embed the contents of all source files in the generated source map. -
Add an
--embed-source-mapoption to embed the generated source map as adata:URL in the generated CSS.
Dart API
- Add a
sourceMapparameter tocompile(),compileString(),compileAsync(), andcompileStringAsync(). This takes a callback that's called with aSingleMappingthat contains the source map information for the compiled CSS file.
Node API
-
Added support for the
sourceMap,omitSourceMapUrl,outFile,sourceMapContents,sourceMapEmbed, andsourceMapRootoptions torender()andrenderSync(). -
Fix a bug where passing a relative path to
render()orrenderSync()would cause relative imports to break. -
Fix a crash when printing warnings in stylesheets compiled using
render()orrenderSync(). -
Fix a bug where format errors were reported badly on Windows.
See the full changelog for changes in earlier releases.
Dart Sass 1.2.1
To install Dart Sass 1.2.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Always emit units in compressed mode for
0dimensions other than lengths and angles.
See the full changelog for changes in earlier releases.
Dart Sass 1.2.0
To install Dart Sass 1.2.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
The command-line executable will now create the directory for the resulting CSS if that directory doesn't exist.
-
Properly parse
#{$var} -#{$var}as two separate values in a list rather than one value being subtracted from another. -
Improve the error message for extending compound selectors.
See the full changelog for changes in earlier releases.
Dart Sass 1.1.1
To install Dart Sass 1.1.1, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Add a commit that was accidentally left out of 1.1.0.
See the full changelog for changes in earlier releases.
Dart Sass 1.1.0
To install Dart Sass 1.1.0, download one of the packages above and add it to your PATH, or see the Sass website for full installation instructions.
Changes
-
The command-line executable can now be used to write an output file to disk using
sass input.scss output.css. -
Use a POSIX-shell-compatible means of finding the location of the
sassshell script.
See the full changelog for changes in earlier releases.
Dart Sass 1.0.0
Initial stable release.
Changes Since 1.0.0-rc.1
- Allow
!in custom property values (#260).
Dart API
- Remove the deprecated
render()function.
Node API
-
Errors are now subtypes of the
Errortype. -
Allow both the
dataandfileoptions to be passed torender()andrenderSync()at once. Thedataoption will be used as the contents of the stylesheet, and thefileoption will be used as the path for error reporting and relative imports. This matches Node Sass's behavior.
Dart Sass 1.0.0-rc.1
-
Add support for importing an
_index.scssor_index.sassfile when importing a directory. -
Add a
--load-pathcommand-line option (alias-I) for passing additional paths to search for Sass files to import. -
Add a
--quietcommand-line option (alias-q) for silencing warnings. -
Add an
--indentedcommand-line option for using the indented syntax with a stylesheet from standard input. -
Don't merge the media queries
not typeand(feature). We had previously been generatingnot type and (feature), but that's not actually the intersection of the two queries. -
Don't crash on
$x % 0. -
The standalone executable distributed on GitHub is now named
sassrather thandart-sass. Thedart-sassexecutable will remain, with a deprecation message, until 1.0.0 is released.
Dart API
-
Add a
Loggerclass that allows users to control how messages are printed by stylesheets. -
Add a
loggerparameter tocompile(),compileAsync(),compileString(), andcompileStringAsync().
Node JS API
- Import URLs passed to importers are no longer normalized. For example, if a stylesheet contains
@import "./foo.scss", importers will now receive"./foo.scss"rather than"foo.scss".
Dart Sass 1.0.0-beta.5.3
-
Improve the formatting of comments that don't start on the same line as the opening
/*. -
Preserve whitespace after
andin media queries in compressed mode.
Indented Syntax
-
Support hard tabs.
-
Properly parse multi-line selectors.
-
Don't deadlock on
/*comments. -
Don't add an extra
*/to comments that already have it. -
Preserve empty lines in
/*comments.