Skip to content

Commit 1627c6e

Browse files
chore(release): 2.0.0
1 parent 0215526 commit 1627c6e

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
<a name="2.0.0"></a>
6+
## [2.0.0](https://github.com/webpack-contrib/compression-webpack-plugin/compare/v1.1.12...v2.0.0) (2018-09-04)
7+
8+
### Features
9+
10+
* `filename` option now accept `{String}` value
11+
* validation schema for plugin options
12+
13+
### BREAKING CHANGES
14+
15+
* enforces `peerDependencies` of `"webpack": "^4.3.0"`
16+
* enforces `engines` of `"node": ">= 6.9.0 <7.0.0 || >= 8.9.0`
17+
* compressed options (`options.level`, `options.flush`, `options.dictionary` and etc) grouped into `compressionOptions` option
18+
* `asset` option was removed (use `filename` option instead)
19+
* default value of `filename` option is now `[path].gz[query]`
20+
21+
22+
523
<a name="1.1.12"></a>
624
## [1.1.12](https://github.com/webpack-contrib/compression-webpack-plugin/compare/v1.1.11...v1.1.12) (2018-08-29)
725

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Then add the plugin to your `webpack` config. For example:
3535
```js
3636
module.exports = {
3737
plugins: [
38-
new CompressionPlugin(...options)
38+
new CompressionPlugin()
3939
]
4040
}
4141
```
@@ -247,7 +247,7 @@ new CompressionPlugin({
247247

248248
### Using Zopfli
249249

250-
Prepare compressed versions of assets with `zopfli` is a compression library.
250+
Prepare compressed versions of assets using `zopfli` library.
251251

252252
> ℹ️ `@gfx/zopfli` require minimum `8` version of `node`.
253253

0 commit comments

Comments
 (0)