Releases: sass/dart-sass
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-urls
option to control whether the source file URLs in the generated source map are relative or absolute. -
Add an
--embed-sources
option to embed the contents of all source files in the generated source map. -
Add an
--embed-source-map
option to embed the generated source map as adata:
URL in the generated CSS.
Dart API
- Add a
sourceMap
parameter tocompile()
,compileString()
,compileAsync()
, andcompileStringAsync()
. This takes a callback that's called with aSingleMapping
that contains the source map information for the compiled CSS file.
Node API
-
Added support for the
sourceMap
,omitSourceMapUrl
,outFile
,sourceMapContents
,sourceMapEmbed
, andsourceMapRoot
options 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
0
dimensions 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
sass
shell 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
Error
type. -
Allow both the
data
andfile
options to be passed torender()
andrenderSync()
at once. Thedata
option will be used as the contents of the stylesheet, and thefile
option 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.scss
or_index.sass
file when importing a directory. -
Add a
--load-path
command-line option (alias-I
) for passing additional paths to search for Sass files to import. -
Add a
--quiet
command-line option (alias-q
) for silencing warnings. -
Add an
--indented
command-line option for using the indented syntax with a stylesheet from standard input. -
Don't merge the media queries
not type
and(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
sass
rather thandart-sass
. Thedart-sass
executable will remain, with a deprecation message, until 1.0.0 is released.
Dart API
-
Add a
Logger
class that allows users to control how messages are printed by stylesheets. -
Add a
logger
parameter 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
and
in 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.
Dart Sass 1.0.0-beta.5.2
- Fix a bug where some colors would crash
compressed
mode.
Dart Sass 1.0.0-beta.5.1
-
Add a
compressed
output style. -
Emit a warning when
&&
is used, since it's probably not what the user means. -
round()
now returns the correct results for negative numbers that should round down. -
var()
may now be passed in place of multiple arguments torgb()
,rgba()
,hsl()
andhsla()
. -
Fix some cases where equivalent numbers wouldn't count as the same keys in maps.
-
Fix a bug where multiplication like
(1/1px) * (1px/1)
wouldn't properly cancel out units. -
Fix a bug where dividing by a compatible unit would produce an invalid result.
-
Remove a non-
sh
-compatible idiom from the standalone shell script.
Dart API
-
Add a
functions
parameter tocompile()
,compleString()
,compileAsync()
, andcompileStringAsync()
. This allows users to define custom functions in Dart that can be invoked from Sass stylesheets. -
Expose the
Callable
andAsyncCallable
types, which represent functions that can be invoked from Sass. -
Expose the
Value
type and its subclasses, as well as the top-levelsassTrue
,sassFalse
, andsassNull
values, which represent Sass values that may be passed into or returned from custom functions. -
Expose the
OutputStyle
enum, and add astyle
parameter tocompile()
,compleString()
,compileAsync()
, andcompileStringAsync()
that allows users to control the output style.
Node JS API
-
Support the
functions
option. -
Support the
"compressed"
value for theoutputStyle
option.