sass
1.108.2 · 11 Nov 2026MIT44.5M / weekRepositorynpmAtom feed
Upgrading sass From 1.30.0 to 1.32.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 3
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Deprecated1.32.0
- Deprecated1.32.0
- Deprecated1.32.0
Release by release
- 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. - New
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(). - New
Add
SassNumber.convertToMatch()andSassNumber.convertValueToMatch(), which work likeSassNumber.coerceToMatch()andSassNumber.coerceValueToMatch()except they throw exceptions when converting unitless values to or from units. - New
Add
SassNumber.compatibleWithUnit(), which returns whether the number can be coerced to a single numerator unit.
- Deprecated
3 other lines we could not sort, mostly version bumps
- 1.32.0
Improve error messages about incompatible units.
- 1.32.0
Properly mark some warnings emitted by
sass:colorfunctions as deprecation warnings. - 1.32.0
Rename
SassNumber.coerceValueToUnit(), a shorthand forSassNumber.coerceValue()that takes a single numerator unit.
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.