From c744f996196a0357773b7d3ab1c04e443d8a6b80 Mon Sep 17 00:00:00 2001 From: Dominik Dorfmeister Date: Thu, 8 Aug 2024 09:59:57 +0200 Subject: [PATCH 1/3] fix(react-query): ensure we have a gcTime of at least 1 second when using suspense (#7860) Because React continues to render components that have already thrown to error boundaries, a small gcTime would lead to infinite fetches because if the cache entry is already removed, the next render will treat the extra render as a new suspending query. --- .../src/__tests__/suspense.test.tsx | 44 +++++++++++++++++++ .../src/__tests__/useQuery.test.tsx | 21 ++------- packages/react-query/src/suspense.ts | 5 ++- packages/react-query/src/useBaseQuery.ts | 8 +++- packages/react-query/src/useQueries.ts | 4 +- 5 files changed, 59 insertions(+), 23 deletions(-) diff --git a/packages/react-query/src/__tests__/suspense.test.tsx b/packages/react-query/src/__tests__/suspense.test.tsx index f13164b1b0..a45aa516d2 100644 --- a/packages/react-query/src/__tests__/suspense.test.tsx +++ b/packages/react-query/src/__tests__/suspense.test.tsx @@ -1192,4 +1192,48 @@ describe('useSuspenseQueries', () => { await waitFor(() => rendered.getByText('data1')) }) + + it('should show error boundary even with gcTime:0 (#7853)', async () => { + const consoleMock = vi + .spyOn(console, 'error') + .mockImplementation(() => undefined) + const key = queryKey() + let count = 0 + + function Page() { + useSuspenseQuery({ + queryKey: key, + queryFn: async () => { + count++ + console.log('queryFn') + throw new Error('Query failed') + }, + gcTime: 0, + retry: false, + }) + + return null + } + + function App() { + return ( + + { + console.log('fallback renders') + return
There was an error!
+ }} + > + +
+
+ ) + } + + const rendered = renderWithClient(queryClient, ) + + await waitFor(() => rendered.getByText('There was an error!')) + expect(count).toBe(1) + consoleMock.mockRestore() + }) }) diff --git a/packages/react-query/src/__tests__/useQuery.test.tsx b/packages/react-query/src/__tests__/useQuery.test.tsx index a22f214f42..0add70e376 100644 --- a/packages/react-query/src/__tests__/useQuery.test.tsx +++ b/packages/react-query/src/__tests__/useQuery.test.tsx @@ -4198,17 +4198,15 @@ describe('useQuery', () => { it('should not interval fetch with a refetchInterval of 0', async () => { const key = queryKey() - const states: Array> = [] + const queryFn = vi.fn(() => 1) function Page() { const queryInfo = useQuery({ queryKey: key, - queryFn: () => 1, + queryFn, refetchInterval: 0, }) - states.push(queryInfo) - return
count: {queryInfo.data}
} @@ -4218,20 +4216,7 @@ describe('useQuery', () => { await sleep(10) // extra sleep to make sure we're not re-fetching - expect(states.length).toEqual(2) - - expect(states).toMatchObject([ - { - status: 'pending', - isFetching: true, - data: undefined, - }, - { - status: 'success', - isFetching: false, - data: 1, - }, - ]) + expect(queryFn).toHaveBeenCalledTimes(1) }) it('should accept an empty string as query key', async () => { diff --git a/packages/react-query/src/suspense.ts b/packages/react-query/src/suspense.ts index 533069ae6b..6c3d04f264 100644 --- a/packages/react-query/src/suspense.ts +++ b/packages/react-query/src/suspense.ts @@ -18,7 +18,7 @@ export const defaultThrowOnError = < query: Query, ) => query.state.data === undefined -export const ensureStaleTime = ( +export const ensureSuspenseTimers = ( defaultedOptions: DefaultedQueryObserverOptions, ) => { if (defaultedOptions.suspense) { @@ -27,6 +27,9 @@ export const ensureStaleTime = ( if (typeof defaultedOptions.staleTime !== 'number') { defaultedOptions.staleTime = 1000 } + if (typeof defaultedOptions.gcTime === 'number') { + defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, 1000) + } } } diff --git a/packages/react-query/src/useBaseQuery.ts b/packages/react-query/src/useBaseQuery.ts index 381ff79ca8..f6b632c8ff 100644 --- a/packages/react-query/src/useBaseQuery.ts +++ b/packages/react-query/src/useBaseQuery.ts @@ -10,7 +10,11 @@ import { getHasError, useClearResetErrorBoundary, } from './errorBoundaryUtils' -import { ensureStaleTime, fetchOptimistic, shouldSuspend } from './suspense' +import { + ensureSuspenseTimers, + fetchOptimistic, + shouldSuspend, +} from './suspense' import type { UseBaseQueryOptions } from './types' import type { QueryClient, @@ -58,7 +62,7 @@ export function useBaseQuery< ? 'isRestoring' : 'optimistic' - ensureStaleTime(defaultedOptions) + ensureSuspenseTimers(defaultedOptions) ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary) useClearResetErrorBoundary(errorResetBoundary) diff --git a/packages/react-query/src/useQueries.ts b/packages/react-query/src/useQueries.ts index 1360426763..4ed5b4cedc 100644 --- a/packages/react-query/src/useQueries.ts +++ b/packages/react-query/src/useQueries.ts @@ -15,7 +15,7 @@ import { useClearResetErrorBoundary, } from './errorBoundaryUtils' import { - ensureStaleTime, + ensureSuspenseTimers, fetchOptimistic, shouldSuspend, willFetch, @@ -255,7 +255,7 @@ export function useQueries< ) defaultedQueries.forEach((query) => { - ensureStaleTime(query) + ensureSuspenseTimers(query) ensurePreventErrorBoundaryRetry(query, errorResetBoundary) }) From 11cda37f3273ce2cedfe525c4a6f6d5ce9c6a1f1 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Thu, 8 Aug 2024 08:02:45 +0000 Subject: [PATCH 2/3] release: v5.51.23 --- examples/react/algolia/package.json | 4 +- examples/react/auto-refetching/package.json | 4 +- .../react/basic-graphql-request/package.json | 4 +- examples/react/basic/package.json | 6 +- .../react/default-query-function/package.json | 4 +- .../package.json | 4 +- .../load-more-infinite-scroll/package.json | 4 +- .../react/nextjs-app-prefetching/package.json | 4 +- .../nextjs-suspense-streaming/package.json | 6 +- examples/react/nextjs/package.json | 4 +- examples/react/offline/package.json | 6 +- .../optimistic-updates-cache/package.json | 4 +- .../react/optimistic-updates-ui/package.json | 4 +- examples/react/pagination/package.json | 4 +- examples/react/playground/package.json | 4 +- examples/react/prefetching/package.json | 4 +- examples/react/react-native/package.json | 4 +- examples/react/react-router/package.json | 4 +- examples/react/rick-morty/package.json | 4 +- examples/react/shadow-dom/package.json | 4 +- examples/react/simple/package.json | 4 +- examples/react/star-wars/package.json | 4 +- examples/react/suspense/package.json | 4 +- packages/react-query-devtools/package.json | 2 +- .../package.json | 2 +- .../react-query-persist-client/package.json | 2 +- packages/react-query/package.json | 2 +- pnpm-lock.yaml | 98 +++++++++---------- 28 files changed, 102 insertions(+), 102 deletions(-) diff --git a/examples/react/algolia/package.json b/examples/react/algolia/package.json index 4ef20a4cce..b2d8d50704 100644 --- a/examples/react/algolia/package.json +++ b/examples/react/algolia/package.json @@ -11,8 +11,8 @@ "dependencies": { "@algolia/client-search": "4.24.0", "@algolia/transporter": "4.24.0", - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "algoliasearch": "4.24.0", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522" diff --git a/examples/react/auto-refetching/package.json b/examples/react/auto-refetching/package.json index 81c0fe7350..f1f1d03d43 100644 --- a/examples/react/auto-refetching/package.json +++ b/examples/react/auto-refetching/package.json @@ -8,8 +8,8 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "next": "^14.2.5", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/react/basic-graphql-request/package.json b/examples/react/basic-graphql-request/package.json index 0317ddb074..2da200414c 100644 --- a/examples/react/basic-graphql-request/package.json +++ b/examples/react/basic-graphql-request/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "graphql": "^16.9.0", "graphql-request": "^7.1.0", "react": "19.0.0-rc-4c2e457c7c-20240522", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index 768ed3f6d0..dcade91ac1 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@tanstack/query-sync-storage-persister": "^5.51.21", - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", - "@tanstack/react-query-persist-client": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", + "@tanstack/react-query-persist-client": "^5.51.23", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522" }, diff --git a/examples/react/default-query-function/package.json b/examples/react/default-query-function/package.json index c259f2a64c..6cecbd7f6a 100644 --- a/examples/react/default-query-function/package.json +++ b/examples/react/default-query-function/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522" }, diff --git a/examples/react/infinite-query-with-max-pages/package.json b/examples/react/infinite-query-with-max-pages/package.json index bbbdbe7512..6633fe699b 100644 --- a/examples/react/infinite-query-with-max-pages/package.json +++ b/examples/react/infinite-query-with-max-pages/package.json @@ -8,8 +8,8 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "next": "^14.2.5", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/react/load-more-infinite-scroll/package.json b/examples/react/load-more-infinite-scroll/package.json index 0483b52bdd..9919b3c122 100644 --- a/examples/react/load-more-infinite-scroll/package.json +++ b/examples/react/load-more-infinite-scroll/package.json @@ -8,8 +8,8 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "next": "^14.2.5", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/react/nextjs-app-prefetching/package.json b/examples/react/nextjs-app-prefetching/package.json index f3bd7abee7..5f172aa375 100644 --- a/examples/react/nextjs-app-prefetching/package.json +++ b/examples/react/nextjs-app-prefetching/package.json @@ -9,8 +9,8 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "next": "^15.0.0-rc.0", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522" diff --git a/examples/react/nextjs-suspense-streaming/package.json b/examples/react/nextjs-suspense-streaming/package.json index 38edea86d1..e139c4d3d6 100644 --- a/examples/react/nextjs-suspense-streaming/package.json +++ b/examples/react/nextjs-suspense-streaming/package.json @@ -9,9 +9,9 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", - "@tanstack/react-query-next-experimental": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", + "@tanstack/react-query-next-experimental": "^5.51.23", "next": "^14.2.5", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/react/nextjs/package.json b/examples/react/nextjs/package.json index dc010c7e24..f8cb006ca2 100644 --- a/examples/react/nextjs/package.json +++ b/examples/react/nextjs/package.json @@ -8,8 +8,8 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "next": "^14.2.5", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/react/offline/package.json b/examples/react/offline/package.json index ca104322a2..88e513c319 100644 --- a/examples/react/offline/package.json +++ b/examples/react/offline/package.json @@ -10,9 +10,9 @@ "dependencies": { "@tanstack/query-sync-storage-persister": "^5.51.21", "@tanstack/react-location": "^3.7.4", - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", - "@tanstack/react-query-persist-client": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", + "@tanstack/react-query-persist-client": "^5.51.23", "msw": "^2.3.4", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522", diff --git a/examples/react/optimistic-updates-cache/package.json b/examples/react/optimistic-updates-cache/package.json index ba352f6d58..92396f8fef 100755 --- a/examples/react/optimistic-updates-cache/package.json +++ b/examples/react/optimistic-updates-cache/package.json @@ -9,8 +9,8 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "next": "^14.2.5", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/react/optimistic-updates-ui/package.json b/examples/react/optimistic-updates-ui/package.json index 4cd927325d..5cba5f2e86 100755 --- a/examples/react/optimistic-updates-ui/package.json +++ b/examples/react/optimistic-updates-ui/package.json @@ -8,8 +8,8 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "next": "^14.2.5", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/react/pagination/package.json b/examples/react/pagination/package.json index c38dfd20eb..64fcafd47e 100644 --- a/examples/react/pagination/package.json +++ b/examples/react/pagination/package.json @@ -8,8 +8,8 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "next": "^14.2.5", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/react/playground/package.json b/examples/react/playground/package.json index 668ecb06ca..e9aa2b3f35 100644 --- a/examples/react/playground/package.json +++ b/examples/react/playground/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522" }, diff --git a/examples/react/prefetching/package.json b/examples/react/prefetching/package.json index 0ea750f469..3d615ea0b4 100644 --- a/examples/react/prefetching/package.json +++ b/examples/react/prefetching/package.json @@ -8,8 +8,8 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "next": "^14.2.5", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/react/react-native/package.json b/examples/react/react-native/package.json index 0f8eefe81b..88b81bb49e 100644 --- a/examples/react/react-native/package.json +++ b/examples/react/react-native/package.json @@ -14,8 +14,8 @@ "@react-native-community/netinfo": "^11.3.2", "@react-navigation/native": "^6.1.18", "@react-navigation/stack": "^6.4.1", - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "expo": "^51.0.22", "expo-constants": "^16.0.2", "expo-status-bar": "^1.12.1", diff --git a/examples/react/react-router/package.json b/examples/react/react-router/package.json index 0e0d7f3ab7..d0798dc0bb 100644 --- a/examples/react/react-router/package.json +++ b/examples/react/react-router/package.json @@ -9,8 +9,8 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "localforage": "^1.10.0", "match-sorter": "^6.3.4", "react": "19.0.0-rc-4c2e457c7c-20240522", diff --git a/examples/react/rick-morty/package.json b/examples/react/rick-morty/package.json index 74ef8e34a1..5de3bff77a 100644 --- a/examples/react/rick-morty/package.json +++ b/examples/react/rick-morty/package.json @@ -12,8 +12,8 @@ "@emotion/styled": "^11.13.0", "@mui/material": "^5.16.5", "@mui/styles": "^5.16.5", - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522", "react-router": "^6.25.1", diff --git a/examples/react/shadow-dom/package.json b/examples/react/shadow-dom/package.json index fbda399414..1a68d10da4 100644 --- a/examples/react/shadow-dom/package.json +++ b/examples/react/shadow-dom/package.json @@ -9,8 +9,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522" }, diff --git a/examples/react/simple/package.json b/examples/react/simple/package.json index b53a191e0f..fe7043d128 100644 --- a/examples/react/simple/package.json +++ b/examples/react/simple/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522" }, diff --git a/examples/react/star-wars/package.json b/examples/react/star-wars/package.json index c0a0cbb6e8..a7662ca04e 100644 --- a/examples/react/star-wars/package.json +++ b/examples/react/star-wars/package.json @@ -12,8 +12,8 @@ "@emotion/styled": "^11.13.0", "@mui/material": "^5.16.5", "@mui/styles": "^5.16.5", - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522", "react-router": "^6.25.1", diff --git a/examples/react/suspense/package.json b/examples/react/suspense/package.json index 172224dcf0..378b0e4b7d 100644 --- a/examples/react/suspense/package.json +++ b/examples/react/suspense/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.51.21", - "@tanstack/react-query-devtools": "^5.51.21", + "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query-devtools": "^5.51.23", "font-awesome": "^4.7.0", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522", diff --git a/packages/react-query-devtools/package.json b/packages/react-query-devtools/package.json index 2e9909452e..9bd499aff4 100644 --- a/packages/react-query-devtools/package.json +++ b/packages/react-query-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-query-devtools", - "version": "5.51.21", + "version": "5.51.23", "description": "Developer tools to interact with and visualize the TanStack/react-query cache", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/react-query-next-experimental/package.json b/packages/react-query-next-experimental/package.json index 170e6bf8d6..404787aa9c 100644 --- a/packages/react-query-next-experimental/package.json +++ b/packages/react-query-next-experimental/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-query-next-experimental", - "version": "5.51.21", + "version": "5.51.23", "description": "Hydration utils for React Query in the NextJs app directory", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/react-query-persist-client/package.json b/packages/react-query-persist-client/package.json index 2a958bc8c8..a7ade4858b 100644 --- a/packages/react-query-persist-client/package.json +++ b/packages/react-query-persist-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-query-persist-client", - "version": "5.51.21", + "version": "5.51.23", "description": "React bindings to work with persisters in TanStack/react-query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/react-query/package.json b/packages/react-query/package.json index 7fc145b9e9..ed291c4ae9 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-query", - "version": "5.51.21", + "version": "5.51.23", "description": "Hooks for managing, caching and syncing asynchronous and remote data in React", "author": "tannerlinsley", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0e80c89f83..8815772eab 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -326,10 +326,10 @@ importers: specifier: 4.24.0 version: 4.24.0 '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools algoliasearch: specifier: 4.24.0 @@ -363,10 +363,10 @@ importers: examples/react/auto-refetching: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -394,13 +394,13 @@ importers: specifier: ^5.51.21 version: link:../../../packages/query-sync-storage-persister '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools '@tanstack/react-query-persist-client': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-persist-client react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -434,10 +434,10 @@ importers: examples/react/basic-graphql-request: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools graphql: specifier: ^16.9.0 @@ -462,10 +462,10 @@ importers: examples/react/default-query-function: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -487,10 +487,10 @@ importers: examples/react/infinite-query-with-max-pages: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -515,10 +515,10 @@ importers: examples/react/load-more-infinite-scroll: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -546,10 +546,10 @@ importers: examples/react/nextjs: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -574,10 +574,10 @@ importers: examples/react/nextjs-app-prefetching: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools next: specifier: ^15.0.0-rc.0 @@ -602,13 +602,13 @@ importers: examples/react/nextjs-suspense-streaming: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools '@tanstack/react-query-next-experimental': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-next-experimental next: specifier: ^14.2.5 @@ -636,13 +636,13 @@ importers: specifier: ^3.7.4 version: 3.7.4(react-dom@19.0.0-rc-4c2e457c7c-20240522(react@19.0.0-rc-4c2e457c7c-20240522))(react@19.0.0-rc-4c2e457c7c-20240522) '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools '@tanstack/react-query-persist-client': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-persist-client msw: specifier: ^2.3.4 @@ -670,10 +670,10 @@ importers: examples/react/optimistic-updates-cache: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -698,10 +698,10 @@ importers: examples/react/optimistic-updates-ui: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -726,10 +726,10 @@ importers: examples/react/pagination: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -754,10 +754,10 @@ importers: examples/react/playground: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -779,10 +779,10 @@ importers: examples/react/prefetching: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -816,10 +816,10 @@ importers: specifier: ^6.4.1 version: 6.4.1(hz73ogopnnbu7tdkoevhdncb4q) '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools expo: specifier: ^51.0.22 @@ -868,10 +868,10 @@ importers: examples/react/react-router: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools localforage: specifier: ^1.10.0 @@ -932,10 +932,10 @@ importers: specifier: ^5.16.5 version: 5.16.6(react@19.0.0-rc-4c2e457c7c-20240522)(types-react@19.0.0-rc.1) '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -963,10 +963,10 @@ importers: examples/react/shadow-dom: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1009,10 +1009,10 @@ importers: examples/react/simple: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1046,10 +1046,10 @@ importers: specifier: ^5.16.5 version: 5.16.6(react@19.0.0-rc-4c2e457c7c-20240522)(types-react@19.0.0-rc.1) '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1077,10 +1077,10 @@ importers: examples/react/suspense: dependencies: '@tanstack/react-query': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.51.21 + specifier: ^5.51.23 version: link:../../../packages/react-query-devtools font-awesome: specifier: ^4.7.0 From 73fbf0018435d7ec8e75501b729f8d39a72767a8 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Fri, 9 Aug 2024 20:09:09 +1000 Subject: [PATCH 3/3] ci: rename integration projects for consistency (#7875) * ci: rename integration projects for consistency * Fix lockfile --- examples/angular/basic/tsconfig.app.json | 1 - examples/angular/basic/tsconfig.json | 1 - .../infinite-query-with-max-pages/tsconfig.app.json | 1 - .../infinite-query-with-max-pages/tsconfig.json | 1 - examples/angular/router/tsconfig.app.json | 1 - examples/angular/router/tsconfig.json | 1 - examples/angular/simple/tsconfig.app.json | 1 - examples/angular/simple/tsconfig.json | 1 - .../.gitignore | 0 .../README.md | 2 +- .../angular.json | 10 +++++----- .../package.json | 2 +- .../src/app/app.component.ts | 0 .../src/app/app.config.ts | 0 .../src/assets/.gitkeep | 0 .../src/favicon.ico | Bin .../src/index.html | 2 +- .../src/main.ts | 0 .../src/styles.css | 0 .../tsconfig.app.json | 1 - .../tsconfig.json | 1 - .../{react-next => react-next-14}/.eslintrc.cjs | 0 .../{react-next => react-next-14}/.gitignore | 0 .../{react-next => react-next-14}/README.md | 0 .../app/client-component.tsx | 0 .../{react-next => react-next-14}/app/favicon.ico | Bin .../{react-next => react-next-14}/app/layout.tsx | 0 .../{react-next => react-next-14}/app/page.tsx | 0 .../{react-next => react-next-14}/app/providers.tsx | 0 .../{react-next => react-next-14}/next.config.js | 0 .../{react-next => react-next-14}/package.json | 2 +- .../{react-next => react-next-14}/tsconfig.json | 0 pnpm-lock.yaml | 4 ++-- 33 files changed, 11 insertions(+), 21 deletions(-) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/.gitignore (100%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/README.md (97%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/angular.json (89%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/package.json (93%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/src/app/app.component.ts (100%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/src/app/app.config.ts (100%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/src/assets/.gitkeep (100%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/src/favicon.ico (100%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/src/index.html (87%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/src/main.ts (100%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/src/styles.css (100%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/tsconfig.app.json (68%) rename integrations/{angular-cli-standalone-17 => angular-cli-17}/tsconfig.json (91%) rename integrations/{react-next => react-next-14}/.eslintrc.cjs (100%) rename integrations/{react-next => react-next-14}/.gitignore (100%) rename integrations/{react-next => react-next-14}/README.md (100%) rename integrations/{react-next => react-next-14}/app/client-component.tsx (100%) rename integrations/{react-next => react-next-14}/app/favicon.ico (100%) rename integrations/{react-next => react-next-14}/app/layout.tsx (100%) rename integrations/{react-next => react-next-14}/app/page.tsx (100%) rename integrations/{react-next => react-next-14}/app/providers.tsx (100%) rename integrations/{react-next => react-next-14}/next.config.js (100%) rename integrations/{react-next => react-next-14}/package.json (93%) rename integrations/{react-next => react-next-14}/tsconfig.json (100%) diff --git a/examples/angular/basic/tsconfig.app.json b/examples/angular/basic/tsconfig.app.json index 84f1f992d2..5b9d3c5ecb 100644 --- a/examples/angular/basic/tsconfig.app.json +++ b/examples/angular/basic/tsconfig.app.json @@ -1,4 +1,3 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "extends": "./tsconfig.json", "compilerOptions": { diff --git a/examples/angular/basic/tsconfig.json b/examples/angular/basic/tsconfig.json index fd2d87ac26..82c63d482a 100644 --- a/examples/angular/basic/tsconfig.json +++ b/examples/angular/basic/tsconfig.json @@ -1,4 +1,3 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "compileOnSave": false, "compilerOptions": { diff --git a/examples/angular/infinite-query-with-max-pages/tsconfig.app.json b/examples/angular/infinite-query-with-max-pages/tsconfig.app.json index 84f1f992d2..5b9d3c5ecb 100644 --- a/examples/angular/infinite-query-with-max-pages/tsconfig.app.json +++ b/examples/angular/infinite-query-with-max-pages/tsconfig.app.json @@ -1,4 +1,3 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "extends": "./tsconfig.json", "compilerOptions": { diff --git a/examples/angular/infinite-query-with-max-pages/tsconfig.json b/examples/angular/infinite-query-with-max-pages/tsconfig.json index fd2d87ac26..82c63d482a 100644 --- a/examples/angular/infinite-query-with-max-pages/tsconfig.json +++ b/examples/angular/infinite-query-with-max-pages/tsconfig.json @@ -1,4 +1,3 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "compileOnSave": false, "compilerOptions": { diff --git a/examples/angular/router/tsconfig.app.json b/examples/angular/router/tsconfig.app.json index 84f1f992d2..5b9d3c5ecb 100644 --- a/examples/angular/router/tsconfig.app.json +++ b/examples/angular/router/tsconfig.app.json @@ -1,4 +1,3 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "extends": "./tsconfig.json", "compilerOptions": { diff --git a/examples/angular/router/tsconfig.json b/examples/angular/router/tsconfig.json index fd2d87ac26..82c63d482a 100644 --- a/examples/angular/router/tsconfig.json +++ b/examples/angular/router/tsconfig.json @@ -1,4 +1,3 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "compileOnSave": false, "compilerOptions": { diff --git a/examples/angular/simple/tsconfig.app.json b/examples/angular/simple/tsconfig.app.json index 84f1f992d2..5b9d3c5ecb 100644 --- a/examples/angular/simple/tsconfig.app.json +++ b/examples/angular/simple/tsconfig.app.json @@ -1,4 +1,3 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "extends": "./tsconfig.json", "compilerOptions": { diff --git a/examples/angular/simple/tsconfig.json b/examples/angular/simple/tsconfig.json index fd2d87ac26..82c63d482a 100644 --- a/examples/angular/simple/tsconfig.json +++ b/examples/angular/simple/tsconfig.json @@ -1,4 +1,3 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "compileOnSave": false, "compilerOptions": { diff --git a/integrations/angular-cli-standalone-17/.gitignore b/integrations/angular-cli-17/.gitignore similarity index 100% rename from integrations/angular-cli-standalone-17/.gitignore rename to integrations/angular-cli-17/.gitignore diff --git a/integrations/angular-cli-standalone-17/README.md b/integrations/angular-cli-17/README.md similarity index 97% rename from integrations/angular-cli-standalone-17/README.md rename to integrations/angular-cli-17/README.md index 349ff2d006..0d54414bcc 100644 --- a/integrations/angular-cli-standalone-17/README.md +++ b/integrations/angular-cli-17/README.md @@ -1,4 +1,4 @@ -# AngularCliStandalone17 +# AngularCli17 This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0. diff --git a/integrations/angular-cli-standalone-17/angular.json b/integrations/angular-cli-17/angular.json similarity index 89% rename from integrations/angular-cli-standalone-17/angular.json rename to integrations/angular-cli-17/angular.json index 31de28bdec..efe01cbab0 100644 --- a/integrations/angular-cli-standalone-17/angular.json +++ b/integrations/angular-cli-17/angular.json @@ -7,7 +7,7 @@ }, "newProjectRoot": "projects", "projects": { - "angular-cli-standalone-17": { + "angular-cli-17": { "projectType": "application", "schematics": { "@schematics/angular:component": { @@ -44,7 +44,7 @@ "build": { "builder": "@angular-devkit/build-angular:application", "options": { - "outputPath": "dist/angular-cli-standalone-17", + "outputPath": "dist/angular-cli-17", "index": "src/index.html", "browser": "src/main.ts", "polyfills": ["zone.js"], @@ -81,10 +81,10 @@ "builder": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "buildTarget": "angular-cli-standalone-17:build:production" + "buildTarget": "angular-cli-17:build:production" }, "development": { - "buildTarget": "angular-cli-standalone-17:build:development" + "buildTarget": "angular-cli-17:build:development" } }, "defaultConfiguration": "development" @@ -92,7 +92,7 @@ "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "buildTarget": "angular-cli-standalone-17:build" + "buildTarget": "angular-cli-17:build" } } } diff --git a/integrations/angular-cli-standalone-17/package.json b/integrations/angular-cli-17/package.json similarity index 93% rename from integrations/angular-cli-standalone-17/package.json rename to integrations/angular-cli-17/package.json index eb9a699779..f848d58120 100644 --- a/integrations/angular-cli-standalone-17/package.json +++ b/integrations/angular-cli-17/package.json @@ -1,5 +1,5 @@ { - "name": "angular-cli-standalone-17", + "name": "angular-cli-17", "private": true, "scripts": { "build": "ng build" diff --git a/integrations/angular-cli-standalone-17/src/app/app.component.ts b/integrations/angular-cli-17/src/app/app.component.ts similarity index 100% rename from integrations/angular-cli-standalone-17/src/app/app.component.ts rename to integrations/angular-cli-17/src/app/app.component.ts diff --git a/integrations/angular-cli-standalone-17/src/app/app.config.ts b/integrations/angular-cli-17/src/app/app.config.ts similarity index 100% rename from integrations/angular-cli-standalone-17/src/app/app.config.ts rename to integrations/angular-cli-17/src/app/app.config.ts diff --git a/integrations/angular-cli-standalone-17/src/assets/.gitkeep b/integrations/angular-cli-17/src/assets/.gitkeep similarity index 100% rename from integrations/angular-cli-standalone-17/src/assets/.gitkeep rename to integrations/angular-cli-17/src/assets/.gitkeep diff --git a/integrations/angular-cli-standalone-17/src/favicon.ico b/integrations/angular-cli-17/src/favicon.ico similarity index 100% rename from integrations/angular-cli-standalone-17/src/favicon.ico rename to integrations/angular-cli-17/src/favicon.ico diff --git a/integrations/angular-cli-standalone-17/src/index.html b/integrations/angular-cli-17/src/index.html similarity index 87% rename from integrations/angular-cli-standalone-17/src/index.html rename to integrations/angular-cli-17/src/index.html index dd7dad0daa..c760f9e78d 100644 --- a/integrations/angular-cli-standalone-17/src/index.html +++ b/integrations/angular-cli-17/src/index.html @@ -2,7 +2,7 @@ - AngularCliStandalone17 + AngularCli17 diff --git a/integrations/angular-cli-standalone-17/src/main.ts b/integrations/angular-cli-17/src/main.ts similarity index 100% rename from integrations/angular-cli-standalone-17/src/main.ts rename to integrations/angular-cli-17/src/main.ts diff --git a/integrations/angular-cli-standalone-17/src/styles.css b/integrations/angular-cli-17/src/styles.css similarity index 100% rename from integrations/angular-cli-standalone-17/src/styles.css rename to integrations/angular-cli-17/src/styles.css diff --git a/integrations/angular-cli-standalone-17/tsconfig.app.json b/integrations/angular-cli-17/tsconfig.app.json similarity index 68% rename from integrations/angular-cli-standalone-17/tsconfig.app.json rename to integrations/angular-cli-17/tsconfig.app.json index 84f1f992d2..5b9d3c5ecb 100644 --- a/integrations/angular-cli-standalone-17/tsconfig.app.json +++ b/integrations/angular-cli-17/tsconfig.app.json @@ -1,4 +1,3 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "extends": "./tsconfig.json", "compilerOptions": { diff --git a/integrations/angular-cli-standalone-17/tsconfig.json b/integrations/angular-cli-17/tsconfig.json similarity index 91% rename from integrations/angular-cli-standalone-17/tsconfig.json rename to integrations/angular-cli-17/tsconfig.json index d276020ea7..8d7a99b810 100644 --- a/integrations/angular-cli-standalone-17/tsconfig.json +++ b/integrations/angular-cli-17/tsconfig.json @@ -1,4 +1,3 @@ -/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "compileOnSave": false, "compilerOptions": { diff --git a/integrations/react-next/.eslintrc.cjs b/integrations/react-next-14/.eslintrc.cjs similarity index 100% rename from integrations/react-next/.eslintrc.cjs rename to integrations/react-next-14/.eslintrc.cjs diff --git a/integrations/react-next/.gitignore b/integrations/react-next-14/.gitignore similarity index 100% rename from integrations/react-next/.gitignore rename to integrations/react-next-14/.gitignore diff --git a/integrations/react-next/README.md b/integrations/react-next-14/README.md similarity index 100% rename from integrations/react-next/README.md rename to integrations/react-next-14/README.md diff --git a/integrations/react-next/app/client-component.tsx b/integrations/react-next-14/app/client-component.tsx similarity index 100% rename from integrations/react-next/app/client-component.tsx rename to integrations/react-next-14/app/client-component.tsx diff --git a/integrations/react-next/app/favicon.ico b/integrations/react-next-14/app/favicon.ico similarity index 100% rename from integrations/react-next/app/favicon.ico rename to integrations/react-next-14/app/favicon.ico diff --git a/integrations/react-next/app/layout.tsx b/integrations/react-next-14/app/layout.tsx similarity index 100% rename from integrations/react-next/app/layout.tsx rename to integrations/react-next-14/app/layout.tsx diff --git a/integrations/react-next/app/page.tsx b/integrations/react-next-14/app/page.tsx similarity index 100% rename from integrations/react-next/app/page.tsx rename to integrations/react-next-14/app/page.tsx diff --git a/integrations/react-next/app/providers.tsx b/integrations/react-next-14/app/providers.tsx similarity index 100% rename from integrations/react-next/app/providers.tsx rename to integrations/react-next-14/app/providers.tsx diff --git a/integrations/react-next/next.config.js b/integrations/react-next-14/next.config.js similarity index 100% rename from integrations/react-next/next.config.js rename to integrations/react-next-14/next.config.js diff --git a/integrations/react-next/package.json b/integrations/react-next-14/package.json similarity index 93% rename from integrations/react-next/package.json rename to integrations/react-next-14/package.json index 1b8ccbf7f3..80faffa942 100644 --- a/integrations/react-next/package.json +++ b/integrations/react-next-14/package.json @@ -1,5 +1,5 @@ { - "name": "react-next", + "name": "react-next-14", "private": true, "scripts": { "build": "next build" diff --git a/integrations/react-next/tsconfig.json b/integrations/react-next-14/tsconfig.json similarity index 100% rename from integrations/react-next/tsconfig.json rename to integrations/react-next-14/tsconfig.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8815772eab..2bbd9cbc03 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1616,7 +1616,7 @@ importers: specifier: ^5.3.5 version: 5.3.5(@types/node@22.0.2)(less@4.2.0)(sass@1.77.8)(terser@5.31.3) - integrations/angular-cli-standalone-17: + integrations/angular-cli-17: dependencies: '@angular/common': specifier: ^17.3.12 @@ -1700,7 +1700,7 @@ importers: specifier: ^7.0.3 version: 7.0.3 - integrations/react-next: + integrations/react-next-14: dependencies: '@tanstack/react-query': specifier: workspace:*