sass
1.108.2 · 11 Nov 2026MIT44.5M / weekRepositorynpmAtom feed
1.108.2 is the newest release of 1.x.
In short
3 deprecated3 new3 changed
- Deprecated
Deprecate passing non-
%numbers as lightness and saturation tohsl(),hsla(),color.adjust(), andcolor.change(). This matches the CSS specification, which also requires%for all lightness and saturation parameters. See [the Sass website][color-units] for more details. - Deprecated
Deprecate passing numbers with units other than
degas the hue tohsl(),hsla(),adjust-hue(),color.adjust(), andcolor.change(). Unitless numbers are still allowed here, since they're allowed by CSS. See [the Sass website][color-units] for more details. - Deprecated
Rename
SassNumber.valueInUnits()toSassNumber.coerceValue(). The old name remains, but is now deprecated.
Release note
To install Sass 1.32.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Deprecated
Deprecate passing non-
%numbers as lightness and saturation tohsl(),hsla(),color.adjust(), andcolor.change(). This matches the CSS specification, which also requires%for all lightness and saturation parameters. See [the Sass website][color-units] for more details. - Deprecated
Deprecate passing numbers with units other than
degas the hue tohsl(),hsla(),adjust-hue(),color.adjust(), andcolor.change(). Unitless numbers are still allowed here, since they're allowed by CSS. See [the Sass website][color-units] for more details. Improve error messages about incompatible units.
Properly mark some warnings emitted by
sass:colorfunctions as deprecation warnings.
Dart API
- Deprecated
Rename
SassNumber.valueInUnits()toSassNumber.coerceValue(). The old name remains, but is now deprecated. Rename
SassNumber.coerceValueToUnit(), a shorthand forSassNumber.coerceValue()that takes a single numerator unit.Add
SassNumber.coerceToMatch()andSassNumber.coerceValueToMatch(), which work likeSassNumber.coerce()andSassNumber.coerceValue()but take aSassNumberwhose units should be matched rather than taking the units explicitly. These generate better error messages thanSassNumber.coerce()andSassNumber.coerceValue().Add
SassNumber.convertToMatch()andSassNumber.convertValueToMatch(), which work likeSassNumber.coerceToMatch()andSassNumber.coerceValueToMatch()except they throw exceptions when converting unitless values to or from units.Add
SassNumber.compatibleWithUnit(), which returns whether the number can be coerced to a single numerator unit.
See the full changelog for changes in earlier releases.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.