Skip to content

Commit

Permalink
docs(examples): Update Next.js version (#7649)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Jun 30, 2024
1 parent a80cea3 commit f454bf1
Show file tree
Hide file tree
Showing 23 changed files with 189 additions and 133 deletions.
7 changes: 6 additions & 1 deletion examples/react/auto-refetching/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
}

export default nextConfig
3 changes: 2 additions & 1 deletion examples/react/auto-refetching/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tanstack/query-example-react-auto-refetching",
"private": true,
"type": "module",
"scripts": {
"dev": "next",
"build": "next build",
Expand All @@ -11,7 +12,7 @@
"@tanstack/react-query-devtools": "^5.49.0",
"axios": "^1.6.8",
"isomorphic-unfetch": "4.0.2",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down
7 changes: 6 additions & 1 deletion examples/react/infinite-query-with-max-pages/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
}

export default nextConfig
3 changes: 2 additions & 1 deletion examples/react/infinite-query-with-max-pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tanstack/query-example-react-infinite-query-with-max-pages",
"private": true,
"type": "module",
"scripts": {
"dev": "next",
"build": "next build",
Expand All @@ -11,7 +12,7 @@
"@tanstack/react-query-devtools": "^5.49.0",
"axios": "^1.6.8",
"isomorphic-unfetch": "4.0.2",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intersection-observer": "^8.34.0"
Expand Down
7 changes: 6 additions & 1 deletion examples/react/load-more-infinite-scroll/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
}

export default nextConfig
3 changes: 2 additions & 1 deletion examples/react/load-more-infinite-scroll/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tanstack/query-example-react-load-more-infinite-scroll",
"private": true,
"type": "module",
"scripts": {
"dev": "next",
"build": "next build",
Expand All @@ -11,7 +12,7 @@
"@tanstack/react-query-devtools": "^5.49.0",
"axios": "^1.6.8",
"isomorphic-unfetch": "4.0.2",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intersection-observer": "^8.34.0"
Expand Down
4 changes: 3 additions & 1 deletion examples/react/nextjs-app-prefetching/next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
}

module.exports = nextConfig
export default nextConfig
1 change: 1 addition & 0 deletions examples/react/nextjs-app-prefetching/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "nextjs-app-prefetching",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand Down
4 changes: 3 additions & 1 deletion examples/react/nextjs-suspense-streaming/next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
Expand All @@ -10,4 +12,4 @@ const nextConfig = {
},
}

module.exports = nextConfig
export default nextConfig
3 changes: 2 additions & 1 deletion examples/react/nextjs-suspense-streaming/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tanstack/query-example-nextjs-suspense-streaming",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand All @@ -11,7 +12,7 @@
"@tanstack/react-query": "^5.49.0",
"@tanstack/react-query-devtools": "^5.49.0",
"@tanstack/react-query-next-experimental": "^5.49.0",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"superjson": "^2.2.1"
Expand Down
7 changes: 6 additions & 1 deletion examples/react/nextjs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
}

export default nextConfig
3 changes: 2 additions & 1 deletion examples/react/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tanstack/query-example-react-nextjs",
"private": true,
"type": "module",
"scripts": {
"dev": "next",
"build": "next build",
Expand All @@ -10,7 +11,7 @@
"@tanstack/react-query": "^5.49.0",
"@tanstack/react-query-devtools": "^5.49.0",
"ky": "^1.2.4",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"resolve-from": "^5.0.0",
Expand Down
7 changes: 6 additions & 1 deletion examples/react/optimistic-updates-cache/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
}

export default nextConfig
3 changes: 2 additions & 1 deletion examples/react/optimistic-updates-cache/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tanstack/query-example-react-optimistic-updates-cache",
"private": true,
"type": "module",
"scripts": {
"dev": "next",
"build": "next build",
Expand All @@ -12,7 +13,7 @@
"@tanstack/react-query-devtools": "^5.49.0",
"axios": "^1.6.8",
"isomorphic-unfetch": "4.0.2",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
7 changes: 6 additions & 1 deletion examples/react/optimistic-updates-ui/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
}

export default nextConfig
3 changes: 2 additions & 1 deletion examples/react/optimistic-updates-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tanstack/query-example-react-optimistic-updates-ui",
"private": true,
"type": "module",
"scripts": {
"dev": "next",
"build": "next build",
Expand All @@ -11,7 +12,7 @@
"@tanstack/react-query-devtools": "^5.49.0",
"axios": "^1.6.8",
"isomorphic-unfetch": "4.0.2",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
7 changes: 6 additions & 1 deletion examples/react/pagination/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
}

export default nextConfig
3 changes: 2 additions & 1 deletion examples/react/pagination/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tanstack/query-example-react-pagination",
"private": true,
"type": "module",
"scripts": {
"dev": "next",
"build": "next build",
Expand All @@ -11,7 +12,7 @@
"@tanstack/react-query-devtools": "^5.49.0",
"axios": "^1.6.8",
"isomorphic-unfetch": "4.0.2",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down
7 changes: 6 additions & 1 deletion examples/react/prefetching/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
}

export default nextConfig
3 changes: 2 additions & 1 deletion examples/react/prefetching/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tanstack/query-example-react-prefetching",
"private": true,
"type": "module",
"scripts": {
"dev": "next",
"build": "next build",
Expand All @@ -11,7 +12,7 @@
"@tanstack/react-query-devtools": "^5.49.0",
"axios": "^1.6.8",
"isomorphic-unfetch": "4.0.2",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion integrations/react-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@tanstack/react-query": "workspace:*",
"@tanstack/react-query-devtools": "workspace:*",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-query-next-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@tanstack/react-query": "workspace:*",
"@types/react": "npm:types-react@rc",
"@vitejs/plugin-react": "^4.2.1",
"next": "^14.0.0",
"next": "^14.2.4",
"react": "19.0.0-rc-4c2e457c7c-20240522"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit f454bf1

Please sign in to comment.