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 bdb938229ea89..e5ca5bbaeec06 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "tests/affine-legacy/*" ], "engines": { - "node": "<21.0.0" + "node": "<23.0.0" }, "scripts": { "dev": "yarn workspace @affine/cli dev", @@ -64,7 +64,7 @@ "@toeverything/infra": "workspace:*", "@types/affine__env": "workspace:*", "@types/eslint": "^9.0.0", - "@types/node": "^20.12.7", + "@types/node": "^22.0.0", "@typescript-eslint/eslint-plugin": "^7.6.0", "@typescript-eslint/parser": "^7.6.0", "@vanilla-extract/vite-plugin": "^4.0.7", diff --git a/packages/backend/server/package.json b/packages/backend/server/package.json index 4c02968f4f53b..3db02a791d0cc 100644 --- a/packages/backend/server/package.json +++ b/packages/backend/server/package.json @@ -102,7 +102,7 @@ "@types/lodash-es": "^4.17.12", "@types/mixpanel": "^2.14.8", "@types/mustache": "^4.2.5", - "@types/node": "^20.12.7", + "@types/node": "^22.0.0", "@types/nodemailer": "^6.4.14", "@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 88b0ab69105e0..46e6b17b7bad7 100644 --- a/packages/frontend/native/package.json +++ b/packages/frontend/native/package.json @@ -36,7 +36,7 @@ }, "devDependencies": { "@napi-rs/cli": "3.0.0-alpha.64", - "@types/node": "^20.12.7", + "@types/node": "^22.0.0", "ava": "^6.1.2", "nx": "^20.0.3", "ts-node": "^10.9.2", diff --git a/tools/changelog/package.json b/tools/changelog/package.json index 22d96e4fd0139..97f8f77fb7ea1 100644 --- a/tools/changelog/package.json +++ b/tools/changelog/package.json @@ -13,6 +13,6 @@ "marked": "^15.0.0" }, "devDependencies": { - "@types/node": "^20.14.12" + "@types/node": "^22.0.0" } } diff --git a/tools/copilot-result/package.json b/tools/copilot-result/package.json index 0f4055cd82b0b..fdb4aa15ff3a4 100644 --- a/tools/copilot-result/package.json +++ b/tools/copilot-result/package.json @@ -11,6 +11,6 @@ "marked": "^15.0.0" }, "devDependencies": { - "@types/node": "^20.14.12" + "@types/node": "^22.0.0" } } diff --git a/tools/playstore-auto-bump/package.json b/tools/playstore-auto-bump/package.json index dd1bbbb44d491..3f931cb39c9b1 100644 --- a/tools/playstore-auto-bump/package.json +++ b/tools/playstore-auto-bump/package.json @@ -13,7 +13,7 @@ "@oxc-node/core": "^0.0.15" }, "devDependencies": { - "@types/node": "^20.14.12", + "@types/node": "^22.0.0", "typescript": "^5.6.3" } } diff --git a/yarn.lock b/yarn.lock index 1be4547931538..21b3325e7b37e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -246,7 +246,7 @@ __metadata: dependencies: "@napi-rs/simple-git": "npm:^0.1.18" "@slack/web-api": "npm:^7.3.4" - "@types/node": "npm:^20.14.12" + "@types/node": "npm:^22.0.0" changelogithub: "npm:^0.13.11" jsx-slack: "npm:^6.1.2" marked: "npm:^15.0.0" @@ -382,7 +382,7 @@ __metadata: resolution: "@affine/copilot-result@workspace:tools/copilot-result" dependencies: "@slack/web-api": "npm:^7.3.4" - "@types/node": "npm:^20.14.12" + "@types/node": "npm:^22.0.0" jsx-slack: "npm:^6.1.1" marked: "npm:^15.0.0" languageName: unknown @@ -669,7 +669,7 @@ __metadata: "@toeverything/infra": "workspace:*" "@types/affine__env": "workspace:*" "@types/eslint": "npm:^9.0.0" - "@types/node": "npm:^20.12.7" + "@types/node": "npm:^22.0.0" "@typescript-eslint/eslint-plugin": "npm:^7.6.0" "@typescript-eslint/parser": "npm:^7.6.0" "@vanilla-extract/vite-plugin": "npm:^4.0.7" @@ -709,7 +709,7 @@ __metadata: resolution: "@affine/native@workspace:packages/frontend/native" dependencies: "@napi-rs/cli": "npm:3.0.0-alpha.64" - "@types/node": "npm:^20.12.7" + "@types/node": "npm:^22.0.0" ava: "npm:^6.1.2" nx: "npm:^20.0.3" ts-node: "npm:^10.9.2" @@ -738,7 +738,7 @@ __metadata: dependencies: "@googleapis/androidpublisher": "npm:^22.0.0" "@oxc-node/core": "npm:^0.0.15" - "@types/node": "npm:^20.14.12" + "@types/node": "npm:^22.0.0" typescript: "npm:^5.6.3" languageName: unknown linkType: soft @@ -808,7 +808,7 @@ __metadata: "@types/lodash-es": "npm:^4.17.12" "@types/mixpanel": "npm:^2.14.8" "@types/mustache": "npm:^4.2.5" - "@types/node": "npm:^20.12.7" + "@types/node": "npm:^22.0.0" "@types/nodemailer": "npm:^6.4.14" "@types/on-headers": "npm:^1.0.3" "@types/sinon": "npm:^17.0.3" @@ -13720,7 +13720,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.1 resolution: "@types/node@npm:22.10.1" dependencies: @@ -13738,7 +13738,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^20.12.7, @types/node@npm:^20.14.12, @types/node@npm:^20.9.0": +"@types/node@npm:^20.9.0": version: 20.17.9 resolution: "@types/node@npm:20.17.9" dependencies: