Skip to content

Commit 2b3061a

Browse files
authored
fix(next): drop support for Next.js versions with known CVEs, add canary 16.2.0 support (#15547)
Removes support for older Next.js versions with known CVEs by raising the minimum supported version for each minor (^15.2.9, ^15.3.9, ^15.4.11, ^15.5.10) and dropping the 16.1.x canary range entirely. Also changes `^16.2.0` to `>=16.2.0-canary.10 <17.0.0` to properly support Next.js 16.2.0 canary builds - the previous range didn't match 16.2.0-canary.* versions. `15.5.*` has been removed from peerDependencies, as we never fully supported it - our test suite doesn't pass on 15.5.*. This also bumps the monorepo's `next` devDependency to the latest canary to guarantee compatibility with the latest canary. With the canary version now matching the peerDependencies, this internally fixes support for running our test suites using postgres in our monorepo.
1 parent 0ce6193 commit 2b3061a

5 files changed

Lines changed: 1282 additions & 1474 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
"devDependencies": {
158158
"@axe-core/playwright": "4.11.0",
159159
"@libsql/client": "0.14.0",
160-
"@next/bundle-analyzer": "16.2.0-canary.9",
160+
"@next/bundle-analyzer": "16.2.0-canary.29",
161161
"@payloadcms/db-postgres": "workspace:*",
162162
"@payloadcms/eslint-config": "workspace:*",
163163
"@payloadcms/eslint-plugin": "workspace:*",
@@ -193,7 +193,7 @@
193193
"lint-staged": "15.2.7",
194194
"minimist": "1.2.8",
195195
"mongoose": "8.15.1",
196-
"next": "16.2.0-canary.9",
196+
"next": "16.2.0-canary.29",
197197
"node-gyp": "12.2.0",
198198
"open": "^10.1.0",
199199
"p-limit": "^5.0.0",

packages/next/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
"@babel/preset-env": "7.27.2",
132132
"@babel/preset-react": "7.27.1",
133133
"@babel/preset-typescript": "7.27.1",
134-
"@next/eslint-plugin-next": "16.2.0-canary.9",
134+
"@next/eslint-plugin-next": "16.2.0-canary.29",
135135
"@payloadcms/eslint-config": "workspace:*",
136136
"@types/busboy": "1.5.4",
137137
"@types/react": "19.2.9",
@@ -145,7 +145,7 @@
145145
},
146146
"peerDependencies": {
147147
"graphql": "^16.8.1",
148-
"next": "^15.4.10 || >=16.1.1-canary.35 <16.2.0 || ^16.2.0",
148+
"next": ">=15.2.9 <15.3.0 || >=15.3.9 <15.4.0 || >=15.4.11 <15.5.0 || >=16.2.0-canary.10 <17.0.0",
149149
"payload": "workspace:*"
150150
},
151151
"engines": {

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
"payload": "workspace:*"
179179
},
180180
"peerDependencies": {
181-
"next": "^15.2.8 || ^15.3.8 || ^15.4.10 || ^15.5.9 || >=16.1.1-canary.35 <16.2.0 || ^16.2.0",
181+
"next": ">=15.2.9 <15.3.0 || >=15.3.9 <15.4.0 || >=15.4.11 <15.5.0 || >=16.2.0-canary.10 <17.0.0",
182182
"payload": "workspace:*",
183183
"react": "^19.0.1 || ^19.1.2 || ^19.2.1",
184184
"react-dom": "^19.0.1 || ^19.1.2 || ^19.2.1"

0 commit comments

Comments
 (0)