From 2d72dcd3eb9478bd7aa118323f4e739278954592 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2025 07:58:47 +0000 Subject: [PATCH] chore: bump up Node.js to v22 --- .github/deployment/node/Dockerfile | 2 +- .nvmrc | 2 +- package.json | 4 ++-- packages/backend/server/package.json | 2 +- packages/frontend/native/package.json | 2 +- tools/changelog/package.json | 2 +- tools/cli/package.json | 2 +- tools/copilot-result/package.json | 2 +- tools/playstore-auto-bump/package.json | 2 +- tools/utils/package.json | 2 +- yarn.lock | 20 ++++++++++---------- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/deployment/node/Dockerfile b/.github/deployment/node/Dockerfile index 8ebff07f57d40..873d62dafff90 100644 --- a/.github/deployment/node/Dockerfile +++ b/.github/deployment/node/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-bookworm-slim +FROM node:22-bookworm-slim COPY ./packages/backend/server /app COPY ./packages/frontend/apps/web/dist /app/static diff --git a/.nvmrc b/.nvmrc index d4b7699d36cab..1d9b7831ba9d9 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.18.1 +22.12.0 diff --git a/package.json b/package.json index 127ddb595cb0c..99937511b4b5d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "tests/*" ], "engines": { - "node": "<21.0.0" + "node": "<23.0.0" }, "scripts": { "affine": "r affine.ts", @@ -62,7 +62,7 @@ "@toeverything/infra": "workspace:*", "@types/affine__env": "workspace:*", "@types/eslint": "^9.6.1", - "@types/node": "^20.17.10", + "@types/node": "^22.0.0", "@typescript-eslint/parser": "^8.18.0", "@vanilla-extract/vite-plugin": "^4.0.18", "@vitest/browser": "2.1.8", diff --git a/packages/backend/server/package.json b/packages/backend/server/package.json index 196277b3f1c1a..24ea54421f67d 100644 --- a/packages/backend/server/package.json +++ b/packages/backend/server/package.json @@ -101,7 +101,7 @@ "@types/lodash-es": "^4.17.12", "@types/mixpanel": "^2.14.9", "@types/mustache": "^4.2.5", - "@types/node": "^20.17.10", + "@types/node": "^22.0.0", "@types/nodemailer": "^6.4.17", "@types/on-headers": "^1.0.3", "@types/sinon": "^17.0.3", diff --git a/packages/frontend/native/package.json b/packages/frontend/native/package.json index 7c4fc76215c9c..996b901456eec 100644 --- a/packages/frontend/native/package.json +++ b/packages/frontend/native/package.json @@ -34,7 +34,7 @@ }, "devDependencies": { "@napi-rs/cli": "3.0.0-alpha.65", - "@types/node": "^20.17.10", + "@types/node": "^22.0.0", "ava": "^6.2.0", "ts-node": "^10.9.2", "typescript": "^5.7.2" diff --git a/tools/changelog/package.json b/tools/changelog/package.json index a63cacf56a2b3..8cd1773ee8c67 100644 --- a/tools/changelog/package.json +++ b/tools/changelog/package.json @@ -13,6 +13,6 @@ "marked": "^15.0.3" }, "devDependencies": { - "@types/node": "^20.17.10" + "@types/node": "^22.0.0" } } diff --git a/tools/cli/package.json b/tools/cli/package.json index 2d6a56b49f90e..fb3aefd6d95d2 100644 --- a/tools/cli/package.json +++ b/tools/cli/package.json @@ -50,7 +50,7 @@ "devDependencies": { "@types/lodash-es": "^4.17.12", "@types/mime-types": "^2.1.4", - "@types/node": "^20.17.10", + "@types/node": "^22.0.0", "@types/webpack-env": "^1.18.5" } } diff --git a/tools/copilot-result/package.json b/tools/copilot-result/package.json index 1fd4068a7227f..a7f753fd4bc01 100644 --- a/tools/copilot-result/package.json +++ b/tools/copilot-result/package.json @@ -11,6 +11,6 @@ "marked": "^15.0.3" }, "devDependencies": { - "@types/node": "^20.17.10" + "@types/node": "^22.0.0" } } diff --git a/tools/playstore-auto-bump/package.json b/tools/playstore-auto-bump/package.json index a91430bf3a26b..68b1a988176bd 100644 --- a/tools/playstore-auto-bump/package.json +++ b/tools/playstore-auto-bump/package.json @@ -15,6 +15,6 @@ "typescript": "^5.7.2" }, "devDependencies": { - "@types/node": "^20.17.10" + "@types/node": "^22.0.0" } } diff --git a/tools/utils/package.json b/tools/utils/package.json index d3416157868a6..8802cc6c5c0d5 100644 --- a/tools/utils/package.json +++ b/tools/utils/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@types/lodash-es": "^4.17.12", - "@types/node": "^20.17.10", + "@types/node": "^22.0.0", "chalk": "^5.3.0", "lodash-es": "^4.17.21", "typescript": "^5.5.4" diff --git a/yarn.lock b/yarn.lock index 189b845c3e1a9..7ba32b5e98331 100644 --- a/yarn.lock +++ b/yarn.lock @@ -105,7 +105,7 @@ __metadata: "@sentry/webpack-plugin": "npm:^2.22.7" "@types/lodash-es": "npm:^4.17.12" "@types/mime-types": "npm:^2.1.4" - "@types/node": "npm:^20.17.10" + "@types/node": "npm:^22.0.0" "@types/webpack-env": "npm:^1.18.5" "@vanilla-extract/webpack-plugin": "npm:^2.3.15" autoprefixer: "npm:^10.4.20" @@ -143,7 +143,7 @@ __metadata: resolution: "@affine-tools/utils@workspace:tools/utils" dependencies: "@types/lodash-es": "npm:^4.17.12" - "@types/node": "npm:^20.17.10" + "@types/node": "npm:^22.0.0" chalk: "npm:^5.3.0" lodash-es: "npm:^4.17.21" typescript: "npm:^5.5.4" @@ -241,7 +241,7 @@ __metadata: dependencies: "@napi-rs/simple-git": "npm:^0.1.19" "@slack/web-api": "npm:^7.8.0" - "@types/node": "npm:^20.17.10" + "@types/node": "npm:^22.0.0" changelogithub: "npm:^0.13.11" jsx-slack: "npm:^6.1.2" marked: "npm:^15.0.3" @@ -337,7 +337,7 @@ __metadata: resolution: "@affine/copilot-result@workspace:tools/copilot-result" dependencies: "@slack/web-api": "npm:^7.8.0" - "@types/node": "npm:^20.17.10" + "@types/node": "npm:^22.0.0" jsx-slack: "npm:^6.1.2" marked: "npm:^15.0.3" languageName: unknown @@ -654,7 +654,7 @@ __metadata: "@toeverything/infra": "workspace:*" "@types/affine__env": "workspace:*" "@types/eslint": "npm:^9.6.1" - "@types/node": "npm:^20.17.10" + "@types/node": "npm:^22.0.0" "@typescript-eslint/parser": "npm:^8.18.0" "@vanilla-extract/vite-plugin": "npm:^4.0.18" "@vitest/browser": "npm:2.1.8" @@ -691,7 +691,7 @@ __metadata: resolution: "@affine/native@workspace:packages/frontend/native" dependencies: "@napi-rs/cli": "npm:3.0.0-alpha.65" - "@types/node": "npm:^20.17.10" + "@types/node": "npm:^22.0.0" ava: "npm:^6.2.0" ts-node: "npm:^10.9.2" typescript: "npm:^5.7.2" @@ -731,7 +731,7 @@ __metadata: "@affine-tools/cli": "workspace:*" "@affine-tools/utils": "workspace:*" "@googleapis/androidpublisher": "npm:^22.0.0" - "@types/node": "npm:^20.17.10" + "@types/node": "npm:^22.0.0" typescript: "npm:^5.7.2" languageName: unknown linkType: soft @@ -800,7 +800,7 @@ __metadata: "@types/lodash-es": "npm:^4.17.12" "@types/mixpanel": "npm:^2.14.9" "@types/mustache": "npm:^4.2.5" - "@types/node": "npm:^20.17.10" + "@types/node": "npm:^22.0.0" "@types/nodemailer": "npm:^6.4.17" "@types/on-headers": "npm:^1.0.3" "@types/sinon": "npm:^17.0.3" @@ -14705,7 +14705,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:>=10.0.0, @types/node@npm:>=13.7.0, @types/node@npm:>=18.0.0, @types/node@npm:>=8.1.0": +"@types/node@npm:*, @types/node@npm:>=10.0.0, @types/node@npm:>=13.7.0, @types/node@npm:>=18.0.0, @types/node@npm:>=8.1.0, @types/node@npm:^22.0.0": version: 22.10.3 resolution: "@types/node@npm:22.10.3" dependencies: @@ -14723,7 +14723,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^20.17.10, @types/node@npm:^20.9.0": +"@types/node@npm:^20.9.0": version: 20.17.11 resolution: "@types/node@npm:20.17.11" dependencies: