0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
Commit graph

5,011 commits

Author SHA1 Message Date
Arnoud
025f080bb3
refactor(angular-query): restructure package type declaration path (#9519)
To support future sub-path exports in apps still using moduleResolution: node type declarations should be located in the same path as the corresponding implementation .mjs file
2025-08-01 14:11:54 +02:00
Wonsuk Choi
711010ce73
test(react-query/QueryResetErrorBoundary): add 'sleep' and simplify 'queryFn', add multiple 'expect' cases (#9523) 2025-08-01 18:10:22 +09:00
Tanner Linsley
6a85584fe1 release: v5.84.0 v5.84.0 2025-07-31 19:52:28 +00:00
JonLuca De Caro
7b19d49e67
feat(devtools): add setting to hide disabled queries (#9500)
* feat(devtools): add setting to hide disabled queries

* chore(name): rename disable queries param

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-07-31 21:48:18 +02:00
clover caruso
e07812be21
fix(react-query): HydrationBoundary has strictly typed state (#9520)
* fix(react-query): HydrationBoundary has strictly typed `state`

Only type definition changes, the `state` parameter is now required and
must be `DehydratedState` (or nullish). Every case omitting this prop or
passing a different shape is a bug now caught by `tsc`. Correct code has
no action needed.

Closes #9323

* ci: apply automated fixes

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-31 21:48:07 +02:00
Sajad Torkamani
c8322d96b1
docs: add missing period (#9509)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-31 20:35:25 +02:00
Arnoud
250dbd9b6a
chore(angular-query): run publint and attw on tarball (#9518)
using built-in packaging of these tools does not run prepack
2025-07-31 16:17:05 +02:00
Tanner Linsley
8f474ad817 release: v5.83.1 v5.83.1 2025-07-31 12:42:20 +00:00
Arnoud
422f2ecbd6
refactor(angular-query): build package using vite (#9517) 2025-07-31 14:38:33 +02:00
Arnoud
74d8ce67e8
chore(angular-query): move test-setup.ts (#9516) 2025-07-31 13:38:48 +02:00
Wonsuk Choi
cc45977e39
test(query-core/mutationCache): add 'sleep' to callbacks and remove 'await' from 'executeMutation' using 'advanceTimersByTimeAsync' (#9506) 2025-07-29 23:05:45 +09:00
Wonsuk Choi
e9d9080705
test(svelte-query/createQueries): simplify 'queryFn' and add test for success when queries reslove at different times (#9494)
* test(svelte-query/createQueries): simplify 'queryFn' and use precise time in 'advanceTimersByTimeAsync'

* test(svelte-query/createQueries): add test for success when queries reslove at different times
2025-07-26 22:21:05 +09:00
Lachlan Collins
3cc59be4c6
ci: add labeler script from router (#9503)
* ci: add labeler script from router

* Move to root

* Format
2025-07-26 21:46:39 +10:00
Lachlan Collins
a3f49cf17f
ci: replace fast-glob with tinyglobby (#9501)
* ci: replace fast-glob with tinyglobby

* Add back cipublish
2025-07-26 18:16:10 +10:00
Wonsuk Choi
52fdff2b3d
test(svelte-query/{QueryClientProvider,useIsFetching,useIsMutating}): simplify 'queryFn' (#9495) 2025-07-26 14:14:55 +09:00
Wonsuk Choi
234f2f4c65
test(svelte-query/createQuery): simplify 'queryFn' and replace 'queryByText' with 'getByText' (#9490)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-25 18:42:35 +09:00
Wonsuk Choi
80242d6ee6
test(svelte-query/createMutation): add 'sleep' in 'mutationFn' and replace 'queryByText' with 'getByText' (#9491)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-25 18:40:09 +09:00
Wonsuk Choi
c273ba4815
test(svelte-query/createInfiniteQuery): add 'sleep', remove 'Number' in 'queryFn', and replace 'queryByText' with 'getByText' (#9492)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-25 18:37:35 +09:00
Wonsuk Choi
880d1834ff
test(svelte-query/useMutationState): simplify 'queryFn' and replace 'queryByText' with 'getByText' (#9489)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-25 18:34:12 +09:00
davidmoranetflix
1e8346815e
docs(example): Remove unnecessary data truthiness check (#9485)
Isn't data guaranteed to be truth-y, as part of the larger principle of "Focus on the success case"?

We shouldn't need to check for it in the JSX.
2025-07-24 18:52:21 +02:00
Wonsuk Choi
552fe4bd08
test(solid-query/useIsMutating): simplify 'mutationFn' and add 'expect' for 'isMutating' state transitions (#9486) 2025-07-23 22:57:12 +09:00
Wilson
fba2c868f7
docs: add signal to queryFn for cancelQueries to work properly (#9475)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-23 04:13:20 +09:00
Wonsuk Choi
6bc45b88ac
test(react-query/useSuspenseQueries): simplify 'queryFn' and add 'expect' for 'loading' text (#9477)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-23 04:01:18 +09:00
Wonsuk Choi
039d214977
test(solid-query/suspense): simplify 'queryFn' and add 'expect' for 'loading' text (#9479)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-23 03:49:52 +09:00
Wonsuk Choi
bf9f9dc7e9
test(solid-query/useInfiniteQuery): add 'sleep', remove 'Number' in 'queryFn', and simplify it (#9484)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-23 03:45:07 +09:00
Wonsuk Choi
9041b41565
test(react-query/useIsFetching): simplify 'queryFn' and add 'expect' using 'toBeInTheDocument (#9478)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-23 03:41:36 +09:00
Wonsuk Choi
c2e833006b
test(solid-query/useIsFetching): simplify 'queryFn' and add 'expect' for 'isFetching' state transitions (#9480)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-23 03:40:30 +09:00
Wonsuk Choi
937683508a
test(react-query/HydrationBoundary): use precise time in 'advanceTimersByTimeAsync', add 'expect' using 'toBeInTheDocument', and simplify 'queryFn' (#9472)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-23 03:37:39 +09:00
Wonsuk Choi
cb9ab1eaee
test(react-query/suspense): add 'sleep' in 'queryFn', and add 'expect' for 'loading' text (#9468)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-23 03:33:56 +09:00
Wonsuk Choi
72c2a4cdb1
test(react-query/ssr): simplify 'queryFn' and add 'sleep' for accurate testing (#9471)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-23 03:29:59 +09:00
Wonsuk Choi
db6281e1cc
test(react-query/useSuspenseQuery): add 'sleep' in 'queryFn', simplify it, and add 'expect' for 'loading' text (#9469)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-23 03:23:37 +09:00
Wonsuk Choi
d7af6544d9
test(react-query/useInfiniteQuery): remove 'Number' in 'queryFn', and simplify it (#9470) 2025-07-23 03:17:56 +09:00
Wonsuk Choi
ac5d8584ca
test(react-query/useSuspenseQueries): use precise time in 'advanceTimersByTimeAsync', and add 'expect' using 'toBeInTheDocument' (#9450)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-20 13:09:02 +09:00
Wonsuk Choi
ff13c2eacd
test(react-query/usePrefetchInfiniteQuery): use precise time in 'advanceTimersByTimeAsync', and add 'expect' using 'toBeInTheDocument' (#9447)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-20 13:02:06 +09:00
Wonsuk Choi
efb14d6d21
test(react-query/useInfiniteQuery): use precise time in 'advanceTimersByTimeAsync', and add 'expect' using 'toBeInTheDocument' (#9446)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-20 12:56:12 +09:00
Wonsuk Choi
05c62a0923
test(react-query/useSuspenseQuery): use precise time in 'advanceTimersByTimeAsync', and add 'expect' using 'toBeInTheDocument' (#9455)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-20 10:36:05 +09:00
Wonsuk Choi
e349d85aa6
test(react-query/QueryResetErrorBoundary): use precise time in 'advanceTimersByTimeAsync', and add 'expect' using 'toBeInTheDocument' (#9456)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-20 10:29:24 +09:00
Wonsuk Choi
63bc828ef6
test(react-query/usePrefetchQuery): use precise time in 'advanceTimersByTimeAsync', and add 'expect' using 'toBeInTheDocument' (#9448)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-20 10:24:45 +09:00
Wonsuk Choi
e2ce12c817
test(react-query/useMutation): use precise time in 'advanceTimersByTimeAsync', and add 'expect' using 'toBeInTheDocument' (#9458)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-20 10:20:27 +09:00
Wonsuk Choi
ed90d1a9b1
test(react-query/useQueries): replace inline 'Promise' delays with 'sleep', and add 'expect' using 'toBeInTheDocument' (#9466)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-20 10:14:51 +09:00
DavidPfl
76211bbd31
docs(react-query): change comma to sentence period (#9459)
Co-authored-by: David <pflaegingd@gmail.com>
2025-07-19 10:50:12 +02:00
Lachlan Collins
a2ff8333ff
ci: enable prettier experimental CLI (#9465) 2025-07-19 11:56:57 +10:00
renovate[bot]
53a2eaef9d
chore(deps): update marocchino/sticky-pull-request-comment digest to 28d58c4 (#9013)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-19 11:35:09 +10:00
Lachlan Collins
9133c101c8
chore: manually update dependencies (#9464)
* chore: update packages

* Fix typescript-eslint type mismatch

* Pin vitest

* Update prettier
2025-07-19 11:23:28 +10:00
차승하
3bcaa417ac
docs: add text regarding local environment recommendations for symlinks (#9451) 2025-07-18 15:04:15 +02:00
Wonsuk Choi
bf77ab7e48
test(angular-query-experimental/providers): replace 'runAllTimersAsync' with 'advanceTimersByTimeAsync' (#9436)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-17 11:21:52 +09:00
Wonsuk Choi
2d71a22c19
test(angular-query-experimental/inject-mutation-state): replace 'runAllTimersAsync', 'advanceTimersByTime' with 'advanceTimersByTimeAsync' (#9438)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-17 11:03:14 +09:00
Wonsuk Choi
7c58392877
test(react-query/fine-grained-persister): use precise time in 'advanceTimersByTimeAsync', and add 'expect' using 'toBeInTheDocument' (#9441)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-17 10:58:21 +09:00
Wonsuk Choi
958b0f0387
test(react-query/QueryClientProvider): add 'expect' using 'toBeInTheDocument' (#9442)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-17 10:53:53 +09:00
Wonsuk Choi
bfcff0b51c
test(react-query/ssr): replace 'advanceTimersByTimeAsync' with 'sleep' in 'queryFn', remove 'await' from 'fetchQuery' and related methods (#9443)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-17 10:49:44 +09:00