diff --git a/CHANGELOG.md b/CHANGELOG.md index a861326..ae5c80d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.0.11] - 2020-01-29 +## [2.0.0] - WIP +### Changed +- Removed support of `Inflate` & `Deflate` instance create without `new`. +- Upgrade build tools to modern ones. + +## [1.0.11] - 2020-01-29 ### Fixed - Fix tests in node.js v12+, #179. -## [1.0.10] - 2019-02-28 +## [1.0.10] - 2019-02-28 ### Fixed - Fix minified version, #161. @@ -139,6 +144,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - First release. +[2.0.0]: https://github.com/nodeca/pako/compare/1.0.11...2.0.0 [1.0.10]: https://github.com/nodeca/pako/compare/1.0.10...1.0.11 [1.0.10]: https://github.com/nodeca/pako/compare/1.0.9...1.0.10 [1.0.9]: https://github.com/nodeca/pako/compare/1.0.8...1.0.9 diff --git a/lib/deflate.js b/lib/deflate.js index 07f437f..472eaa4 100644 --- a/lib/deflate.js +++ b/lib/deflate.js @@ -118,8 +118,6 @@ var Z_DEFLATED = 8; * ``` **/ function Deflate(options) { - if (!(this instanceof Deflate)) return new Deflate(options); - this.options = utils.assign({ level: Z_DEFAULT_COMPRESSION, method: Z_DEFLATED, diff --git a/lib/inflate.js b/lib/inflate.js index 21bbc5b..3549a2f 100644 --- a/lib/inflate.js +++ b/lib/inflate.js @@ -91,8 +91,6 @@ var toString = Object.prototype.toString; * ``` **/ function Inflate(options) { - if (!(this instanceof Inflate)) return new Inflate(options); - this.options = utils.assign({ chunkSize: 16384, windowBits: 0,