Skip to content

Commit 7ed2d16

Browse files
feat(react-query-next-experimental): support Next.js 16 (#9868)
* feat(react-query-next-experimental): support Next.js 16 * feat(react-query-next-experimental): support Next.js 16 * chore(query-example-nextjs-suspense-streaming): Add .gitignore, remove autogenerated file * ci: apply automated fixes * chore(query-example-nextjs-suspense-streaming): revert unintended tsconfig change * chore(query-example-nextjs-suspense-streaming): use react 19.0 like the rest of the repo --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent d46d35c commit 7ed2d16

File tree

8 files changed

+496
-30
lines changed

8 files changed

+496
-30
lines changed

.changeset/old-plants-beg.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/react-query-next-experimental': minor
3+
---
4+
5+
feat(react-query-next-experimental): support Next.js 16
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env*.local
29+
30+
# vercel
31+
.vercel
32+
33+
# typescript
34+
*.tsbuildinfo
35+
next-env.d.ts

examples/react/nextjs-suspense-streaming/next-env.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/react/nextjs-suspense-streaming/next.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
/** @type {import('next').NextConfig} */
44
const nextConfig = {
5-
eslint: {
6-
ignoreDuringBuilds: true,
7-
},
85
typescript: {
96
ignoreBuildErrors: true,
107
},

examples/react/nextjs-suspense-streaming/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"dev": "next dev",
7-
"build": "next build",
6+
"dev": "next dev --webpack",
7+
"build": "next build --webpack",
88
"start": "next start"
99
},
1010
"dependencies": {
1111
"@tanstack/react-query": "^5.90.8",
1212
"@tanstack/react-query-devtools": "^5.90.2",
1313
"@tanstack/react-query-next-experimental": "^5.90.2",
14-
"next": "^15.3.1",
15-
"react": "^18.2.0",
16-
"react-dom": "^18.2.0"
14+
"next": "^16.0.1",
15+
"react": "^19.0.0",
16+
"react-dom": "^19.0.0"
1717
},
1818
"devDependencies": {
19-
"@types/react": "^18.2.79",
19+
"@types/react": "^19.2.3",
20+
"@types/react-dom": "^19.2.3",
2021
"typescript": "5.8.3"
2122
}
2223
}

examples/react/nextjs-suspense-streaming/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
}
2121
]
2222
},
23-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
23+
"include": [
24+
"next-env.d.ts",
25+
"**/*.ts",
26+
"**/*.tsx",
27+
".next/types/**/*.ts",
28+
".next/dev/types/**/*.ts"
29+
],
2430
"exclude": ["node_modules"]
2531
}

packages/react-query-next-experimental/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
"@tanstack/react-query": "workspace:*",
6060
"@types/react": "^19.0.1",
6161
"@vitejs/plugin-react": "^4.3.4",
62-
"next": "^15.3.1",
62+
"next": "^16.0.1",
6363
"npm-run-all2": "^5.0.0",
6464
"react": "^19.0.0"
6565
},
6666
"peerDependencies": {
6767
"@tanstack/react-query": "workspace:^",
68-
"next": "^13 || ^14 || ^15",
68+
"next": "^13 || ^14 || ^15 || ^16",
6969
"react": "^18 || ^19"
7070
}
7171
}

0 commit comments

Comments
 (0)