1 | # Changelog
|
2 |
|
3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4 |
|
5 | ## [3.7.0](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.6.1...v3.7.0) (2022-10-26)
|
6 |
|
7 |
|
8 | ### Features
|
9 |
|
10 | * added `info.sourceFilename` ([f8b3378](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/f8b337833759835f3f67277c8bfab85986416de9))
|
11 |
|
12 | ### [3.6.1](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.6.0...v3.6.1) (2022-09-19)
|
13 |
|
14 |
|
15 | ### Bug Fixes
|
16 |
|
17 | * fix resize option enabled flag (`squoosh`) ([#356](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/356)) ([b2a5015](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/b2a50151b9dcd9f79307695e52a2b12db72a0a7e))
|
18 | * support for animated images (`sharp`) ([#358](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/358)) ([3c30355](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/3c3035536303f95cc74ebaed5247731789422965))
|
19 | * throw an error on unsupported image formats (`sharp`) ([#359](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/359)) ([c0b193b](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/c0b193b38d4e488ca0651f2bea13065700cb3bf1))
|
20 |
|
21 | ## [3.6.0](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.5.0...v3.6.0) (2022-09-16)
|
22 |
|
23 |
|
24 | ### Features
|
25 |
|
26 | * supported more resize options (only `sharp`) ([#355](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/355)) ([d365db3](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/d365db3db18476435cf8952aaa23801dd7e466ee))
|
27 |
|
28 | ## [3.5.0](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.4.0...v3.5.0) (2022-09-15)
|
29 |
|
30 |
|
31 | ### Features
|
32 |
|
33 | * add `width`/`w` and `height`/`h` query parameters to resize image ([52ee1c8](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/52ee1c84cf935e2ebbf4bfe38567a0cb73bd6c13))
|
34 |
|
35 |
|
36 | ### Bug Fixes
|
37 |
|
38 | * `implementation` types ([#353](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/353)) ([a57fcdf](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/a57fcdfc7121f1ceda178dd7987623433745b21e))
|
39 |
|
40 | ## [3.4.0](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.3.1...v3.4.0) (2022-09-09)
|
41 |
|
42 |
|
43 | ### Features
|
44 |
|
45 | * add `[width]` and `[height]` placeholders for the `filename` option ([#346](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/346)) ([682c22b](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/682c22b81f2f1af96e83f0e0805fd5406a209324))
|
46 |
|
47 |
|
48 | ### Bug Fixes
|
49 |
|
50 | * types ([cd7c7a7](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/cd7c7a7c7f12eb883399cf01ad7c9102e90b845b))
|
51 |
|
52 | ### [3.3.1](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.3.0...v3.3.1) (2022-09-05)
|
53 |
|
54 |
|
55 | ### Bug Fixes
|
56 |
|
57 | * assets info for sharp ([#338](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/338)) ([c897d30](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/c897d30bed8532fec1312be62483281589402b0b))
|
58 | * avoid renaming unsupported formats ([#339](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/339)) ([18e30ef](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/18e30ef3da70b39384f389e6729d56fb5b24af59))
|
59 | * sharp types ([#337](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/337)) ([ae3a03b](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/ae3a03b926a6bce29dee2829490a99d16394a501))
|
60 |
|
61 | ## [3.3.0](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.2.3...v3.3.0) (2022-08-12)
|
62 |
|
63 |
|
64 | ### Features
|
65 |
|
66 | * add `sharp` minifier/generator implementation ([#329](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/329)) ([5c440f6](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/5c440f6e8257fe0a4ebabcbe22a09063902a6c5e))
|
67 |
|
68 | ### [3.2.3](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.2.2...v3.2.3) (2022-01-13)
|
69 |
|
70 |
|
71 | ### Bug Fixes
|
72 |
|
73 | * types ([#297](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/297)) ([c61642f](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/c61642f85b9dc17d45d79a42760c48fe41ffcd27))
|
74 |
|
75 | ### [3.2.2](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.2.1...v3.2.2) (2022-01-07)
|
76 |
|
77 |
|
78 | ### Bug Fixes
|
79 |
|
80 | * perf for `squoosh` ([#295](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/295)) ([2f4d1a2](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/2f4d1a291e30b737ebff118804f7fee93c90fcd1))
|
81 |
|
82 | ### [3.2.1](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.2.0...v3.2.1) (2022-01-03)
|
83 |
|
84 |
|
85 | ### Bug Fixes
|
86 |
|
87 | * memory leaking ([#293](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/293)) ([043e571](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/043e57114d701cf9dfe87b9dda3b185b99cbd399))
|
88 | * respect encoding of data uri ([#294](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/294)) ([a89b316](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/a89b3164a41f403a2a48d18cb7f9b92353dd18b7))
|
89 |
|
90 | ## [3.2.0](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.1.2...v3.2.0) (2021-12-25)
|
91 |
|
92 |
|
93 | ### Features
|
94 |
|
95 | * allow generating images from copied assets using the `type` option for the `generator` option ([fab9103](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/fab910337ef3c119f991f0d71c682d5ab3a65b5c))
|
96 |
|
97 | ### [3.1.2](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.1.1...v3.1.2) (2021-12-17)
|
98 |
|
99 |
|
100 | ### Bug Fixes
|
101 |
|
102 | * improve perf ([#285](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/285)) ([435879d](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/435879dd74528850e0ade0ec24c9db968cbc7344))
|
103 |
|
104 | ### [3.1.1](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.1.0...v3.1.1) (2021-12-17)
|
105 |
|
106 |
|
107 | ### Bug Fixes
|
108 |
|
109 | * ignore unsupported data URI by mime type ([#284](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/284)) ([d1b68c2](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/d1b68c204ab604b37effc6614e939e2e36662095))
|
110 |
|
111 | ## [3.1.0](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.0.1...v3.1.0) (2021-12-16)
|
112 |
|
113 |
|
114 | ### Features
|
115 |
|
116 | * removed cjs wrapper and generated types in commonjs format (`export =` and `namespaces` used in types), now you can directly use exported types ([#282](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/282)) ([f0fa0a7](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/f0fa0a7fb2531d9e78e37778dae5c0b267724c1b))
|
117 |
|
118 | ### [3.0.1](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v3.0.0...v3.0.1) (2021-12-07)
|
119 |
|
120 |
|
121 | ### Bug Fixes
|
122 |
|
123 | * reduced memory consumption for `squoosh` ([#279](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/279)) ([0d597b7](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/0d597b751ca5eda293929ce8d71349572fbf0fb8))
|
124 | * types ([028fad3](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/028fad3403c890d691ebd636c7f55f6bf801a3b7))
|
125 |
|
126 | ## [3.0.0](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v2.2.0...v3.0.0) (2021-12-05)
|
127 |
|
128 | There are a lot of breaking changes, the plugin has been completely rewritten, see the documentation for information and examples.
|
129 |
|
130 | ### ⚠ BREAKING CHANGES
|
131 |
|
132 | * minimum supported Node.js version is `12.13.0`, `imagemin` uses dynamic `import()` to load plugins, so your Node.js version should support it
|
133 | * by default, we don't install `imagemin`, so you need to run `npm i -D imagemin` to install `imagemin`
|
134 | * union `minify` and `minizerOptions` in one option - `minimizer`, you can use `minimizer.implementation` and `minimizer.options` to specify minimizer and options
|
135 | * image generation was rewritten, please use the `generator` option to configure image generation and use `new URL("./image.png?as=webp")`/`div { backgaround: url("./image.png?as=webp"); }`/etc in code to enable it (`import` and `require` are supported too)
|
136 | * `filter` and `filename` option was moved in the `minimizer`/`generator` option
|
137 | * `imageminNormalizeConfig` is now async function
|
138 | * default value of the `severityError` option is `"error"`, removed values: `true`, `false` and `auto`
|
139 | * don't add `.` (dot) before `[ext]` in the `filename` option
|
140 |
|
141 | ### Features
|
142 |
|
143 | * added `squoosh` support
|
144 | * added the `minimizer` option for image optimization
|
145 | * added the `generator` option for image generation
|
146 | * added ability to use multiple `minimizer` option feature
|
147 | * allow the `filename` option will be `Function`
|
148 | * improve error reporting
|
149 | * improve types
|
150 | * output helpful descriptions and links on errors
|
151 | * improve stats output
|
152 |
|
153 | ### Bug Fixes
|
154 |
|
155 | * support esm `imagemin` plugin
|
156 | * supports absolute URLs, i.e. `data:`/`http:`/`https:`/`file:`
|
157 | * double minification and memory leak
|
158 | * respect original errors
|
159 | * compatibility with asset modules
|
160 |
|
161 | ## [2.2.0](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v2.1.0...v2.2.0) (2021-01-09)
|
162 |
|
163 |
|
164 | ### Features
|
165 |
|
166 | * run optimize image assets added later by plugins ([#178](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/issues/178)) ([4939f93](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/4939f93a55962c5812a693acc5eb441b78fe663c))
|
167 |
|
168 | ## [2.1.0](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/compare/v2.0.0...v2.1.0) (2020-12-23)
|
169 |
|
170 |
|
171 | ### Features
|
172 |
|
173 | * add TypeScript definitions ([e78497b](https://github.com/webpack-contrib/image-minimizer-webpack-plugin/commit/e78497b3f50d2cfc6368fcdc9de548a7ad76f559))
|
174 |
|
175 | ## 2.0.0 (2020-12-17)
|
176 |
|
177 |
|
178 | ### ⚠ BREAKING CHANGES
|
179 |
|
180 | * minimum supported `webpack` version is `5.1.0`
|
181 | * removed the `cache` option in favor the [`cache`](https://webpack.js.org/configuration/other-options/#cache) option from webpack
|
182 |
|
183 | ## 1.0.0 (2020-10-07)
|
184 |
|
185 | Initial release.
|