Skip to content

Dart Sass 1.59.0

Compare
Choose a tag to compare
@sassbot sassbot released this 10 Mar 22:34
· 342 commits to main since this release
8f8138d

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

Changes

Command Line Interface

  • Added a new --fatal-deprecation flag that lets you treat a deprecation warning as an error. You can pass an individual deprecation ID (e.g. slash-div) or you can pass a Dart Sass version to treat all deprecations initially emitted in that version or earlier as errors.

  • New --future-deprecation flag that lets you opt into warning for use of certain features that will be deprecated in the future. At the moment, the only option is --future-deprecation=import, which will emit warnings for Sass @import rules, which are not yet deprecated, but will be in the future.

Dart API

  • New Deprecation enum, which contains the different current and future deprecations used by the new CLI flags.

  • The compile methods now take in fatalDeprecations and futureDeprecations parameters, which work similarly to the CLI flags.

See the full changelog for changes in earlier releases.