Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump up Node.js to v22 #8625

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/deployment/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-bookworm-slim
FROM node:22-bookworm-slim

Brooooooklyn marked this conversation as resolved.
Show resolved Hide resolved
COPY ./packages/backend/server /app
COPY ./packages/frontend/apps/web/dist /app/static
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.18.1
22.13.0
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"tests/*"
],
"engines": {
"node": "<21.0.0"
"node": "<23.0.0"
},
"scripts": {
"affine": "r affine.ts",
Expand Down Expand Up @@ -61,7 +61,7 @@
"@taplo/cli": "^0.7.0",
"@toeverything/infra": "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",
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,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",
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tools/changelog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"marked": "^15.0.3"
},
"devDependencies": {
"@types/node": "^20.17.10"
"@types/node": "^22.0.0"
}
}
2 changes: 1 addition & 1 deletion tools/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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"
}
}
2 changes: 1 addition & 1 deletion tools/copilot-result/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"marked": "^15.0.3"
},
"devDependencies": {
"@types/node": "^20.17.10"
"@types/node": "^22.0.0"
}
}
2 changes: 1 addition & 1 deletion tools/playstore-auto-bump/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"typescript": "^5.7.2"
},
"devDependencies": {
"@types/node": "^20.17.10"
"@types/node": "^22.0.0"
}
}
2 changes: 1 addition & 1 deletion tools/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ __metadata:
"@sentry/webpack-plugin": "npm:^3.0.0"
"@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"
Expand Down Expand Up @@ -146,7 +146,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"
Expand Down Expand Up @@ -245,7 +245,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:^13.0.0"
jsx-slack: "npm:^6.1.2"
marked: "npm:^15.0.3"
Expand Down Expand Up @@ -340,7 +340,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
Expand Down Expand Up @@ -670,7 +670,7 @@ __metadata:
"@taplo/cli": "npm:^0.7.0"
"@toeverything/infra": "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"
Expand Down Expand Up @@ -708,7 +708,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"
Expand Down Expand Up @@ -746,7 +746,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
Expand Down Expand Up @@ -817,7 +817,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"
Expand Down Expand Up @@ -14885,7 +14885,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.7
resolution: "@types/node@npm:22.10.7"
dependencies:
Expand All @@ -14903,7 +14903,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.14
resolution: "@types/node@npm:20.17.14"
dependencies:
Expand Down
Loading