diff --git a/.changeset/perfect-rats-type.md b/.changeset/perfect-rats-type.md new file mode 100644 index 00000000..3cd23fd4 --- /dev/null +++ b/.changeset/perfect-rats-type.md @@ -0,0 +1,10 @@ +--- +"@tus/azure-store": major +"@tus/file-store": major +"@tus/gcs-store": major +"@tus/s3-store": major +"@tus/server": major +"@tus/utils": minor +--- + +Change required Node.js version from 16 to 20.19.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4d5178f..68c5c66d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ concurrency: ${{ github.workflow }}--${{ github.ref }} jobs: main: - name: Node.js LTS + name: Node.js 20 runs-on: ubuntu-latest steps: @@ -33,7 +33,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: lts/* + node-version: 20.19 - name: Install dependencies run: npm ci --no-fund --no-audit diff --git a/README.md b/README.md index d181d493..9d628d5c 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ All packages are fully typed with TypeScript. ## Compatibility -All packages require Node.js 16.0+. +All packages require Node.js >=20.19.0. ## Contribute diff --git a/package-lock.json b/package-lock.json index 65ae76b3..e13bd93e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,20 +16,6 @@ "typescript": "^5.8.2" } }, - "demo": { - "extraneous": true, - "dependencies": { - "@tus/azure-store": "^0.1.2", - "@tus/file-store": "^1.5.1", - "@tus/gcs-store": "^1.4.1", - "@tus/s3-store": "^1.7.0", - "@tus/server": "^1.10.1", - "tus-js-client": "^2.3.2" - }, - "devDependencies": { - "cross-env": "^7.0.3" - } - }, "node_modules/@aws-crypto/crc32": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz", @@ -6365,7 +6351,7 @@ }, "packages/azure-store": { "name": "@tus/azure-store", - "version": "0.1.3", + "version": "1.0.0", "license": "MIT", "dependencies": { "@azure/storage-blob": "^12.24.0", @@ -6380,7 +6366,7 @@ "should": "^13.2.3" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" } }, "packages/eslint-config-custom": { @@ -6416,7 +6402,7 @@ "should": "^13.2.3" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" }, "optionalDependencies": { "@redis/client": "^1.6.0" @@ -6440,7 +6426,7 @@ "should": "^13.2.3" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" }, "peerDependencies": { "@google-cloud/storage": "^7.15.2" @@ -6466,7 +6452,7 @@ "should": "^13.2.3" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" } }, "packages/server": { @@ -6483,11 +6469,7 @@ "@types/debug": "^4.1.12", "@types/lodash.throttle": "^4.1.9", "@types/mocha": "^10.0.6", -<<<<<<< HEAD - "@types/node": "^22.10.1", -======= "@types/node": "^22.13.7", ->>>>>>> main "@types/set-cookie-parser": "^2.4.10", "@types/sinon": "^17.0.3", "@types/supertest": "^2.0.16", @@ -6499,7 +6481,7 @@ "ts-node": "^10.9.2" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" }, "optionalDependencies": { "@redis/client": "^1.6.0", @@ -6520,7 +6502,7 @@ "ts-node": "^10.9.2" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" } }, "test": { diff --git a/packages/azure-store/README.md b/packages/azure-store/README.md index 853b88de..cfc3502e 100644 --- a/packages/azure-store/README.md +++ b/packages/azure-store/README.md @@ -16,7 +16,7 @@ Azure Store based on the Append Blob Client [Azure Blob AppendBlobClient](https: ## Install -In Node.js (16.0+), install with npm: +In Node.js >=20.19.0, install with npm: ```bash npm install @tus/azure-store @@ -84,7 +84,7 @@ This package is fully typed with TypeScript. ## Compatibility -This package requires Node.js 16.0+. +This package requires Node.js >=20.19.0. ## Contribute diff --git a/packages/azure-store/package.json b/packages/azure-store/package.json index 5ce688cd..554a5674 100644 --- a/packages/azure-store/package.json +++ b/packages/azure-store/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@tus/azure-store", - "version": "0.1.3", + "version": "1.0.0", "description": "Azure blob storage for @tus/server", "main": "dist/index.js", "homepage": "https://github.com/tus/tus-node-server#readme", @@ -31,6 +31,6 @@ "should": "^13.2.3" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" } } diff --git a/packages/file-store/README.md b/packages/file-store/README.md index 21a3a596..a6bd8fa6 100644 --- a/packages/file-store/README.md +++ b/packages/file-store/README.md @@ -20,7 +20,7 @@ ## Install -In Node.js (16.0+), install with npm: +In Node.js >=20.19.0, install with npm: ```bash npm install @tus/file-store @@ -124,7 +124,7 @@ This package is fully typed with TypeScript. ## Compatibility -This package requires Node.js 16.0+. +This package requires Node.js >=20.19.0. ## Contribute diff --git a/packages/file-store/package.json b/packages/file-store/package.json index 1459eab7..ef948036 100644 --- a/packages/file-store/package.json +++ b/packages/file-store/package.json @@ -28,6 +28,6 @@ "@redis/client": "^1.6.0" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" } } diff --git a/packages/gcs-store/README.md b/packages/gcs-store/README.md index 55ace76f..a31799f2 100644 --- a/packages/gcs-store/README.md +++ b/packages/gcs-store/README.md @@ -17,7 +17,7 @@ ## Install -In Node.js (16.0+), install with npm: +In Node.js >=20.19.0, install with npm: ```bash npm install @tus/gcs-store @@ -74,7 +74,7 @@ This package is fully typed with TypeScript. ## Compatibility -This package requires Node.js 16.0+. +This package requires Node.js >=20.19.0. ## Contribute diff --git a/packages/gcs-store/package.json b/packages/gcs-store/package.json index 42934c76..72133943 100644 --- a/packages/gcs-store/package.json +++ b/packages/gcs-store/package.json @@ -35,6 +35,6 @@ "@google-cloud/storage": "^7.15.2" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" } } diff --git a/packages/s3-store/README.md b/packages/s3-store/README.md index d2f30883..2005e9b4 100644 --- a/packages/s3-store/README.md +++ b/packages/s3-store/README.md @@ -22,7 +22,7 @@ ## Install -In Node.js (16.0+), install with npm: +In Node.js >=20.19.0, install with npm: ```bash npm install @tus/s3-store @@ -251,7 +251,7 @@ This package is fully typed with TypeScript. ## Compatibility -This package requires Node.js 16.0+. +This package requires Node.js >=20.19.0. ## Contribute diff --git a/packages/s3-store/package.json b/packages/s3-store/package.json index 8104587e..4b791047 100644 --- a/packages/s3-store/package.json +++ b/packages/s3-store/package.json @@ -35,6 +35,6 @@ "should": "^13.2.3" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" } } diff --git a/packages/server/README.md b/packages/server/README.md index 6e705707..01f452d7 100644 --- a/packages/server/README.md +++ b/packages/server/README.md @@ -26,7 +26,7 @@ ## Install -In Node.js (16.0+), install with npm: +In Node.js >=20.19.0, install with npm: ```bash npm install @tus/server @@ -647,7 +647,7 @@ This package is fully typed with TypeScript. ## Compatibility -This package requires Node.js 16.0+. +This package requires Node.js >=20.19.0. ## Contribute diff --git a/packages/server/package.json b/packages/server/package.json index cb6f7cfc..1039c35c 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -44,6 +44,6 @@ "ioredis": "^5.4.1" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" } } diff --git a/packages/utils/package.json b/packages/utils/package.json index 46b33b01..6e914ff7 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -28,6 +28,6 @@ "ts-node": "^10.9.2" }, "engines": { - "node": ">=16" + "node": ">=20.19.0" } } diff --git a/tsconfig.base.json b/tsconfig.base.json index 926c89b0..0bd1ec6a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -3,7 +3,7 @@ "compilerOptions": { "composite": true, "lib": ["es2020"], - "module": "node16", + "module": "NodeNext", "target": "es2020", "strict": true, "declaration": true,