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