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 | ## [4.0.0](https://github.com/webpack-contrib/postcss-loader/compare/v3.0.0...v4.0.0) (2020-09-07)
|
6 |
|
7 |
|
8 | ### ⚠ BREAKING CHANGES
|
9 |
|
10 | * minimum supported `Node.js` version is `10.13`
|
11 | * minimum supported `webpack` version is `4`
|
12 | * `postcss` was moved to `peerDependencies`, you need to install `postcss`
|
13 | * `PostCSS` (`plugins`/`syntax`/`parser`/`stringifier`) options was moved to the `postcssOptions` option, please look at [docs](https://github.com/webpack-contrib/postcss-loader#postcssoptions)
|
14 | * `sourceMap` default value depends on the `compiler.devtool` option
|
15 | * the `inline` value was removed for the `sourceMap` option, please use `{ map: { inline: true, annotation: false } }` to achieve this
|
16 | * source maps contain absolute paths in `sources`
|
17 | * loader output only CSS, so you need to use `css-loader`/`file-loader`/`raw-loader` to inject code inside bundle
|
18 | * `exec` option was renamed to the `execute` option
|
19 | * the `config` option doesn't support `Object` type anymore, `config.path` and `config.ctx` options were removed
|
20 | * argument in the config for `Function` notation (previously `config.ctx`) was changed, now it contains `{ file, mode, webpackLoaderContext }`
|
21 | * loader context in the config was renamed from `webpack` to `webpackLoaderContext`
|
22 |
|
23 | ### Features
|
24 |
|
25 | * message API for emit assets ([#443](https://github.com/webpack-contrib/postcss-loader/issues/443)) ([e966ab9](https://github.com/webpack-contrib/postcss-loader/commit/e966ab965132ca812cb50e5eaf7df5fc2ad9c137))
|
26 | * reuse AST from other loaders ([#468](https://github.com/webpack-contrib/postcss-loader/issues/468)) ([9b75888](https://github.com/webpack-contrib/postcss-loader/commit/9b75888dff4957f2ef1e94eca871e329354a9f6d))
|
27 | * allows to use config and loader options together, options from the loader takes precedence over the config, the `plugins` option from the config and options are merged ([0eb5aaf](https://github.com/webpack-contrib/postcss-loader/commit/0eb5aaf3d49f6d5e570a3c3fdb6b201487e503c7))
|
28 | * `postcssOptions` options can be `Function`
|
29 |
|
30 | ### Bug Fixes
|
31 |
|
32 | * compatibility with webpack@5 ([#437](https://github.com/webpack-contrib/postcss-loader/issues/437)) ([ed50491](https://github.com/webpack-contrib/postcss-loader/commit/ed504910b70b4d8b4d77084c19ad92330676433e))
|
33 | * `default` export for plugins ([#465](https://github.com/webpack-contrib/postcss-loader/issues/465)) ([3d32c35](https://github.com/webpack-contrib/postcss-loader/commit/3d32c35c5c911d6bd25dc0c4b5b3cd11408632d7))
|
34 | * avoid mutations of loader options and config ([#470](https://github.com/webpack-contrib/postcss-loader/issues/470)) ([cad6f07](https://github.com/webpack-contrib/postcss-loader/commit/cad6f07c7f4923e8ef69ecb402b10bbd08d09530))
|
35 | * respect the `map` option from loader options and config ([#458](https://github.com/webpack-contrib/postcss-loader/issues/458)) ([98441ff](https://github.com/webpack-contrib/postcss-loader/commit/98441ff87e51b58e9322d1bebb5eefc5ba417e24))
|
36 |
|
37 | ### Notes
|
38 |
|
39 | * you don't need `ident` option for loader
|
40 | * `Object` syntax for the `plugin` option is soft deprecated, please migrate on `Array` syntax (`plugins: ['postcss-present-env', ['cssnano', options]]`)
|
41 |
|
42 | <a name="3.0.0"></a>
|
43 | # [3.0.0](https://github.com/postcss/postcss-loader/compare/v2.1.6...v3.0.0) (2018-08-08)
|
44 |
|
45 |
|
46 | ### Bug Fixes
|
47 |
|
48 | * **index:** add ast version (`meta.ast`) ([f34954f](https://github.com/postcss/postcss-loader/commit/f34954f))
|
49 | * **index:** emit `warnings` as an instance of `{Error}` ([8ac6fb5](https://github.com/postcss/postcss-loader/commit/8ac6fb5))
|
50 | * **options:** improved `ValidationError` messages ([549ea08](https://github.com/postcss/postcss-loader/commit/549ea08))
|
51 |
|
52 |
|
53 | ### Chores
|
54 |
|
55 | * **package:** update `postcss` v6.0.0...7.0.0 (`dependencies`) ([#375](https://github.com/postcss/postcss-loader/issues/375)) ([daa0da8](https://github.com/postcss/postcss-loader/commit/daa0da8))
|
56 |
|
57 |
|
58 | ### BREAKING CHANGES
|
59 |
|
60 | * **package:** requires `node >= v6.0.0`
|
61 |
|
62 |
|
63 |
|
64 | <a name="2.1.6"></a>
|
65 | ## [2.1.6](https://github.com/postcss/postcss-loader/compare/v2.1.5...v2.1.6) (2018-07-10)
|
66 |
|
67 |
|
68 | ### Bug Fixes
|
69 |
|
70 | * **package:** config memory leak, updates `postcss-load-config` v1.2.0...2.0.0 (`dependencies`) ([0547b12](https://github.com/postcss/postcss-loader/commit/0547b12))
|
71 |
|
72 |
|
73 |
|
74 | <a name="2.1.5"></a>
|
75 | ## [2.1.5](https://github.com/postcss/postcss-loader/compare/v2.1.4...v2.1.5) (2018-05-04)
|
76 |
|
77 |
|
78 | ### Bug Fixes
|
79 |
|
80 | * **index:** remove `sourceMap` warning ([#361](https://github.com/postcss/postcss-loader/issues/361)) ([4416791](https://github.com/postcss/postcss-loader/commit/4416791))
|
81 |
|
82 |
|
83 |
|
84 | <a name="2.1.4"></a>
|
85 | ## [2.1.4](https://github.com/postcss/postcss-loader/compare/v2.1.3...v2.1.4) (2018-04-16)
|
86 |
|
87 |
|
88 | ### Bug Fixes
|
89 |
|
90 | * restore loader object in postcss config context ([#355](https://github.com/postcss/postcss-loader/issues/355)) ([2ff1735](https://github.com/postcss/postcss-loader/commit/2ff1735))
|
91 |
|
92 |
|
93 |
|
94 | <a name="2.1.3"></a>
|
95 | ## [2.1.3](https://github.com/postcss/postcss-loader/compare/v2.1.2...v2.1.3) (2018-03-20)
|
96 |
|
97 |
|
98 | ### Bug Fixes
|
99 |
|
100 | * **options:** revert additionalProperties changes to keep SemVer ([bd7fc38](https://github.com/postcss/postcss-loader/commit/bd7fc38))
|
101 |
|
102 |
|
103 |
|
104 | <a name="2.1.2"></a>
|
105 | ## [2.1.2](https://github.com/postcss/postcss-loader/compare/v2.1.1...v2.1.2) (2018-03-17)
|
106 |
|
107 |
|
108 | ### Bug Fixes
|
109 |
|
110 | * **options:** disallow additional properties and add `ident` to validation ([#346](https://github.com/postcss/postcss-loader/issues/346)) ([82ef553](https://github.com/postcss/postcss-loader/commit/82ef553))
|
111 |
|
112 |
|
113 |
|
114 | <a name="2.1.1"></a>
|
115 | ## [2.1.1](https://github.com/postcss/postcss-loader/compare/v2.1.0...v2.1.1) (2018-02-26)
|
116 |
|
117 |
|
118 | ### Bug Fixes
|
119 |
|
120 | * **index:** don't set `to` value (`options`) ([#339](https://github.com/postcss/postcss-loader/issues/339)) ([cdbb8b6](https://github.com/postcss/postcss-loader/commit/cdbb8b6))
|
121 |
|
122 |
|
123 |
|
124 | <a name="2.1.0"></a>
|
125 | # [2.1.0](https://github.com/postcss/postcss-loader/compare/v2.0.10...v2.1.0) (2018-02-02)
|
126 |
|
127 |
|
128 | ### Bug Fixes
|
129 |
|
130 | * **index:** continue watching after dependency `{Error}` ([#332](https://github.com/postcss/postcss-loader/issues/332)) ([a8921cc](https://github.com/postcss/postcss-loader/commit/a8921cc))
|
131 |
|
132 |
|
133 | ### Features
|
134 |
|
135 | * **index:** pass AST (`result.root`) && Messages (`result.messages`) as metadata to other loaders ([#322](https://github.com/postcss/postcss-loader/issues/322)) ([56232e7](https://github.com/postcss/postcss-loader/commit/56232e7))
|
136 |
|
137 |
|
138 |
|
139 | <a name="2.0.10"></a>
|
140 | ## [2.0.10](https://github.com/postcss/postcss-loader/compare/v2.0.9...v2.0.10) (2018-01-03)
|
141 |
|
142 |
|
143 | ### Bug Fixes
|
144 |
|
145 | * **index:** copy loader `options` before modifying ([#326](https://github.com/postcss/postcss-loader/issues/326)) ([61ff03c](https://github.com/postcss/postcss-loader/commit/61ff03c))
|
146 |
|
147 |
|
148 |
|
149 | <a name="2.0.9"></a>
|
150 | ## [2.0.9](https://github.com/postcss/postcss-loader/compare/v2.0.8...v2.0.9) (2017-11-24)
|
151 |
|
152 |
|
153 | ### Bug Fixes
|
154 |
|
155 | * **index:** filter `ident` (`options.ident`) ([#315](https://github.com/postcss/postcss-loader/issues/315)) ([3e1c7fa](https://github.com/postcss/postcss-loader/commit/3e1c7fa))
|
156 |
|
157 |
|
158 |
|
159 | <a name="2.0.8"></a>
|
160 | ## [2.0.8](https://github.com/postcss/postcss-loader/compare/v2.0.6...v2.0.8) (2017-10-14)
|
161 |
|
162 |
|
163 | ### Bug Fixes
|
164 |
|
165 | * **lib/options:** handle `{Object}` return (`options.plugins`) ([#301](https://github.com/postcss/postcss-loader/issues/301)) ([df010a7](https://github.com/postcss/postcss-loader/commit/df010a7))
|
166 | * **schema:** allow to pass an `{Object}` (`options.syntax/options.stringifier`) ([#300](https://github.com/postcss/postcss-loader/issues/300)) ([58e9996](https://github.com/postcss/postcss-loader/commit/58e9996))
|
167 |
|
168 |
|
169 |
|
170 | <a name="2.0.7"></a>
|
171 | ## [2.0.7](https://github.com/postcss/postcss-loader/compare/v2.0.6...v2.0.7) (2017-10-10)
|
172 |
|
173 |
|
174 | ### Bug Fixes
|
175 |
|
176 | * sanitizing `from` and `to` options (`postcss.config.js`) ([#260](https://github.com/postcss/postcss-loader/issues/260)) ([753dea7](https://github.com/postcss/postcss-loader/commit/753dea7))
|
177 | * **index:** runaway promise ([#269](https://github.com/postcss/postcss-loader/issues/269)) ([8df20ce](https://github.com/postcss/postcss-loader/commit/8df20ce))
|
178 |
|
179 |
|
180 |
|
181 | <a name="2.0.6"></a>
|
182 | ## [2.0.6](https://github.com/postcss/postcss-loader/compare/v2.0.5...v2.0.6) (2017-06-14)
|
183 |
|
184 |
|
185 | ### Bug Fixes
|
186 |
|
187 | * allow to pass an `{Object}` (`options.parser`) ([#257](https://github.com/postcss/postcss-loader/issues/257)) ([4974607](https://github.com/postcss/postcss-loader/commit/4974607))
|
188 | * misspelling in warnings ([#237](https://github.com/postcss/postcss-loader/issues/237)) ([adcbb2e](https://github.com/postcss/postcss-loader/commit/adcbb2e))
|
189 | * **index:** simplify config loading behaviour ([#259](https://github.com/postcss/postcss-loader/issues/259)) ([b313478](https://github.com/postcss/postcss-loader/commit/b313478))
|
190 |
|
191 |
|
192 |
|
193 | <a name="2.0.5"></a>
|
194 | ## [2.0.5](https://github.com/postcss/postcss-loader/compare/v2.0.4...v2.0.5) (2017-05-10)
|
195 |
|
196 |
|
197 | ### Bug Fixes
|
198 |
|
199 | * regression with `options.plugins` `{Function}` (`webpack.config.js`) (#229) ([dca52a9](https://github.com/postcss/postcss-loader/commit/dca52a9))
|
200 |
|
201 |
|
202 |
|
203 | <a name="2.0.4"></a>
|
204 | ## [2.0.4](https://github.com/postcss/postcss-loader/compare/v2.0.3...v2.0.4) (2017-05-10)
|
205 |
|
206 |
|
207 | ### Bug Fixes
|
208 |
|
209 | * **index:** `postcss.config.js` not resolved correctly (`options.config`) ([faaeee4](https://github.com/postcss/postcss-loader/commit/faaeee4))
|
210 | * **index:** update validation schema, better warning message ([4f20c99](https://github.com/postcss/postcss-loader/commit/4f20c99))
|
211 |
|
212 |
|
213 |
|
214 | <a name="2.0.3"></a>
|
215 | ## [2.0.3](https://github.com/postcss/postcss-loader/compare/v2.0.2...v2.0.3) (2017-05-09)
|
216 |
|
217 |
|
218 | ### Bug Fixes
|
219 |
|
220 | * **index:** don't fail on 'sourceMap: false' && emit a warning instead, when previous map found (`options.sourceMap`) ([159b66a](https://github.com/postcss/postcss-loader/commit/159b66a))
|
221 |
|
222 |
|
223 |
|
224 | <a name="2.0.2"></a>
|
225 | ## [2.0.2](https://github.com/postcss/postcss-loader/compare/v2.0.1...v2.0.2) (2017-05-09)
|
226 |
|
227 |
|
228 | ### Bug Fixes
|
229 |
|
230 | * **index:** 'No PostCSS Config found' (`options.config`) (#215) ([e764761](https://github.com/postcss/postcss-loader/commit/e764761))
|
231 |
|
232 |
|
233 |
|
234 | <a name="2.0.1"></a>
|
235 | ## [2.0.1](https://github.com/postcss/postcss-loader/compare/v2.0.0...v2.0.1) (2017-05-08)
|
236 |
|
237 |
|
238 | ### Bug Fixes
|
239 |
|
240 | * **index:** 'Cannot create property `prev` on boolean `false`' (`options.sourceMap`) ([c4f0064](https://github.com/postcss/postcss-loader/commit/c4f0064))
|
241 |
|
242 |
|
243 |
|
244 | <a name="2.0.0"></a>
|
245 | # [2.0.0](https://github.com/postcss/postcss-loader/compare/1.2.2...v2.0.0) (2017-05-08)
|
246 |
|
247 |
|
248 | ### Features
|
249 |
|
250 | * **index:** add ctx, ctx.file, ctx.options ([0dceb2c](https://github.com/postcss/postcss-loader/commit/0dceb2c))
|
251 | * **index:** add options validation ([2b76df8](https://github.com/postcss/postcss-loader/commit/2b76df8))
|
252 |
|
253 |
|
254 |
|
255 | ## 1.3.3
|
256 | * Remove `postcss-loader-before-processing` warning (by Michael Ciniawsky).
|
257 |
|
258 | ## 1.3.2
|
259 | * Fix deprecated warning (by Xiaoyu Zhai).
|
260 |
|
261 | ## 1.3.1
|
262 | * Fix conflict with CLI `--config` argument (by EGOIST).
|
263 |
|
264 | ## 1.3
|
265 | * Allow object in syntax options, not only path for require (by Jeff Escalante).
|
266 |
|
267 | ## 1.2.2
|
268 | * Watch `postcss.config.js` for changes (by Michael Ciniawsky).
|
269 |
|
270 | ## 1.2.1
|
271 | * Fix relative `config` parameter resolving (by Simen Bekkhus).
|
272 |
|
273 | ## 1.2
|
274 | * Add `config` parameter (by sainthkh).
|
275 |
|
276 | ## 1.1.1
|
277 | * Fix `this` in options function (by Jeff Escalante).
|
278 |
|
279 | ## 1.1
|
280 | * PostCSS common config could be placed to subdirs.
|
281 | * Add webpack instance to PostCSS common config context.
|
282 |
|
283 | ## 1.0
|
284 | * Add common PostCSS config support (by Mateusz Derks).
|
285 | * Add Webpack 2 support with `plugins` query option (by Izaak Schroeder).
|
286 | * Add `dependency` message support.
|
287 | * Rewrite docs (by Michael Ciniawsky).
|
288 |
|
289 | ## 0.13
|
290 | * Add `exec` parameter (by Neal Granger).
|
291 |
|
292 | ## 0.12
|
293 | * Add CSS syntax highlight to syntax error code frame.
|
294 |
|
295 | ## 0.11.1
|
296 | * Fix Promise API (by Daniel Haus).
|
297 |
|
298 | ## 0.11
|
299 | * Add `postcss-loader-before-processing` webpack event (by Jan Nicklas).
|
300 |
|
301 | ## 0.10.1
|
302 | * Better syntax error message (by Andrey Popp).
|
303 |
|
304 | ## 0.10.0
|
305 | * Add `sourceMap` parameter to force inline maps (by 雪狼).
|
306 |
|
307 | ## 0.9.1
|
308 | * Fix plugin in simple array config.
|
309 |
|
310 | ## 0.9
|
311 | * Allow to pass syntax, parser or stringifier as function (by Jeff Escalante).
|
312 |
|
313 | ## 0.8.2
|
314 | * Fix source map support (by Andrew Bradley).
|
315 |
|
316 | ## 0.8.1
|
317 | * Fix resource path.
|
318 |
|
319 | ## 0.8
|
320 | * Add postcss-js support (by Simon Degraeve).
|
321 |
|
322 | ## 0.7
|
323 | * Added argument with webpack instance to plugins callback (by Maxime Thirouin).
|
324 |
|
325 | ## 0.6
|
326 | * Use PostCSS 5.0.
|
327 | * Remove `safe` parameter. Use Safe Parser.
|
328 | * Add `syntax`, `parser` and `stringifier` parameters.
|
329 |
|
330 | ## 0.5.1
|
331 | * Fix string source map support (by Jan Nicklas).
|
332 |
|
333 | ## 0.5.0
|
334 | * Set plugins by function for hot reload support (by Stefano Brilli).
|
335 |
|
336 | ## 0.4.4
|
337 | * Fix error on empty PostCSS config.
|
338 |
|
339 | ## 0.4.3
|
340 | * Better check for `CssSyntaxError`.
|
341 |
|
342 | ## 0.4.2
|
343 | * Fixed invalid sourcemap exception (by Richard Willis).
|
344 |
|
345 | ## 0.4.1
|
346 | * Use only Promise API to catch PostCSS errors.
|
347 |
|
348 | ## 0.4
|
349 | * Add PostCSS asynchronous API support.
|
350 | * Fix source map support (by Richard Willis).
|
351 | * Add warnings API support.
|
352 | * Better output for CSS syntax errors.
|
353 |
|
354 | ## 0.3
|
355 | * Use PostCSS 4.0.
|
356 |
|
357 | ## 0.2
|
358 | * Use PostCSS 3.0.
|
359 |
|
360 | ## 0.1
|
361 | * Initial release.
|