sass
1.108.2 · 11 Nov 2026MIT44.8M / weekRepositorynpmAtom feed
Upgrading sass From 1.32.13 to 1.33.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 2
- new
- 2
- fixes
Before you upgrade
Tick each one off as you go- Deprecated1.33.0
Release by release
- Deprecated
Deprecate the use of
/for division. The newmath.div()function should be used instead. See [this page] for details. - New
Add a
list.slash()function that returns a slash-separated list. - New
Add an
Importer.fromImportgetter, which istrueif the currentImporter.canonicalize()call comes from an@importrule andfalseotherwise. Importers should only use this to determine whether to load [import-only files]. - Fixed
Fix a bug where non-integer numbers that were very close to integer values would be incorrectly formatted in CSS.
- Fixed
Fix a bug where very small number and very large negative numbers would be incorrectly formatted in CSS.
- Deprecated
3 other lines we could not sort, mostly version bumps
- 1.33.0
Potentially breaking bug fix: The heuristics around when potentially slash-separated numbers are converted to slash-free numbers—for example, when
1/2will be printed as0.5rather than1/2—have been slightly expanded. Previously, a number would be made slash-free if it was passed as an argument to a user-defined function, but not to a built-in function. Now it will be made slash-free in both cases. This is a behavioral change, but it's unlikely to affect any real-world stylesheets. - 1.33.0
[
:is()] now behaves identically to:matches(). - 1.33.0
The
thiscontext for importers now has afromImportfield, which istrueif the importer is being invoked from an@importandfalseotherwise. Importers should only use this to determine whether to load [import-only files].
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.