NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2309 most downloaded on npm
Utility methods and plugin for cssnano projects
Last release today
03 Oct 2026
Ships unpredictably
gaps range from 8 days to 13 months
Most releases are documented
notes for 25 of 28 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
50 releases · first in 2020
One column per quarter.
Export isAnonymousLayer, which distinguishes an anonymous @layer block from a named one, and isImportantComment, which recognizes a /*! comment.
isAnonymousLayer, which distinguishes an anonymous @layer block from a named one, and isImportantComment, which recognizes a /*! comment.Add endsWithEscapingBackslash(), which distinguishes a string that ends in a backslash that starts a CSS escape from an escaped backslash.
endsWithEscapingBackslash(), which distinguishes a string that ends in a backslash that starts a CSS escape from an escaped backslash.Preserves Unicode range tokens (unicode-range) in font descriptors and custom properties, preventing code point ranges from being corrupted into inval
unicode-range) in font descriptors and custom properties, preventing code point ranges from being corrupted into invalid numbers or dimensions.Remove the getArguments and replace utilities from cssnano-utils. Consumers using either API must migrate to an alternative or retain a compatible loc
getArguments and replace utilities from cssnano-utils. Consumers using either API must migrate to an alternative or retain a compatible local implementation.Adds the balanced token index used by selector, parameter, and gradient minification while preserving their serialized CSS output.
Value transforms now read the CSS Values 4 math function names from one mathFunctions table in cssnano-utils, so unit retention, box and shorthand merging, parameter and whitespace handling, and time classification agree on which functions count as math functions. Serialized output is unchanged.
Rejects source edits that insert text inside a replacement, preventing nested edits from duplicating untouched source text.
perf: median 15% speed increase on test fixtures
Remove insignificant whitespace around custom-property names and, in standard declarations, around env() custom-ident arguments and around comma delimiters in var(), env(), and constant(). Between a custom-property name and its value, only the parser-consumed leading whitespace run is dropped; authored whitespace elsewhere in the value, such as after a preserved comment, is preserved per CSS Variables 1. Required whitespace between distinct tokens and the single whitespace token in an empty fallback remain preserved, and a preserved comment kept between a declaration name and value now survives minification, for custom properties and standard declarations alike. Comment removal in selectors and values no longer fuses the tokens the comment sat between: an attribute case-insensitivity flag or any other name-like token keeps its boundary, and math-operator spacing is restored for every function whose value productions accept <calc-sum> arguments (including calc-size(), calc-mix(), and random()). Values without comments are now left byte-for-byte untouched rather than re-spaced.
Use ASCII case-insensitive matching for CSS names and grammar keywords so Unicode lookalikes are preserved, and restrict CSS whitespace normalization to the CSS whitespace set.
fix: updae browserslist, mdn-data, autoprefixer
fix: update postcss and selector parser
fix: update postcss and selector parser
fix: update PostCSS peer dependency
fix: ensure older tools can resolve cssnano packages
The cssnano packages are now native ESM and require Node ^22.22.3 || ^24.15.0 || >=26.0. Package subpath imports are no longer supported. See the migr
^22.22.3 || ^24.15.0 || >=26.0. Package subpath imports are no longer supported. See the migration documentation before upgrading.fix: ensure packages reach registry with correct repository field
### Patch Changes - fix: update dependencies
chore: regenerate all type definitions with TypeScript 7
chore: regenerate all type definitions with TypeScript 7
fix: update svgo, autoprefixer and postcss
fix: update PostCSS
chore: define package.json exports
chore: update dependencies
Update autoprefixer, browserslist, colordx and postcss
chore: update the postcss peer dependency
ea8e33a: chore: drop Node.js 20 support
ea8e33a: chore: drop Node.js 20 support
Node.js 20 has reached end of life.
### Patch Changes - 7e56dba: fix: update postcss
322ad33: fix: update postcss peer dependency
5672148: fix: update PostCSS peer dependency to version without vulnerabilities
0d10597: chore: drop support for Node.js 14 and 16
Nothing published for this version
enable “go to definition” via declaration maps
18331a6: fix: update cssnano peer dependency to 8.4.31 to avoid security issue
ca9d3f55: Switch minimum supported Node version to 14 for all packages
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
feature: add TypeScript type declarations
Publish untranspiled CommonJS source
docs: add missing license files
refactor: remove getMatch function from cssnano-utils
refactor: remove getMatch function from cssnano-utils
The getMatch function allows nested arrays to emulate a map. It is better to replace this function with a regular Map(). It's unlikely this function is used outside of cssnano as it requires a very specific nested array struture.
cssnano-utils: get rid of deprecation warning
Note: Version bump only for package cssnano-utils
Note: Version bump only for package cssnano-utils
Note: Version bump only for package cssnano-utils
postcss version is 8.2.1Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →