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