Skip to content

Dart Sass 1.36.0

Compare
Choose a tag to compare
@sassbot sassbot released this 23 Jul 21:24
· 581 commits to main since this release
87e93a1

To install Sass 1.36.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.

Changes

Dart API

  • Added compileToResult(), compileStringToResult(), compileToResultAsync(), and compileStringToResultAsync() methods. These are intended to replace the existing compile*() methods, which are now deprecated. Rather than returning a simple string, these return a CompileResult object, which will allow us to add additional information about the compilation without having to introduce further deprecations.

    • Instead of passing a sourceMaps callback to compile*(), pass sourceMaps: true to compile*ToResult() and access CompileResult.sourceMap.

    • The CompileResult object exposes a loadedUrls object which lists the canonical URLs accessed during a compilation. This information was previously unavailable except through the JS API.

See the full changelog for changes in earlier releases.