Skip to content

Commit 6f02d12

Browse files
authored
fix: narrow peerDependencies next range to exclude 16.0.0–16.2.2 (#1203)
fix: exclude unsupported Next.js 16 releases from peer dependencies.
1 parent 79b01b8 commit 6f02d12

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
fix: exclude unsupported Next.js 16 releases from peer dependencies.
6+
7+
The previous range allowed Next.js 16.0.0 through 16.2.2 without a peer dependency warning because `>=16.2.3` was already covered by `>=15.5.15`.
8+
9+
The range now explicitly supports Next.js 15.5.15 and above in the 15.x line, and Next.js 16.2.3 and above in the 16.x line.

packages/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"vitest": "catalog:"
8787
},
8888
"peerDependencies": {
89-
"next": ">=15.5.15 || >=16.2.3",
89+
"next": ">=15.5.15 <16 || >=16.2.3",
9090
"wrangler": "catalog:"
9191
}
9292
}

0 commit comments

Comments
 (0)