Skip to content

Commit 9d5c0d3

Browse files
authored
feat!: upgrade minimum next version to 14.3.0-canary.68 & upgrade react packages, react-toastify (#6387)
**BREAKING:** - The minimum required next version is now 14.3.0-canary.68. This is because we are migrating away from the deprecated experimental.serverComponentsExternalPackages next config key to experimental.serverExternalPackages, which is not available in older next canaries - The minimum `react` and `react-dom` versions have been bumped to ^18.2.0 or ^19.0.0. This matches the minimum react version recommended by next
1 parent 4dedd6e commit 9d5c0d3

File tree

30 files changed

+1661
-1601
lines changed

30 files changed

+1661
-1601
lines changed

examples/auth/payload/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@payloadcms/richtext-slate": "3.0.0-beta.24",
2222
"@payloadcms/ui": "3.0.0-beta.24",
2323
"cross-env": "^7.0.3",
24-
"next": "14.3.0-canary.7",
24+
"next": "14.3.0-canary.68",
2525
"payload": "3.0.0-beta.24",
2626
"react": "^18.2.0",
2727
"react-dom": "^18.2.0",

examples/form-builder/next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@payloadcms/richtext-lexical": "beta",
2121
"escape-html": "^1.0.3",
2222
"graphql": "^16.8.1",
23-
"next": "^14.3.0-canary.50",
23+
"next": "^14.3.0-canary.68",
2424
"react": "18.2.0",
2525
"react-dom": "^18.2.0",
2626
"react-hook-form": "^7.41.0",

examples/form-builder/next-pages/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@payloadcms/richtext-lexical": "beta",
2121
"escape-html": "^1.0.3",
2222
"graphql": "^16.8.1",
23-
"next": "^14.3.0-canary.50",
23+
"next": "^14.3.0-canary.68",
2424
"react": "18.2.0",
2525
"react-dom": "^18.2.0",
2626
"react-hook-form": "^7.41.0",

examples/form-builder/payload/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@payloadcms/richtext-lexical": "beta",
2929
"cross-env": "^7.0.3",
3030
"graphql": "^16.8.1",
31-
"next": "14.3.0-canary.28",
31+
"next": "14.3.0-canary.68",
3232
"payload": "beta",
3333
"react": "^18.2.0",
3434
"react-dom": "^18.2.0",

examples/hierarchy/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
{
22
"name": "hierarchy",
3-
"description": "A hierarchy example with Payload",
43
"version": "1.0.0",
4+
"description": "A hierarchy example with Payload",
55
"license": "MIT",
66
"type": "module",
77
"scripts": {
8+
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
89
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
910
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
10-
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
11-
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
12-
"start": "cross-env NODE_OPTIONS=--no-deprecation next start",
11+
"generate:types": "payload generate:types",
1312
"lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
14-
"generate:types": "payload generate:types"
15-
},
16-
"engines": {
17-
"node": ">=18.19.0"
13+
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
14+
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
1815
},
1916
"dependencies": {
2017
"@payloadcms/db-mongodb": "beta",
2118
"@payloadcms/next": "beta",
2219
"@payloadcms/plugin-cloud": "beta",
2320
"@payloadcms/richtext-lexical": "beta",
2421
"cross-env": "^7.0.3",
25-
"next": "14.3.0-canary.7",
22+
"next": "14.3.0-canary.68",
2623
"payload": "beta",
2724
"react": "^18.2.0",
2825
"react-dom": "^18.2.0",
@@ -35,5 +32,8 @@
3532
"dotenv": "^16.4.5",
3633
"tsx": "^4.7.1",
3734
"typescript": "^5.4.2"
35+
},
36+
"engines": {
37+
"node": ">=18.19.0"
3838
}
3939
}

examples/live-preview/payload/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@payloadcms/richtext-slate": "3.0.0-beta.28",
2323
"@payloadcms/ui": "3.0.0-beta.28",
2424
"cross-env": "^7.0.3",
25-
"next": "14.3.0-canary.7",
25+
"next": "14.3.0-canary.68",
2626
"payload": "3.0.0-beta.28",
2727
"react": "^18.2.0",
2828
"react-dom": "^18.2.0",

examples/tailwind-shadcn-ui/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
{
22
"name": "tailwind-shadcn",
3-
"description": "A blank template to get started with Payload 3.0",
43
"version": "1.0.0",
4+
"description": "A blank template to get started with Payload 3.0",
55
"license": "MIT",
66
"type": "module",
77
"scripts": {
8+
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
89
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
910
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
10-
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
11-
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
12-
"start": "cross-env NODE_OPTIONS=--no-deprecation next start",
11+
"generate:types": "payload generate:types",
1312
"lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
14-
"generate:types": "payload generate:types"
15-
},
16-
"engines": {
17-
"node": ">=18.19.0"
13+
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
14+
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
1815
},
1916
"dependencies": {
2017
"@payloadcms/db-mongodb": "beta",
@@ -24,7 +21,7 @@
2421
"clsx": "^2.1.1",
2522
"cross-env": "^7.0.3",
2623
"lucide-react": "^0.376.0",
27-
"next": "14.3.0-canary.7",
24+
"next": "14.3.0-canary.68",
2825
"payload": "beta",
2926
"react": "^18.2.0",
3027
"react-dom": "^18.2.0",
@@ -42,5 +39,8 @@
4239
"tailwindcss": "^3.4.3",
4340
"tsx": "^4.7.1",
4441
"typescript": "^5.4.2"
42+
},
43+
"engines": {
44+
"node": ">=18.19.0"
4545
}
4646
}

examples/virtual-fields/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
22
"name": "payload-example-virtual-fields-cms",
33
"version": "1.0.0",
4-
"main": "dist/server.js",
54
"license": "MIT",
5+
"main": "dist/server.js",
66
"scripts": {
7+
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
78
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
89
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
9-
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
10-
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
11-
"start": "cross-env NODE_OPTIONS=--no-deprecation next start",
10+
"generate:types": "payload generate:types",
1211
"lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
13-
"generate:types": "payload generate:types"
12+
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
13+
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
1414
},
1515
"dependencies": {
1616
"@payloadcms/db-mongodb": "beta",
1717
"@payloadcms/next": "beta",
1818
"@payloadcms/richtext-lexical": "beta",
1919
"cross-env": "^7.0.3",
20-
"next": "^14.3.0-canary.7",
20+
"next": "^14.3.0-canary.68",
2121
"payload": "beta",
2222
"react": "^18.2.0",
2323
"react-dom": "^18.2.0",

examples/whitelabel/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
22
"name": "payload-example-whitelabel-cms",
33
"version": "1.0.0",
4-
"main": "dist/server.js",
54
"license": "MIT",
5+
"main": "dist/server.js",
66
"scripts": {
7+
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
78
"dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
89
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
9-
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
10-
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
11-
"start": "cross-env NODE_OPTIONS=--no-deprecation next start",
10+
"generate:types": "payload generate:types",
1211
"lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
13-
"generate:types": "payload generate:types"
12+
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
13+
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
1414
},
1515
"dependencies": {
1616
"@payloadcms/db-mongodb": "beta",
1717
"@payloadcms/next": "beta",
1818
"@payloadcms/richtext-lexical": "beta",
1919
"cross-env": "^7.0.3",
20-
"next": "^14.3.0-canary.7",
20+
"next": "^14.3.0-canary.68",
2121
"payload": "beta",
2222
"react": "^18.2.0",
2323
"react-dom": "^18.2.0",

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"@types/node": "20.12.5",
103103
"@types/prompts": "^2.4.5",
104104
"@types/qs": "6.9.14",
105-
"@types/react": "18.2.74",
105+
"@types/react": "18.3.2",
106106
"@types/semver": "^7.5.3",
107107
"@types/shelljs": "0.8.15",
108108
"add-stream": "^1.0.0",
@@ -132,7 +132,7 @@
132132
"lint-staged": "^14.0.1",
133133
"minimist": "1.2.8",
134134
"mongodb-memory-server": "^9.0",
135-
"next": "^14.3.0-canary.7",
135+
"next": "14.3.0-canary.68",
136136
"node-mocks-http": "^1.14.1",
137137
"nodemon": "3.0.3",
138138
"open": "^10.1.0",
@@ -144,8 +144,8 @@
144144
"prettier": "^3.0.3",
145145
"prompts": "2.4.2",
146146
"qs": "6.11.2",
147-
"react": "^18.0.0",
148-
"react-dom": "^18.0.0",
147+
"react": "^18.3.1",
148+
"react-dom": "^18.3.1",
149149
"read-stream": "^2.1.1",
150150
"rimraf": "3.0.2",
151151
"semver": "^7.5.4",
@@ -166,7 +166,8 @@
166166
"yocto-queue": "^1.0.0"
167167
},
168168
"peerDependencies": {
169-
"react": "18.2.0"
169+
"react": "^18.2.0 || ^19.0.0",
170+
"react-dom": "^18.2.0 || ^19.0.0"
170171
},
171172
"engines": {
172173
"node": ">=18.20.2",

0 commit comments

Comments
 (0)