UNPKG

12.2 kBMarkdownView Raw
1# Changelog
2All notable changes to this project will be documented in this file.
3
4The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7## [4.0.0] - 2021-11-11
8### Fixed
9- Fix `TypeError: item.node is not a function` errors by including `webpack-sources@^3.0.0` as direct dependency.
10
11### Removed
12- Remove support for webpack versions less than 5. Only webpack 5 is supported as of this version.
13
14
15## [3.0.0] - 2021-10-02
16### Fixed
17- Fix `TypeError: item.node is not a function` errors from webpack 5.47.0 and later
18
19## [2.3.21] - 2021-08-20
20### Fixed
21- Fix delegated modules giving errors about nonexistent `/package.json` file
22
23## [2.3.20] - 2021-07-12
24### Fixed
25- Fixed an issue where dependent and cached modules' licenses were not being added
26
27## [2.3.19] - 2021-05-31
28### Changed
29- Optimized calls to compilation.getStats() by filtering out unnecessary stats information
30
31### Fixed
32- Fixed banners not working on webpack v5. Check the [documentation](DOCUMENTATION.md) for important configuration changes required for banners to work on webpack v5.
33
34## [2.3.18] - 2021-05-07
35### Changed
36- Register webpack as optional peer dependency
37
38## [2.3.17] - 2021-04-10
39### Changed
40- Performance improvements in large repos
41
42## [2.3.16] - 2021-03-26
43### Fixed
44- Fix data URI modules giving errors about nonexistent `/package.json` file
45
46## [2.3.15] - 2021-03-03
47### Fixed
48- Fix remote modules giving errors about nonexistent `/package.json` file
49
50## [2.3.14] - 2021-02-19
51### Fixed
52- Fix ignored modules giving errors about nonexistent `/package.json` file
53
54## [2.3.13] - 2021-02-12
55### Fixed
56- Fix container entry modules giving errors about nonexistent `/package.json` file
57
58## [2.3.12] - 2021-02-11
59### Fixed
60- Fix files processed by loaders not getting processed correctly
61- Fix errors about `/package.json` when using webpack module federation
62
63## [2.3.11] - 2021-01-11
64### Fixed
65- Fix performance regression by caching webpack stats object
66
67## [2.3.10] - 2021-01-07
68### Fixed
69- Remove external dependencies (which can't be resolved during build time) from processing
70
71## [2.3.9] - 2020-12-25
72### Fixed
73- Fix webpack license output being missing when using webpack v5
74
75## [2.3.8] - 2020-12-24
76### Fixed
77- Fix missing ES modules from output when using webpack v5
78- Fix explicit setting of `perChunkOutput: true` not being honored by the plugin
79
80## [2.3.7] - 2020-12-24
81### Fixed
82- Fix error when `perChunkOutput` is set to `false` and webpack 4 is used: `TypeError: Cannot read property 'tap' of undefined`
83
84## [2.3.6] - 2020-12-24
85### Fixed
86- Fix warning when `perChunkOutput` is set to `false`: `WARNING in Conflict: Multiple assets emit different content to the same filename <filename>`
87
88## [2.3.5] - 2020-12-24
89### Fixed
90- Fix warning when `perChunkOutput` is set to `false`: `DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated`. This reintroduces the warning `perChunkOutput` is set to `false`: `WARNING in Conflict: Multiple assets emit different content to the same filename <filename>`.
91
92## [2.3.4] - 2020-12-23
93### Fixed
94- Fix warning when `perChunkOutput` is set to `false`: `WARNING in Conflict: Multiple assets emit different content to the same filename <filename>`
95
96
97## [2.3.3] - 2020-12-23
98### Fixed
99- Fix deprecation messages in webpack 5: `[DEP_WEBPACK_CHUNK_MODULES_ITERABLE] DeprecationWarning: Chunk.modulesIterable: Use new ChunkGraph API` and `[DEP_WEBPACK_CHUNK_ENTRY_MODULE] DeprecationWarning: Chunk.entryModule: Use new ChunkGraph API`
100
101## [2.3.2] - 2020-12-07
102### Fixed
103- Fix directory permission of dist folder by publishing from Linux instead of Windows
104
105## [2.3.1] - 2020-10-24
106### Fixed
107- Fix deprecation message in webpack 5: `[DEP_WEBPACK_COMPILATION_OPTIMIZE_CHUNK_ASSETS] DeprecationWarning: optimizeChunkAssets is deprecated`
108
109## [2.3.0] - 2020-07-12
110### Added
111- Allow variables like `[hash]` in `outputFilename` when `perChunkOutput` is set to `false`.
112
113## [2.2.0] - 2020-05-03
114### Added
115- Added option `skipChildCompilers` to skip applying the plugin to child compilers.
116
117## [2.1.4] - 2020-03-13
118### Fixed
119- Allow for multiple included/excluded chunks
120
121## [2.1.3] - 2019-10-13
122### Fixed
123- Ignore package.json files that don't have a `name` field when searching for a package's `package.json` file.
124
125## [2.1.2] - 2019-08-11
126### Fixed
127- Fix `licenseTemplateDir` option not being able to find template files.
128
129## [2.1.1] - 2019-02-23
130### Fixed
131- Handle missing license template file when `licenseTemplateDir` is used
132
133## [2.1.0] - 2019-01-12
134### Changed
135- License report is now sorted by module name.
136
137## [2.0.4] - 2018-11-30
138### Fixed
139- Switch `@types/webpack-sources` to a regular dependency instead of a devDependency.
140
141## [2.0.3] - 2018-11-04
142### Fixed
143- Handle auto exclusion of `license`, if the guessed name is a folder instead of file.
144- Ignore directories found in `SEE LICENSE IN`-style licenses.
145
146## [2.0.2] - 2018-10-09
147### Fixed
148- Handle object-style `license` field in `package.json`
149
150## [2.0.1] - 2018-09-23
151### Fixed
152- Handle invalid filename in `SEE LICENSE IN`-style licenses in `package.json` files.
153
154## [2.0.0] - 2018-09-23
155### Added
156- `licenseInclusionTest` option
157- `unacceptableLicenseTest` option
158- `handleUnacceptableLicense` option
159- `handleMissingLicenseText` option
160- `licenseTextOverrides` option
161- `renderLicenses` option
162- `renderBanner` option
163- `chunkIncludeExcludeTest` option
164- `additionalChunkModules` option
165- `additionalModules` option
166- `preferredLicenseTypes` option
167- `handleLicenseAmbiguity` option
168- `handleMissingLicenseType` option
169- `excludedPackageTest` option
170- `silent` option
171
172### Changed
173- No explicit configuration is necessary anymore. All license types will be included.
174- There is no dependency on `ejs` anymore. Instead, render functions are used.
175- Packages are identified by traversing dictories upward until a `package.json` file is found.
176 This should make package identificaton more reliable.
177- Use webpack's `inputFileSystem` instead of `fs` module.
178- In order to avoid issues with source maps, the plugin hook is done at a different phase of the webpack build.
179- The `modulesDirectories` option requires full paths and is now used to restrict which directories a module may be detected from.
180- License filename detection is now done by regular expression which means more license files should be picked up now.
181- When license text cannot be found, the plugin will no longer write the license type as the license text. Instead it will omit printing the license text. (The license type will still be written though.)
182- The `webpack-sources` dependency has moved from a peer dependency to a direct dependency.
183
184### Removed
185- `suppressErrors` option
186- `pattern` option
187- `outputTemplate` option
188- `includePackagesWithoutLicense` option
189- `unacceptablePattern` option
190- `abortOnUnacceptableLicense` option
191- `bannerTemplate` option
192- `includedChunks` option
193- `excludedChunks` option
194- `additionalPackages` option
195- `buildRoot` option
196
197### Fixed
198- No more interference with source maps
199
200## [1.5.0] - 2018-09-20
201### Added
202- Support for absolute paths in `modulesDirectories` option
203
204### Fixed
205- Support symlinked `node_modules` folder
206
207## [1.4.0] - 2018-08-05
208### Changed
209- Support license filenames with British spelling: "licence"
210
211## [1.3.1] - 2018-03-22
212### Fixed
213- Add documentation for license info in banner template
214
215## [1.3.0] - 2018-03-10
216### Added
217- Support adding license info to banner template
218
219## [1.2.3] - 2018-03-04
220### Fixed
221- Resolved deprecation warning from webpack
222
223## [1.2.2] - 2018-03-04
224### Fixed
225- Empty license output on webpack versions prior to v4
226
227## [1.2.1] - 2018-03-04
228### Fixed
229- Use async webpack compiler hook
230
231## [1.2.0] - 2018-03-04
232### Added
233- Support multiple modules directories
234
235## [1.1.2] - 2018-02-24
236### Fixed
237- Search file dependencies of webpack build
238
239## [1.1.1] - 2017-10-20
240### Fixed
241- Fixed `peerDependencies` declaration in `package.json`
242
243## [1.1.0] - 2017-10-04
244### Changed
245- Normalize line endings in license files
246
247## [1.0.2] - 2017-09-30
248### Fixed
249- Scan files referenced by `rootModule` in the build.
250
251## [1.0.1] - 2017-09-14
252### Fixed
253- Exception when stray file is in `node_modules` folder
254
255## [1.0.0] - 2017-08-12
256### Added
257- Option to output files on a per-chunk basis
258- Option to add banner to chunks
259- Option to render license information via ejs template
260
261### Changed
262- Use explicit export of `LicenseWebpackPlugin` instead of default export
263- Rename `includeUndefined` option to `includePackagesWithoutLicense`
264
265### Removed
266- Option to add verison number to output
267- Option to output license text
268- Option to output package url
269- Filename option
270
271## [0.6.0] - 2017-08-04
272### Added
273- Option to show/hide version number of packages
274
275## [0.5.1] - 2017-07-05
276### Fixed
277- Handle webpack contexts which are inside `node_modules`
278
279## [0.5.0] - 2017-04-08
280### Added
281- Option to detect and abort build when unacceptable licenses are found
282
283## [0.4.3] - 2017-03-12
284### Fixed
285- Handle multiple @ signs in file paths
286
287## [0.4.2] - 2017-01-19
288### Fixed
289- Create output directory if it does not exist
290
291## [0.4.1] - 2016-12-18
292### Fixed
293- Print error message properly when `pattern` option is not supplied
294
295## [0.4.0] - 2016-11-23
296### Added
297- Option to override license types
298
299### Fixed
300- Support old `package.json` license structure
301- Tests work on Windows
302
303## [0.3.0] - 2016-10-22
304### Added
305- Option to suppress error messages
306
307## [0.2.1] - 2016-10-22
308### Fixed
309- Ignore files outside of `node_modules`
310
311## [0.2.0] - 2016-09-24
312### Added
313- Option to output url of a package
314- Option to include packages which don't hava license
315- Option to output license text of a package
316
317## [0.1.4] - 2016-07-04
318Refactoring release, no changes to functionality / API
319
320## [0.1.3] - 2016-07-04
321Refactoring release, no changes to functionality / API
322
323## [0.1.2] - 2016-07-03
324### Fixed
325- Handle scoped packages properly
326
327## [0.1.1] - 2016-07-02
328### Added
329- Initial release
330
331[0.1.1]: https://github.com/xz64/license-webpack-plugin/tree/v0.1.1
332[0.1.2]: https://github.com/xz64/license-webpack-plugin/compare/v0.1.1...v0.1.2
333[0.1.3]: https://github.com/xz64/license-webpack-plugin/compare/v0.1.2...v0.1.3
334[0.1.4]: https://github.com/xz64/license-webpack-plugin/compare/v0.1.3...v0.1.4
335[0.2.0]: https://github.com/xz64/license-webpack-plugin/compare/v0.1.4...v0.2.0
336[0.2.1]: https://github.com/xz64/license-webpack-plugin/compare/v0.2.0...v0.2.1
337[0.3.0]: https://github.com/xz64/license-webpack-plugin/compare/v0.2.1...v0.3.0
338[0.4.0]: https://github.com/xz64/license-webpack-plugin/compare/v0.3.0...v0.4.0
339[0.4.1]: https://github.com/xz64/license-webpack-plugin/compare/v0.4.0...v0.4.1
340[0.4.2]: https://github.com/xz64/license-webpack-plugin/compare/v0.4.1...v0.4.2
341[0.4.3]: https://github.com/xz64/license-webpack-plugin/compare/v0.4.2...v0.4.3
342[0.5.0]: https://github.com/xz64/license-webpack-plugin/compare/v0.4.3...v0.5.0
343[0.5.1]: https://github.com/xz64/license-webpack-plugin/compare/v0.5.0...v0.5.1
344[0.6.0]: https://github.com/xz64/license-webpack-plugin/compare/v0.5.1...v0.6.0
345[1.0.0]: https://github.com/xz64/license-webpack-plugin/compare/v0.6.0...v1.0.0
346[1.0.1]: https://github.com/xz64/license-webpack-plugin/compare/v1.0.0...v1.0.1
347[1.0.2]: https://github.com/xz64/license-webpack-plugin/compare/v1.0.1...v1.0.2
348[1.1.0]: https://github.com/xz64/license-webpack-plugin/compare/v1.0.2...v1.1.0
349[1.1.1]: https://github.com/xz64/license-webpack-plugin/compare/v1.1.0...v1.1.1
350[1.1.2]: https://github.com/xz64/license-webpack-plugin/compare/v1.1.1...v1.1.2
351[1.2.0]: https://github.com/xz64/license-webpack-plugin/compare/v1.1.2...v1.2.0
352[1.2.1]: https://github.com/xz64/license-webpack-plugin/compare/v1.2.0...v1.2.1
353[1.2.2]: https://github.com/xz64/license-webpack-plugin/compare/v1.2.1...v1.2.2
354[1.2.3]: https://github.com/xz64/license-webpack-plugin/compare/v1.2.2...v1.2.3
355[1.3.0]: https://github.com/xz64/license-webpack-plugin/compare/v1.2.3...v1.3.0
356[1.3.1]: https://github.com/xz64/license-webpack-plugin/compare/v1.3.0...v1.3.1
357[1.4.0]: https://github.com/xz64/license-webpack-plugin/compare/v1.3.1...v1.4.0