12 KiB
Executable file
12 KiB
Executable file
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
excludedPackageTest
option 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 function
errors by includingwebpack-sources@^3.0.0
as 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 function
errors from webpack 5.47.0 and later
[2.3.21] - 2021-08-20
Fixed
- Fix delegated modules giving errors about nonexistent
/package.json
file
[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.json
file
[2.3.15] - 2021-03-03
Fixed
- Fix remote modules giving errors about nonexistent
/package.json
file
[2.3.14] - 2021-02-19
Fixed
- Fix ignored modules giving errors about nonexistent
/package.json
file
[2.3.13] - 2021-02-12
Fixed
- Fix container entry modules giving errors about nonexistent
/package.json
file
[2.3.12] - 2021-02-11
Fixed
- Fix files processed by loaders not getting processed correctly
- Fix errors about
/package.json
when 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: true
not being honored by the plugin
[2.3.7] - 2020-12-24
Fixed
- Fix error when
perChunkOutput
is set tofalse
and webpack 4 is used:TypeError: Cannot read property 'tap' of undefined
[2.3.6] - 2020-12-24
Fixed
- Fix warning when
perChunkOutput
is 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
perChunkOutput
is set tofalse
:DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated
. This reintroduces the warningperChunkOutput
is 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
perChunkOutput
is 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 API
and[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]
inoutputFilename
whenperChunkOutput
is set tofalse
.
[2.2.0] - 2020-05-03
Added
- Added option
skipChildCompilers
to 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
name
field when searching for a package'spackage.json
file.
[2.1.2] - 2019-08-11
Fixed
- Fix
licenseTemplateDir
option not being able to find template files.
[2.1.1] - 2019-02-23
Fixed
- Handle missing license template file when
licenseTemplateDir
is 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-sources
to 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
license
field inpackage.json
[2.0.1] - 2018-09-23
Fixed
- Handle invalid filename in
SEE LICENSE IN
-style licenses inpackage.json
files.
[2.0.0] - 2018-09-23
Added
licenseInclusionTest
optionunacceptableLicenseTest
optionhandleUnacceptableLicense
optionhandleMissingLicenseText
optionlicenseTextOverrides
optionrenderLicenses
optionrenderBanner
optionchunkIncludeExcludeTest
optionadditionalChunkModules
optionadditionalModules
optionpreferredLicenseTypes
optionhandleLicenseAmbiguity
optionhandleMissingLicenseType
optionexcludedPackageTest
optionsilent
option
Changed
- No explicit configuration is necessary anymore. All license types will be included.
- There is no dependency on
ejs
anymore. Instead, render functions are used. - Packages are identified by traversing dictories upward until a
package.json
file is found. This should make package identificaton more reliable. - Use webpack's
inputFileSystem
instead offs
module. - In order to avoid issues with source maps, the plugin hook is done at a different phase of the webpack build.
- The
modulesDirectories
option 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-sources
dependency has moved from a peer dependency to a direct dependency.
Removed
suppressErrors
optionpattern
optionoutputTemplate
optionincludePackagesWithoutLicense
optionunacceptablePattern
optionabortOnUnacceptableLicense
optionbannerTemplate
optionincludedChunks
optionexcludedChunks
optionadditionalPackages
optionbuildRoot
option
Fixed
- No more interference with source maps
[1.5.0] - 2018-09-20
Added
- Support for absolute paths in
modulesDirectories
option
Fixed
- Support symlinked
node_modules
folder
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
peerDependencies
declaration 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
rootModule
in the build.
1.0.1 - 2017-09-14
Fixed
- Exception when stray file is in
node_modules
folder
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
LicenseWebpackPlugin
instead of default export - Rename
includeUndefined
option 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
pattern
option is not supplied
0.4.0 - 2016-11-23
Added
- Option to override license types
Fixed
- Support old
package.json
license 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