diff --git a/README.md b/README.md index f25f535..cd5f743 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,8 @@ compressed. ## How to use +**`itty-compression` directly depends on Node's zlib via importing `node:zlib`.** + Install with `npm install @major-tanya/itty-compression` (or your favoured alternative to npm). Once installed, pick your compression algorithm, or use the flexible `negotiatedCompression` middleware. diff --git a/package-lock.json b/package-lock.json index a61c885..42921b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@major-tanya/itty-compression", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@major-tanya/itty-compression", - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "devDependencies": { "@rollup/plugin-node-resolve": "^15.2.3", @@ -31,6 +31,9 @@ "tslib": "^2.6.2", "typescript": "^5.2.2", "vitest": "^0.34.6" + }, + "engines": { + "node": ">=18" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 8914f40..980be68 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@major-tanya/itty-compression", - "version": "0.1.0", + "version": "0.1.1", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -34,6 +34,9 @@ "url": "https://github.com/MajorTanya/itty-compression/issues" }, "homepage": "https://github.com/MajorTanya/itty-compression#readme", + "engines": { + "node": ">=18" + }, "devDependencies": { "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-terser": "^0.4.4",