Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

CHANGELOG.md

542 lines17.3 KB

1# @tanstack/react-query
2​
3## 5.104.0
4​
5### Minor Changes
6​
7- [#11650](https://github.com/TanStack/query/pull/11650) [`5279b05`](https://github.com/TanStack/query/commit/5279b05211223dd719803ca22a9d1fa46c98638e) - Build projects with Vite 8
8​
9### Patch Changes
10​
11- Updated dependencies [[`5279b05`](https://github.com/TanStack/query/commit/5279b05211223dd719803ca22a9d1fa46c98638e)]:
12 - @tanstack/query-core@5.104.0
13​
14## 5.103.3
15​
16### Patch Changes
17​
18- [#11647](https://github.com/TanStack/query/pull/11647) [`1c9693e`](https://github.com/TanStack/query/commit/1c9693eac75495a04ae4328a35818b1fdf264978) - fix(codemods): avoid copying unnecessary files from codemods project
19- Updated dependencies []:
20 - @tanstack/query-core@5.103.3
21​
22## 5.103.2
23​
24### Patch Changes
25​
26- Updated dependencies [[`8a28904`](https://github.com/TanStack/query/commit/8a28904aaccb6bc26398b751400a181c0f6d7f0e)]:
27 - @tanstack/query-core@5.103.2
28​
29## 5.103.1
30​
31### Patch Changes
32​
33- Updated dependencies [[`8330b2f`](https://github.com/TanStack/query/commit/8330b2f2d431f226d7bb95eb727c637be9d4c6d8), [`3212966`](https://github.com/TanStack/query/commit/3212966a3681e02d14eb79e9cce0d3265b046877)]:
34 - @tanstack/query-core@5.103.1
35​
36## 5.103.0
37​
38### Patch Changes
39​
40- Updated dependencies [[`e57f816`](https://github.com/TanStack/query/commit/e57f8163b18ab3abfe52ad69cdbdda4d31453393), [`fdae2ce`](https://github.com/TanStack/query/commit/fdae2ce4e5382af7326c7c38ce5d5a12751ada12), [`a1119e5`](https://github.com/TanStack/query/commit/a1119e5a3ffa52534de7390f17c7183d17658051), [`cbf77bf`](https://github.com/TanStack/query/commit/cbf77bf8e1a9ce09caef0cdd9a8ed10fef57edf0)]:
41 - @tanstack/query-core@5.103.0
42​
43## 5.102.8
44​
45### Patch Changes
46​
47- Updated dependencies []:
48 - @tanstack/query-core@5.102.8
49​
50## 5.102.7
51​
52### Patch Changes
53​
54- Updated dependencies []:
55 - @tanstack/query-core@5.102.7
56​
57## 5.102.6
58​
59### Patch Changes
60​
61- [#11305](https://github.com/TanStack/query/pull/11305) [`ac2b612`](https://github.com/TanStack/query/commit/ac2b61230ea35b90b177ba35dc030598bac9c9a6) - fix(react-query): throw falsy errors from `useQueries` and `useSuspenseQueries` to the error boundary
62​
63- Updated dependencies []:
64 - @tanstack/query-core@5.102.6
65​
66## 5.102.5
67​
68### Patch Changes
69​
70- Updated dependencies [[`578e5c2`](https://github.com/TanStack/query/commit/578e5c26e8ebd0d7351b4b8e2bafba695e672b8d)]:
71 - @tanstack/query-core@5.102.5
72​
73## 5.102.4
74​
75### Patch Changes
76​
77- Updated dependencies [[`a05df6a`](https://github.com/TanStack/query/commit/a05df6aefb0e2489ec2c879ae16e2ee7cb3123ec)]:
78 - @tanstack/query-core@5.102.4
79​
80## 5.102.3
81​
82### Patch Changes
83​
84- Updated dependencies []:
85 - @tanstack/query-core@5.102.3
86​
87## 5.102.2
88​
89### Patch Changes
90​
91- Updated dependencies [[`80fbf73`](https://github.com/TanStack/query/commit/80fbf73e77892d702c107e14a84c219a8ed825dc)]:
92 - @tanstack/query-core@5.102.2
93​
94## 5.102.1
95​
96### Patch Changes
97​
98- Updated dependencies [[`134890d`](https://github.com/TanStack/query/commit/134890dbdc60e4fb0313e44b512d29284ca82f96)]:
99 - @tanstack/query-core@5.102.1
100​
101## 5.102.0
102​
103### Minor Changes
104​
105- [#10668](https://github.com/TanStack/query/pull/10668) [`e674826`](https://github.com/TanStack/query/commit/e6748265c86294704f6c872e6f435d9ec5a92b28) - react-query: update usePrefetchQuery and usePrefetchInfiniteQuery to use queryClient.query and queryClient.infiniteQuery
106​
107### Patch Changes
108​
109- [#11245](https://github.com/TanStack/query/pull/11245) [`37127db`](https://github.com/TanStack/query/commit/37127dbe479a4892dbbe28ac8ceabf8832b5f1a3) - revert: remove NoInfer from useQuery return types
110​
111- [#10373](https://github.com/TanStack/query/pull/10373) [`6e3d521`](https://github.com/TanStack/query/commit/6e3d521fe54f78624e53c1c6f9cadd678504bee8) - fix(types): propagate generic type parameters to `useMutationState` select callback
112​
113- [#11224](https://github.com/TanStack/query/pull/11224) [`294d4e6`](https://github.com/TanStack/query/commit/294d4e62c4f7d674574a4903eef2a1bc3dd1413b) - Fix `queryOptions` and `infiniteQueryOptions` return types so exported inferred options can be emitted in declaration files without leaking internal data tag symbols.
114​
115- [#11147](https://github.com/TanStack/query/pull/11147) [`cb6c9d3`](https://github.com/TanStack/query/commit/cb6c9d3725db0fed94fb5133820e41b7c326d2ef) - Default `TData` of `UseInfiniteQueryOptions` and `UseSuspenseInfiniteQueryOptions` to `InfiniteData<TQueryFnData>` so it matches the hook generics.
116​
117- [#8737](https://github.com/TanStack/query/pull/8737) [`2215bb0`](https://github.com/TanStack/query/commit/2215bb031139cdc8a84751b37a485c38ca9d2b6e) - fix: make mutation variables optional when `undefined extends TVariables`
118​
119- [#11221](https://github.com/TanStack/query/pull/11221) [`1ef4208`](https://github.com/TanStack/query/commit/1ef42087c9a266c2137d2ef645cbcc662f60ac93) - Remove experimental render-time prefetching and the `promise` property from query results.
120​
121- [#11228](https://github.com/TanStack/query/pull/11228) [`fb6c3fa`](https://github.com/TanStack/query/commit/fb6c3fabda4cb6b291cccc6651ed88a7db901915) - Avoid emitting a runtime import for React Query's type-only exports.
122​
123- [#11130](https://github.com/TanStack/query/pull/11130) [`8834267`](https://github.com/TanStack/query/commit/88342670eca6e4949416aab832b1f81cc7b881f8) - fix(react-query): don't show optimistic fetching for unsubscribed useQueries
124​
125- [#11233](https://github.com/TanStack/query/pull/11233) [`b866a95`](https://github.com/TanStack/query/commit/b866a95adde7e8465462526df5870ebc12340b36) - remove unused experimental_beforeQuery and experimental_afterQuery hooks
126​
127- [#11144](https://github.com/TanStack/query/pull/11144) [`e546d03`](https://github.com/TanStack/query/commit/e546d03bef116c66a05dbf42ccfd70b6d8600a8f) - fix: remove placeholderData from suspense infinite query
128​
129- Updated dependencies [[`34f7cee`](https://github.com/TanStack/query/commit/34f7ceed09c10e4a3aa2df31a106ddf02ec4e787), [`b4368c4`](https://github.com/TanStack/query/commit/b4368c43792349f6c29d1fb41f7ee1ef3a8bdd2c), [`5bb089d`](https://github.com/TanStack/query/commit/5bb089d153d33933983b7ea80f8d69b51d423698), [`ba4650c`](https://github.com/TanStack/query/commit/ba4650c05e61e33c609e051b948c9f7d31ce70d1), [`294d4e6`](https://github.com/TanStack/query/commit/294d4e62c4f7d674574a4903eef2a1bc3dd1413b), [`1f631b3`](https://github.com/TanStack/query/commit/1f631b3604aab6567fb3f6c90646a5a304641546), [`01a02bf`](https://github.com/TanStack/query/commit/01a02bfad32f9efbc17796be31d6399f1197a655), [`18c1c1e`](https://github.com/TanStack/query/commit/18c1c1ef94883e781ad36d36f9ea4a043ce4260b), [`5448063`](https://github.com/TanStack/query/commit/5448063f828d2270dccd41ae375e1afde35e91f2), [`2215bb0`](https://github.com/TanStack/query/commit/2215bb031139cdc8a84751b37a485c38ca9d2b6e), [`1ef4208`](https://github.com/TanStack/query/commit/1ef42087c9a266c2137d2ef645cbcc662f60ac93), [`5981771`](https://github.com/TanStack/query/commit/5981771abec9330b344a2617543eb05ba7c99e24), [`4a9bef6`](https://github.com/TanStack/query/commit/4a9bef6cf19b1cd6b014032d696129f12a848185), [`bef4bc7`](https://github.com/TanStack/query/commit/bef4bc780ce7cca32b7e3dea85f77d92f82a62a2), [`9656dc4`](https://github.com/TanStack/query/commit/9656dc4e5fef5f8c502579b52459f9e8c72e787c), [`326aaf1`](https://github.com/TanStack/query/commit/326aaf1333e5d9cbc46569c53f218d31684162d2), [`3e83601`](https://github.com/TanStack/query/commit/3e836010032c2586e9f1c66a271fa9114a6401f9), [`c6fc17c`](https://github.com/TanStack/query/commit/c6fc17cfad6e452261c585fabfb8c210e60531ed)]:
130 - @tanstack/query-core@5.102.0
131​
132## 5.101.4
133​
134### Patch Changes
135​
136- Updated dependencies []:
137 - @tanstack/query-core@5.101.4
138​
139## 5.101.3
140​
141### Patch Changes
142​
143- Updated dependencies [[`7e3c822`](https://github.com/TanStack/query/commit/7e3c822a10896f41a8f1031c16b85096277af677)]:
144 - @tanstack/query-core@5.101.3
145​
146## 5.101.2
147​
148### Patch Changes
149​
150- Updated dependencies []:
151 - @tanstack/query-core@5.101.2
152​
153## 5.101.1
154​
155### Patch Changes
156​
157- Updated dependencies [[`9eff92e`](https://github.com/TanStack/query/commit/9eff92ed86e284ec0125b3a3539d028688235bd1)]:
158 - @tanstack/query-core@5.101.1
159​
160## 5.101.0
161​
162### Patch Changes
163​
164- Updated dependencies []:
165 - @tanstack/query-core@5.101.0
166​
167## 5.100.14
168​
169### Patch Changes
170​
171- fix(react-query): do not go into optimistic fetching state when not subscribed ([#10759](https://github.com/TanStack/query/pull/10759))
172​
173- Updated dependencies []:
174 - @tanstack/query-core@5.100.14
175​
176## 5.100.13
177​
178### Patch Changes
179​
180- Updated dependencies [[`d423168`](https://github.com/TanStack/query/commit/d423168f6261a5cb3d353e53b27c8150cc271151)]:
181 - @tanstack/query-core@5.100.13
182​
183## 5.100.12
184​
185### Patch Changes
186​
187- Updated dependencies []:
188 - @tanstack/query-core@5.100.12
189​
190## 5.100.11
191​
192### Patch Changes
193​
194- Updated dependencies []:
195 - @tanstack/query-core@5.100.11
196​
197## 5.100.10
198​
199### Patch Changes
200​
201- Updated dependencies []:
202 - @tanstack/query-core@5.100.10
203​
204## 5.100.9
205​
206### Patch Changes
207​
208- Updated dependencies [[`fcee7bd`](https://github.com/TanStack/query/commit/fcee7bdc429385ae8ffa224fa8a7a9ec7b8ee380)]:
209 - @tanstack/query-core@5.100.9
210​
211## 5.100.8
212​
213### Patch Changes
214​
215- Updated dependencies []:
216 - @tanstack/query-core@5.100.8
217​
218## 5.100.7
219​
220### Patch Changes
221​
222- Updated dependencies []:
223 - @tanstack/query-core@5.100.7
224​
225## 5.100.6
226​
227### Patch Changes
228​
229- Updated dependencies []:
230 - @tanstack/query-core@5.100.6
231​
232## 5.100.5
233​
234### Patch Changes
235​
236- Updated dependencies [[`a53ef97`](https://github.com/TanStack/query/commit/a53ef97f87decb8ea2431710f5199431d3c94c8d)]:
237 - @tanstack/query-core@5.100.5
238​
239## 5.100.4
240​
241### Patch Changes
242​
243- Updated dependencies []:
244 - @tanstack/query-core@5.100.4
245​
246## 5.100.3
247​
248### Patch Changes
249​
250- fix(suspense): skip calling combine when queries would suspend ([#10576](https://github.com/TanStack/query/pull/10576))
251​
252- Updated dependencies [[`f85d825`](https://github.com/TanStack/query/commit/f85d825e02efbbff02e2081528ed28f5e5382f7a)]:
253 - @tanstack/query-core@5.100.3
254​
255## 5.100.2
256​
257### Patch Changes
258​
259- Updated dependencies [[`ea4497e`](https://github.com/TanStack/query/commit/ea4497e8aa00d8c1c3a36fb1e17563a889d6ab31), [`d6a7bf3`](https://github.com/TanStack/query/commit/d6a7bf3e3e024c1a77d0536813238cc8007a5fa7), [`645d5d1`](https://github.com/TanStack/query/commit/645d5d130f5e8017cb1bf1a37987f7b980aed705)]:
260 - @tanstack/query-core@5.100.2
261​
262## 5.100.1
263​
264### Patch Changes
265​
266- Updated dependencies [[`1bb0d23`](https://github.com/TanStack/query/commit/1bb0d234280fd4ae1725c439088426a20593a8df)]:
267 - @tanstack/query-core@5.100.1
268​
269## 5.100.0
270​
271### Patch Changes
272​
273- Updated dependencies [[`6540a41`](https://github.com/TanStack/query/commit/6540a4126b1c087d86d64525e78f32d9920dcd31)]:
274 - @tanstack/query-core@5.100.0
275​
276## 5.99.2
277​
278### Patch Changes
279​
280- Updated dependencies []:
281 - @tanstack/query-core@5.99.2
282​
283## 5.99.1
284​
285### Patch Changes
286​
287- Updated dependencies []:
288 - @tanstack/query-core@5.99.1
289​
290## 5.99.0
291​
292### Patch Changes
293​
294- Updated dependencies []:
295 - @tanstack/query-core@5.99.0
296​
297## 5.98.0
298​
299### Patch Changes
300​
301- Updated dependencies []:
302 - @tanstack/query-core@5.98.0
303​
304## 5.97.0
305​
306### Patch Changes
307​
308- Updated dependencies [[`2bfb12c`](https://github.com/TanStack/query/commit/2bfb12cc44f1d8495106136e4ddacb817135f8f9)]:
309 - @tanstack/query-core@5.97.0
310​
311## 5.96.2
312​
313### Patch Changes
314​
315- Updated dependencies []:
316 - @tanstack/query-core@5.96.2
317​
318## 5.96.1
319​
320### Patch Changes
321​
322- Updated dependencies []:
323 - @tanstack/query-core@5.96.1
324​
325## 5.96.0
326​
327### Patch Changes
328​
329- Updated dependencies []:
330 - @tanstack/query-core@5.96.0
331​
332## 5.95.2
333​
334### Patch Changes
335​
336- Updated dependencies [[`cd5a35b`](https://github.com/TanStack/query/commit/cd5a35b328837781aa4f9305bb2bd7877ca934e9)]:
337 - @tanstack/query-core@5.95.2
338​
339## 5.95.1
340​
341### Patch Changes
342​
343- Updated dependencies [[`1f1775c`](https://github.com/TanStack/query/commit/1f1775ca92f2b6c035682947ff3b3424804ff31a)]:
344 - @tanstack/query-core@5.95.1
345​
346## 5.95.0
347​
348### Patch Changes
349​
350- Updated dependencies []:
351 - @tanstack/query-core@5.95.0
352​
353## 5.94.5
354​
355### Patch Changes
356​
357- fix(\*): resolve issue about excluded build directory ([#10312](https://github.com/TanStack/query/pull/10312))
358​
359- Updated dependencies [[`4b6536d`](https://github.com/TanStack/query/commit/4b6536dfce99036f4e37f52943c6fed3ad0e0a18)]:
360 - @tanstack/query-core@5.94.5
361​
362## 5.94.4
363​
364### Patch Changes
365​
366- chore: fixed version ([#10064](https://github.com/TanStack/query/pull/10064))
367​
368- Updated dependencies [[`4c75210`](https://github.com/TanStack/query/commit/4c75210ce8235fe3d39b67e1029eff11278927cc)]:
369 - @tanstack/query-core@5.94.4
370​
371## 5.91.3
372​
373### Patch Changes
374​
375- fix: stop node types from leaking into browser ([#10302](https://github.com/TanStack/query/pull/10302))
376​
377## 5.91.2
378​
379### Patch Changes
380​
381- fix(streamedQuery): maintain error state on reset refetch with initialData defined ([#10287](https://github.com/TanStack/query/pull/10287))
382​
383- Updated dependencies [[`248975e`](https://github.com/TanStack/query/commit/248975e896f585f6eaa505c796e73fcf7bfd1eec)]:
384 - @tanstack/query-core@5.91.2
385​
386## 5.91.1
387​
388### Patch Changes
389​
390- fix(core): cancel paused initial fetch when last observer unsubscribes ([#10291](https://github.com/TanStack/query/pull/10291))
391​
392- Updated dependencies [[`a89aab9`](https://github.com/TanStack/query/commit/a89aab975581c25c113a26c8af486b4cafad272a)]:
393 - @tanstack/query-core@5.91.1
394​
395## 5.91.0
396​
397### Minor Changes
398​
399- feat: environmentManager ([#10199](https://github.com/TanStack/query/pull/10199))
400​
401### Patch Changes
402​
403- Updated dependencies [[`6fa901b`](https://github.com/TanStack/query/commit/6fa901b97a22a80d0fca3f6ed86237ff0cbdd13b)]:
404 - @tanstack/query-core@5.91.0
405​
406## 5.90.21
407​
408### Patch Changes
409​
410- refactor(react-query/useQueries): remove unreachable 'willFetch' branch in suspense promise collection ([#10082](https://github.com/TanStack/query/pull/10082))
411​
412## 5.90.20
413​
414### Patch Changes
415​
416- Updated dependencies [[`e7258c5`](https://github.com/TanStack/query/commit/e7258c5cb30cafa456cdb4e6bc75b43bf619954d)]:
417 - @tanstack/query-core@5.90.20
418​
419## 5.90.19
420​
421### Patch Changes
422​
423- Updated dependencies [[`53fc74e`](https://github.com/TanStack/query/commit/53fc74ebb16730bd3317f039a69c6821386bae93)]:
424 - @tanstack/query-core@5.90.19
425​
426## 5.90.18
427​
428### Patch Changes
429​
430- Updated dependencies [[`dea1614`](https://github.com/TanStack/query/commit/dea1614aaad5c572cf43cea54b64ac09dc4d5b41)]:
431 - @tanstack/query-core@5.90.18
432​
433## 5.90.17
434​
435### Patch Changes
436​
437- Updated dependencies [[`269351b`](https://github.com/TanStack/query/commit/269351b8ce4b4846da3d320ac5b850ee6aada0d6)]:
438 - @tanstack/query-core@5.90.17
439​
440## 5.90.16
441​
442### Patch Changes
443​
444- fix(react-query): allow retryOnMount when throwOnError is function ([#9338](https://github.com/TanStack/query/pull/9338))
445​
446- Updated dependencies [[`7f47906`](https://github.com/TanStack/query/commit/7f47906eaccc3f3aa5ce24b77a83bd7a620a237b)]:
447 - @tanstack/query-core@5.90.16
448​
449## 5.90.15
450​
451### Patch Changes
452​
453- Updated dependencies [[`fccef79`](https://github.com/TanStack/query/commit/fccef797d57d4a9566517bba87c8377f363920f2)]:
454 - @tanstack/query-core@5.90.15
455​
456## 5.90.14
457​
458### Patch Changes
459​
460- Updated dependencies [[`d576092`](https://github.com/TanStack/query/commit/d576092e2ece4ca3936add3eb0da5234c1d82ed4)]:
461 - @tanstack/query-core@5.90.14
462​
463## 5.90.13
464​
465### Patch Changes
466​
467- Updated dependencies [[`4a0a78a`](https://github.com/TanStack/query/commit/4a0a78afbc2432f8cb6828035965853fa98c86a0)]:
468 - @tanstack/query-core@5.90.13
469​
470## 5.90.12
471​
472### Patch Changes
473​
474- Updated dependencies [[`72d8ac5`](https://github.com/TanStack/query/commit/72d8ac5c592004b8f9c3ee086fcb9c3cd615ca05)]:
475 - @tanstack/query-core@5.90.12
476​
477## 5.90.11
478​
479### Patch Changes
480​
481- Prevent infinite render loops when useSuspenseQueries has duplicate queryKeys ([#9886](https://github.com/TanStack/query/pull/9886))
482​
483- Updated dependencies [[`c01b150`](https://github.com/TanStack/query/commit/c01b150e3673e11d6533768529a5e6fe3ebee68c)]:
484 - @tanstack/query-core@5.90.11
485​
486## 5.90.10
487​
488### Patch Changes
489​
490- Updated dependencies [[`8e2e174`](https://github.com/TanStack/query/commit/8e2e174e9fd2e7b94cd232041e49c9d014d74e26), [`eb559a6`](https://github.com/TanStack/query/commit/eb559a66dc0d77dd46435f624fa64fc068bef9ae)]:
491 - @tanstack/query-core@5.90.10
492​
493## 5.90.9
494​
495### Patch Changes
496​
497- Updated dependencies [[`08b211f`](https://github.com/TanStack/query/commit/08b211f8aa475e05d2f13a36517fc556861ef962)]:
498 - @tanstack/query-core@5.90.9
499​
500## 5.90.8
501​
502### Patch Changes
503​
504- Updated dependencies [[`c0ec9fe`](https://github.com/TanStack/query/commit/c0ec9fe0d1426fe3f233adda3ebf23989ffaa110)]:
505 - @tanstack/query-core@5.90.8
506​
507## 5.90.7
508​
509### Patch Changes
510​
511- Updated dependencies [[`b4cd121`](https://github.com/TanStack/query/commit/b4cd121a39d07cefaa3a3411136d342cc54ce8fb)]:
512 - @tanstack/query-core@5.90.7
513​
514## 5.90.6
515​
516### Patch Changes
517​
518- Updated dependencies [[`1638c02`](https://github.com/TanStack/query/commit/1638c028df55648995d04431179904371a189772)]:
519 - @tanstack/query-core@5.90.6
520​
521## 5.90.5
522​
523### Patch Changes
524​
525- Updated dependencies [[`e42ddfe`](https://github.com/TanStack/query/commit/e42ddfe919f34f847ca101aeef162c69845f9a1e)]:
526 - @tanstack/query-core@5.90.5
527​
528## 5.90.4
529​
530### Patch Changes
531​
532- Updated dependencies [[`20ef922`](https://github.com/TanStack/query/commit/20ef922a0a7c3aee00150bf69123c338b0922922)]:
533 - @tanstack/query-core@5.90.4
534​
535## 5.90.3
536​
537### Patch Changes
538​
539- Avoid unhandled promise rejection errors during de/rehydration of pending queries. ([#9752](https://github.com/TanStack/query/pull/9752))
540​
541- Updated dependencies [[`4e1c433`](https://github.com/TanStack/query/commit/4e1c4338a72f7384600bbda99e44bc1891695df4)]:
542 - @tanstack/query-core@5.90.3