12 KiB
12 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[4.0.2] - 2022-02-10
Fixed
- Fix regression when using dynamic imports
- Fix regression of
excludedPackageTestoption not being respected
[4.0.1] - 2022-01-27
Changed
- Performance improvement: use resolve data already present in most modules
- Performance improvement: use throwIfNoEntry option on filesystem operations to improve performance
[4.0.0] - 2021-11-11
Fixed
- Fix
TypeError: item.node is not a functionerrors by includingwebpack-sources@^3.0.0as direct dependency.
Removed
- Remove support for webpack versions less than 5. Only webpack 5 is supported as of this version.
[3.0.0] - 2021-10-02
Fixed
- Fix
TypeError: item.node is not a functionerrors from webpack 5.47.0 and later
[2.3.21] - 2021-08-20
Fixed
- Fix delegated modules giving errors about nonexistent
/package.jsonfile
[2.3.20] - 2021-07-12
Fixed
- Fixed an issue where dependent and cached modules' licenses were not being added
[2.3.19] - 2021-05-31
Changed
- Optimized calls to compilation.getStats() by filtering out unnecessary stats information
Fixed
- Fixed banners not working on webpack v5. Check the documentation for important configuration changes required for banners to work on webpack v5.
[2.3.18] - 2021-05-07
Changed
- Register webpack as optional peer dependency
[2.3.17] - 2021-04-10
Changed
- Performance improvements in large repos
[2.3.16] - 2021-03-26
Fixed
- Fix data URI modules giving errors about nonexistent
/package.jsonfile
[2.3.15] - 2021-03-03
Fixed
- Fix remote modules giving errors about nonexistent
/package.jsonfile
[2.3.14] - 2021-02-19
Fixed
- Fix ignored modules giving errors about nonexistent
/package.jsonfile
[2.3.13] - 2021-02-12
Fixed
- Fix container entry modules giving errors about nonexistent
/package.jsonfile
[2.3.12] - 2021-02-11
Fixed
- Fix files processed by loaders not getting processed correctly
- Fix errors about
/package.jsonwhen using webpack module federation
[2.3.11] - 2021-01-11
Fixed
- Fix performance regression by caching webpack stats object
[2.3.10] - 2021-01-07
Fixed
- Remove external dependencies (which can't be resolved during build time) from processing
[2.3.9] - 2020-12-25
Fixed
- Fix webpack license output being missing when using webpack v5
[2.3.8] - 2020-12-24
Fixed
- Fix missing ES modules from output when using webpack v5
- Fix explicit setting of
perChunkOutput: truenot being honored by the plugin
[2.3.7] - 2020-12-24
Fixed
- Fix error when
perChunkOutputis set tofalseand webpack 4 is used:TypeError: Cannot read property 'tap' of undefined
[2.3.6] - 2020-12-24
Fixed
- Fix warning when
perChunkOutputis set tofalse:WARNING in Conflict: Multiple assets emit different content to the same filename <filename>
[2.3.5] - 2020-12-24
Fixed
- Fix warning when
perChunkOutputis set tofalse:DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated. This reintroduces the warningperChunkOutputis set tofalse:WARNING in Conflict: Multiple assets emit different content to the same filename <filename>.
[2.3.4] - 2020-12-23
Fixed
- Fix warning when
perChunkOutputis set tofalse:WARNING in Conflict: Multiple assets emit different content to the same filename <filename>
[2.3.3] - 2020-12-23
Fixed
- Fix deprecation messages in webpack 5:
[DEP_WEBPACK_CHUNK_MODULES_ITERABLE] DeprecationWarning: Chunk.modulesIterable: Use new ChunkGraph APIand[DEP_WEBPACK_CHUNK_ENTRY_MODULE] DeprecationWarning: Chunk.entryModule: Use new ChunkGraph API
[2.3.2] - 2020-12-07
Fixed
- Fix directory permission of dist folder by publishing from Linux instead of Windows
[2.3.1] - 2020-10-24
Fixed
- Fix deprecation message in webpack 5:
[DEP_WEBPACK_COMPILATION_OPTIMIZE_CHUNK_ASSETS] DeprecationWarning: optimizeChunkAssets is deprecated
[2.3.0] - 2020-07-12
Added
- Allow variables like
[hash]inoutputFilenamewhenperChunkOutputis set tofalse.
[2.2.0] - 2020-05-03
Added
- Added option
skipChildCompilersto skip applying the plugin to child compilers.
[2.1.4] - 2020-03-13
Fixed
- Allow for multiple included/excluded chunks
[2.1.3] - 2019-10-13
Fixed
- Ignore package.json files that don't have a
namefield when searching for a package'spackage.jsonfile.
[2.1.2] - 2019-08-11
Fixed
- Fix
licenseTemplateDiroption not being able to find template files.
[2.1.1] - 2019-02-23
Fixed
- Handle missing license template file when
licenseTemplateDiris used
[2.1.0] - 2019-01-12
Changed
- License report is now sorted by module name.
[2.0.4] - 2018-11-30
Fixed
- Switch
@types/webpack-sourcesto a regular dependency instead of a devDependency.
[2.0.3] - 2018-11-04
Fixed
- Handle auto exclusion of
license, if the guessed name is a folder instead of file. - Ignore directories found in
SEE LICENSE IN-style licenses.
[2.0.2] - 2018-10-09
Fixed
- Handle object-style
licensefield inpackage.json
[2.0.1] - 2018-09-23
Fixed
- Handle invalid filename in
SEE LICENSE IN-style licenses inpackage.jsonfiles.
[2.0.0] - 2018-09-23
Added
licenseInclusionTestoptionunacceptableLicenseTestoptionhandleUnacceptableLicenseoptionhandleMissingLicenseTextoptionlicenseTextOverridesoptionrenderLicensesoptionrenderBanneroptionchunkIncludeExcludeTestoptionadditionalChunkModulesoptionadditionalModulesoptionpreferredLicenseTypesoptionhandleLicenseAmbiguityoptionhandleMissingLicenseTypeoptionexcludedPackageTestoptionsilentoption
Changed
- No explicit configuration is necessary anymore. All license types will be included.
- There is no dependency on
ejsanymore. Instead, render functions are used. - Packages are identified by traversing dictories upward until a
package.jsonfile is found. This should make package identificaton more reliable. - Use webpack's
inputFileSysteminstead offsmodule. - In order to avoid issues with source maps, the plugin hook is done at a different phase of the webpack build.
- The
modulesDirectoriesoption requires full paths and is now used to restrict which directories a module may be detected from. - License filename detection is now done by regular expression which means more license files should be picked up now.
- 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.)
- The
webpack-sourcesdependency has moved from a peer dependency to a direct dependency.
Removed
suppressErrorsoptionpatternoptionoutputTemplateoptionincludePackagesWithoutLicenseoptionunacceptablePatternoptionabortOnUnacceptableLicenseoptionbannerTemplateoptionincludedChunksoptionexcludedChunksoptionadditionalPackagesoptionbuildRootoption
Fixed
- No more interference with source maps
[1.5.0] - 2018-09-20
Added
- Support for absolute paths in
modulesDirectoriesoption
Fixed
- Support symlinked
node_modulesfolder
1.4.0 - 2018-08-05
Changed
- Support license filenames with British spelling: "licence"
1.3.1 - 2018-03-22
Fixed
- Add documentation for license info in banner template
1.3.0 - 2018-03-10
Added
- Support adding license info to banner template
1.2.3 - 2018-03-04
Fixed
- Resolved deprecation warning from webpack
1.2.2 - 2018-03-04
Fixed
- Empty license output on webpack versions prior to v4
1.2.1 - 2018-03-04
Fixed
- Use async webpack compiler hook
1.2.0 - 2018-03-04
Added
- Support multiple modules directories
1.1.2 - 2018-02-24
Fixed
- Search file dependencies of webpack build
1.1.1 - 2017-10-20
Fixed
- Fixed
peerDependenciesdeclaration inpackage.json
1.1.0 - 2017-10-04
Changed
- Normalize line endings in license files
1.0.2 - 2017-09-30
Fixed
- Scan files referenced by
rootModulein the build.
1.0.1 - 2017-09-14
Fixed
- Exception when stray file is in
node_modulesfolder
1.0.0 - 2017-08-12
Added
- Option to output files on a per-chunk basis
- Option to add banner to chunks
- Option to render license information via ejs template
Changed
- Use explicit export of
LicenseWebpackPlugininstead of default export - Rename
includeUndefinedoption toincludePackagesWithoutLicense
Removed
- Option to add verison number to output
- Option to output license text
- Option to output package url
- Filename option
0.6.0 - 2017-08-04
Added
- Option to show/hide version number of packages
0.5.1 - 2017-07-05
Fixed
- Handle webpack contexts which are inside
node_modules
0.5.0 - 2017-04-08
Added
- Option to detect and abort build when unacceptable licenses are found
0.4.3 - 2017-03-12
Fixed
- Handle multiple @ signs in file paths
0.4.2 - 2017-01-19
Fixed
- Create output directory if it does not exist
0.4.1 - 2016-12-18
Fixed
- Print error message properly when
patternoption is not supplied
0.4.0 - 2016-11-23
Added
- Option to override license types
Fixed
- Support old
package.jsonlicense structure - Tests work on Windows
0.3.0 - 2016-10-22
Added
- Option to suppress error messages
0.2.1 - 2016-10-22
Fixed
- Ignore files outside of
node_modules
0.2.0 - 2016-09-24
Added
- Option to output url of a package
- Option to include packages which don't hava license
- Option to output license text of a package
0.1.4 - 2016-07-04
Refactoring release, no changes to functionality / API
0.1.3 - 2016-07-04
Refactoring release, no changes to functionality / API
0.1.2 - 2016-07-03
Fixed
- Handle scoped packages properly
0.1.1 - 2016-07-02
Added
- Initial release