Dart Sass 1.107.0
- 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
- Passing a version number beyond the current Dart Sass version to Options.fatalDeprecations is deprecated inferred, marked in the notes below
- Passing a version number beyond the current Dart Sass version to Deprecation.forVersion is deprecated inferred, marked in the notes below
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-deprecationflag 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,-importincludes all deprecations that were present in Dart Sass 1.107.0 except for the@importdeprecation. -
The
--fatal-deprecationflag now takes the special valuedart-sass-2, which treats as fatal all deprecations that will become fatal in Dart Sass 2.0.0.
JavaScript API
-
Options.fatalDeprecationscan now take aDeprecationSelectorDifferenceobject of the form{include: ..., except: ...}, where theincludefield lists deprecations to mark fatal (which can be version numbers) and theexceptfield lists deprecations not to mark fatal. Theexceptfield takes precedence overinclude. -
Add a (non-enumerable)
sass.deprecations.dartSass2property which can be passed toOptions.fatalDeprecationsto 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 aDeprecationSelectorDifferenceto modify exactly which deprecations it covers. -
Passing a version number beyond the current Dart Sass version to
Options.fatalDeprecationsis now deprecated. See the Sass website for details. deprecated · inferred
Dart API
-
Add a
Deprecation.dartSass2property 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.forVersionis now deprecated. deprecated · inferred
Embedded Protocol
- Add a
CompileRequest.fatal_deprecation_exceptfield which excludes deprecations from being considered fatal if they would have been enabled byCompileRequest.fatal_deprecation.
See the full changelog for changes in earlier releases.