From 5521372b15f9c22148b9717cfd22131874186391 Mon Sep 17 00:00:00 2001 From: Manas Srivastava Date: Sat, 23 May 2026 22:05:29 +0530 Subject: [PATCH] chore(deps-dev): TypeScript 6 + fixes Bump typescript devDependency 5.9.3 -> 6.0.3. TS 6.0 no longer auto-includes the @types/node ambient globals for this project's NodeNext config, so `node:fs`/`process`/`Buffer` etc. failed with TS2591. Add `"types": ["node"]` to tsconfig compilerOptions (the fix the TS6 error message itself recommends). tsconfig.test.json extends this config and inherits the setting, so both the build and the test compile pass. Supersedes dependabot PR #16. Co-Authored-By: Claude Opus 4.7 (1M context) --- package-lock.json | 8 ++++---- package.json | 2 +- tsconfig.json | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5f98b46..c5bdb21 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@types/node": "^25.9.1", - "typescript": "^5.9.3" + "typescript": "^6.0.3" }, "engines": { "node": ">=18" @@ -1099,9 +1099,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/package.json b/package.json index cee7abd..4da8603 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ }, "devDependencies": { "@types/node": "^25.9.1", - "typescript": "^5.9.3" + "typescript": "^6.0.3" }, "engines": { "node": ">=18" diff --git a/tsconfig.json b/tsconfig.json index a9626d0..d28d1a2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", + "types": ["node"], "outDir": "dist", "rootDir": "src", "strict": true,