diff --git a/CHANGELOG.md b/CHANGELOG.md index 493c4e0..d3fded5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ 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. + +## [1.1.3](https://github.com/webpack-contrib/compression-webpack-plugin/compare/v1.1.2...v1.1.3) (2017-12-22) + + +### Bug Fixes + +* `cache` behaviour ([#91](https://github.com/webpack-contrib/compression-webpack-plugin/issues/91)) ([9791044](https://github.com/webpack-contrib/compression-webpack-plugin/commit/9791044)) + + + ## [1.1.2](https://github.com/webpack-contrib/compression-webpack-plugin/compare/v1.1.1...v1.1.2) (2017-12-14) diff --git a/package-lock.json b/package-lock.json index e88595e..780b269 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "compression-webpack-plugin", - "version": "1.1.2", + "version": "1.1.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index df7cfcc..ce274f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "compression-webpack-plugin", - "version": "1.1.2", + "version": "1.1.3", "author": "Tobias Koppers @sokra", "description": "Prepare compressed versions of assets to serve them with Content-Encoding", "main": "dist/cjs.js", @@ -28,7 +28,7 @@ "webpack-defaults": "webpack-defaults" }, "dependencies": { - "async": "2.4.1", + "async": "^2.4.1", "cacache": "^10.0.1", "find-cache-dir": "^1.0.0", "serialize-javascript": "^1.4.0", diff --git a/src/index.js b/src/index.js index 30dacff..d7c8024 100644 --- a/src/index.js +++ b/src/index.js @@ -106,7 +106,7 @@ class CompressionPlugin { .resolve() .then(() => this.compress(content)) .then( - data => cacache.put(cacheDir, cacheKey, data.toString()) + data => cacache.put(cacheDir, cacheKey, data) .then(() => data), ), );