From a9f0801e854aaf6b973334b6f0ca781db2f9060c Mon Sep 17 00:00:00 2001 From: Jonathan Sharpe Date: Sat, 23 Nov 2024 16:54:35 +0000 Subject: [PATCH] Upgrade to Node 22 (fixes #8) --- package-lock.json | 24 ++++++++++++------------ package.json | 8 ++++---- tsconfig.json | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1a3db1f..e64c9c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,14 +12,14 @@ "@octokit/rest": "^21.0.2", "@octokit/webhooks-methods": "^5.1.0", "@slack/web-api": "^7.7.0", - "@tsconfig/node20": "^20.1.4" + "@tsconfig/node22": "^22.0.0" }, "devDependencies": { "@codeyourfuture/eslint-config-standard": "^5.1.0", "@netlify/functions": "^2.8.2", "@octokit/webhooks-types": "^7.6.1", "@types/eslint": "^9.6.1", - "@types/node": "^20.17.5", + "@types/node": "^22.9.3", "@vitest/coverage-v8": "^2.1.4", "@vitest/eslint-plugin": "^1.1.7", "cross-env": "^7.0.3", @@ -32,8 +32,8 @@ "vitest": "^2.1.4" }, "engines": { - "node": "^20.9", - "npm": "^10" + "node": "^22.11", + "npm": ">=10" }, "funding": { "url": "https://github.com/sponsors/CodeYourFuture" @@ -1607,10 +1607,10 @@ "dev": true, "license": "MIT" }, - "node_modules/@tsconfig/node20": { - "version": "20.1.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node20/-/node20-20.1.4.tgz", - "integrity": "sha512-sqgsT69YFeLWf5NtJ4Xq/xAF8p4ZQHlmGW74Nu2tD4+g5fAsposc4ZfaaPixVu4y01BEiDCWLRDCvDM5JOsRxg==", + "node_modules/@tsconfig/node22": { + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/@tsconfig/node22/-/node22-22.0.0.tgz", + "integrity": "sha512-twLQ77zevtxobBOD4ToAtVmuYrpeYUh3qh+TEp+08IWhpsrIflVHqQ1F1CiPxQGL7doCdBIOOCF+1Tm833faNg==", "license": "MIT" }, "node_modules/@types/cookie": { @@ -1646,12 +1646,12 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "20.17.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.5.tgz", - "integrity": "sha512-n8FYY/pRxu496441gIcAQFZPKXbhsd6VZygcq+PTSZ75eMh/Ke0hCAROdUa21qiFqKNsPPYic46yXDO1JGiPBQ==", + "version": "22.9.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.3.tgz", + "integrity": "sha512-F3u1fs/fce3FFk+DAxbxc78DF8x0cY09RRL8GnXLmkJ1jvx3TtPdWoTT5/NiYfI5ASqXBmfqJi9dZ3gxMx4lzw==", "license": "MIT", "dependencies": { - "undici-types": "~6.19.2" + "undici-types": "~6.19.8" } }, "node_modules/@types/retry": { diff --git a/package.json b/package.json index 5a6c865..c3858b3 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "test:cover": "npm test -- --coverage" }, "engines": { - "node": "^20.9", - "npm": "^10" + "node": "^22.11", + "npm": ">=10" }, "repository": { "type": "git", @@ -37,7 +37,7 @@ "@netlify/functions": "^2.8.2", "@octokit/webhooks-types": "^7.6.1", "@types/eslint": "^9.6.1", - "@types/node": "^20.17.5", + "@types/node": "^22.9.3", "@vitest/coverage-v8": "^2.1.4", "@vitest/eslint-plugin": "^1.1.7", "cross-env": "^7.0.3", @@ -53,6 +53,6 @@ "@octokit/rest": "^21.0.2", "@octokit/webhooks-methods": "^5.1.0", "@slack/web-api": "^7.7.0", - "@tsconfig/node20": "^20.1.4" + "@tsconfig/node22": "^22.0.0" } } diff --git a/tsconfig.json b/tsconfig.json index 8bfbabd..9af1630 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@tsconfig/node20/tsconfig.json", + "extends": "@tsconfig/node22/tsconfig.json", "compilerOptions": { "types": ["node", "vitest/globals"] }