mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-04 10:50:59 +01:00
Removed support of Inflate
& Deflate
instance create without new
This commit is contained in:
parent
d1f036d2c2
commit
9c91d1b852
3 changed files with 8 additions and 6 deletions
10
CHANGELOG.md
10
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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue