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 | ## [1.3.0](https://github.com/webpack-contrib/style-loader/compare/v1.2.1...v1.3.0) (2020-10-03)
|
6 |
|
7 | ### Features
|
8 |
|
9 | * added `modules.namedExport` ([#485](https://github.com/webpack-contrib/style-loader/issues/485)) ([15889db](https://github.com/webpack-contrib/style-loader/commit/15889db9a2d5d51712fc12e03b12a60c22fc33f4))
|
10 |
|
11 |
|
12 | ### Bug Fixes
|
13 |
|
14 | * check if `btoa` exists for old IE versions ([#479](https://github.com/webpack-contrib/style-loader/issues/479)) ([732ef8b](https://github.com/webpack-contrib/style-loader/commit/732ef8bcb60ae72c3a84d3fa639f1eae6f26bbdc))
|
15 | * esModule option issue ([#476](https://github.com/webpack-contrib/style-loader/issues/476)) ([c623f27](https://github.com/webpack-contrib/style-loader/commit/c623f2750b0358492c7bf2dde0326a1c71c46f4f))
|
16 |
|
17 | ### [1.2.1](https://github.com/webpack-contrib/style-loader/compare/v1.2.0...v1.2.1) (2020-04-28)
|
18 |
|
19 |
|
20 | ### Bug Fixes
|
21 |
|
22 | * hot module replacement logic for lazy type ([#468](https://github.com/webpack-contrib/style-loader/issues/468)) ([88a5c2b](https://github.com/webpack-contrib/style-loader/commit/88a5c2bdb3405aa5cb889726f3908747106a6c01))
|
23 |
|
24 | ## [1.2.0](https://github.com/webpack-contrib/style-loader/compare/v1.1.4...v1.2.0) (2020-04-24)
|
25 |
|
26 |
|
27 | ### Features
|
28 |
|
29 | * hot module replacement for css modules ([6d14e0a](https://github.com/webpack-contrib/style-loader/commit/6d14e0aa7bac1d8ba8e60b4d12f7cd33078763b7))
|
30 |
|
31 | ### [1.1.4](https://github.com/webpack-contrib/style-loader/compare/v1.1.3...v1.1.4) (2020-04-15)
|
32 |
|
33 |
|
34 | # Chore
|
35 |
|
36 | * update deps
|
37 |
|
38 |
|
39 | ### [1.1.3](https://github.com/webpack-contrib/style-loader/compare/v1.1.2...v1.1.3) (2020-01-17)
|
40 |
|
41 |
|
42 | ### Bug Fixes
|
43 |
|
44 | * injection algorithm ([#456](https://github.com/webpack-contrib/style-loader/issues/456)) ([236b243](https://github.com/webpack-contrib/style-loader/commit/236b2436fb0003eeba5f0aa33e7caf9f35d4fc7a))
|
45 |
|
46 | ### [1.1.2](https://github.com/webpack-contrib/style-loader/compare/v1.1.1...v1.1.2) (2019-12-25)
|
47 |
|
48 |
|
49 | ### Bug Fixes
|
50 |
|
51 | * algorithm for importing modules ([#449](https://github.com/webpack-contrib/style-loader/issues/449)) ([91ceaf2](https://github.com/webpack-contrib/style-loader/commit/91ceaf2b7e03f065d2a8cace1b733777848d4e86))
|
52 | * checking that the list of modules is an array ([#448](https://github.com/webpack-contrib/style-loader/issues/448)) ([1138ed7](https://github.com/webpack-contrib/style-loader/commit/1138ed7e04848b570a70e493b410902cfc4a9076))
|
53 |
|
54 | ### [1.1.1](https://github.com/webpack-contrib/style-loader/compare/v1.1.0...v1.1.1) (2019-12-20)
|
55 |
|
56 |
|
57 | ### Bug Fixes
|
58 |
|
59 | * add empty default export for `linkTag` value ([7ee8b04](https://github.com/webpack-contrib/style-loader/commit/7ee8b04fd519847cef93052c31efa0d0012ed54e))
|
60 |
|
61 | ## [1.1.0](https://github.com/webpack-contrib/style-loader/compare/v1.0.2...v1.1.0) (2019-12-20)
|
62 |
|
63 |
|
64 | ### Features
|
65 |
|
66 | * `esModule` option ([#441](https://github.com/webpack-contrib/style-loader/issues/441)) ([3415266](https://github.com/webpack-contrib/style-loader/commit/3415266f58f2be00bec1d66ae9e658437e0d0a6c))
|
67 |
|
68 |
|
69 | ### Bug Fixes
|
70 |
|
71 | * order of imported styles ([#443](https://github.com/webpack-contrib/style-loader/issues/443)) ([c7d6e3a](https://github.com/webpack-contrib/style-loader/commit/c7d6e3a3fba63a76e8f342d84e00b69af92c7ebc))
|
72 |
|
73 | ### [1.0.2](https://github.com/webpack-contrib/style-loader/compare/v1.0.1...v1.0.2) (2019-12-17)
|
74 |
|
75 |
|
76 | ### Bug Fixes
|
77 |
|
78 | * support ES module syntax ([#435](https://github.com/webpack-contrib/style-loader/issues/435)) ([dcbfadb](https://github.com/webpack-contrib/style-loader/commit/dcbfadb4245e7f0ce888aafc138cbac27d053915))
|
79 |
|
80 | ### [1.0.1](https://github.com/webpack-contrib/style-loader/compare/v1.0.0...v1.0.1) (2019-11-28)
|
81 |
|
82 |
|
83 | ### Bug Fixes
|
84 |
|
85 | * compatibility `linkTag` with ES module syntax ([#429](https://github.com/webpack-contrib/style-loader/issues/429)) ([2cdb9c3](https://github.com/webpack-contrib/style-loader/commit/2cdb9c3f51edebec69e8b22ff43b520a5e1c679b))
|
86 |
|
87 | ## [1.0.0](https://github.com/webpack-contrib/style-loader/compare/v0.23.1...v1.0.0) (2019-08-06)
|
88 |
|
89 |
|
90 | ### Bug Fixes
|
91 |
|
92 | * es3 compatibility ([#390](https://github.com/webpack-contrib/style-loader/issues/390)) ([ae24ec2](https://github.com/webpack-contrib/style-loader/commit/ae24ec2))
|
93 | * restore original hot reloading behaviour for locals ([#419](https://github.com/webpack-contrib/style-loader/issues/419)) ([f026429](https://github.com/webpack-contrib/style-loader/commit/f026429))
|
94 | * better handle source maps ([#383](https://github.com/webpack-contrib/style-loader/issues/383)) ([84ec8e5](https://github.com/webpack-contrib/style-loader/commit/84ec8e5))
|
95 |
|
96 |
|
97 | ### Features
|
98 |
|
99 | * new `injectType` option ([e2664e9](https://github.com/webpack-contrib/style-loader/commit/e2664e9))
|
100 | * remove type `text/css` from style and link element ([#399](https://github.com/webpack-contrib/style-loader/issues/399)) ([b0187d6](https://github.com/webpack-contrib/style-loader/commit/b0187d6))
|
101 |
|
102 |
|
103 | ### BREAKING CHANGES
|
104 |
|
105 | * minimum required Node.js version is `8.9.0`
|
106 | * minimum required `wepback` version is `4.0.0`
|
107 | * the `convertToAbsoluteUrls` option was removed, you don't need this anymore
|
108 | * the `attrs` option was renamed to the `attributes` option
|
109 | * the `transform` option was removed without replacement
|
110 | * the `hmr` option was removed, `webpack` automatically inject HMR code when it is required (when the `HotModuleReplacementPlugin` plugin was used)
|
111 | * the `sourceMap` option was removed. The loader automatically inject source maps if the previous loader emit them
|
112 | * the `ref`/`unref` api methods were removed for `useable` loader, please use the `use`/`unuse` api methods
|
113 | * the `style-loader/url` loader was removed in favor `injectType` option (look the documentation about the `injectType` option)
|
114 | * the `style-loader/useable` loader was removed in favor `injectType` option (look the documentation about the `injectType` option)
|
115 | * the `singleton` option was removed (look documentation about the `injectType` option)
|
116 | * the `insertAt` option was removed in favor the `insert` option (look the documentation about the `insert` option and examples)
|
117 | * the `insertInto` options was removed in favor the `insert` option (look the documentation about the `insert` option and examples)
|
118 |
|
119 |
|
120 | <a name="0.23.1"></a>
|
121 | ## [0.23.1](https://github.com/webpack-contrib/style-loader/compare/v0.23.0...v0.23.1) (2018-10-08)
|
122 |
|
123 |
|
124 | ### Bug Fixes
|
125 |
|
126 | * **addStyles:** support exports of transpiled transforms (`options.transform`) ([#333](https://github.com/webpack-contrib/style-loader/issues/333)) ([33aebed](https://github.com/webpack-contrib/style-loader/commit/33aebed))
|
127 |
|
128 |
|
129 |
|
130 | <a name="0.23.0"></a>
|
131 | # [0.23.0](https://github.com/webpack-contrib/style-loader/compare/v0.22.1...v0.23.0) (2018-08-27)
|
132 |
|
133 |
|
134 | ### Features
|
135 |
|
136 | * **useable:** add `insertInto` support (`options.insertInto`) ([#341](https://github.com/webpack-contrib/style-loader/issues/341)) ([2588aca](https://github.com/webpack-contrib/style-loader/commit/2588aca))
|
137 |
|
138 |
|
139 |
|
140 | <a name="0.22.1"></a>
|
141 | ## [0.22.1](https://github.com/webpack-contrib/style-loader/compare/v0.22.0...v0.22.1) (2018-08-08)
|
142 |
|
143 |
|
144 | ### Bug Fixes
|
145 |
|
146 | * **addStyles:** use `var` instead of `const` (IE fix) ([#338](https://github.com/webpack-contrib/style-loader/issues/338)) ([1ca12ab](https://github.com/webpack-contrib/style-loader/commit/1ca12ab))
|
147 |
|
148 |
|
149 |
|
150 | <a name="0.22.0"></a>
|
151 | # [0.22.0](https://github.com/webpack-contrib/style-loader/compare/v0.21.0...v0.22.0) (2018-08-07)
|
152 |
|
153 |
|
154 | ### Bug Fixes
|
155 |
|
156 | * insertInto and insertAt collaboration ([#325](https://github.com/webpack-contrib/style-loader/issues/325)) ([c7d8fec](https://github.com/webpack-contrib/style-loader/commit/c7d8fec))
|
157 |
|
158 |
|
159 | ### Features
|
160 |
|
161 | * add support for __webpack_nonce__ ([#319](https://github.com/webpack-contrib/style-loader/issues/319)) ([fc24512](https://github.com/webpack-contrib/style-loader/commit/fc24512))
|
162 |
|
163 |
|
164 |
|
165 | <a name="0.21.0"></a>
|
166 | # [0.21.0](https://github.com/webpack-contrib/style-loader/compare/v0.20.3...v0.21.0) (2018-04-18)
|
167 |
|
168 |
|
169 | ### Features
|
170 |
|
171 | * enable tag type configuration ([#316](https://github.com/webpack-contrib/style-loader/issues/316)) ([892cba5](https://github.com/webpack-contrib/style-loader/commit/892cba5))
|
172 |
|
173 |
|
174 |
|
175 | <a name="0.20.3"></a>
|
176 | ## [0.20.3](https://github.com/webpack-contrib/style-loader/compare/v0.20.2...v0.20.3) (2018-03-09)
|
177 |
|
178 |
|
179 | ### Bug Fixes
|
180 |
|
181 | * **package:** update `schema-utils` v0.4.3...0.4.5 (`dependencies`) ([#308](https://github.com/webpack-contrib/style-loader/issues/308)) ([9455888](https://github.com/webpack-contrib/style-loader/commit/9455888))
|
182 |
|
183 |
|
184 |
|
185 | <a name="0.20.2"></a>
|
186 | ## [0.20.2](https://github.com/webpack-contrib/style-loader/compare/v0.20.1...v0.20.2) (2018-02-15)
|
187 |
|
188 |
|
189 | ### Bug Fixes
|
190 |
|
191 | * **urls:** skip empty `url()` handling ([#304](https://github.com/webpack-contrib/style-loader/issues/304)) ([64f12dc](https://github.com/webpack-contrib/style-loader/commit/64f12dc))
|
192 |
|
193 |
|
194 |
|
195 | <a name="0.20.1"></a>
|
196 | ## [0.20.1](https://github.com/webpack-contrib/style-loader/compare/v0.20.0...v0.20.1) (2018-01-26)
|
197 |
|
198 |
|
199 | ### Bug Fixes
|
200 |
|
201 | * **index:** source code indentation ([#299](https://github.com/webpack-contrib/style-loader/issues/299)) ([b4642e7](https://github.com/webpack-contrib/style-loader/commit/b4642e7))
|
202 |
|
203 |
|
204 |
|
205 | <a name="0.20.0"></a>
|
206 | # [0.20.0](https://github.com/webpack-contrib/style-loader/compare/v0.19.1...v0.20.0) (2018-01-26)
|
207 |
|
208 |
|
209 | ### Bug Fixes
|
210 |
|
211 | * **addStyles:** check if `HTMLIFrameElement` exist ([#296](https://github.com/webpack-contrib/style-loader/issues/296)) ([9b46128](https://github.com/webpack-contrib/style-loader/commit/9b46128))
|
212 | * **index:** enable HMR in case `locals` (`css-modules`) are unchanged ([#298](https://github.com/webpack-contrib/style-loader/issues/298)) ([3a4cb53](https://github.com/webpack-contrib/style-loader/commit/3a4cb53))
|
213 | * **options:** add `transform` option validation (`{String}`) ([23c3567](https://github.com/webpack-contrib/style-loader/commit/23c3567))
|
214 | * **options:** support passing a `{Function}` (`options.insertInto`) ([e0c4b19](https://github.com/webpack-contrib/style-loader/commit/e0c4b19))
|
215 |
|
216 |
|
217 | ### Features
|
218 |
|
219 | * support passing a `{Function}` (`options.insertInto`) ([#279](https://github.com/webpack-contrib/style-loader/issues/279)) ([0eb8fe7](https://github.com/webpack-contrib/style-loader/commit/0eb8fe7))
|
220 |
|
221 |
|
222 |
|
223 | <a name="0.19.1"></a>
|
224 | ## [0.19.1](https://github.com/webpack/style-loader/compare/v0.19.0...v0.19.1) (2017-12-14)
|
225 |
|
226 |
|
227 | ### Bug Fixes
|
228 |
|
229 | * **addStyles:** correctly check `singleton` behavior when `{Boolean}` (`options.singleton`) ([#285](https://github.com/webpack/style-loader/issues/285)) ([2bfc93e](https://github.com/webpack/style-loader/commit/2bfc93e))
|
230 |
|
231 |
|
232 |
|
233 | <a name="0.19.0"></a>
|
234 | # [0.19.0](https://github.com/webpack/style-loader/compare/v0.18.2...v0.19.0) (2017-10-03)
|
235 |
|
236 |
|
237 | ### Features
|
238 |
|
239 | * add option to enable/disable HMR (`options.hmr`) ([#264](https://github.com/webpack/style-loader/issues/264)) ([378e906](https://github.com/webpack/style-loader/commit/378e906))
|
240 | * add support for iframes (`options.insertInto`) ([#248](https://github.com/webpack/style-loader/issues/248)) ([25e8e89](https://github.com/webpack/style-loader/commit/25e8e89))
|
241 | * support 'before' insertions (`options.insertAt`) ([#253](https://github.com/webpack/style-loader/issues/253)) ([67120f8](https://github.com/webpack/style-loader/commit/67120f8))
|
242 |
|
243 |
|
244 |
|
245 | <a name="0.18.2"></a>
|
246 | ## [0.18.2](https://github.com/webpack/style-loader/compare/v0.18.1...v0.18.2) (2017-06-05)
|
247 |
|
248 |
|
249 | ### Bug Fixes
|
250 |
|
251 | * **url:** use `loaderUtils.stringifyRequest` to avoid invalidating hashes due to absolute paths ([#242](https://github.com/webpack/style-loader/issues/242)) ([97508ec](https://github.com/webpack/style-loader/commit/97508ec))
|
252 | * Add `null` check to `removeStyleElement` ([#245](https://github.com/webpack/style-loader/issues/245)) ([0a4845c](https://github.com/webpack/style-loader/commit/0a4845c))
|
253 |
|
254 |
|
255 |
|
256 | <a name="0.18.1"></a>
|
257 | ## [0.18.1](https://github.com/webpack/style-loader/compare/v0.18.0...v0.18.1) (2017-05-23)
|
258 |
|
259 |
|
260 | ### Bug Fixes
|
261 |
|
262 | * **addStyles:** revert merged loops ([#236](https://github.com/webpack/style-loader/issues/236)) ([fbd04b1](https://github.com/webpack/style-loader/commit/fbd04b1))
|
263 |
|
264 |
|
265 |
|
266 | <a name="0.18.0"></a>
|
267 | # [0.18.0](https://github.com/webpack/style-loader/compare/v0.17.0...v0.18.0) (2017-05-22)
|
268 |
|
269 |
|
270 | ### Bug Fixes
|
271 |
|
272 | * stringify the options.transform request ([#230](https://github.com/webpack/style-loader/issues/230)) ([5888095](https://github.com/webpack/style-loader/commit/5888095))
|
273 |
|
274 |
|
275 | ### Features
|
276 |
|
277 | * add options validation ([#224](https://github.com/webpack/style-loader/issues/224)) ([4b6b70d](https://github.com/webpack/style-loader/commit/4b6b70d))
|
278 |
|
279 |
|
280 |
|
281 | <a name="0.17.0"></a>
|
282 | # [0.17.0](https://github.com/webpack/style-loader/compare/v0.16.1...v0.17.0) (2017-05-01)
|
283 |
|
284 |
|
285 | ### Features
|
286 |
|
287 | * add option.base ([#164](https://github.com/webpack/style-loader/issues/164)) ([e4ac886](https://github.com/webpack/style-loader/commit/e4ac886))
|
288 | * add option.transform ([#146](https://github.com/webpack/style-loader/issues/146)) ([1c3943f](https://github.com/webpack/style-loader/commit/1c3943f))
|
289 |
|
290 |
|
291 |
|
292 | <a name="0.16.1"></a>
|
293 | ## [0.16.1](https://github.com/webpack/style-loader/compare/v0.16.0...v0.16.1) (2017-03-28)
|
294 |
|
295 |
|
296 | ### Bug Fixes
|
297 |
|
298 | * negative refs ([#122](https://github.com/webpack/style-loader/issues/122)) ([f6f577a](https://github.com/webpack/style-loader/commit/f6f577a))
|
299 |
|
300 |
|
301 |
|
302 | <a name="0.16.0"></a>
|
303 | # [0.16.0](https://github.com/webpack/style-loader/compare/v0.15.0...v0.16.0) (2017-03-22)
|
304 |
|
305 |
|
306 | ### Bug Fixes
|
307 |
|
308 | * **addStyles:** update for test for old IE versions ([#196](https://github.com/webpack/style-loader/issues/196)) ([1f68495](https://github.com/webpack/style-loader/commit/1f68495))
|
309 |
|
310 |
|
311 | ### Features
|
312 |
|
313 | * Set custom attributes for tag in url mode ([#198](https://github.com/webpack/style-loader/issues/198)) ([2c4f427](https://github.com/webpack/style-loader/commit/2c4f427))
|
314 |
|
315 |
|
316 |
|
317 | <a name="0.15.0"></a>
|
318 | # [0.15.0](https://github.com/webpack/style-loader/compare/v0.14.1...v0.15.0) (2017-03-21)
|
319 |
|
320 |
|
321 | ### Bug Fixes
|
322 |
|
323 | * match parens recursively on URLs to not fix embeded calls ([#192](https://github.com/webpack/style-loader/issues/192)) ([71e0908](https://github.com/webpack/style-loader/commit/71e0908))
|
324 |
|
325 |
|
326 | ### Features
|
327 |
|
328 | * add insertInto option ([#135](https://github.com/webpack/style-loader/issues/135)) ([6636868](https://github.com/webpack/style-loader/commit/6636868))
|
329 |
|
330 |
|
331 |
|
332 | <a name="0.14.1"></a>
|
333 | ## [0.14.1](https://github.com/webpack/style-loader/compare/v0.14.0...v0.14.1) (2017-03-15)
|
334 |
|
335 |
|
336 | ### Bug Fixes
|
337 |
|
338 | * syntax error in IE10 and below because of `const` keyword ([#190](https://github.com/webpack/style-loader/issues/190)) ([01080cf](https://github.com/webpack/style-loader/commit/01080cf))
|
339 |
|
340 |
|
341 |
|
342 | <a name="0.14.0"></a>
|
343 | # [0.14.0](https://github.com/webpack/style-loader/compare/v0.13.1...v0.14.0) (2017-03-15)
|
344 |
|
345 |
|
346 | ### Bug Fixes
|
347 |
|
348 | * Adds type attr. to the generated link element ([2a2f261](https://github.com/webpack/style-loader/commit/2a2f261))
|
349 | * **fixUrls:** add param to fix relative urls ([#186](https://github.com/webpack/style-loader/issues/186)) ([19959ee](https://github.com/webpack/style-loader/commit/19959ee))
|
350 | * **usable:** Export locals if available([#128](https://github.com/webpack/style-loader/issues/128)) ([e280cb6](https://github.com/webpack/style-loader/commit/e280cb6))
|
351 |
|
352 |
|
353 | ### Features
|
354 |
|
355 | * **tag-attribute:** Add support for custom tag attribute ([995f3de](https://github.com/webpack/style-loader/commit/995f3de))
|