1
0
Fork 0
mirror of https://github.com/0x5eal/rbxts-pako.git synced 2025-04-14 08:55:36 +01:00

Removed support of Inflate & Deflate instance create without new

This commit is contained in:
Vitaly Puzrin 2020-11-07 16:08:10 +03:00
parent d1f036d2c2
commit 9c91d1b852
3 changed files with 8 additions and 6 deletions

View file

@ -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). 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 ### Fixed
- Fix tests in node.js v12+, #179. - Fix tests in node.js v12+, #179.
## [1.0.10] - 2019-02-28 ## [1.0.10] - 2019-02-28
### Fixed ### Fixed
- Fix minified version, #161. - Fix minified version, #161.
@ -139,6 +144,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- First release. - 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.10...1.0.11
[1.0.10]: https://github.com/nodeca/pako/compare/1.0.9...1.0.10 [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 [1.0.9]: https://github.com/nodeca/pako/compare/1.0.8...1.0.9

View file

@ -118,8 +118,6 @@ var Z_DEFLATED = 8;
* ``` * ```
**/ **/
function Deflate(options) { function Deflate(options) {
if (!(this instanceof Deflate)) return new Deflate(options);
this.options = utils.assign({ this.options = utils.assign({
level: Z_DEFAULT_COMPRESSION, level: Z_DEFAULT_COMPRESSION,
method: Z_DEFLATED, method: Z_DEFLATED,

View file

@ -91,8 +91,6 @@ var toString = Object.prototype.toString;
* ``` * ```
**/ **/
function Inflate(options) { function Inflate(options) {
if (!(this instanceof Inflate)) return new Inflate(options);
this.options = utils.assign({ this.options = utils.assign({
chunkSize: 16384, chunkSize: 16384,
windowBits: 0, windowBits: 0,