From b4358cd86553e6dea1a8be13dbe26aa905494292 Mon Sep 17 00:00:00 2001 From: larabr <7375870+larabr@users.noreply.github.com> Date: Mon, 8 Sep 2025 13:08:01 +0200 Subject: [PATCH] TS: update node types to v24 web-stream-tools types are affected --- package-lock.json | 43 ++++++++++++++++++++++++++----------------- package.json | 8 ++++---- 2 files changed, 30 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index 08c1af59..73b50692 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@openpgp/jsdoc": "^3.6.11", "@openpgp/seek-bzip": "^1.0.5-git", "@openpgp/tweetnacl": "^1.0.4-2", - "@openpgp/web-stream-tools": "~0.1.3", + "@openpgp/web-stream-tools": "~0.2.0", "@rollup/plugin-alias": "^5.1.1", "@rollup/plugin-commonjs": "^28.0.6", "@rollup/plugin-node-resolve": "^16.0.1", @@ -24,7 +24,7 @@ "@rollup/plugin-typescript": "^12.1.4", "@rollup/plugin-wasm": "^6.2.2", "@types/chai": "^4.3.20", - "@types/node": "^22.18.0", + "@types/node": "^24.3.1", "@types/sinon": "^17.0.4", "@typescript-eslint/parser": "^7.18.0", "@web/test-runner": "^0.19.0", @@ -55,7 +55,7 @@ "tslib": "^2.8.1", "tsx": "^4.20.5", "typescript": "^5.9.2", - "web-streams-polyfill": "^4.1.0" + "web-streams-polyfill": "^4.2.0" }, "engines": { "node": ">= 18.0.0" @@ -1100,18 +1100,22 @@ "license": "Unlicense" }, "node_modules/@openpgp/web-stream-tools": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@openpgp/web-stream-tools/-/web-stream-tools-0.1.3.tgz", - "integrity": "sha512-mT/ds43cH6c+AO5RFpxs+LkACr7KjC3/dZWHrP6KPrWJu4uJ/XJ+p7telaoYiqUfdjiiIvdNSOfhezW9fkmboQ==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@openpgp/web-stream-tools/-/web-stream-tools-0.2.0.tgz", + "integrity": "sha512-vX5a0oZKyqcBuS4BSGCufJVHhhIgZKj5Tc0lA7fzivj6iszedbIua6yKCe5ZujVCD7sZlOaYhxSZnLO8FH8rbQ==", "dev": true, "license": "MIT", "engines": { "node": ">= 18.0.0" }, "peerDependencies": { - "typescript": ">=4.2" + "@types/node": ">=18.0.0", + "typescript": ">=4.7" }, "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, "typescript": { "optional": true } @@ -1976,13 +1980,13 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.18.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.0.tgz", - "integrity": "sha512-m5ObIqwsUp6BZzyiy4RdZpzWGub9bqLJMvZDD0QMXhxjqMHMENlj+SqF5QxoUwaQNFe+8kz8XM8ZQhqkQPTgMQ==", + "version": "24.3.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.1.tgz", + "integrity": "sha512-3vXmQDXy+woz+gnrTvuvNrPzekOi+Ds0ReMxw0LzBiK3a+1k0kQn9f2NWk+lgD4rJehFUmYy2gMhJ2ZI+7YP9g==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "undici-types": "~7.10.0" } }, "node_modules/@types/normalize-package-data": { @@ -12219,9 +12223,9 @@ } }, "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", + "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", "dev": true, "license": "MIT" }, @@ -12374,11 +12378,16 @@ } }, "node_modules/web-streams-polyfill": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.1.0.tgz", - "integrity": "sha512-A7Jxrg7+eV+eZR/CIdESDnRGFb6/bcKukGvJBB5snI6cw3is1c2qamkYstC1bY1p08TyMRlN9eTMkxmnKJBPBw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.2.0.tgz", + "integrity": "sha512-0rYDzGOh9EZpig92umN5g5D/9A1Kff7k0/mzPSSCY8jEQeYkgRMoY7LhbXtUCWzLCMX0TUE9aoHkjFNB7D9pfA==", "dev": true, "license": "MIT", + "workspaces": [ + "test/benchmark-test", + "test/rollup-test", + "test/webpack-test" + ], "engines": { "node": ">= 8" } diff --git a/package.json b/package.json index 76e64094..e7f45503 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "@openpgp/jsdoc": "^3.6.11", "@openpgp/seek-bzip": "^1.0.5-git", "@openpgp/tweetnacl": "^1.0.4-2", - "@openpgp/web-stream-tools": "~0.1.3", + "@openpgp/web-stream-tools": "~0.2.0", "@rollup/plugin-alias": "^5.1.1", "@rollup/plugin-commonjs": "^28.0.6", "@rollup/plugin-node-resolve": "^16.0.1", @@ -78,7 +78,7 @@ "@rollup/plugin-typescript": "^12.1.4", "@rollup/plugin-wasm": "^6.2.2", "@types/chai": "^4.3.20", - "@types/node": "^22.18.0", + "@types/node": "^24.3.1", "@types/sinon": "^17.0.4", "@typescript-eslint/parser": "^7.18.0", "@web/test-runner": "^0.19.0", @@ -107,9 +107,9 @@ "sinon": "^21.0.0", "ts-node": "^10.9.2", "tslib": "^2.8.1", - "web-streams-polyfill": "^4.1.0", "tsx": "^4.20.5", - "typescript": "^5.9.2" + "typescript": "^5.9.2", + "web-streams-polyfill": "^4.2.0" }, "overrides": { "@web/dev-server-core": "npm:@openpgp/wtr-dev-server-core@0.7.3-patch.1",