Skip to content

Commit

Permalink
chore: ensure node 22 version is 22.8 or above
Browse files Browse the repository at this point in the history
An [important UTF-8 bug](nodejs/node#54543) was discovered in v22.7 and fixed in v22.8. We should only allow v22.8 to avoid this issue for end users.

Also updates Node version used by various CI tooling to be compliant with the new setting
  • Loading branch information
tyteen4a03 committed Dec 2, 2024
1 parent a89d544 commit ab1f5ca
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
node-version:
description: 'The Node.js version to use'
required: true
default: 22.6.2
default: 22.11.0
pnpm-version:
description: 'The pnpm version to use'
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
cancel-in-progress: true

env:
NODE_VERSION: 22.6.0
NODE_VERSION: 22.11.0
PNPM_VERSION: 9.7.1
DO_NOT_TRACK: 1 # Disable Turbopack telemetry
NEXT_TELEMETRY_DISABLED: 1 # Disable Next telemetry
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
default: ''

env:
NODE_VERSION: 22.6.0
NODE_VERSION: 22.11.0
PNPM_VERSION: 9.7.1
DO_NOT_TRACK: 1 # Disable Turbopack telemetry
NEXT_TELEMETRY_DISABLED: 1 # Disable Next telemetry
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

env:
NODE_VERSION: 22.6.0
NODE_VERSION: 22.11.0
PNPM_VERSION: 9.7.1
DO_NOT_TRACK: 1 # Disable Turbopack telemetry
NEXT_TELEMETRY_DISABLED: 1 # Disable Next telemetry
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22.6.0
v22.11.0
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v22.6.0
v22.11.0
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pnpm 9.7.1
nodejs 22.6.0
nodejs 22.11.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
},
"packageManager": "pnpm@9.7.1",
"engines": {
"node": "^18.20.2 || >=20.9.0",
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0",
"pnpm": "^9.7.0"
},
"pnpm": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-payload-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@
"@types/node": "22.5.4"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
}
}
2 changes: 1 addition & 1 deletion packages/email-nodemailer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"payload": "workspace:*"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/email-resend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"payload": "workspace:*"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"payload": "workspace:*"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/payload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"graphql": "^16.8.1"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/richtext-lexical/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
"react-dom": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/richtext-slate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"react": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/storage-azure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"payload": "workspace:*"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/storage-gcs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"payload": "workspace:*"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/storage-s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"payload": "workspace:*"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/storage-uploadthing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"payload": "workspace:*"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/storage-vercel-blob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"payload": "workspace:*"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"react-dom": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020"
},
"engines": {
"node": "^18.20.2 || >=20.9.0"
"node": "^18.20.2 || >=20.9.0 || >= 22.8.0"
},
"publishConfig": {
"exports": {
Expand Down

0 comments on commit ab1f5ca

Please sign in to comment.