Version Packages
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@node-minify/core@11.0.0
Major Changes
-
1a1be73: v11: cleanup major release.
Breaking changes
- Minimum Node.js is now 22:
engines.nodemoved from>=20.0.0to>=22.0.0across all packages. Node 20 reached end-of-life on 2026-04-30 and is no longer covered by CI (the test matrix runs 22.x and 24.x). Upgrade to Node 22 or later. - Removed 5 deprecated compressor packages:
@node-minify/babel-minify,@node-minify/uglify-es,@node-minify/yui,@node-minify/sqwish,@node-minify/crass. Use the recommended replacements (terser/oxc/swc/esbuild for JS, lightningcss/cssnano for CSS). - Removed
@node-minify/run: internal Java/process-spawn helper, no longer used by any compressor. - Removed deprecated type aliases from
@node-minify/types:CompressorReturnType(useCompressorResult) andMinifyOptions(useSettings). - Google Closure Compiler now uses the
google-closure-compilernpm API instead of invoking the Java JAR through@node-minify/run. Same flags and output. Note: the npm package still bundlesgoogle-closure-compiler-java, so Java may still be invoked under the hood — this change removes node-minify's custom Java plumbing, not Java itself.
New features
- Compressor support tiers: shared status registry in
@node-minify/utils(recommended/supported/legacy/removed), surfaced in CLI help and the GitHub Action. node-minify doctor: read-only CLI command covering every v11 break. Scanspackage.json, source imports,compressor:values and workflow YAML for removed/legacy compressors, the removed@node-minify/runpackage, the removedCompressorReturnType/MinifyOptionstype aliases, andengines.noderanges that still allow Node below 22. Exits non-zero on errors so it can gate CI.- CLI and Action fail early when a removed compressor is requested, pointing at the replacement.
- GCC runtime controls: configurable
bufferlimit (kills the child process when stdout/stderr exceeds it) plus hardened process/timeout/error handling.
Migration
See the v11 migration guide, or run
npx --package=@node-minify/cli -- node-minify doctorin your project. - Minimum Node.js is now 22:
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/benchmark@11.0.0
Patch Changes
- Updated dependencies [1a1be73]
- @node-minify/core@11.0.0
- @node-minify/utils@11.0.0
@node-minify/clean-css@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/cli@11.0.0
Patch Changes
- Updated dependencies [1a1be73]
- @node-minify/core@11.0.0
- @node-minify/benchmark@11.0.0
- @node-minify/utils@11.0.0
@node-minify/cssnano@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/csso@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/esbuild@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/google-closure-compiler@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/html-minifier@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/imagemin@11.0.0
Patch Changes
- Updated dependencies [1a1be73]
- @node-minify/core@11.0.0
- @node-minify/utils@11.0.0
@node-minify/jsonminify@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/lightningcss@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/minify-html@11.0.0
Patch Changes
-
0ec8a94: Fix
minify-htmlthrowingminifyHtmlLib.minify is not a functionat runtime.@minify-html/nodeis a CommonJS native addon, so under Node's ESM loader its exports are reachable only through the default export. The compressor calledminifyoff the namespace object, which is alwaysundefinedthere, making the package fail on every input when consumed from real Node.The bug was masked in CI: the error test mocked
@minify-html/nodewith a flat{ minify }shape that does not match the real module, and Vitest's CommonJS interop resolved the namespace differently than Node does. The mock now mirrors the real default-export shape, and a regression test asserts the interop directly.- @node-minify/utils@11.0.0
@node-minify/no-compress@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/oxc@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/sharp@11.0.0
Patch Changes
- Updated dependencies [1a1be73]
- @node-minify/core@11.0.0
- @node-minify/utils@11.0.0
@node-minify/svgo@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/swc@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/terser@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/uglify-js@11.0.0
Patch Changes
- @node-minify/utils@11.0.0
@node-minify/types@11.0.0
@node-minify/utils@11.0.0
@node-minify/examples@11.0.0
Patch Changes
- Updated dependencies [1a1be73]
- @node-minify/core@11.0.0
- @node-minify/imagemin@11.0.0
- @node-minify/sharp@11.0.0
- @node-minify/clean-css@11.0.0
- @node-minify/cssnano@11.0.0
- @node-minify/csso@11.0.0
- @node-minify/esbuild@11.0.0
- @node-minify/google-closure-compiler@11.0.0
- @node-minify/html-minifier@11.0.0
- @node-minify/jsonminify@11.0.0
- @node-minify/lightningcss@11.0.0
- @node-minify/no-compress@11.0.0
- @node-minify/oxc@11.0.0
- @node-minify/svgo@11.0.0
- @node-minify/swc@11.0.0
- @node-minify/terser@11.0.0
- @node-minify/uglify-js@11.0.0
@node-minify/action@11.0.0
Patch Changes
- Updated dependencies [1a1be73]
- @node-minify/core@11.0.0
- @node-minify/benchmark@11.0.0
- @node-minify/esbuild@11.0.0
- @node-minify/oxc@11.0.0
- @node-minify/swc@11.0.0
- @node-minify/terser@11.0.0
- @node-minify/utils@11.0.0