Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/old-plants-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/react-query-next-experimental': minor
---

feat(react-query-next-experimental): support Next.js 16
35 changes: 35 additions & 0 deletions examples/react/nextjs-suspense-streaming/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
5 changes: 0 additions & 5 deletions examples/react/nextjs-suspense-streaming/next-env.d.ts

This file was deleted.

3 changes: 0 additions & 3 deletions examples/react/nextjs-suspense-streaming/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
Expand Down
13 changes: 7 additions & 6 deletions examples/react/nextjs-suspense-streaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@
"private": true,
"type": "module",
"scripts": {
"dev": "next dev",
"build": "next build",
"dev": "next dev --webpack",
"build": "next build --webpack",
"start": "next start"
},
"dependencies": {
"@tanstack/react-query": "^5.90.8",
"@tanstack/react-query-devtools": "^5.90.2",
"@tanstack/react-query-next-experimental": "^5.90.2",
"next": "^15.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"next": "^16.0.1",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
"devDependencies": {
"@types/react": "^18.2.79",
"@types/react": "^19.2.3",
"@types/react-dom": "^19.2.3",
"typescript": "5.8.3"
}
}
20 changes: 16 additions & 4 deletions examples/react/nextjs-suspense-streaming/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "ES5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -12,14 +16,22 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
4 changes: 2 additions & 2 deletions packages/react-query-next-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@
"@tanstack/react-query": "workspace:*",
"@types/react": "^19.0.1",
"@vitejs/plugin-react": "^4.3.4",
"next": "^15.3.1",
"next": "^16.0.1",
"npm-run-all2": "^5.0.0",
"react": "^19.0.0"
},
"peerDependencies": {
"@tanstack/react-query": "workspace:^",
"next": "^13 || ^14 || ^15",
"next": "^13 || ^14 || ^15 || ^16",
"react": "^18 || ^19"
}
}
Loading
Loading