Comparing version 2.1.2 to 3.0.0
{ | ||
"name": "minizlib", | ||
"version": "2.1.2", | ||
"version": "3.0.0", | ||
"description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.", | ||
"main": "index.js", | ||
"main": "./dist/commonjs/index.js", | ||
"dependencies": { | ||
"minipass": "^3.0.0", | ||
"yallist": "^4.0.0" | ||
"minipass": "^7.0.4", | ||
"rimraf": "^5.0.5" | ||
}, | ||
"scripts": { | ||
"test": "tap test/*.js --100 -J", | ||
"prepare": "tshy", | ||
"pretest": "npm run prepare", | ||
"test": "tap", | ||
"preversion": "npm test", | ||
"postversion": "npm publish", | ||
"postpublish": "git push origin --all; git push origin --tags" | ||
"prepublishOnly": "git push origin --follow-tags", | ||
"format": "prettier --write . --loglevel warn", | ||
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts" | ||
}, | ||
@@ -33,11 +37,46 @@ "repository": { | ||
"devDependencies": { | ||
"tap": "^14.6.9" | ||
"@types/node": "^20.11.29", | ||
"mkdirp": "^3.0.1", | ||
"tap": "^18.7.1", | ||
"tshy": "^1.12.0", | ||
"typedoc": "^0.25.12" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"constants.js" | ||
"dist" | ||
], | ||
"engines": { | ||
"node": ">= 8" | ||
"node": ">= 18" | ||
}, | ||
"tshy": { | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": "./src/index.ts" | ||
} | ||
}, | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"import": { | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/commonjs/index.d.ts", | ||
"default": "./dist/commonjs/index.js" | ||
} | ||
} | ||
}, | ||
"types": "./dist/commonjs/index.d.ts", | ||
"type": "module", | ||
"prettier": { | ||
"semi": false, | ||
"printWidth": 75, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"jsxSingleQuote": false, | ||
"bracketSameLine": true, | ||
"arrowParens": "avoid", | ||
"endOfLine": "lf" | ||
} | ||
} |
@@ -12,3 +12,3 @@ # minizlib | ||
## How does this differ from the streams in `require('zlib')`? | ||
## How does this differ from the streams in `'node:zlib'`? | ||
@@ -49,5 +49,7 @@ First, there are no convenience methods to compress or decompress a | ||
```js | ||
const zlib = require('minizlib') | ||
import { BrotliDecompress } from 'minizlib' | ||
// or: const BrotliDecompress = require('minizlib') | ||
const input = sourceOfCompressedData() | ||
const decode = new zlib.BrotliDecompress() | ||
const decode = new BrotliDecompress() | ||
const output = whereToWriteTheDecodedData() | ||
@@ -54,0 +56,0 @@ input.pipe(decode).pipe(output) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107964
21
1105
63
Yes
5
1
+ Addedrimraf@^5.0.5
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.3(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.0(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedrimraf@5.0.10(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
- Removedyallist@^4.0.0
- Removedminipass@3.3.6(transitive)
- Removedyallist@4.0.0(transitive)
Updatedminipass@^7.0.4