Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v4.0.0...v4.1.0">4.1.0</a> (2020-08-10)

## Features

- pass license files as related assets for webpack@5 (7d3ae95)

## Bug Fixes

- compatibility with `10.13` version of `Node.js`

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.1.0...v4.0.0">4.0.0</a> (2020-08-04)

## ⚠ BREAKING CHANGES

- the `warningsFilter` option was removed without replacement,
- `terser` version is `5`,
- return value of the `minify` option was changed, only `code`/`map`/`extractedComments` are valid

## Features

- improved compatibility with webpack@5

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.8...v3.1.0">3.1.0</a> (2020-08-03)

## Features

- show minimized assets in stats for webpack@5 (#289) (d59eae2)

## Bug Fixes

- compatibility cache feature with webpack@5 (5d2bd29)
- skip double compression for child compilation (37cc813)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.7...v3.0.8">3.0.8</a> (2020-07-27)

## Bug Fixes

- compatibility with child compilations (9da4add)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.6...v3.0.7">3.0.7</a> (2020-07-16)

## Bug Fixes

- uglify additional assets (100e38e)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.5...v3.0.6">3.0.6</a> (2020-06-18)

## Bug Fixes

- do not crash on buffer assets (3c67023)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.4...v3.0.5">3.0.5</a> (2020-06-15)

## Bug Fixes

- multi-compiler crash (f6499af)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.3...v3.0.4">3.0.4</a> (2020-06-13)

## Chore

- update `p-limit` and `serialize-javascript` packages

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.1...v3.0.3">3.0.3</a> (2020-06-03)

## Bug Fixes

- compatibility with `>= 10.13` versions of Node.js
- security problem (#259) (522aa2c)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.1...v3.0.2">3.0.2</a> (2020-05-26)

## Bug Fixes

- compatibility with webpack@5 (#250) (d3ff61c)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.0...v3.0.1">3.0.1</a> (2020-05-06)

## Bug Fixes

- parallelism in multi compilation mode (0ee7ed2)
- remove redundant code for the `chunkFilter` option (#243) (7220734)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.6...v3.0.0">3.0.0</a> (2020-05-01)

## ⚠ BREAKING CHANGES

- minimum supported Node.js version is `10.13`
- the `chunkFilter` was removed, please use `test`/`include`/`exclude` options
- change arguments order for the `warningFilter` option from `Function<(warning, file, source) -> Boolean>` to `Function<(file, warning, source) -> Boolean>`
- when the `extractComments.filename` option is a function it pass only one argument and it is object with `filename`, `basename`, `query` and `hash` properties
- if the value from the `extractComments.filename` option conflicts with existing assets, an error will be thrown instead of a warning
- use the `optimizeAssets` hook for webpack@5

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.5...v2.3.6">2.3.6</a> (2020-04-25)

## Bug Fixes

- preserve `@license` comments starting with `//` (d3f0c81)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.4...v2.3.5">2.3.5</a> (2020-02-14)

## Bug Fixes

- do not break code with shebang (fac58cb)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.3...v2.3.4">2.3.4</a> (2020-01-30)

## Bug Fixes

- respect stdout and stderr of workers and do not create warnings (#215) (5708574)
- use webpack hash options rather than hard-code MD4 (#213) (330c1f6)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.2...v2.3.3">2.3.3</a> (2020-01-28)

## Bug Fixes

- license files now have .txt suffix by default (#210) (de02f7b)
- reduce memory usage (abfd950)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.1...v2.3.2">2.3.2</a> (2020-01-09)

## Bug Fixes

- show error message from jest-worker (#203) (3b28007)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.3.0...v2.3.1">2.3.1</a> (2019-12-17)

## Bug Fixes

- performance (#200) (d2acd75)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.2.3...v2.3.0">2.3.0</a> (2019-12-12)

## Features

- support webpack@5 cache (3649b3d)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.2.2...v2.2.3">2.2.3</a> (2019-12-11)

## SECURITY

- update `serialize-javascript` to `2.1.2` version.

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.2.1...v2.2.2">2.2.2</a> (2019-12-06)

## SECURITY

- update `serialize-javascript` to `2.1.1` version.

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.2.0...v2.2.1">2.2.1</a> (2019-10-22)

## Bug Fixes

- get rid deprecation warnings for webpack@5 (#181) (0e9b780)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.3...v2.2.0">2.2.0</a> (2019-10-22)

## Features

- map `webpack@5` options to `terser` options (#177) (f4c47aa)
- pass an asset path for the `warningsFilter` option (#176) (9a0a575)
- propagate an error stacktrace from `terser` (#179) (a11e66b)
- enable the `sourceMap` option when the `SourceMapDevToolPlugin` plugin used (non cheap) (#178) (d01c1b5)

## Bug Fixes

- get rid deprecation warnings for `webpack@5` (#180) (504ea8b)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.2...v2.1.3">2.1.3</a> (2019-10-10)

## Bug Fixes

- invalidate cache when a file name was changed (#171) (7e1d370)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.1...v2.1.2">2.1.2</a> (2019-09-28)

## Bug Fixes

- regexp for `some` comments (#168) (4c4b1f1)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.0...v2.1.1">2.1.1</a> (2019-09-27)

## Bug Fixes

- logic for extracting and preserving comments (#166) (6bdee64)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.0.1...v2.1.0">2.1.0</a> (2019-09-16)

## Bug Fixes

- correct interpretation url for extracted comment file (#157) (aba8ba7)

## Features

- emit warning when comment file conlict with an existing asset (#156) (2b4d2a4)
- improve naming of extracted file with comments (#154) (5fe3337)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.0.0...v2.0.1">2.0.1</a> (2019-09-06)

## Bug Fixes

- reduce memory usage (#145) (815e533)
- revert do not run parallel mode when you have only one file (#146) (6613a97)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.4.1...v2.0.0">2.0.0</a> (2019-09-05)

## ⚠ BREAKING CHANGES

- minimum require Node.js version is `8.9.0`
- the `extractComments` option is `true` by default
- the `cache` option is `true` by default
- the `parallel` option is `true` by default
- using the `extractComments.condition` option with `true` value extract only `some` comments
- the `sourceMap` option now defaults to depending on the `devtool` Webpack option

## Bug Fixes

- do not run parallel mode when you have only one file (#134) (8b88b39)
- make `extractComments` API more consistent (#129) (37d2df0)
- parallel on wsl (#138) (0537591)

## Features

- enable the cache option by default (#132) (960d249)
- enable the extractComments option by default (ad2471c)
- enable the parallel option by default (#131) (7b342af)
- respect `devtool` values for source map generation (#140) (dd37ca1)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.4.0...v1.4.1">1.4.1</a> (2019-07-31)

## Bug Fixes

- removed unnecessary dependency (#111) (bc19b72)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.3.0...v1.4.0">1.4.0</a> (2019-07-31)

## Features

- generate higher quality SourceMaps (#109) (9d777f0)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.4...v1.3.0">1.3.0</a> (2019-05-24)

## Features

- update terser to 4 version (#97) (15d1595)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.3...v1.2.4">1.2.4</a> (2019-05-15)

## Bug Fixes

- disable parallel on WSL due bugs (#90) (d9533dd)
- fallback for cache directory (#86) (3cdd2ed)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.2...v1.2.3">1.2.3</a> (2019-02-25)

## Bug Fixes

- invalidate cache after changing node version (675edfd)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.1...v1.2.2">1.2.2</a> (2019-02-04)

## Bug Fixes

- cannot read property 'minify' of undefined (#69) (0593d7c)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.0...v1.2.1">1.2.1</a> (2018-12-27)

## Bug Fixes

- don't crash when no extracted comments (#49) (efad586)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.1.0...v1.2.0">1.2.0</a> (2018-12-22)

### Bug Fixes

- `chunks` is a `Set` in webpack@5 (#19) (df8c425)
- catch `work-farm` errors (#35) (2bdcd38)
- dedupe extracted comments (#40) (7f4a159)
- more consistent cache (#43) (36f5f3c)
- regenerate `contenthash` when assets was uglified (#44) (7e6f8b1)

### Features

- `chunkFilter` option for filtering chunks (#38) (7ffe57c)
- uglify `mjs` by default (#39) (1644620)

# <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.0.1...v1.1.0">1.1.0</a> (2018-09-14)

### Bug Fixes

- extract comment conditions is case insensitivity (19e1e43)

### Features

- full coverage schema options validation (#8) (68e531e)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.0.1...v1.0.2">1.0.2</a> (2018-08-16)

### Internal

- migrate from `@webpack-contrib/schema-utils` to `schema-utils` (a5432da)

## <a href="https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.0.0...v1.0.1">1.0.1</a> (2018-08-15)

### Bug Fixes

- `cpus` length in a chroot environment (`os.cpus()`) (#4) (9375646)

# 1.0.0 (2018-08-02)

Initial publish release

# Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.