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 | ## [6.2.0](https://github.com/webpack-contrib/file-loader/compare/v6.1.1...v6.2.0) (2020-10-27)
|
6 |
|
7 |
|
8 | ### Features
|
9 |
|
10 | * added the `sourceFilename` property to asset info with original filename ([#393](https://github.com/webpack-contrib/file-loader/issues/393)) ([654e0d6](https://github.com/webpack-contrib/file-loader/commit/654e0d641ec067089f6a2d12e30ec3520f00d808))
|
11 |
|
12 |
|
13 | ### Bug Fixes
|
14 |
|
15 | * immutable flag when the `name` option have hash in query string ([#392](https://github.com/webpack-contrib/file-loader/issues/392)) ([381d8bd](https://github.com/webpack-contrib/file-loader/commit/381d8bda3f2494487bfe840386e365b97b6025fe))
|
16 |
|
17 | ### [6.1.1](https://github.com/webpack-contrib/file-loader/compare/v6.1.0...v6.1.1) (2020-10-09)
|
18 |
|
19 | ### Chore
|
20 |
|
21 | * update `schema-utils`
|
22 |
|
23 | ## [6.1.0](https://github.com/webpack-contrib/file-loader/compare/v6.0.0...v6.1.0) (2020-08-31)
|
24 |
|
25 |
|
26 | ### Features
|
27 |
|
28 | * pass immutable flag to asset info ([#383](https://github.com/webpack-contrib/file-loader/issues/383)) ([40fcde8](https://github.com/webpack-contrib/file-loader/commit/40fcde81681d4f8ee19d2ee3845fd34e24459195))
|
29 |
|
30 | ## [6.0.0](https://github.com/webpack-contrib/file-loader/compare/v5.1.0...v6.0.0) (2020-03-17)
|
31 |
|
32 |
|
33 | ### ⚠ BREAKING CHANGES
|
34 |
|
35 | * use `md4` by default for hashing ([#369](https://github.com/webpack-contrib/file-loader/issues/369)) ([ad39022](https://github.com/webpack-contrib/file-loader/commit/ad3902284d28adeddf667212a39faa4c6bfb2964))
|
36 |
|
37 | ## [5.1.0](https://github.com/webpack-contrib/file-loader/compare/v5.0.2...v5.1.0) (2020-02-19)
|
38 |
|
39 |
|
40 | ### Features
|
41 |
|
42 | * support the `query` template for the `name` option ([#366](https://github.com/webpack-contrib/file-loader/issues/366)) ([cd8698b](https://github.com/webpack-contrib/file-loader/commit/cd8698b1d9fd560d85e912acca9a1e24f00e18f8))
|
43 |
|
44 | ### [5.0.2](https://github.com/webpack-contrib/file-loader/compare/v5.0.1...v5.0.2) (2019-11-25)
|
45 |
|
46 |
|
47 | ### Chore
|
48 |
|
49 | * add the `funding` field in `package.json`
|
50 |
|
51 |
|
52 |
|
53 | ### [5.0.1](https://github.com/webpack-contrib/file-loader/compare/v5.0.0...v5.0.1) (2019-11-25)
|
54 |
|
55 |
|
56 | ### Bug Fixes
|
57 |
|
58 | * name of `esModule` option in source code ([#346](https://github.com/webpack-contrib/file-loader/issues/346)) ([31d6589](https://github.com/webpack-contrib/file-loader/commit/31d6589b71b471f83908e80380dff9b9eada2d06))
|
59 |
|
60 | ## [5.0.0](https://github.com/webpack-contrib/file-loader/compare/v4.2.0...v5.0.0) (2019-11-22)
|
61 |
|
62 |
|
63 | ### BREAKING CHANGES
|
64 |
|
65 | * minimum required nodejs version is `10.13.0`
|
66 | * rename the `esModules` option to `esModule`
|
67 | * switch to ES modules by default (the option `esModule` is `true` by default)
|
68 |
|
69 |
|
70 |
|
71 | ## [4.3.0](https://github.com/webpack-contrib/file-loader/compare/v4.2.0...v4.3.0) (2019-11-21)
|
72 |
|
73 |
|
74 | ### Features
|
75 |
|
76 | * new `esModules` option to output ES modules ([#340](https://github.com/webpack-contrib/file-loader/issues/340)) ([9b9cd8d](https://github.com/webpack-contrib/file-loader/commit/9b9cd8d22b3dbe4677be9bdd0bf5fbe07815df54))
|
77 |
|
78 | ## [4.2.0](https://github.com/webpack-contrib/file-loader/compare/v4.1.0...v4.2.0) (2019-08-07)
|
79 |
|
80 |
|
81 | ### Features
|
82 |
|
83 | * `postTransformPublicPath` option ([#334](https://github.com/webpack-contrib/file-loader/issues/334)) ([c136f44](https://github.com/webpack-contrib/file-loader/commit/c136f44))
|
84 |
|
85 |
|
86 |
|
87 | ## [4.1.0](https://github.com/webpack-contrib/file-loader/compare/v4.0.0...v4.1.0) (2019-07-18)
|
88 |
|
89 |
|
90 | ### Features
|
91 |
|
92 | * improved validation error messages ([#339](https://github.com/webpack-contrib/file-loader/issues/339)) ([705eed4](https://github.com/webpack-contrib/file-loader/commit/705eed4))
|
93 |
|
94 |
|
95 |
|
96 | ## [4.0.0](https://github.com/webpack-contrib/file-loader/compare/v3.0.1...v4.0.0) (2019-06-05)
|
97 |
|
98 |
|
99 | ### chore
|
100 |
|
101 | * **deps:** update ([#333](https://github.com/webpack-contrib/file-loader/issues/333)) ([0d2f9b8](https://github.com/webpack-contrib/file-loader/commit/0d2f9b8))
|
102 |
|
103 |
|
104 | ### BREAKING CHANGES
|
105 |
|
106 | * **deps:** minimum required nodejs version is `8.9.0`
|
107 |
|
108 |
|
109 |
|
110 | <a name="3.0.1"></a>
|
111 | ## [3.0.1](https://github.com/webpack-contrib/file-loader/compare/v3.0.0...v3.0.1) (2018-12-20)
|
112 |
|
113 |
|
114 | ### Bug Fixes
|
115 |
|
116 | * relax options validation for additional properties ([#309](https://github.com/webpack-contrib/file-loader/issues/309)) ([c74d44e](https://github.com/webpack-contrib/file-loader/commit/c74d44e))
|
117 |
|
118 |
|
119 |
|
120 | <a name="3.0.0"></a>
|
121 | # [3.0.0](https://github.com/webpack-contrib/file-loader/compare/v2.0.0...v3.0.0) (2018-12-20)
|
122 |
|
123 |
|
124 | ### Code Refactoring
|
125 |
|
126 | * drop support for webpack < 4 ([#303](https://github.com/webpack-contrib/file-loader/issues/303)) ([203a4ee](https://github.com/webpack-contrib/file-loader/commit/203a4ee))
|
127 | * more validations in `options` schema
|
128 |
|
129 |
|
130 | ### Features
|
131 |
|
132 | * `resourcePath` is now available in `outputPath` and `publicPath` ([#304](https://github.com/webpack-contrib/file-loader/issues/304)) ([0d66e64](https://github.com/webpack-contrib/file-loader/commit/0d66e64))
|
133 | * `context` is now available in `outputPath` and `publicPath` ([#305](https://github.com/webpack-contrib/file-loader/issues/305)) ([d5eb823](https://github.com/webpack-contrib/file-loader/commit/d5eb823))
|
134 |
|
135 |
|
136 | ### BREAKING CHANGES
|
137 |
|
138 | * removed the `useRelativePath` option. It is dangerously and break url when you use multiple entry points.
|
139 | * drop support for webpack < 4
|
140 |
|
141 |
|
142 |
|
143 | <a name="2.0.0"></a>
|
144 | # [2.0.0](https://github.com/webpack-contrib/file-loader/compare/v1.1.11...v2.0.0) (2018-08-21)
|
145 |
|
146 |
|
147 | ### Code Refactoring
|
148 |
|
149 | * **defaults:** update to latest webpack-defaults ([#268](https://github.com/webpack-contrib/file-loader/issues/268)) ([687f422](https://github.com/webpack-contrib/file-loader/commit/687f422))
|
150 |
|
151 |
|
152 | ### BREAKING CHANGES
|
153 |
|
154 | * **defaults:** Enforces `engines` of `"node": ">=6.9.0 < 7.0.0 || >= 8.9.0"`
|
155 |
|
156 |
|
157 |
|
158 | <a name="1.1.11"></a>
|
159 | ## [1.1.11](https://github.com/webpack/file-loader/compare/v1.1.10...v1.1.11) (2018-03-01)
|
160 |
|
161 |
|
162 | ### Reverts
|
163 |
|
164 | * **index:** `context` takes precedence over `issuer.context` (`options.useRelativePath`) ([#260](https://github.com/webpack/file-loader/issues/260)) ([e73131f](https://github.com/webpack/file-loader/commit/e73131f))
|
165 |
|
166 |
|
167 |
|
168 | <a name="1.1.10"></a>
|
169 | ## [1.1.10](https://github.com/webpack/file-loader/compare/v1.1.9...v1.1.10) (2018-02-26)
|
170 |
|
171 |
|
172 | ### Bug Fixes
|
173 |
|
174 | * **package:** add `webpack >= 4` (`peerDependencies`) ([#255](https://github.com/webpack/file-loader/issues/255)) ([3a6a7a1](https://github.com/webpack/file-loader/commit/3a6a7a1))
|
175 |
|
176 |
|
177 |
|
178 | <a name="1.1.9"></a>
|
179 | ## [1.1.9](https://github.com/webpack/file-loader/compare/v1.1.8...v1.1.9) (2018-02-21)
|
180 |
|
181 |
|
182 | ### Bug Fixes
|
183 |
|
184 | * **index:** handle protocol URL's correctly (`options.publicPath`) ([#253](https://github.com/webpack/file-loader/issues/253)) ([54fa5a3](https://github.com/webpack/file-loader/commit/54fa5a3))
|
185 | * **index:** use `path.posix` for platform consistency ([#254](https://github.com/webpack/file-loader/issues/254)) ([2afe0af](https://github.com/webpack/file-loader/commit/2afe0af))
|
186 |
|
187 |
|
188 |
|
189 | <a name="1.1.8"></a>
|
190 | ## [1.1.8](https://github.com/webpack/file-loader/compare/v1.1.7...v1.1.8) (2018-02-20)
|
191 |
|
192 |
|
193 | ### Bug Fixes
|
194 |
|
195 | * **index:** `context` takes precedence over `issuer.context` (`options.useRelativePath`) ([3b071f5](https://github.com/webpack/file-loader/commit/3b071f5))
|
196 | * **index:** don't append `outputPath` to the original `url` (`options.outputPath` `{Function}`) ([4c1ccaa](https://github.com/webpack/file-loader/commit/4c1ccaa))
|
197 | * **index:** normalize and concat paths via `path.join()` ([26e47ca](https://github.com/webpack/file-loader/commit/26e47ca))
|
198 |
|
199 |
|
200 |
|
201 | <a name="1.1.7"></a>
|
202 | ## [1.1.7](https://github.com/webpack/file-loader/compare/v1.1.6...v1.1.7) (2018-02-19)
|
203 |
|
204 |
|
205 | ### Bug Fixes
|
206 |
|
207 | * **index:** don't concat `options.outputPath` and `options.publicPath` ([#246](https://github.com/webpack/file-loader/issues/246)) ([98bf052](https://github.com/webpack/file-loader/commit/98bf052))
|
208 |
|
209 |
|
210 |
|
211 | <a name="1.1.6"></a>
|
212 | ## [1.1.6](https://github.com/webpack/file-loader/compare/v1.1.5...v1.1.6) (2017-12-16)
|
213 |
|
214 |
|
215 | ### Bug Fixes
|
216 |
|
217 | * rootContext compatibility fix for legacy / v4 (#237) ([1e4b7cf](https://github.com/webpack/file-loader/commit/1e4b7cf)), closes [#237](https://github.com/webpack/file-loader/issues/237)
|
218 |
|
219 |
|
220 |
|
221 | <a name="1.1.5"></a>
|
222 | ## [1.1.5](https://github.com/webpack/file-loader/compare/v1.1.4...v1.1.5) (2017-10-05)
|
223 |
|
224 |
|
225 | ### Bug Fixes
|
226 |
|
227 | * **schema:** allow `name` to be a `{Function}` (`options.name`) ([#216](https://github.com/webpack/file-loader/issues/216)) ([fbfb160](https://github.com/webpack/file-loader/commit/fbfb160))
|
228 |
|
229 |
|
230 |
|
231 | <a name="1.1.4"></a>
|
232 | ## [1.1.4](https://github.com/webpack/file-loader/compare/v1.1.3...v1.1.4) (2017-09-30)
|
233 |
|
234 |
|
235 | ### Bug Fixes
|
236 |
|
237 | * **index:** revert to CJS exports ([#212](https://github.com/webpack/file-loader/issues/212)) ([f412b3e](https://github.com/webpack/file-loader/commit/f412b3e))
|
238 |
|
239 |
|
240 |
|
241 | <a name="1.1.3"></a>
|
242 | ## [1.1.3](https://github.com/webpack/file-loader/compare/v1.1.2...v1.1.3) (2017-09-30)
|
243 |
|
244 |
|
245 |
|
246 | <a name="1.1.2"></a>
|
247 | ## [1.1.2](https://github.com/webpack/file-loader/compare/v1.1.1...v1.1.2) (2017-09-30)
|
248 |
|
249 |
|
250 | ### Bug Fixes
|
251 |
|
252 | * **cjs:** export `raw` value ([#183](https://github.com/webpack/file-loader/issues/183)) ([daeff0e](https://github.com/webpack/file-loader/commit/daeff0e))
|
253 |
|
254 |
|
255 |
|
256 | <a name="1.1.1"></a>
|
257 | ## [1.1.1](https://github.com/webpack/file-loader/compare/v1.1.0...v1.1.1) (2017-09-30)
|
258 |
|
259 |
|
260 | ### Bug Fixes
|
261 |
|
262 | * **schema:** allow `additionalProperties` ([#207](https://github.com/webpack/file-loader/issues/207)) ([cf7c85a](https://github.com/webpack/file-loader/commit/cf7c85a))
|
263 |
|
264 |
|
265 |
|
266 | <a name="1.1.0"></a>
|
267 | # [1.1.0](https://github.com/webpack/file-loader/compare/v1.0.0...v1.1.0) (2017-09-29)
|
268 |
|
269 |
|
270 | ### Features
|
271 |
|
272 | * add `options` validation (`schema-utils`) ([#184](https://github.com/webpack/file-loader/issues/184)) ([696ca77](https://github.com/webpack/file-loader/commit/696ca77))
|
273 |
|
274 |
|
275 |
|
276 | <a name="1.0.0"></a>
|
277 | # [1.0.0](https://github.com/webpack/file-loader/compare/v1.0.0-rc.0...v1.0.0) (2017-07-26)
|
278 |
|
279 |
|
280 | ### Bug Fixes
|
281 |
|
282 | * remove `=` from default export (`SyntaxError`) ([#178](https://github.com/webpack/file-loader/issues/178)) ([3fe2d12](https://github.com/webpack/file-loader/commit/3fe2d12))
|
283 |
|
284 |
|
285 | ### Code Refactoring
|
286 |
|
287 | * Upgrade to defaults 1.3.0 ([#170](https://github.com/webpack-contrib/file-loader/pull/170)) ([632ed72](https://github.com/webpack/file-loader/commit/acd6c2f))
|
288 | * Apply webpack-defaults ([#167](https://github.com/webpack/file-loader/issues/167)) ([632ed72](https://github.com/webpack/file-loader/commit/632ed72))
|
289 |
|
290 |
|
291 | ### BREAKING CHANGES
|
292 |
|
293 | * Enforces Webpack standard NodeJS engines range.
|
294 | at the time of merge `>= 4.3 < 5.0.0 || >= 5.10`.
|
295 |
|
296 |
|
297 |
|
298 | <a name="1.0.0-rc.0"></a>
|
299 | # [1.0.0-rc.0](https://github.com/webpack/file-loader/compare/v1.0.0-beta.1...v1.0.0-rc.0) (2017-07-26)
|
300 |
|
301 |
|
302 | ### Bug Fixes
|
303 |
|
304 | * remove `=` from default export (`SyntaxError`) ([#178](https://github.com/webpack/file-loader/issues/178)) ([3fe2d12](https://github.com/webpack/file-loader/commit/3fe2d12))
|
305 |
|
306 |
|
307 |
|
308 | <a name="1.0.0-beta.1"></a>
|
309 | # [1.0.0-beta.1](https://github.com/webpack/file-loader/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2017-06-09)
|
310 |
|
311 | ### Code Refactoring
|
312 |
|
313 | * Upgrade to defaults 1.3.0 ([#170](https://github.com/webpack-contrib/file-loader/pull/170)) ([632ed72](https://github.com/webpack/file-loader/commit/acd6c2f))
|
314 |
|
315 |
|
316 | <a name="1.0.0-beta.0"></a>
|
317 | # [1.0.0-beta.0](https://github.com/webpack/file-loader/compare/v0.11.2...v1.0.0-beta.0) (2017-06-07)
|
318 |
|
319 |
|
320 | ### Code Refactoring
|
321 |
|
322 | * Apply webpack-defaults ([#167](https://github.com/webpack/file-loader/issues/167)) ([632ed72](https://github.com/webpack/file-loader/commit/632ed72))
|
323 |
|
324 |
|
325 | ### BREAKING CHANGES
|
326 |
|
327 | * Enforces Webpack standard NodeJS engines range.
|
328 | at the time of merge `>= 4.3 < 5.0.0 || >= 5.10`.
|
329 |
|
330 |
|
331 |
|
332 | <a name="0.11.2"></a>
|
333 | ## [0.11.2](https://github.com/webpack/file-loader/compare/v0.11.1...v0.11.2) (2017-06-05)
|
334 |
|
335 |
|
336 | ### Bug Fixes
|
337 |
|
338 | * **index:** allow to override publicPath with an empty string ([#145](https://github.com/webpack/file-loader/issues/145)) ([26ab81a](https://github.com/webpack/file-loader/commit/26ab81a))
|
339 | * init `publicPath` to undefined ([#159](https://github.com/webpack/file-loader/issues/159)) ([e4c0b2a](https://github.com/webpack/file-loader/commit/e4c0b2a))
|
340 |
|
341 |
|
342 |
|
343 | <a name="0.11.1"></a>
|
344 | ## [0.11.1](https://github.com/webpack/file-loader/compare/v0.11.0...v0.11.1) (2017-04-01)
|
345 |
|
346 |
|
347 | ### Bug Fixes
|
348 |
|
349 | * outputPath function overriden by useRelativePath ([#139](https://github.com/webpack/file-loader/issues/139)) ([80cdee2](https://github.com/webpack/file-loader/commit/80cdee2))
|
350 |
|
351 |
|
352 |
|
353 | <a name="0.11.0"></a>
|
354 | # [0.11.0](https://github.com/webpack/file-loader/compare/v0.10.1...v0.11.0) (2017-03-31)
|
355 |
|
356 |
|
357 | ### Features
|
358 |
|
359 | * Emit files with relative urls ([#135](https://github.com/webpack/file-loader/issues/135)) ([dbcd6cc](https://github.com/webpack/file-loader/commit/dbcd6cc))
|
360 |
|
361 |
|
362 |
|
363 | <a name="0.10.1"></a>
|
364 | ## [0.10.1](https://github.com/webpack/file-loader/compare/v0.10.0...v0.10.1) (2017-02-25)
|
365 |
|
366 |
|
367 | ### Bug Fixes
|
368 |
|
369 | * **getOptions:** deprecation warn in loaderUtils ([#129](https://github.com/webpack/file-loader/issues/129)) ([a8358a0](https://github.com/webpack/file-loader/commit/a8358a0))
|
370 |
|
371 |
|
372 |
|
373 | <a name="0.10.0"></a>
|
374 | # [0.10.0](https://github.com/webpack/file-loader/compare/v0.9.0...v0.10.0) (2017-01-28)
|
375 |
|
376 |
|
377 | ### Features
|
378 |
|
379 | * **resources:** specify custom public file name ([6833c70](https://github.com/webpack/file-loader/commit/6833c70))
|
380 |
|
381 |
|
382 |
|
383 | # Change Log
|
384 |
|
385 | 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.
|