From c62ebc5220fca0bf9479e5d66e5a2e6404f65b99 Mon Sep 17 00:00:00 2001 From: Satyam Yadav <114805086+Coding-Professional@users.noreply.github.com> Date: Mon, 2 Nov 2026 13:58:57 +0530 Subject: [PATCH] chore(deps-dev): match @types/node to Node.js 24 CI runs on Node.js 24, but the project still used the Node.js 20 type definitions, and Dependabot proposed jumping to Node.js 26. Use @types/node 24 so the types describe the runtime the code actually runs on. Skip @types/node major updates in Dependabot: they should change only when the Node.js version used in CI changes. --- .github/dependabot.yml | 5 +++++ package-lock.json | 16 ++++++++-------- package.json | 2 +- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8a8a6f0..8f09c3b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -27,6 +27,11 @@ updates: - dependency-name: lucide-react update-types: - version-update:semver-major + # @types/node must match the Node.js major version used in CI (24). Update + # it by hand when the Node.js version changes. + - dependency-name: "@types/node" + update-types: + - version-update:semver-major - package-ecosystem: github-actions directory: / schedule: diff --git a/package-lock.json b/package-lock.json index 9703cdc..3d0c39f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ }, "devDependencies": { "@tailwindcss/postcss": "^4", - "@types/node": "^20", + "@types/node": "^24", "@types/react": "^19", "@types/react-dom": "^19", "eslint": "^10", @@ -1932,13 +1932,13 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "20.19.25", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.25.tgz", - "integrity": "sha512-ZsJzA5thDQMSQO788d7IocwwQbI8B5OPzmqNvpf3NY/+MHDAS759Wo0gd2WQeXYt5AAAQjzcrTVC6SKCuYgoCQ==", + "version": "24.19.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz", + "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "undici-types": ">=7.24.0 <7.24.7" } }, "node_modules/@types/react": { @@ -8200,9 +8200,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.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", "dev": true, "license": "MIT" }, diff --git a/package.json b/package.json index 1def84b..05ec259 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ }, "devDependencies": { "@tailwindcss/postcss": "^4", - "@types/node": "^20", + "@types/node": "^24", "@types/react": "^19", "@types/react-dom": "^19", "eslint": "^10",