From c8f2a7b4ddeba7882882fe9a07ab1e6ffd10b317 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 13:26:38 +0000 Subject: [PATCH] Version Packages --- .changeset/fix-minify-html-esm-interop.md | 9 --- .changeset/v11-cleanup-major.md | 24 ------- bun.lock | 64 +++++++++---------- docs/CHANGELOG.md | 2 + docs/package.json | 2 +- examples/CHANGELOG.md | 23 +++++++ examples/package.json | 2 +- package.json | 14 ++-- packages/action/CHANGELOG.md | 13 ++++ packages/action/package.json | 2 +- packages/benchmark/CHANGELOG.md | 8 +++ packages/benchmark/package.json | 2 +- packages/clean-css/CHANGELOG.md | 6 ++ packages/clean-css/package.json | 2 +- packages/cli/CHANGELOG.md | 9 +++ packages/cli/package.json | 2 +- packages/core/CHANGELOG.md | 29 +++++++++ packages/core/package.json | 2 +- packages/cssnano/CHANGELOG.md | 6 ++ packages/cssnano/package.json | 2 +- packages/csso/CHANGELOG.md | 6 ++ packages/csso/package.json | 2 +- packages/esbuild/CHANGELOG.md | 6 ++ packages/esbuild/package.json | 2 +- packages/google-closure-compiler/CHANGELOG.md | 6 ++ packages/google-closure-compiler/package.json | 2 +- packages/html-minifier/CHANGELOG.md | 6 ++ packages/html-minifier/package.json | 2 +- packages/imagemin/CHANGELOG.md | 8 +++ packages/imagemin/package.json | 2 +- packages/jsonminify/CHANGELOG.md | 6 ++ packages/jsonminify/package.json | 2 +- packages/lightningcss/CHANGELOG.md | 6 ++ packages/lightningcss/package.json | 2 +- packages/minify-html/CHANGELOG.md | 12 ++++ packages/minify-html/package.json | 2 +- packages/no-compress/CHANGELOG.md | 6 ++ packages/no-compress/package.json | 2 +- packages/oxc/CHANGELOG.md | 6 ++ packages/oxc/package.json | 2 +- packages/sharp/CHANGELOG.md | 8 +++ packages/sharp/package.json | 2 +- packages/svgo/CHANGELOG.md | 6 ++ packages/svgo/package.json | 2 +- packages/swc/CHANGELOG.md | 6 ++ packages/swc/package.json | 2 +- packages/terser/CHANGELOG.md | 6 ++ packages/terser/package.json | 2 +- packages/types/CHANGELOG.md | 2 + packages/types/package.json | 2 +- packages/uglify-js/CHANGELOG.md | 6 ++ packages/uglify-js/package.json | 2 +- packages/utils/CHANGELOG.md | 2 + packages/utils/package.json | 2 +- 54 files changed, 264 insertions(+), 97 deletions(-) delete mode 100644 .changeset/fix-minify-html-esm-interop.md delete mode 100644 .changeset/v11-cleanup-major.md diff --git a/.changeset/fix-minify-html-esm-interop.md b/.changeset/fix-minify-html-esm-interop.md deleted file mode 100644 index 382e05120..000000000 --- a/.changeset/fix-minify-html-esm-interop.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@node-minify/minify-html": patch ---- - -Fix `minify-html` throwing `minifyHtmlLib.minify is not a function` at runtime. - -`@minify-html/node` is a CommonJS native addon, so under Node's ESM loader its exports are reachable only through the default export. The compressor called `minify` off the namespace object, which is always `undefined` there, making the package fail on every input when consumed from real Node. - -The bug was masked in CI: the error test mocked `@minify-html/node` with 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. diff --git a/.changeset/v11-cleanup-major.md b/.changeset/v11-cleanup-major.md deleted file mode 100644 index bb88d4786..000000000 --- a/.changeset/v11-cleanup-major.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -"@node-minify/core": major ---- - -v11: cleanup major release. - -### Breaking changes - -- **Minimum Node.js is now 22**: `engines.node` moved from `>=20.0.0` to `>=22.0.0` across 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` (use `CompressorResult`) and `MinifyOptions` (use `Settings`). -- **Google Closure Compiler now uses the `google-closure-compiler` npm API** instead of invoking the Java JAR through `@node-minify/run`. Same flags and output. Note: the npm package still bundles `google-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. Scans `package.json`, source imports, `compressor:` values and workflow YAML for removed/legacy compressors, the removed `@node-minify/run` package, the removed `CompressorReturnType`/`MinifyOptions` type aliases, and `engines.node` ranges 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 `buffer` limit (kills the child process when stdout/stderr exceeds it) plus hardened process/timeout/error handling. - -### Migration - -See the [v11 migration guide](https://github.com/srod/node-minify/blob/main/docs/src/content/docs/guides/v11-migration.md), or run `npx --package=@node-minify/cli -- node-minify doctor` in your project. diff --git a/bun.lock b/bun.lock index 28088ef65..df8aa92bd 100644 --- a/bun.lock +++ b/bun.lock @@ -5,25 +5,25 @@ "": { "name": "node-minify", "devDependencies": { - "@arethetypeswrong/cli": "^0.18.2", - "@biomejs/biome": "^2.4.6", + "@arethetypeswrong/cli": "^0.18.5", + "@biomejs/biome": "^2.5.11", "@changesets/cli": "2.31.1", "@total-typescript/tsconfig": "^1.0.4", - "@types/node": "^22.19.15", - "@vitest/coverage-v8": "^4.0.18", - "@vitest/ui": "^4.0.18", + "@types/node": "^22.20.1", + "@vitest/coverage-v8": "^4.1.11", + "@vitest/ui": "^4.1.11", "copyfiles": "2.4.1", "rimraf": "6.1.3", - "tsdown": "^0.22.0", + "tsdown": "^0.22.14", "typescript": "5.9.3", "unrun": "^0.3.1", "vite-tsconfig-paths": "^6.1.1", - "vitest": "^4.0.18", + "vitest": "^4.1.11", }, }, "docs": { "name": "@node-minify/docs", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@astrojs/cloudflare": "^13.1.10", "@astrojs/partytown": "2.1.7", @@ -42,7 +42,7 @@ }, "examples": { "name": "@node-minify/examples", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/clean-css": "workspace:*", "@node-minify/core": "workspace:*", @@ -65,7 +65,7 @@ }, "packages/action": { "name": "@node-minify/action", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@actions/core": "^1.11.1", "@actions/github": "^6.0.1", @@ -85,7 +85,7 @@ }, "packages/benchmark": { "name": "@node-minify/benchmark", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/core": "workspace:*", "@node-minify/utils": "workspace:*", @@ -100,7 +100,7 @@ }, "packages/clean-css": { "name": "@node-minify/clean-css", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "clean-css": "5.3.3", @@ -112,7 +112,7 @@ }, "packages/cli": { "name": "@node-minify/cli", - "version": "10.5.0", + "version": "11.0.0", "bin": { "node-minify": "dist/bin/cli.js", }, @@ -145,7 +145,7 @@ }, "packages/core": { "name": "@node-minify/core", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", }, @@ -155,7 +155,7 @@ }, "packages/cssnano": { "name": "@node-minify/cssnano", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "cssnano": "^7.1.3", @@ -167,7 +167,7 @@ }, "packages/csso": { "name": "@node-minify/csso", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "csso": "5.0.5", @@ -179,7 +179,7 @@ }, "packages/esbuild": { "name": "@node-minify/esbuild", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "esbuild": "^0.28.0", @@ -190,7 +190,7 @@ }, "packages/google-closure-compiler": { "name": "@node-minify/google-closure-compiler", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "google-closure-compiler": "20240317.0.0", @@ -201,7 +201,7 @@ }, "packages/html-minifier": { "name": "@node-minify/html-minifier", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "html-minifier-next": "^4.19.1", @@ -212,7 +212,7 @@ }, "packages/imagemin": { "name": "@node-minify/imagemin", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/core": "workspace:*", "@node-minify/utils": "workspace:*", @@ -232,7 +232,7 @@ }, "packages/jsonminify": { "name": "@node-minify/jsonminify", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "jsonminify": "0.4.2", @@ -244,7 +244,7 @@ }, "packages/lightningcss": { "name": "@node-minify/lightningcss", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "lightningcss": "^1.31.1", @@ -255,7 +255,7 @@ }, "packages/minify-html": { "name": "@node-minify/minify-html", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@minify-html/node": "^0.18.1", "@node-minify/utils": "workspace:*", @@ -266,7 +266,7 @@ }, "packages/no-compress": { "name": "@node-minify/no-compress", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", }, @@ -276,7 +276,7 @@ }, "packages/oxc": { "name": "@node-minify/oxc", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "oxc-minify": "^0.148.0", @@ -287,7 +287,7 @@ }, "packages/sharp": { "name": "@node-minify/sharp", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/core": "workspace:*", "@node-minify/utils": "workspace:*", @@ -299,7 +299,7 @@ }, "packages/svgo": { "name": "@node-minify/svgo", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "svgo": "^4.0.1", @@ -310,7 +310,7 @@ }, "packages/swc": { "name": "@node-minify/swc", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "@swc/core": "^1.15.18", @@ -321,7 +321,7 @@ }, "packages/terser": { "name": "@node-minify/terser", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "terser": "5.51.2", @@ -332,11 +332,11 @@ }, "packages/types": { "name": "@node-minify/types", - "version": "10.5.0", + "version": "11.0.0", }, "packages/uglify-js": { "name": "@node-minify/uglify-js", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "@node-minify/utils": "workspace:*", "uglify-js": "3.19.3", @@ -348,7 +348,7 @@ }, "packages/utils": { "name": "@node-minify/utils", - "version": "10.5.0", + "version": "11.0.0", "dependencies": { "fast-glob": "^3.3.3", "gzip-size": "7.0.0", diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 818ebdb0a..30760e47f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,7 @@ # @node-minify/docs +## 11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/docs/package.json b/docs/package.json index ebd4def8c..b24bb6fdb 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,7 +1,7 @@ { "name": "@node-minify/docs", "type": "module", - "version": "10.5.0", + "version": "11.0.0", "private": true, "scripts": { "dev": "astro dev", diff --git a/examples/CHANGELOG.md b/examples/CHANGELOG.md index f56ad23b9..705b31956 100644 --- a/examples/CHANGELOG.md +++ b/examples/CHANGELOG.md @@ -1,5 +1,28 @@ # @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 + ## 10.5.0 ### Patch Changes diff --git a/examples/package.json b/examples/package.json index 56b547615..b5f1c210b 100644 --- a/examples/package.json +++ b/examples/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/examples", - "version": "10.5.0", + "version": "11.0.0", "private": true, "type": "module", "scripts": { diff --git a/package.json b/package.json index e9d13ce84..112ad412b 100644 --- a/package.json +++ b/package.json @@ -10,20 +10,20 @@ "url": "https://github.com/srod/node-minify.git" }, "devDependencies": { - "@arethetypeswrong/cli": "^0.18.2", - "@biomejs/biome": "^2.4.6", + "@arethetypeswrong/cli": "^0.18.5", + "@biomejs/biome": "^2.5.11", "@changesets/cli": "2.31.1", "@total-typescript/tsconfig": "^1.0.4", - "@types/node": "^22.19.15", - "@vitest/coverage-v8": "^4.0.18", - "@vitest/ui": "^4.0.18", + "@types/node": "^22.20.1", + "@vitest/coverage-v8": "^4.1.11", + "@vitest/ui": "^4.1.11", "copyfiles": "2.4.1", "rimraf": "6.1.3", - "tsdown": "^0.22.0", + "tsdown": "^0.22.14", "typescript": "5.9.3", "unrun": "^0.3.1", "vite-tsconfig-paths": "^6.1.1", - "vitest": "^4.0.18" + "vitest": "^4.1.11" }, "description": "Monorepo for node-minify", "engines": { diff --git a/packages/action/CHANGELOG.md b/packages/action/CHANGELOG.md index 989391c62..05796d0a1 100644 --- a/packages/action/CHANGELOG.md +++ b/packages/action/CHANGELOG.md @@ -1,5 +1,18 @@ # @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 + ## 10.5.0 ### Minor Changes diff --git a/packages/action/package.json b/packages/action/package.json index f1ea3f622..1c98cb3bd 100644 --- a/packages/action/package.json +++ b/packages/action/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/action", - "version": "10.5.0", + "version": "11.0.0", "description": "GitHub Action for node-minify - minify JS, CSS, HTML with detailed reporting", "keywords": [ "github-action", diff --git a/packages/benchmark/CHANGELOG.md b/packages/benchmark/CHANGELOG.md index 8ab15e84d..e6304922d 100644 --- a/packages/benchmark/CHANGELOG.md +++ b/packages/benchmark/CHANGELOG.md @@ -1,5 +1,13 @@ # @node-minify/benchmark +## 11.0.0 + +### Patch Changes + +- Updated dependencies [1a1be73] + - @node-minify/core@11.0.0 + - @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/benchmark/package.json b/packages/benchmark/package.json index 69f71c637..f38861a7f 100644 --- a/packages/benchmark/package.json +++ b/packages/benchmark/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/benchmark", - "version": "10.5.0", + "version": "11.0.0", "description": "Benchmark tool for @node-minify compressors", "keywords": [ "compressor", diff --git a/packages/clean-css/CHANGELOG.md b/packages/clean-css/CHANGELOG.md index 832482668..2271c791b 100644 --- a/packages/clean-css/CHANGELOG.md +++ b/packages/clean-css/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/clean-css +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/clean-css/package.json b/packages/clean-css/package.json index f8dec16b3..b51af02fd 100644 --- a/packages/clean-css/package.json +++ b/packages/clean-css/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/clean-css", - "version": "10.5.0", + "version": "11.0.0", "description": "clean-css plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index aa655a734..20339d84f 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,14 @@ # @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 + ## 10.5.0 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index d9f490c3c..70fe352b4 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/cli", - "version": "10.5.0", + "version": "11.0.0", "description": "CLI - command line interface for @node-minify", "keywords": [ "compressor", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index fb5503648..18c7704b9 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,34 @@ # @node-minify/core +## 11.0.0 + +### Major Changes + +- 1a1be73: v11: cleanup major release. + + ### Breaking changes + + - **Minimum Node.js is now 22**: `engines.node` moved from `>=20.0.0` to `>=22.0.0` across 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` (use `CompressorResult`) and `MinifyOptions` (use `Settings`). + - **Google Closure Compiler now uses the `google-closure-compiler` npm API** instead of invoking the Java JAR through `@node-minify/run`. Same flags and output. Note: the npm package still bundles `google-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. Scans `package.json`, source imports, `compressor:` values and workflow YAML for removed/legacy compressors, the removed `@node-minify/run` package, the removed `CompressorReturnType`/`MinifyOptions` type aliases, and `engines.node` ranges 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 `buffer` limit (kills the child process when stdout/stderr exceeds it) plus hardened process/timeout/error handling. + + ### Migration + + See the [v11 migration guide](https://github.com/srod/node-minify/blob/main/docs/src/content/docs/guides/v11-migration.md), or run `npx --package=@node-minify/cli -- node-minify doctor` in your project. + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index ad2d7038b..64402f8dc 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/core", - "version": "10.5.0", + "version": "11.0.0", "description": "core of @node-minify", "keywords": [ "compressor", diff --git a/packages/cssnano/CHANGELOG.md b/packages/cssnano/CHANGELOG.md index fc74d041e..acc67ef25 100644 --- a/packages/cssnano/CHANGELOG.md +++ b/packages/cssnano/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/cssnano +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/cssnano/package.json b/packages/cssnano/package.json index 8cfac907c..13b3f0fa3 100644 --- a/packages/cssnano/package.json +++ b/packages/cssnano/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/cssnano", - "version": "10.5.0", + "version": "11.0.0", "description": "cssnano plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/csso/CHANGELOG.md b/packages/csso/CHANGELOG.md index f99fbf675..2ec337f2a 100644 --- a/packages/csso/CHANGELOG.md +++ b/packages/csso/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/csso +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/csso/package.json b/packages/csso/package.json index 0e48b9b00..4226652d8 100644 --- a/packages/csso/package.json +++ b/packages/csso/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/csso", - "version": "10.5.0", + "version": "11.0.0", "description": "csso plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/esbuild/CHANGELOG.md b/packages/esbuild/CHANGELOG.md index 2688cf82f..7232c149e 100644 --- a/packages/esbuild/CHANGELOG.md +++ b/packages/esbuild/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/esbuild +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/esbuild/package.json b/packages/esbuild/package.json index 78ae0b0eb..395a64d71 100644 --- a/packages/esbuild/package.json +++ b/packages/esbuild/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/esbuild", - "version": "10.5.0", + "version": "11.0.0", "description": "esbuild plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/google-closure-compiler/CHANGELOG.md b/packages/google-closure-compiler/CHANGELOG.md index 980cfe9b5..9cbfcafdb 100644 --- a/packages/google-closure-compiler/CHANGELOG.md +++ b/packages/google-closure-compiler/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/google-closure-compiler +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/google-closure-compiler/package.json b/packages/google-closure-compiler/package.json index 69e794f27..a1784a4e7 100644 --- a/packages/google-closure-compiler/package.json +++ b/packages/google-closure-compiler/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/google-closure-compiler", - "version": "10.5.0", + "version": "11.0.0", "description": "google closure compiler plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/html-minifier/CHANGELOG.md b/packages/html-minifier/CHANGELOG.md index 3d0ee6296..b6ffed73a 100644 --- a/packages/html-minifier/CHANGELOG.md +++ b/packages/html-minifier/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/html-minifier +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/html-minifier/package.json b/packages/html-minifier/package.json index b4e2d705b..5bd2c28a9 100644 --- a/packages/html-minifier/package.json +++ b/packages/html-minifier/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/html-minifier", - "version": "10.5.0", + "version": "11.0.0", "description": "html-minifier plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/imagemin/CHANGELOG.md b/packages/imagemin/CHANGELOG.md index 4390d8595..cab651e5d 100644 --- a/packages/imagemin/CHANGELOG.md +++ b/packages/imagemin/CHANGELOG.md @@ -1,5 +1,13 @@ # @node-minify/imagemin +## 11.0.0 + +### Patch Changes + +- Updated dependencies [1a1be73] + - @node-minify/core@11.0.0 + - @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/imagemin/package.json b/packages/imagemin/package.json index 6f5337538..c3d744d17 100644 --- a/packages/imagemin/package.json +++ b/packages/imagemin/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/imagemin", - "version": "10.5.0", + "version": "11.0.0", "description": "Imagemin plugin for @node-minify - Compress PNG, JPEG and GIF images", "keywords": [ "compressor", diff --git a/packages/jsonminify/CHANGELOG.md b/packages/jsonminify/CHANGELOG.md index 80f2c9a9f..1883ea976 100644 --- a/packages/jsonminify/CHANGELOG.md +++ b/packages/jsonminify/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/jsonminify +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/jsonminify/package.json b/packages/jsonminify/package.json index 89e3ebf52..e08a64f63 100644 --- a/packages/jsonminify/package.json +++ b/packages/jsonminify/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/jsonminify", - "version": "10.5.0", + "version": "11.0.0", "description": "jsonminify plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/lightningcss/CHANGELOG.md b/packages/lightningcss/CHANGELOG.md index 12684abc1..7b1f82ba5 100644 --- a/packages/lightningcss/CHANGELOG.md +++ b/packages/lightningcss/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/lightningcss +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/lightningcss/package.json b/packages/lightningcss/package.json index 82f3d03f8..948f58483 100644 --- a/packages/lightningcss/package.json +++ b/packages/lightningcss/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/lightningcss", - "version": "10.5.0", + "version": "11.0.0", "description": "lightningcss plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/minify-html/CHANGELOG.md b/packages/minify-html/CHANGELOG.md index 804ff0abc..834fb95e7 100644 --- a/packages/minify-html/CHANGELOG.md +++ b/packages/minify-html/CHANGELOG.md @@ -1,5 +1,17 @@ # @node-minify/minify-html +## 11.0.0 + +### Patch Changes + +- 0ec8a94: Fix `minify-html` throwing `minifyHtmlLib.minify is not a function` at runtime. + + `@minify-html/node` is a CommonJS native addon, so under Node's ESM loader its exports are reachable only through the default export. The compressor called `minify` off the namespace object, which is always `undefined` there, making the package fail on every input when consumed from real Node. + + The bug was masked in CI: the error test mocked `@minify-html/node` with 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 + ## 10.5.0 ### Patch Changes diff --git a/packages/minify-html/package.json b/packages/minify-html/package.json index 1bf209a22..8120f4c94 100644 --- a/packages/minify-html/package.json +++ b/packages/minify-html/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/minify-html", - "version": "10.5.0", + "version": "11.0.0", "description": "minify-html plugin for @node-minify (Rust-based HTML minifier)", "keywords": [ "compressor", diff --git a/packages/no-compress/CHANGELOG.md b/packages/no-compress/CHANGELOG.md index 61767686a..88a7bbcaf 100644 --- a/packages/no-compress/CHANGELOG.md +++ b/packages/no-compress/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/no-compress +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/no-compress/package.json b/packages/no-compress/package.json index 8547c4ad6..07993fa86 100644 --- a/packages/no-compress/package.json +++ b/packages/no-compress/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/no-compress", - "version": "10.5.0", + "version": "11.0.0", "description": "no compress plugin for @node-minify, only concatenate", "keywords": [ "concatenate" diff --git a/packages/oxc/CHANGELOG.md b/packages/oxc/CHANGELOG.md index 40ef9763c..23969a901 100644 --- a/packages/oxc/CHANGELOG.md +++ b/packages/oxc/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/oxc +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/oxc/package.json b/packages/oxc/package.json index b8c9061fe..e57d68549 100644 --- a/packages/oxc/package.json +++ b/packages/oxc/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/oxc", - "version": "10.5.0", + "version": "11.0.0", "description": "oxc plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/sharp/CHANGELOG.md b/packages/sharp/CHANGELOG.md index ac17df65b..a33bcea9e 100644 --- a/packages/sharp/CHANGELOG.md +++ b/packages/sharp/CHANGELOG.md @@ -1,5 +1,13 @@ # @node-minify/sharp +## 11.0.0 + +### Patch Changes + +- Updated dependencies [1a1be73] + - @node-minify/core@11.0.0 + - @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/sharp/package.json b/packages/sharp/package.json index 1d0437d06..3c41d9f57 100644 --- a/packages/sharp/package.json +++ b/packages/sharp/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/sharp", - "version": "10.5.0", + "version": "11.0.0", "description": "Sharp plugin for @node-minify - Convert images to WebP and AVIF", "keywords": [ "compressor", diff --git a/packages/svgo/CHANGELOG.md b/packages/svgo/CHANGELOG.md index 0b9c0e903..ee89fad77 100644 --- a/packages/svgo/CHANGELOG.md +++ b/packages/svgo/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/svgo +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/svgo/package.json b/packages/svgo/package.json index ec82a6673..f06c39476 100644 --- a/packages/svgo/package.json +++ b/packages/svgo/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/svgo", - "version": "10.5.0", + "version": "11.0.0", "description": "SVGO plugin for @node-minify - Optimize SVG files", "keywords": [ "compressor", diff --git a/packages/swc/CHANGELOG.md b/packages/swc/CHANGELOG.md index 89c220e47..f2d564b53 100644 --- a/packages/swc/CHANGELOG.md +++ b/packages/swc/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/swc +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/swc/package.json b/packages/swc/package.json index b3a6c25c9..8112f8e8c 100644 --- a/packages/swc/package.json +++ b/packages/swc/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/swc", - "version": "10.5.0", + "version": "11.0.0", "description": "swc plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/terser/CHANGELOG.md b/packages/terser/CHANGELOG.md index 5e996b9c7..373b74c31 100644 --- a/packages/terser/CHANGELOG.md +++ b/packages/terser/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/terser +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/terser/package.json b/packages/terser/package.json index 2c4eabfe8..1c81669e2 100644 --- a/packages/terser/package.json +++ b/packages/terser/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/terser", - "version": "10.5.0", + "version": "11.0.0", "description": "terser plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 2f5f2e6ae..7561897ea 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,7 @@ # @node-minify/types +## 11.0.0 + ## 10.5.0 ## 10.4.0 diff --git a/packages/types/package.json b/packages/types/package.json index 0e10d338e..576c516fb 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/types", - "version": "10.5.0", + "version": "11.0.0", "description": "types for @node-minify", "keywords": [ "compressor", diff --git a/packages/uglify-js/CHANGELOG.md b/packages/uglify-js/CHANGELOG.md index e581646f2..25c6fe262 100644 --- a/packages/uglify-js/CHANGELOG.md +++ b/packages/uglify-js/CHANGELOG.md @@ -1,5 +1,11 @@ # @node-minify/uglify-js +## 11.0.0 + +### Patch Changes + +- @node-minify/utils@11.0.0 + ## 10.5.0 ### Patch Changes diff --git a/packages/uglify-js/package.json b/packages/uglify-js/package.json index c1cf01720..f2c67c77d 100644 --- a/packages/uglify-js/package.json +++ b/packages/uglify-js/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/uglify-js", - "version": "10.5.0", + "version": "11.0.0", "description": "uglify-js plugin for @node-minify", "keywords": [ "compressor", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index cd53e4475..c25f1cc5b 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,7 @@ # @node-minify/utils +## 11.0.0 + ## 10.5.0 ### Minor Changes diff --git a/packages/utils/package.json b/packages/utils/package.json index 5b3fd1529..d8bba9c74 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@node-minify/utils", - "version": "10.5.0", + "version": "11.0.0", "description": "utils for @node-minify", "keywords": [ "compressor",