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
Latest stable
9.0.0
Last release 1 months ago
10 Oct 2026
Ships unpredictably
gaps range from 8 days to 13 months
Nearly every release is documented
notes for 30 of 31 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
53 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
feat!: remove the unused sameParent export, and sameContainer, numericSource and mathFunctionArgumentRanges from cssnano-utils. mathFunctions is now a
sameParent export, and sameContainer, numericSource and mathFunctionArgumentRanges from cssnano-utils. mathFunctions is now a Map from each math function name to the inclusive range of its argument count.isHexDigitCode to test for ASCII hex digit code points### Patch Changes - fix: update postcss to 8.5.29
feat(cssnano-utils): add sameContainer export
Your coding agent can read these notes before it upgrades. Set up the MCP server →
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
postcss-merge-longhand don't explode declarations with custom properties.
postcss-merge-longhand don't explode declarations with custom properties.postcss-colormin now better transform to hsl.browserslist version incompatibility with caniuse-api
browserslist version incompatibility with caniuse-apiWe dropped support for Node 4, now requiring at least Node 6.9.
border-spacing property.U to lowercase for IE <= 11 and Edge <= 15.a { border-style:dotted; border-style:var(--variable) }) correctly.border property with invalid border width value correctly.:-ms-input-placeholder and ::-ms-input-placeholder selectors correctly.all property correctly.url function.data and *-extension:// URLs correctly.all for IE.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
This release swaps postcss-single-charset for postcss-normalize-charset, which can detect encoding to determine whether a charset is necessary. Option
add option to true to prepend a UTF-8
charset to the output automatically (thanks to @TrySound).safe option was added, which disables more aggressive optimisations, as
a convenient preset configuration (thanks to @TrySound).deg to turn & vice versa, & improved
minification performance in functions (thanks to @TrySound).Fixes an issue where cssnano was removing spaces around forward slashes in calc functions.
Replaced css-list & balanced-match with postcss-value-parser, reducing the module's overall size (thanks to @TrySound).
The old options such as merge & fonts that were deprecated in release 2.5.0 were removed. The new architecture allows you to specify any module name t…
process method has the same signature as a PostCSS processor instance.merge & fonts that were deprecated in
release 2.5.0 were removed. The new architecture allows you to specify any
module name to disable it.inherit keyword.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.
Add postcss-plugin keyword to package.json.
postcss-plugin keyword to package.json.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.1Adds removal of outdated vendor prefixes based on browser support.
cssnano.process(css, opts) instead of cssnano(css, opts).Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Add repository/author links to package.json.
Nothing published for this version
One column per quarter.