Sass 1.107.0

1.107.0

Dart Sass 1.107.0

Added 6
  • The --fatal-deprecation flag can exclude deprecations that would otherwise be included by passing a version number prefixed with '-' (for example, --fatal-deprecation=1.107.0,-import)
  • The --fatal-deprecation flag accepts the special value dart-sass-2, which treats as fatal all deprecations that will become fatal in Dart Sass 2.0.0
  • Options.fatalDeprecations accepts a DeprecationSelectorDifference object of the form {include: ..., except: ...}, where except takes precedence over include
  • A non-enumerable sass.deprecations.dartSass2 property can be passed to Options.fatalDeprecations to mark as fatal exactly the deprecations that will become fatal in Dart Sass 2.0.0
  • A Deprecation.dartSass2 property returns exactly the set of deprecations that will become fatal in Dart Sass 2.0.0
  • The embedded protocol adds a CompileRequest.fatal_deprecation_except field which excludes deprecations from being considered fatal if they would have been enabled by CompileRequest.fatal_deprecation
Deprecated 2

2 changes to check, marked in the notes below

From Sass

To install Sass 1.107.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
  • The --fatal-deprecation flag can now exclude deprecations that would otherwise be included by passing a version number. To exclude a deprecation, add - before its name. For example, --fatal-deprecation=1.107.0,-import includes all deprecations that were present in Dart Sass 1.107.0 except for the @import deprecation.

  • The --fatal-deprecation flag now takes the special value dart-sass-2, which treats as fatal all deprecations that will become fatal in Dart Sass 2.0.0.

JavaScript API
  • Options.fatalDeprecations can now take a DeprecationSelectorDifference object of the form {include: ..., except: ...}, where the include field lists deprecations to mark fatal (which can be version numbers) and the except field lists deprecations not to mark fatal. The except field takes precedence over include.

  • Add a (non-enumerable) sass.deprecations.dartSass2 property which can be passed to Options.fatalDeprecations to mark as fatal exactly the deprecations that will become fatal in Dart Sass 2.0.0. This can be combined with other deprecations or used in a DeprecationSelectorDifference to modify exactly which deprecations it covers.

  • Passing a version number beyond the current Dart Sass version to Options.fatalDeprecations is now deprecated. See the Sass website for details. deprecated · inferred

Dart API
  • Add a Deprecation.dartSass2 property which returns exactly the set of deprecations that will become fatal in Dart Sass 2.0.0.

  • Passing a version number beyond the current Dart Sass version to Deprecation.forVersion is now deprecated. deprecated · inferred

Embedded Protocol
  • Add a CompileRequest.fatal_deprecation_except field which excludes deprecations from being considered fatal if they would have been enabled by CompileRequest.fatal_deprecation.

See the full changelog for changes in earlier releases.

View original

Upgraded? How did it go?

Discussion