Skip to content

Releases: sass/dart-sass

Dart Sass 1.3.0

26 Apr 01:32
Compare
Choose a tag to compare

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 a data: URL in the generated CSS.

Dart API

  • Add a sourceMap parameter to compile(), compileString(), compileAsync(), and compileStringAsync(). This takes a callback that's called with a SingleMapping that contains the source map information for the compiled CSS file.

Node API

  • Added support for the sourceMap, omitSourceMapUrl, outFile, sourceMapContents, sourceMapEmbed, and sourceMapRoot options to render() and renderSync().

  • Fix a bug where passing a relative path to render() or renderSync() would cause relative imports to break.

  • Fix a crash when printing warnings in stylesheets compiled using render() or renderSync().

  • 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

19 Apr 22:35
b23993e
Compare
Choose a tag to compare

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

14 Apr 23:26
6fd0f6d
Compare
Choose a tag to compare

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

27 Mar 21:33
Compare
Choose a tag to compare

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

27 Mar 21:02
Compare
Choose a tag to compare

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

26 Mar 20:03
Compare
Choose a tag to compare

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 and file options to be passed to render() and renderSync() at once. The data option will be used as the contents of the stylesheet, and the file 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

16 Mar 23:48
Compare
Choose a tag to compare
Dart Sass 1.0.0-rc.1 Pre-release
Pre-release
  • 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 generating not 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 than dart-sass. The dart-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 to compile(), compileAsync(), compileString(), and compileStringAsync().

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

06 Mar 00:48
Compare
Choose a tag to compare
Pre-release
  • 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

03 Mar 02:44
Compare
Choose a tag to compare
Pre-release
  • Fix a bug where some colors would crash compressed mode.

Dart Sass 1.0.0-beta.5.1

03 Feb 01:42
Compare
Choose a tag to compare
Pre-release
  • 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 to rgb(), rgba(), hsl() and hsla().

  • 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 to compile(), compleString(), compileAsync(), and compileStringAsync(). This allows users to define custom functions in Dart that can be invoked from Sass stylesheets.

  • Expose the Callable and AsyncCallable types, which represent functions that can be invoked from Sass.

  • Expose the Value type and its subclasses, as well as the top-level sassTrue, sassFalse, and sassNull values, which represent Sass values that may be passed into or returned from custom functions.

  • Expose the OutputStyle enum, and add a style parameter to compile(), compleString(), compileAsync(), and compileStringAsync() that allows users to control the output style.

Node JS API

  • Support the functions option.

  • Support the "compressed" value for the outputStyle option.