Skip to content

Releases: sass/dart-sass

Dart Sass 1.3.2

04 May 00:34
2d72f1c
Compare
Choose a tag to compare

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 @elseif as 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

03 May 00:20
b5fd140
Compare
Choose a tag to compare

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

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.