diff --git a/.changeset/asset-generator-fixes.md b/.changeset/asset-generator-fixes.md deleted file mode 100644 index 7ed62f0d..00000000 --- a/.changeset/asset-generator-fixes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"minimizer-webpack-plugin": patch ---- - -Fix an `asset` generator corrupting binary, re-emitting unchanged files, and writing a file it errored on. diff --git a/.changeset/compress-generator.md b/.changeset/compress-generator.md deleted file mode 100644 index 0431054d..00000000 --- a/.changeset/compress-generator.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"minimizer-webpack-plugin": minor ---- - -let a minimizer or generator say which `processAssets` stage it runs in and what name its work goes under in an asset's info, through a `getStage` and a `getAssetFlag` on the function — the way it declares everything else — and ship `MinimizerPlugin.compress`, which takes the `algorithm` to run and the `compressionOptions` to run it with, works under `compressed` rather than `minimized` or `generated`, and goes to `minify` to compress an asset in place or to `generate` to write the compressed file beside it diff --git a/.changeset/generator-compression-options.md b/.changeset/generator-compression-options.md deleted file mode 100644 index d1baa2a0..00000000 --- a/.changeset/generator-compression-options.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"minimizer-webpack-plugin": minor ---- - -Add `threshold`, `minRatio` and `relatedName` to an `asset` generator, let `deleteOriginalAssets` be a function and take the original file alone, take a `filename` function, read `minify: []` as nothing to minify rather than `false`, and type what `minify` has long accepted. diff --git a/.changeset/minimizer-plugin-name.md b/.changeset/minimizer-plugin-name.md deleted file mode 100644 index 905aec8a..00000000 --- a/.changeset/minimizer-plugin-name.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"minimizer-webpack-plugin": minor ---- - -Rename the exported class to `MinimizerPlugin` and say so in diagnostics. diff --git a/.changeset/parallel-across-stages.md b/.changeset/parallel-across-stages.md deleted file mode 100644 index 7b392831..00000000 --- a/.changeset/parallel-across-stages.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"minimizer-webpack-plugin": patch ---- - -cover that a pass at a second stage adds no worker pool to the one before it. diff --git a/CHANGELOG.md b/CHANGELOG.md index c8cefb32..8f590eb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 5.11.0 + +### Minor Changes + +- let a minimizer or generator say which `processAssets` stage it runs in and what name its work goes under in an asset's info, through a `getStage` and a `getAssetFlag` on the function — the way it declares everything else — and ship `MinimizerPlugin.compress`, which takes the `algorithm` to run and the `compressionOptions` to run it with, works under `compressed` rather than `minimized` or `generated`, and goes to `minify` to compress an asset in place or to `generate` to write the compressed file beside it (by [@alexander-akait](https://github.com/alexander-akait) in [#737](https://github.com/webpack/minimizer-webpack-plugin/pull/737)) + +- Add `threshold`, `minRatio` and `relatedName` to an `asset` generator, let `deleteOriginalAssets` be a function and take the original file alone, take a `filename` function, read `minify: []` as nothing to minify rather than `false`, and type what `minify` has long accepted. (by [@alexander-akait](https://github.com/alexander-akait) in [#742](https://github.com/webpack/minimizer-webpack-plugin/pull/742)) + +- Rename the exported class to `MinimizerPlugin` and say so in diagnostics. (by [@alexander-akait](https://github.com/alexander-akait) in [#739](https://github.com/webpack/minimizer-webpack-plugin/pull/739)) + +### Patch Changes + +- Fix an `asset` generator corrupting binary, re-emitting unchanged files, and writing a file it errored on. (by [@alexander-akait](https://github.com/alexander-akait) in [#740](https://github.com/webpack/minimizer-webpack-plugin/pull/740)) + +- cover that a pass at a second stage adds no worker pool to the one before it. (by [@alexander-akait](https://github.com/alexander-akait) in [#741](https://github.com/webpack/minimizer-webpack-plugin/pull/741)) + ## 5.10.1 ### Patch Changes diff --git a/package.json b/package.json index 8236468b..4643bde6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minimizer-webpack-plugin", - "version": "5.10.1", + "version": "5.11.0", "description": "Minimizer plugin for webpack", "keywords": [ "avif",