From 39a35d88cc6ece8bd8b3bc3d45f408272fc19fd7 Mon Sep 17 00:00:00 2001 From: Sol Lee <82362278+saul-atomrigs@users.noreply.github.com> Date: Sat, 2 Nov 2024 18:56:40 +0900 Subject: [PATCH 1/6] chore(react-query-persist-client): remove redundant `setIsRestoring(true)` to fix lint warning (#8213) --- .../src/PersistQueryClientProvider.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-query-persist-client/src/PersistQueryClientProvider.tsx b/packages/react-query-persist-client/src/PersistQueryClientProvider.tsx index 9664d4e21b..b7b93bc536 100644 --- a/packages/react-query-persist-client/src/PersistQueryClientProvider.tsx +++ b/packages/react-query-persist-client/src/PersistQueryClientProvider.tsx @@ -36,7 +36,6 @@ export const PersistQueryClientProvider = ({ } if (!didRestore.current) { didRestore.current = true - setIsRestoring(true) persistQueryClientRestore(options).then(async () => { try { await refs.current.onSuccess?.() From c6436358500f8c71233279a99f166af6dd8e4196 Mon Sep 17 00:00:00 2001 From: Dominik Dorfmeister Date: Sat, 2 Nov 2024 17:42:03 +0000 Subject: [PATCH 2/6] fix(useQueries): warn on duplicate keys (#8246) --- packages/query-core/src/queriesObserver.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/query-core/src/queriesObserver.ts b/packages/query-core/src/queriesObserver.ts index a15139d24e..ea0ca7b02a 100644 --- a/packages/query-core/src/queriesObserver.ts +++ b/packages/query-core/src/queriesObserver.ts @@ -91,6 +91,15 @@ export class QueriesObserver< this.#queries = queries this.#options = options + if (process.env.NODE_ENV !== 'production') { + const queryHashes = queries.map((query) => query.queryHash) + if (new Set(queryHashes).size !== queryHashes.length) { + console.warn( + '[QueriesObserver]: Duplicate Queries found. This might result in unexpected behavior.', + ) + } + } + notifyManager.batch(() => { const prevObservers = this.#observers From fdc5c8eb1eb830dba19941de79f0f9452de94f51 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Sat, 2 Nov 2024 17:45:57 +0000 Subject: [PATCH 3/6] release: v5.59.17 --- examples/angular/basic/package.json | 4 +- .../package.json | 4 +- examples/angular/pagination/package.json | 4 +- .../query-options-from-a-service/package.json | 4 +- examples/angular/router/package.json | 4 +- examples/angular/rxjs/package.json | 4 +- examples/angular/simple/package.json | 4 +- 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 | 8 +- .../react/default-query-function/package.json | 4 +- examples/react/devtools-panel/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 | 8 +- .../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 +- examples/solid/astro/package.json | 4 +- .../solid/basic-graphql-request/package.json | 4 +- examples/solid/basic/package.json | 4 +- .../solid/default-query-function/package.json | 4 +- examples/solid/simple/package.json | 4 +- .../solid/solid-start-streaming/package.json | 4 +- examples/svelte/auto-refetching/package.json | 4 +- examples/svelte/basic/package.json | 8 +- .../load-more-infinite-scroll/package.json | 4 +- .../svelte/optimistic-updates/package.json | 4 +- examples/svelte/playground/package.json | 4 +- examples/svelte/simple/package.json | 4 +- examples/svelte/ssr/package.json | 4 +- examples/svelte/star-wars/package.json | 4 +- examples/vue/2.6-basic/package.json | 2 +- examples/vue/2.7-basic/package.json | 2 +- examples/vue/basic/package.json | 4 +- examples/vue/dependent-queries/package.json | 2 +- examples/vue/nuxt3/package.json | 2 +- examples/vue/persister/package.json | 8 +- examples/vue/simple/package.json | 4 +- .../package.json | 2 +- .../angular-query-experimental/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- packages/query-core/package.json | 2 +- .../query-persist-client-core/package.json | 2 +- .../query-sync-storage-persister/package.json | 2 +- packages/react-query-devtools/package.json | 2 +- .../package.json | 2 +- .../react-query-persist-client/package.json | 2 +- packages/react-query/package.json | 2 +- packages/solid-query-devtools/package.json | 2 +- .../solid-query-persist-client/package.json | 2 +- packages/solid-query/package.json | 2 +- packages/svelte-query-devtools/package.json | 2 +- .../svelte-query-persist-client/package.json | 2 +- packages/svelte-query/package.json | 2 +- packages/vue-query-devtools/package.json | 2 +- packages/vue-query/package.json | 2 +- pnpm-lock.yaml | 214 +++++++++--------- 72 files changed, 235 insertions(+), 235 deletions(-) diff --git a/examples/angular/basic/package.json b/examples/angular/basic/package.json index 1a8ea9a179..30787d9b8b 100644 --- a/examples/angular/basic/package.json +++ b/examples/angular/basic/package.json @@ -14,7 +14,7 @@ "@angular/core": "^17.3.12", "@angular/platform-browser": "^17.3.12", "@angular/platform-browser-dynamic": "^17.3.12", - "@tanstack/angular-query-experimental": "^5.59.16", + "@tanstack/angular-query-experimental": "^5.59.17", "rxjs": "^7.8.1", "tslib": "^2.6.3", "zone.js": "^0.14.8" @@ -23,7 +23,7 @@ "@angular-devkit/build-angular": "^17.3.8", "@angular/cli": "^17.3.8", "@angular/compiler-cli": "^17.3.12", - "@tanstack/angular-query-devtools-experimental": "^5.59.16", + "@tanstack/angular-query-devtools-experimental": "^5.59.17", "typescript": "5.3.3" } } diff --git a/examples/angular/infinite-query-with-max-pages/package.json b/examples/angular/infinite-query-with-max-pages/package.json index 7de533af5c..e580b8eaae 100644 --- a/examples/angular/infinite-query-with-max-pages/package.json +++ b/examples/angular/infinite-query-with-max-pages/package.json @@ -14,7 +14,7 @@ "@angular/core": "^17.3.12", "@angular/platform-browser": "^17.3.12", "@angular/platform-browser-dynamic": "^17.3.12", - "@tanstack/angular-query-experimental": "^5.59.16", + "@tanstack/angular-query-experimental": "^5.59.17", "rxjs": "^7.8.1", "tslib": "^2.6.3", "zone.js": "^0.14.8" @@ -23,7 +23,7 @@ "@angular-devkit/build-angular": "^17.3.8", "@angular/cli": "^17.3.8", "@angular/compiler-cli": "^17.3.12", - "@tanstack/angular-query-devtools-experimental": "^5.59.16", + "@tanstack/angular-query-devtools-experimental": "^5.59.17", "typescript": "5.3.3" } } diff --git a/examples/angular/pagination/package.json b/examples/angular/pagination/package.json index 792883bd84..803baff43d 100644 --- a/examples/angular/pagination/package.json +++ b/examples/angular/pagination/package.json @@ -14,7 +14,7 @@ "@angular/core": "^17.3.12", "@angular/platform-browser": "^17.3.12", "@angular/platform-browser-dynamic": "^17.3.12", - "@tanstack/angular-query-experimental": "^5.59.16", + "@tanstack/angular-query-experimental": "^5.59.17", "rxjs": "^7.8.1", "tslib": "^2.6.3", "zone.js": "^0.14.8" @@ -23,7 +23,7 @@ "@angular-devkit/build-angular": "^17.3.8", "@angular/cli": "^17.3.8", "@angular/compiler-cli": "^17.3.12", - "@tanstack/angular-query-devtools-experimental": "^5.59.16", + "@tanstack/angular-query-devtools-experimental": "^5.59.17", "typescript": "5.3.3" } } diff --git a/examples/angular/query-options-from-a-service/package.json b/examples/angular/query-options-from-a-service/package.json index 2982cd9361..0bcf4f7714 100644 --- a/examples/angular/query-options-from-a-service/package.json +++ b/examples/angular/query-options-from-a-service/package.json @@ -15,7 +15,7 @@ "@angular/platform-browser": "^17.3.12", "@angular/platform-browser-dynamic": "^17.3.12", "@angular/router": "^17.3.12", - "@tanstack/angular-query-experimental": "^5.59.16", + "@tanstack/angular-query-experimental": "^5.59.17", "rxjs": "^7.8.1", "tslib": "^2.6.3", "zone.js": "^0.14.8" @@ -24,7 +24,7 @@ "@angular-devkit/build-angular": "^17.3.8", "@angular/cli": "^17.3.8", "@angular/compiler-cli": "^17.3.12", - "@tanstack/angular-query-devtools-experimental": "^5.59.16", + "@tanstack/angular-query-devtools-experimental": "^5.59.17", "typescript": "5.3.3" } } diff --git a/examples/angular/router/package.json b/examples/angular/router/package.json index f55f25f400..005227f6b4 100644 --- a/examples/angular/router/package.json +++ b/examples/angular/router/package.json @@ -15,7 +15,7 @@ "@angular/platform-browser": "^17.3.12", "@angular/platform-browser-dynamic": "^17.3.12", "@angular/router": "^17.3.12", - "@tanstack/angular-query-experimental": "^5.59.16", + "@tanstack/angular-query-experimental": "^5.59.17", "rxjs": "^7.8.1", "tslib": "^2.6.3", "zone.js": "^0.14.8" @@ -24,7 +24,7 @@ "@angular-devkit/build-angular": "^17.3.8", "@angular/cli": "^17.3.8", "@angular/compiler-cli": "^17.3.12", - "@tanstack/angular-query-devtools-experimental": "^5.59.16", + "@tanstack/angular-query-devtools-experimental": "^5.59.17", "typescript": "5.3.3" } } diff --git a/examples/angular/rxjs/package.json b/examples/angular/rxjs/package.json index 53ec74220d..9140783067 100644 --- a/examples/angular/rxjs/package.json +++ b/examples/angular/rxjs/package.json @@ -16,7 +16,7 @@ "@angular/forms": "17.3.12", "@angular/platform-browser": "^17.3.12", "@angular/platform-browser-dynamic": "^17.3.12", - "@tanstack/angular-query-experimental": "^5.59.16", + "@tanstack/angular-query-experimental": "^5.59.17", "rxjs": "^7.8.1", "tslib": "^2.6.3", "zone.js": "^0.14.8" @@ -25,7 +25,7 @@ "@angular-devkit/build-angular": "^17.3.8", "@angular/cli": "^17.3.8", "@angular/compiler-cli": "^17.3.12", - "@tanstack/angular-query-devtools-experimental": "^5.59.16", + "@tanstack/angular-query-devtools-experimental": "^5.59.17", "typescript": "5.3.3" } } diff --git a/examples/angular/simple/package.json b/examples/angular/simple/package.json index 6645d18903..be76921880 100644 --- a/examples/angular/simple/package.json +++ b/examples/angular/simple/package.json @@ -15,7 +15,7 @@ "@angular/platform-browser": "^17.3.12", "@angular/platform-browser-dynamic": "^17.3.12", "@angular/router": "^17.3.12", - "@tanstack/angular-query-experimental": "^5.59.16", + "@tanstack/angular-query-experimental": "^5.59.17", "rxjs": "^7.8.1", "tslib": "^2.6.3", "zone.js": "^0.14.8" @@ -24,7 +24,7 @@ "@angular-devkit/build-angular": "^17.3.8", "@angular/cli": "^17.3.8", "@angular/compiler-cli": "^17.3.12", - "@tanstack/angular-query-devtools-experimental": "^5.59.16", + "@tanstack/angular-query-devtools-experimental": "^5.59.17", "typescript": "5.3.3" } } diff --git a/examples/react/algolia/package.json b/examples/react/algolia/package.json index 964a74086e..b6bef7af15 100644 --- a/examples/react/algolia/package.json +++ b/examples/react/algolia/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@algolia/client-search": "5.2.1", - "@tanstack/react-query": "^5.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 2a24d79a09..1f185723a6 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 dd6b858ea7..c6edf679ad 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 698f967a15..a239235468 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,10 +9,10 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/query-sync-storage-persister": "^5.59.16", - "@tanstack/react-query": "^5.59.16", - "@tanstack/react-query-devtools": "^5.59.16", - "@tanstack/react-query-persist-client": "^5.59.16", + "@tanstack/query-sync-storage-persister": "^5.59.17", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query-persist-client": "^5.59.17", "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 004d6dd5d3..7fcde8c2dc 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522" }, diff --git a/examples/react/devtools-panel/package.json b/examples/react/devtools-panel/package.json index 4637f097bf..7a323e00ef 100644 --- a/examples/react/devtools-panel/package.json +++ b/examples/react/devtools-panel/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 5606d7b34b..300ee2ff22 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 745c44c65a..cceddccb3c 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 ba50526d11..249f7a9228 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 fc2b656c8a..945962ae42 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", - "@tanstack/react-query-next-experimental": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query-next-experimental": "^5.59.17", "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 4895b6fff4..072bc3406b 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 6e0fb7de99..fa2302ff37 100644 --- a/examples/react/offline/package.json +++ b/examples/react/offline/package.json @@ -8,11 +8,11 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/query-sync-storage-persister": "^5.59.16", + "@tanstack/query-sync-storage-persister": "^5.59.17", "@tanstack/react-location": "^3.7.4", - "@tanstack/react-query": "^5.59.16", - "@tanstack/react-query-devtools": "^5.59.16", - "@tanstack/react-query-persist-client": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query-persist-client": "^5.59.17", "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 4ee007d5a8..aab0cb2bef 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 8e1219e522..4f6b96f322 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 329e3fc19a..589ef870b0 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 feff98b800..58c8cf15a5 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 94e332a207..37b9aa3627 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 a227298701..47126282d6 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 5fc9c6008a..65edc6804a 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 8f2d22baa3..f8a46bd165 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": "^6.0.0", "@mui/styles": "^6.0.0", - "@tanstack/react-query": "^5.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 9716ab3614..2b9409dfa4 100644 --- a/examples/react/shadow-dom/package.json +++ b/examples/react/shadow-dom/package.json @@ -9,8 +9,8 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-query": "^5.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 ee335ac8a8..51a570b72e 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 8e3e20e830..dc8a610b85 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": "^6.0.0", "@mui/styles": "^6.0.0", - "@tanstack/react-query": "^5.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "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 38e7c48ae1..3c1e9fead1 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.59.16", - "@tanstack/react-query-devtools": "^5.59.16", + "@tanstack/react-query": "^5.59.17", + "@tanstack/react-query-devtools": "^5.59.17", "font-awesome": "^4.7.0", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522", diff --git a/examples/solid/astro/package.json b/examples/solid/astro/package.json index 6f7b57f2fb..a03b2f6028 100644 --- a/examples/solid/astro/package.json +++ b/examples/solid/astro/package.json @@ -15,8 +15,8 @@ "@astrojs/solid-js": "^4.4.0", "@astrojs/tailwind": "^5.1.0", "@astrojs/vercel": "^7.7.2", - "@tanstack/solid-query": "^5.59.16", - "@tanstack/solid-query-devtools": "^5.59.16", + "@tanstack/solid-query": "^5.59.17", + "@tanstack/solid-query-devtools": "^5.59.17", "astro": "^4.12.2", "solid-js": "^1.8.19", "tailwindcss": "^3.4.7", diff --git a/examples/solid/basic-graphql-request/package.json b/examples/solid/basic-graphql-request/package.json index f777be7e86..988aae30e9 100644 --- a/examples/solid/basic-graphql-request/package.json +++ b/examples/solid/basic-graphql-request/package.json @@ -9,8 +9,8 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/solid-query": "^5.59.16", - "@tanstack/solid-query-devtools": "^5.59.16", + "@tanstack/solid-query": "^5.59.17", + "@tanstack/solid-query-devtools": "^5.59.17", "graphql": "^16.9.0", "graphql-request": "^7.1.0", "solid-js": "^1.8.19" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index 18a42c8ac0..3a0daeaecf 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -9,8 +9,8 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/solid-query": "^5.59.16", - "@tanstack/solid-query-devtools": "^5.59.16", + "@tanstack/solid-query": "^5.59.17", + "@tanstack/solid-query-devtools": "^5.59.17", "solid-js": "^1.8.19" }, "devDependencies": { diff --git a/examples/solid/default-query-function/package.json b/examples/solid/default-query-function/package.json index 756889348e..707a2a6f4e 100644 --- a/examples/solid/default-query-function/package.json +++ b/examples/solid/default-query-function/package.json @@ -9,8 +9,8 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/solid-query": "^5.59.16", - "@tanstack/solid-query-devtools": "^5.59.16", + "@tanstack/solid-query": "^5.59.17", + "@tanstack/solid-query-devtools": "^5.59.17", "solid-js": "^1.8.19" }, "devDependencies": { diff --git a/examples/solid/simple/package.json b/examples/solid/simple/package.json index 503e17ccbe..c0afe68816 100644 --- a/examples/solid/simple/package.json +++ b/examples/solid/simple/package.json @@ -9,8 +9,8 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/solid-query": "^5.59.16", - "@tanstack/solid-query-devtools": "^5.59.16", + "@tanstack/solid-query": "^5.59.17", + "@tanstack/solid-query-devtools": "^5.59.17", "solid-js": "^1.8.19" }, "devDependencies": { diff --git a/examples/solid/solid-start-streaming/package.json b/examples/solid/solid-start-streaming/package.json index 59d2e0ea15..212f52923d 100644 --- a/examples/solid/solid-start-streaming/package.json +++ b/examples/solid/solid-start-streaming/package.json @@ -12,8 +12,8 @@ "@solidjs/meta": "^0.29.4", "@solidjs/router": "^0.14.1", "@solidjs/start": "^1.0.6", - "@tanstack/solid-query": "^5.59.16", - "@tanstack/solid-query-devtools": "^5.59.16", + "@tanstack/solid-query": "^5.59.17", + "@tanstack/solid-query-devtools": "^5.59.17", "solid-js": "^1.8.19", "vinxi": "^0.4.1" }, diff --git a/examples/svelte/auto-refetching/package.json b/examples/svelte/auto-refetching/package.json index e4944e46f3..5b91b603ed 100644 --- a/examples/svelte/auto-refetching/package.json +++ b/examples/svelte/auto-refetching/package.json @@ -9,8 +9,8 @@ "test:types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { - "@tanstack/svelte-query": "^5.59.16", - "@tanstack/svelte-query-devtools": "^5.59.16" + "@tanstack/svelte-query": "^5.59.17", + "@tanstack/svelte-query-devtools": "^5.59.17" }, "devDependencies": { "@sveltejs/adapter-auto": "^3.2.2", diff --git a/examples/svelte/basic/package.json b/examples/svelte/basic/package.json index bd3e2d3520..0e816eb40d 100644 --- a/examples/svelte/basic/package.json +++ b/examples/svelte/basic/package.json @@ -9,10 +9,10 @@ "test:types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { - "@tanstack/query-sync-storage-persister": "^5.59.16", - "@tanstack/svelte-query": "^5.59.16", - "@tanstack/svelte-query-devtools": "^5.59.16", - "@tanstack/svelte-query-persist-client": "^5.59.16" + "@tanstack/query-sync-storage-persister": "^5.59.17", + "@tanstack/svelte-query": "^5.59.17", + "@tanstack/svelte-query-devtools": "^5.59.17", + "@tanstack/svelte-query-persist-client": "^5.59.17" }, "devDependencies": { "@sveltejs/adapter-auto": "^3.2.2", diff --git a/examples/svelte/load-more-infinite-scroll/package.json b/examples/svelte/load-more-infinite-scroll/package.json index 9e99935bd8..e0b384c3f1 100644 --- a/examples/svelte/load-more-infinite-scroll/package.json +++ b/examples/svelte/load-more-infinite-scroll/package.json @@ -9,8 +9,8 @@ "test:types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { - "@tanstack/svelte-query": "^5.59.16", - "@tanstack/svelte-query-devtools": "^5.59.16" + "@tanstack/svelte-query": "^5.59.17", + "@tanstack/svelte-query-devtools": "^5.59.17" }, "devDependencies": { "@sveltejs/adapter-auto": "^3.2.2", diff --git a/examples/svelte/optimistic-updates/package.json b/examples/svelte/optimistic-updates/package.json index 7dbefd279f..410aaa29be 100644 --- a/examples/svelte/optimistic-updates/package.json +++ b/examples/svelte/optimistic-updates/package.json @@ -9,8 +9,8 @@ "test:types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { - "@tanstack/svelte-query": "^5.59.16", - "@tanstack/svelte-query-devtools": "^5.59.16" + "@tanstack/svelte-query": "^5.59.17", + "@tanstack/svelte-query-devtools": "^5.59.17" }, "devDependencies": { "@sveltejs/adapter-auto": "^3.2.2", diff --git a/examples/svelte/playground/package.json b/examples/svelte/playground/package.json index d5cc87dcf8..c2e63b6a8a 100644 --- a/examples/svelte/playground/package.json +++ b/examples/svelte/playground/package.json @@ -9,8 +9,8 @@ "test:types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { - "@tanstack/svelte-query": "^5.59.16", - "@tanstack/svelte-query-devtools": "^5.59.16" + "@tanstack/svelte-query": "^5.59.17", + "@tanstack/svelte-query-devtools": "^5.59.17" }, "devDependencies": { "@sveltejs/adapter-auto": "^3.2.2", diff --git a/examples/svelte/simple/package.json b/examples/svelte/simple/package.json index 177cd277c5..9cde00170c 100644 --- a/examples/svelte/simple/package.json +++ b/examples/svelte/simple/package.json @@ -9,8 +9,8 @@ "test:types": "svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { - "@tanstack/svelte-query": "^5.59.16", - "@tanstack/svelte-query-devtools": "^5.59.16" + "@tanstack/svelte-query": "^5.59.17", + "@tanstack/svelte-query-devtools": "^5.59.17" }, "devDependencies": { "@sveltejs/vite-plugin-svelte": "^3.1.1", diff --git a/examples/svelte/ssr/package.json b/examples/svelte/ssr/package.json index 2e5020a420..41ceadaec0 100644 --- a/examples/svelte/ssr/package.json +++ b/examples/svelte/ssr/package.json @@ -9,8 +9,8 @@ "test:types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { - "@tanstack/svelte-query": "^5.59.16", - "@tanstack/svelte-query-devtools": "^5.59.16" + "@tanstack/svelte-query": "^5.59.17", + "@tanstack/svelte-query-devtools": "^5.59.17" }, "devDependencies": { "@sveltejs/adapter-auto": "^3.2.2", diff --git a/examples/svelte/star-wars/package.json b/examples/svelte/star-wars/package.json index bb4f972648..2f2a203450 100644 --- a/examples/svelte/star-wars/package.json +++ b/examples/svelte/star-wars/package.json @@ -9,8 +9,8 @@ "test:types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" }, "dependencies": { - "@tanstack/svelte-query": "^5.59.16", - "@tanstack/svelte-query-devtools": "^5.59.16" + "@tanstack/svelte-query": "^5.59.17", + "@tanstack/svelte-query-devtools": "^5.59.17" }, "devDependencies": { "@sveltejs/adapter-auto": "^3.2.2", diff --git a/examples/vue/2.6-basic/package.json b/examples/vue/2.6-basic/package.json index a649ba3102..4c548175b5 100644 --- a/examples/vue/2.6-basic/package.json +++ b/examples/vue/2.6-basic/package.json @@ -8,7 +8,7 @@ "_preview": "vite preview" }, "dependencies": { - "@tanstack/vue-query": "^5.59.16", + "@tanstack/vue-query": "^5.59.17", "@vue/composition-api": "1.7.2", "vue": "2.6.14", "vue-template-compiler": "2.6.14" diff --git a/examples/vue/2.7-basic/package.json b/examples/vue/2.7-basic/package.json index 2e2ca6d3f1..3654530e30 100644 --- a/examples/vue/2.7-basic/package.json +++ b/examples/vue/2.7-basic/package.json @@ -8,7 +8,7 @@ "_serve": "vite preview" }, "dependencies": { - "@tanstack/vue-query": "^5.59.16", + "@tanstack/vue-query": "^5.59.17", "vue": "2.7.16", "vue-template-compiler": "2.7.16" }, diff --git a/examples/vue/basic/package.json b/examples/vue/basic/package.json index 5801024f1b..3e8c2653b0 100644 --- a/examples/vue/basic/package.json +++ b/examples/vue/basic/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/vue-query": "^5.59.16", - "@tanstack/vue-query-devtools": "^5.59.16", + "@tanstack/vue-query": "^5.59.17", + "@tanstack/vue-query-devtools": "^5.59.17", "vue": "^3.4.27" }, "devDependencies": { diff --git a/examples/vue/dependent-queries/package.json b/examples/vue/dependent-queries/package.json index 8bb1d0a86b..183c9602b9 100644 --- a/examples/vue/dependent-queries/package.json +++ b/examples/vue/dependent-queries/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/vue-query": "^5.59.16", + "@tanstack/vue-query": "^5.59.17", "vue": "^3.4.27" }, "devDependencies": { diff --git a/examples/vue/nuxt3/package.json b/examples/vue/nuxt3/package.json index f081a76405..95d87e7609 100644 --- a/examples/vue/nuxt3/package.json +++ b/examples/vue/nuxt3/package.json @@ -7,7 +7,7 @@ "_start": "node .output/server/index.mjs" }, "dependencies": { - "@tanstack/vue-query": "^5.59.16" + "@tanstack/vue-query": "^5.59.17" }, "devDependencies": { "nuxt": "^3.12.4" diff --git a/examples/vue/persister/package.json b/examples/vue/persister/package.json index 4c48e8da40..13379df7bd 100644 --- a/examples/vue/persister/package.json +++ b/examples/vue/persister/package.json @@ -8,10 +8,10 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/query-core": "^5.59.16", - "@tanstack/query-persist-client-core": "^5.59.16", - "@tanstack/query-sync-storage-persister": "^5.59.16", - "@tanstack/vue-query": "^5.59.16", + "@tanstack/query-core": "^5.59.17", + "@tanstack/query-persist-client-core": "^5.59.17", + "@tanstack/query-sync-storage-persister": "^5.59.17", + "@tanstack/vue-query": "^5.59.17", "idb-keyval": "^6.2.1", "vue": "^3.4.27" }, diff --git a/examples/vue/simple/package.json b/examples/vue/simple/package.json index a8d758a8dc..820a144588 100644 --- a/examples/vue/simple/package.json +++ b/examples/vue/simple/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/vue-query": "^5.59.16", - "@tanstack/vue-query-devtools": "^5.59.16", + "@tanstack/vue-query": "^5.59.17", + "@tanstack/vue-query-devtools": "^5.59.17", "vue": "^3.4.27" }, "devDependencies": { diff --git a/packages/angular-query-devtools-experimental/package.json b/packages/angular-query-devtools-experimental/package.json index adc2a8f4bd..708cc8fc36 100644 --- a/packages/angular-query-devtools-experimental/package.json +++ b/packages/angular-query-devtools-experimental/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/angular-query-devtools-experimental", - "version": "5.59.16", + "version": "5.59.17", "description": "Developer tools to interact with and visualize the TanStack/angular-query cache", "author": "Arnoud de Vries", "license": "MIT", diff --git a/packages/angular-query-experimental/package.json b/packages/angular-query-experimental/package.json index d661feb8a9..2feac04ac1 100644 --- a/packages/angular-query-experimental/package.json +++ b/packages/angular-query-experimental/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/angular-query-experimental", - "version": "5.59.16", + "version": "5.59.17", "description": "Signals for managing, caching and syncing asynchronous and remote data in Angular", "author": "Arnoud de Vries", "license": "MIT", diff --git a/packages/query-async-storage-persister/package.json b/packages/query-async-storage-persister/package.json index 502ec663c7..d38d24216a 100644 --- a/packages/query-async-storage-persister/package.json +++ b/packages/query-async-storage-persister/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-async-storage-persister", - "version": "5.59.16", + "version": "5.59.17", "description": "A persister for asynchronous storages, to be used with TanStack/Query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/query-broadcast-client-experimental/package.json b/packages/query-broadcast-client-experimental/package.json index e837a1bc3a..5005593c6c 100644 --- a/packages/query-broadcast-client-experimental/package.json +++ b/packages/query-broadcast-client-experimental/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-broadcast-client-experimental", - "version": "5.59.16", + "version": "5.59.17", "description": "An experimental plugin to for broadcasting the state of your queryClient between browser tabs/windows", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/query-core/package.json b/packages/query-core/package.json index 6235489862..7d55585ed6 100644 --- a/packages/query-core/package.json +++ b/packages/query-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-core", - "version": "5.59.16", + "version": "5.59.17", "description": "The framework agnostic core that powers TanStack Query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/query-persist-client-core/package.json b/packages/query-persist-client-core/package.json index e2bba4d306..e5a821b277 100644 --- a/packages/query-persist-client-core/package.json +++ b/packages/query-persist-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-persist-client-core", - "version": "5.59.16", + "version": "5.59.17", "description": "Set of utilities for interacting with persisters, which can save your queryClient for later use", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/query-sync-storage-persister/package.json b/packages/query-sync-storage-persister/package.json index 6a503d9be7..b8cd7fe7bc 100644 --- a/packages/query-sync-storage-persister/package.json +++ b/packages/query-sync-storage-persister/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-sync-storage-persister", - "version": "5.59.16", + "version": "5.59.17", "description": "A persister for synchronous storages, to be used with TanStack/Query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/react-query-devtools/package.json b/packages/react-query-devtools/package.json index 1eae0d41d5..422a357a5f 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.59.16", + "version": "5.59.17", "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 c8200711c7..45066e1074 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.59.16", + "version": "5.59.17", "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 e946234998..291b8085c5 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.59.16", + "version": "5.59.17", "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 82f024b2c4..990515e3f2 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-query", - "version": "5.59.16", + "version": "5.59.17", "description": "Hooks for managing, caching and syncing asynchronous and remote data in React", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/solid-query-devtools/package.json b/packages/solid-query-devtools/package.json index 271c8f53ef..aff5a0b202 100644 --- a/packages/solid-query-devtools/package.json +++ b/packages/solid-query-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-query-devtools", - "version": "5.59.16", + "version": "5.59.17", "description": "Developer tools to interact with and visualize the TanStack/solid-query Query cache", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/solid-query-persist-client/package.json b/packages/solid-query-persist-client/package.json index 45a1518623..cca676ff17 100644 --- a/packages/solid-query-persist-client/package.json +++ b/packages/solid-query-persist-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-query-persist-client", - "version": "5.59.16", + "version": "5.59.17", "description": "Solid.js bindings to work with persisters in TanStack/solid-query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/solid-query/package.json b/packages/solid-query/package.json index bac9351685..081c0e617e 100644 --- a/packages/solid-query/package.json +++ b/packages/solid-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-query", - "version": "5.59.16", + "version": "5.59.17", "description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/svelte-query-devtools/package.json b/packages/svelte-query-devtools/package.json index 407458151e..c181cc3db8 100644 --- a/packages/svelte-query-devtools/package.json +++ b/packages/svelte-query-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/svelte-query-devtools", - "version": "5.59.16", + "version": "5.59.17", "description": "Developer tools to interact with and visualize the TanStack/svelte-query cache", "author": "Lachlan Collins", "license": "MIT", diff --git a/packages/svelte-query-persist-client/package.json b/packages/svelte-query-persist-client/package.json index 538d29dcc0..33e43e6fed 100644 --- a/packages/svelte-query-persist-client/package.json +++ b/packages/svelte-query-persist-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/svelte-query-persist-client", - "version": "5.59.16", + "version": "5.59.17", "description": "Svelte bindings to work with persisters in TanStack/svelte-query", "author": "Lachlan Collins", "license": "MIT", diff --git a/packages/svelte-query/package.json b/packages/svelte-query/package.json index dc3c075b88..00455865b7 100644 --- a/packages/svelte-query/package.json +++ b/packages/svelte-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/svelte-query", - "version": "5.59.16", + "version": "5.59.17", "description": "Primitives for managing, caching and syncing asynchronous and remote data in Svelte", "author": "Lachlan Collins", "license": "MIT", diff --git a/packages/vue-query-devtools/package.json b/packages/vue-query-devtools/package.json index 883cd25129..63127e2321 100644 --- a/packages/vue-query-devtools/package.json +++ b/packages/vue-query-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/vue-query-devtools", - "version": "5.59.16", + "version": "5.59.17", "description": "Developer tools to interact with and visualize the TanStack/vue-query cache", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/vue-query/package.json b/packages/vue-query/package.json index 079bd8ed6a..a3e86cba81 100644 --- a/packages/vue-query/package.json +++ b/packages/vue-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/vue-query", - "version": "5.59.16", + "version": "5.59.17", "description": "Hooks for managing, caching and syncing asynchronous and remote data in Vue", "author": "Damian Osipiuk", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d3eb1c2ed2..a6ca34bc9d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -148,7 +148,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@17.3.12(@angular/animations@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))) '@tanstack/angular-query-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-experimental rxjs: specifier: ^7.8.1 @@ -170,7 +170,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.3.3) '@tanstack/angular-query-devtools-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-devtools-experimental typescript: specifier: 5.3.3 @@ -194,7 +194,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@17.3.12(@angular/animations@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))) '@tanstack/angular-query-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-experimental rxjs: specifier: ^7.8.1 @@ -216,7 +216,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.3.3) '@tanstack/angular-query-devtools-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-devtools-experimental typescript: specifier: 5.3.3 @@ -240,7 +240,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@17.3.12(@angular/animations@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))) '@tanstack/angular-query-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-experimental rxjs: specifier: ^7.8.1 @@ -262,7 +262,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.3.3) '@tanstack/angular-query-devtools-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-devtools-experimental typescript: specifier: 5.3.3 @@ -289,7 +289,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@17.3.12(@angular/animations@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1) '@tanstack/angular-query-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-experimental rxjs: specifier: ^7.8.1 @@ -311,7 +311,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.3.3) '@tanstack/angular-query-devtools-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-devtools-experimental typescript: specifier: 5.3.3 @@ -338,7 +338,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@17.3.12(@angular/animations@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1) '@tanstack/angular-query-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-experimental rxjs: specifier: ^7.8.1 @@ -360,7 +360,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.3.3) '@tanstack/angular-query-devtools-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-devtools-experimental typescript: specifier: 5.3.3 @@ -390,7 +390,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@17.3.12(@angular/animations@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))) '@tanstack/angular-query-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-experimental rxjs: specifier: ^7.8.1 @@ -412,7 +412,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.3.3) '@tanstack/angular-query-devtools-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-devtools-experimental typescript: specifier: 5.3.3 @@ -439,7 +439,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@17.3.12(@angular/animations@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1) '@tanstack/angular-query-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-experimental rxjs: specifier: ^7.8.1 @@ -461,7 +461,7 @@ importers: specifier: ^17.3.12 version: 17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.3.3) '@tanstack/angular-query-devtools-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/angular-query-devtools-experimental typescript: specifier: 5.3.3 @@ -473,10 +473,10 @@ importers: specifier: 5.2.1 version: 5.2.1 '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -507,10 +507,10 @@ importers: examples/react/auto-refetching: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -535,16 +535,16 @@ importers: examples/react/basic: dependencies: '@tanstack/query-sync-storage-persister': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/query-sync-storage-persister '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools '@tanstack/react-query-persist-client': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-persist-client react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -575,10 +575,10 @@ importers: examples/react/basic-graphql-request: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools graphql: specifier: ^16.9.0 @@ -603,10 +603,10 @@ importers: examples/react/default-query-function: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -628,10 +628,10 @@ importers: examples/react/devtools-panel: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -653,10 +653,10 @@ importers: examples/react/infinite-query-with-max-pages: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -681,10 +681,10 @@ importers: examples/react/load-more-infinite-scroll: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -712,10 +712,10 @@ importers: examples/react/nextjs: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -740,10 +740,10 @@ importers: examples/react/nextjs-app-prefetching: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools next: specifier: ^15.0.0-rc.0 @@ -768,13 +768,13 @@ importers: examples/react/nextjs-suspense-streaming: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools '@tanstack/react-query-next-experimental': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-next-experimental next: specifier: ^14.2.5 @@ -796,19 +796,19 @@ importers: examples/react/offline: dependencies: '@tanstack/query-sync-storage-persister': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/query-sync-storage-persister '@tanstack/react-location': 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.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools '@tanstack/react-query-persist-client': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-persist-client msw: specifier: ^2.3.4 @@ -836,10 +836,10 @@ importers: examples/react/optimistic-updates-cache: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -864,10 +864,10 @@ importers: examples/react/optimistic-updates-ui: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -892,10 +892,10 @@ importers: examples/react/pagination: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -920,10 +920,10 @@ importers: examples/react/playground: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -945,10 +945,10 @@ importers: examples/react/prefetching: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -982,10 +982,10 @@ importers: specifier: ^6.4.1 version: 6.4.1(hz73ogopnnbu7tdkoevhdncb4q) '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools expo: specifier: ^51.0.22 @@ -1034,10 +1034,10 @@ importers: examples/react/react-router: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools localforage: specifier: ^1.10.0 @@ -1098,10 +1098,10 @@ importers: specifier: ^6.0.0 version: 6.0.0(react@19.0.0-rc-4c2e457c7c-20240522)(types-react@19.0.0-rc.1) '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1129,10 +1129,10 @@ importers: examples/react/shadow-dom: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1160,10 +1160,10 @@ importers: examples/react/simple: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1197,10 +1197,10 @@ importers: specifier: ^6.0.0 version: 6.0.0(react@19.0.0-rc-4c2e457c7c-20240522)(types-react@19.0.0-rc.1) '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1228,10 +1228,10 @@ importers: examples/react/suspense: dependencies: '@tanstack/react-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/react-query-devtools font-awesome: specifier: ^4.7.0 @@ -1274,10 +1274,10 @@ importers: specifier: ^7.7.2 version: 7.7.2(astro@4.12.3(@types/node@22.7.4)(less@4.2.0)(sass@1.77.8)(terser@5.31.3)(typescript@5.3.3))(encoding@0.1.13)(next@14.2.5(@babel/core@7.25.2)(react-dom@19.0.0-rc-4c2e457c7c-20240522(react@19.0.0-rc-4c2e457c7c-20240522))(react@18.3.1)(sass@1.77.8))(react@18.3.1) '@tanstack/solid-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query-devtools astro: specifier: ^4.12.2 @@ -1295,10 +1295,10 @@ importers: examples/solid/basic: dependencies: '@tanstack/solid-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query-devtools solid-js: specifier: ^1.8.19 @@ -1317,10 +1317,10 @@ importers: examples/solid/basic-graphql-request: dependencies: '@tanstack/solid-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query-devtools graphql: specifier: ^16.9.0 @@ -1345,10 +1345,10 @@ importers: examples/solid/default-query-function: dependencies: '@tanstack/solid-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query-devtools solid-js: specifier: ^1.8.19 @@ -1367,10 +1367,10 @@ importers: examples/solid/simple: dependencies: '@tanstack/solid-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query-devtools solid-js: specifier: ^1.8.19 @@ -1401,10 +1401,10 @@ importers: specifier: ^1.0.6 version: 1.0.6(@testing-library/jest-dom@6.4.8)(rollup@4.24.0)(solid-js@1.8.19)(vinxi@0.4.1(@types/node@22.7.4)(idb-keyval@6.2.1)(ioredis@5.4.1)(less@4.2.0)(magicast@0.3.4)(sass@1.77.8)(terser@5.31.3))(vite@5.4.8(@types/node@22.7.4)(less@4.2.0)(sass@1.77.8)(terser@5.31.3)) '@tanstack/solid-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/solid-query-devtools solid-js: specifier: ^1.8.19 @@ -1416,10 +1416,10 @@ importers: examples/svelte/auto-refetching: dependencies: '@tanstack/svelte-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query '@tanstack/svelte-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query-devtools devDependencies: '@sveltejs/adapter-auto': @@ -1447,16 +1447,16 @@ importers: examples/svelte/basic: dependencies: '@tanstack/query-sync-storage-persister': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/query-sync-storage-persister '@tanstack/svelte-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query '@tanstack/svelte-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query-devtools '@tanstack/svelte-query-persist-client': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query-persist-client devDependencies: '@sveltejs/adapter-auto': @@ -1484,10 +1484,10 @@ importers: examples/svelte/load-more-infinite-scroll: dependencies: '@tanstack/svelte-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query '@tanstack/svelte-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query-devtools devDependencies: '@sveltejs/adapter-auto': @@ -1515,10 +1515,10 @@ importers: examples/svelte/optimistic-updates: dependencies: '@tanstack/svelte-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query '@tanstack/svelte-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query-devtools devDependencies: '@sveltejs/adapter-auto': @@ -1546,10 +1546,10 @@ importers: examples/svelte/playground: dependencies: '@tanstack/svelte-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query '@tanstack/svelte-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query-devtools devDependencies: '@sveltejs/adapter-auto': @@ -1577,10 +1577,10 @@ importers: examples/svelte/simple: dependencies: '@tanstack/svelte-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query '@tanstack/svelte-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query-devtools devDependencies: '@sveltejs/vite-plugin-svelte': @@ -1605,10 +1605,10 @@ importers: examples/svelte/ssr: dependencies: '@tanstack/svelte-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query '@tanstack/svelte-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query-devtools devDependencies: '@sveltejs/adapter-auto': @@ -1636,10 +1636,10 @@ importers: examples/svelte/star-wars: dependencies: '@tanstack/svelte-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query '@tanstack/svelte-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/svelte-query-devtools devDependencies: '@sveltejs/adapter-auto': @@ -1676,10 +1676,10 @@ importers: examples/vue/basic: dependencies: '@tanstack/vue-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/vue-query '@tanstack/vue-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/vue-query-devtools vue: specifier: ^3.4.27 @@ -1698,7 +1698,7 @@ importers: examples/vue/dependent-queries: dependencies: '@tanstack/vue-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/vue-query vue: specifier: ^3.4.27 @@ -1717,16 +1717,16 @@ importers: examples/vue/persister: dependencies: '@tanstack/query-core': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/query-core '@tanstack/query-persist-client-core': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/query-persist-client-core '@tanstack/query-sync-storage-persister': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/query-sync-storage-persister '@tanstack/vue-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/vue-query idb-keyval: specifier: ^6.2.1 @@ -1748,10 +1748,10 @@ importers: examples/vue/simple: dependencies: '@tanstack/vue-query': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/vue-query '@tanstack/vue-query-devtools': - specifier: ^5.59.16 + specifier: ^5.59.17 version: link:../../../packages/vue-query-devtools vue: specifier: ^3.4.27 @@ -9776,7 +9776,7 @@ packages: resolution: {integrity: sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==} engines: {node: '>= 4.0'} os: [darwin] - deprecated: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2 + deprecated: Upgrade to fsevents v2 to mitigate potential security issues fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} From 74f0d6aea96e6ce9557f59bf724ae90a26647851 Mon Sep 17 00:00:00 2001 From: Dominik Dorfmeister Date: Sun, 3 Nov 2024 09:24:00 +0000 Subject: [PATCH 4/6] fix(useQuery): don't retryOnMount when prefetchInRender is used (#8247) otherwise, queries will not stay in error state, but immediately go into pending + fetching again; this is also shown by the fact that an additional test now failed, because it didn't reset the error boundary correctly --- .../src/__tests__/useQuery.promise.test.tsx | 79 +++++++++++++++---- .../react-query/src/errorBoundaryUtils.ts | 6 +- 2 files changed, 68 insertions(+), 17 deletions(-) diff --git a/packages/react-query/src/__tests__/useQuery.promise.test.tsx b/packages/react-query/src/__tests__/useQuery.promise.test.tsx index 1540ae0ce7..b6231dfca7 100644 --- a/packages/react-query/src/__tests__/useQuery.promise.test.tsx +++ b/packages/react-query/src/__tests__/useQuery.promise.test.tsx @@ -2,7 +2,7 @@ import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest' import { fireEvent, waitFor } from '@testing-library/react' import * as React from 'react' import { ErrorBoundary } from 'react-error-boundary' -import { keepPreviousData, useQuery } from '..' +import { QueryErrorResetBoundary, keepPreviousData, useQuery } from '..' import { QueryCache } from '../index' import { createQueryClient, queryKey, renderWithClient, sleep } from './utils' @@ -433,22 +433,27 @@ describe('useQuery().promise', () => { const rendered = renderWithClient( queryClient, - ( - <> - error boundary{' '} - - + + {({ reset }) => ( + ( +
+
error boundary
+ +
+ )} + > + +
)} - > - -
, + , ) await waitFor(() => rendered.getByText('loading..')) @@ -464,6 +469,48 @@ describe('useQuery().promise', () => { expect(queryCount).toBe(2) }) + it('should throw error if the promise fails (colocate suspense and promise)', async () => { + const consoleMock = vi + .spyOn(console, 'error') + .mockImplementation(() => undefined) + + const key = queryKey() + + function MyComponent() { + const query = useQuery({ + queryKey: key, + queryFn: async () => { + await sleep(1) + throw new Error('Error test') + }, + retry: false, + }) + const data = React.use(query.promise) + + return <>{data} + } + + function Page() { + return ( + + + + ) + } + + const rendered = renderWithClient( + queryClient, +
error boundary
}> + +
, + ) + + await waitFor(() => rendered.getByText('loading..')) + await waitFor(() => rendered.getByText('error boundary')) + + consoleMock.mockRestore() + }) + it('should recreate promise with data changes', async () => { const key = queryKey() let suspenseRenderCount = 0 diff --git a/packages/react-query/src/errorBoundaryUtils.ts b/packages/react-query/src/errorBoundaryUtils.ts index 7721812058..3e0d036066 100644 --- a/packages/react-query/src/errorBoundaryUtils.ts +++ b/packages/react-query/src/errorBoundaryUtils.ts @@ -26,7 +26,11 @@ export const ensurePreventErrorBoundaryRetry = < >, errorResetBoundary: QueryErrorResetBoundaryValue, ) => { - if (options.suspense || options.throwOnError) { + if ( + options.suspense || + options.throwOnError || + options.experimental_prefetchInRender + ) { // Prevent retrying failed query if the error boundary has not been reset yet if (!errorResetBoundary.isReset()) { options.retryOnMount = false From 1a8354f7f41a50dfd68fad0fdb39408e74bb90f3 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Sun, 3 Nov 2024 09:27:34 +0000 Subject: [PATCH 5/6] release: v5.59.18 --- 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 +- examples/react/devtools-panel/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 | 102 +++++++++--------- 29 files changed, 106 insertions(+), 106 deletions(-) diff --git a/examples/react/algolia/package.json b/examples/react/algolia/package.json index b6bef7af15..5c2b6736ee 100644 --- a/examples/react/algolia/package.json +++ b/examples/react/algolia/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@algolia/client-search": "5.2.1", - "@tanstack/react-query": "^5.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 1f185723a6..ad8917daef 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 c6edf679ad..95eb5caf72 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 a239235468..06b8f4c85e 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@tanstack/query-sync-storage-persister": "^5.59.17", - "@tanstack/react-query": "^5.59.17", - "@tanstack/react-query-devtools": "^5.59.17", - "@tanstack/react-query-persist-client": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", + "@tanstack/react-query-persist-client": "^5.59.18", "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 7fcde8c2dc..274fb4a8eb 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "react": "19.0.0-rc-4c2e457c7c-20240522", "react-dom": "19.0.0-rc-4c2e457c7c-20240522" }, diff --git a/examples/react/devtools-panel/package.json b/examples/react/devtools-panel/package.json index 7a323e00ef..f46df69a39 100644 --- a/examples/react/devtools-panel/package.json +++ b/examples/react/devtools-panel/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 300ee2ff22..79f0de37b6 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 cceddccb3c..474878d33a 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 249f7a9228..710e63326a 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 945962ae42..8d487eefc3 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", - "@tanstack/react-query-next-experimental": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", + "@tanstack/react-query-next-experimental": "^5.59.18", "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 072bc3406b..2240623f35 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 fa2302ff37..0a6d9442f4 100644 --- a/examples/react/offline/package.json +++ b/examples/react/offline/package.json @@ -10,9 +10,9 @@ "dependencies": { "@tanstack/query-sync-storage-persister": "^5.59.17", "@tanstack/react-location": "^3.7.4", - "@tanstack/react-query": "^5.59.17", - "@tanstack/react-query-devtools": "^5.59.17", - "@tanstack/react-query-persist-client": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", + "@tanstack/react-query-persist-client": "^5.59.18", "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 aab0cb2bef..5e3c4564e7 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 4f6b96f322..a2210cad28 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 589ef870b0..44536933ab 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 58c8cf15a5..099bc77d19 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 37b9aa3627..686a63a876 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 47126282d6..0ec9f38375 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 65edc6804a..c5b9475acd 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 f8a46bd165..d49bdaa29b 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": "^6.0.0", "@mui/styles": "^6.0.0", - "@tanstack/react-query": "^5.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 2b9409dfa4..d98f15ee3d 100644 --- a/examples/react/shadow-dom/package.json +++ b/examples/react/shadow-dom/package.json @@ -9,8 +9,8 @@ "test:types": "tsc" }, "dependencies": { - "@tanstack/react-query": "^5.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 51a570b72e..60c3411bf8 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 dc8a610b85..8110b9fd73 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": "^6.0.0", "@mui/styles": "^6.0.0", - "@tanstack/react-query": "^5.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 3c1e9fead1..352b1e1572 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.59.17", - "@tanstack/react-query-devtools": "^5.59.17", + "@tanstack/react-query": "^5.59.18", + "@tanstack/react-query-devtools": "^5.59.18", "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 422a357a5f..f5215749c1 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.59.17", + "version": "5.59.18", "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 45066e1074..60cbd9b759 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.59.17", + "version": "5.59.18", "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 291b8085c5..fffa3a7b03 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.59.17", + "version": "5.59.18", "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 990515e3f2..5f9eb7ed77 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-query", - "version": "5.59.17", + "version": "5.59.18", "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 a6ca34bc9d..2e5227362f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -473,10 +473,10 @@ importers: specifier: 5.2.1 version: 5.2.1 '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -507,10 +507,10 @@ importers: examples/react/auto-refetching: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -538,13 +538,13 @@ importers: specifier: ^5.59.17 version: link:../../../packages/query-sync-storage-persister '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools '@tanstack/react-query-persist-client': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-persist-client react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -575,10 +575,10 @@ importers: examples/react/basic-graphql-request: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools graphql: specifier: ^16.9.0 @@ -603,10 +603,10 @@ importers: examples/react/default-query-function: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -628,10 +628,10 @@ importers: examples/react/devtools-panel: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -653,10 +653,10 @@ importers: examples/react/infinite-query-with-max-pages: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -681,10 +681,10 @@ importers: examples/react/load-more-infinite-scroll: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -712,10 +712,10 @@ importers: examples/react/nextjs: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -740,10 +740,10 @@ importers: examples/react/nextjs-app-prefetching: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools next: specifier: ^15.0.0-rc.0 @@ -768,13 +768,13 @@ importers: examples/react/nextjs-suspense-streaming: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools '@tanstack/react-query-next-experimental': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-next-experimental next: specifier: ^14.2.5 @@ -802,13 +802,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.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools '@tanstack/react-query-persist-client': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-persist-client msw: specifier: ^2.3.4 @@ -836,10 +836,10 @@ importers: examples/react/optimistic-updates-cache: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -864,10 +864,10 @@ importers: examples/react/optimistic-updates-ui: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -892,10 +892,10 @@ importers: examples/react/pagination: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -920,10 +920,10 @@ importers: examples/react/playground: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -945,10 +945,10 @@ importers: examples/react/prefetching: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools next: specifier: ^14.2.5 @@ -982,10 +982,10 @@ importers: specifier: ^6.4.1 version: 6.4.1(hz73ogopnnbu7tdkoevhdncb4q) '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools expo: specifier: ^51.0.22 @@ -1034,10 +1034,10 @@ importers: examples/react/react-router: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools localforage: specifier: ^1.10.0 @@ -1098,10 +1098,10 @@ importers: specifier: ^6.0.0 version: 6.0.0(react@19.0.0-rc-4c2e457c7c-20240522)(types-react@19.0.0-rc.1) '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1129,10 +1129,10 @@ importers: examples/react/shadow-dom: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1160,10 +1160,10 @@ importers: examples/react/simple: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1197,10 +1197,10 @@ importers: specifier: ^6.0.0 version: 6.0.0(react@19.0.0-rc-4c2e457c7c-20240522)(types-react@19.0.0-rc.1) '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools react: specifier: 19.0.0-rc-4c2e457c7c-20240522 @@ -1228,10 +1228,10 @@ importers: examples/react/suspense: dependencies: '@tanstack/react-query': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query '@tanstack/react-query-devtools': - specifier: ^5.59.17 + specifier: ^5.59.18 version: link:../../../packages/react-query-devtools font-awesome: specifier: ^4.7.0 From 0f8406222594a62ea9303f70f0dfb9339b3406fd Mon Sep 17 00:00:00 2001 From: Sol Lee <82362278+saul-atomrigs@users.noreply.github.com> Date: Sun, 3 Nov 2024 19:46:49 +0900 Subject: [PATCH 6/6] test(react-query): remove `async` from queryFn (#8232) --- .../react-query/src/__tests__/infiniteQueryOptions.test-d.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-query/src/__tests__/infiniteQueryOptions.test-d.tsx b/packages/react-query/src/__tests__/infiniteQueryOptions.test-d.tsx index aa706e71d3..363ea1b37c 100644 --- a/packages/react-query/src/__tests__/infiniteQueryOptions.test-d.tsx +++ b/packages/react-query/src/__tests__/infiniteQueryOptions.test-d.tsx @@ -169,7 +169,7 @@ describe('infiniteQueryOptions', () => { const initialData: { example: boolean } | undefined = { example: true } const queryOptions = infiniteQueryOptions({ queryKey: ['example'], - queryFn: async () => initialData, + queryFn: () => initialData, initialData: initialData ? () => ({ pages: [initialData], pageParams: [] }) : undefined, @@ -187,7 +187,7 @@ describe('infiniteQueryOptions', () => { const initialData: { example: boolean } | undefined = { example: true } const queryOptions = infiniteQueryOptions({ queryKey: ['example'], - queryFn: async () => initialData, + queryFn: () => initialData, initialData: initialData ? { pages: [initialData], pageParams: [] } : undefined,