Packages

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…

Other targets from 1.30.0Newest 1.x, Latest1.108.2
  1. 1.30.0yours
  2. 1.32.0target
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

  1. 1.32.0

    Deprecation30 Dec 20203 new
    • Deprecated

      Deprecate passing non-% numbers as lightness and saturation to hsl(), hsla(), color.adjust(), and color.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 deg as the hue to hsl(), hsla(), adjust-hue(), color.adjust(), and color.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() to SassNumber.coerceValue(). The old name remains, but is now deprecated.

    • New

      Add SassNumber.coerceToMatch() and SassNumber.coerceValueToMatch(), which work like SassNumber.coerce() and SassNumber.coerceValue() but take a SassNumber whose units should be matched rather than taking the units explicitly. These generate better error messages than SassNumber.coerce() and SassNumber.coerceValue().

    • New

      Add SassNumber.convertToMatch() and SassNumber.convertValueToMatch(), which work like SassNumber.coerceToMatch() and SassNumber.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.

3 other lines we could not sort, mostly version bumps
  • Improve error messages about incompatible units.

    1.32.0
  • Properly mark some warnings emitted by sass:color functions as deprecation warnings.

    1.32.0
  • Rename SassNumber.coerceValueToUnit(), a shorthand for SassNumber.coerceValue() that takes a single numerator unit.

    1.32.0

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.