Skip to content

Commit 7fbcc41

Browse files
ascorbicclaude
andauthored
chore(deps): upgrade Next.js to v16 (#825)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent e80dffb commit 7fbcc41

7 files changed

Lines changed: 368 additions & 229 deletions

File tree

.changeset/tall-students-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@unpic/react": patch
3+
---
4+
5+
chore(deps): expand Next.js peer dependencies to support v16

examples/nextjs/netlify.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@ remote_images = ["https://placekitten.com/*"]
77
[build]
88
command = "pnpm --filter nextjs-demo... build"
99
publish = "examples/nextjs/.next"
10-
11-
[[plugins]]
12-
package = "@netlify/plugin-nextjs"

examples/nextjs/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@
1313
"@types/react": "^19.0.7",
1414
"@types/react-dom": "^19.0.3",
1515
"@unpic/react": "workspace:^",
16-
"next": "^15.0.1",
16+
"next": "^16.0.7",
1717
"react": "^19.0.0",
1818
"react-dom": "^19.0.0",
1919
"typescript": "^5.6.3"
20-
},
21-
"devDependencies": {
22-
"@netlify/plugin-nextjs": "^5.9.2"
2320
}
2421
}

examples/nextjs/tsconfig.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": true,
@@ -12,17 +16,27 @@
1216
"moduleResolution": "node",
1317
"resolveJsonModule": true,
1418
"isolatedModules": true,
15-
"jsx": "preserve",
19+
"jsx": "react-jsx",
1620
"incremental": true,
1721
"paths": {
18-
"@/*": ["./*"]
22+
"@/*": [
23+
"./*"
24+
]
1925
},
2026
"plugins": [
2127
{
2228
"name": "next"
2329
}
2430
]
2531
},
26-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27-
"exclude": ["node_modules"]
32+
"include": [
33+
"next-env.d.ts",
34+
"**/*.ts",
35+
"**/*.tsx",
36+
".next/types/**/*.ts",
37+
".next/dev/types/**/*.ts"
38+
],
39+
"exclude": [
40+
"node_modules"
41+
]
2842
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"devDependencies": {
1515
"@changesets/cli": "^2.27.11",
16-
"@netlify/plugin-nextjs": "5.9.3",
1716
"@playwright/test": "^1.49.1",
1817
"@testing-library/dom": "^10.4.0",
1918
"@typescript-eslint/eslint-plugin": "^8.20.0",

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"@vitejs/plugin-react": "^4.3.4",
9393
"cssstyle": "^4.2.1",
9494
"jsdom": "^26.0.0",
95-
"next": "^15.1.5",
95+
"next": "^16.0.7",
9696
"publint": "^0.3.2",
9797
"react": "^19.0.0",
9898
"react-dom": "^19.0.0",
@@ -104,7 +104,7 @@
104104
"@unpic/core": "workspace:^"
105105
},
106106
"peerDependencies": {
107-
"next": "^13.0.0 || ^14.0.0 || ^15.0.0",
107+
"next": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
108108
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
109109
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
110110
},

0 commit comments

Comments
 (0)