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

5,550 commits

Author SHA1 Message Date
Wonsuk Choi
26106f8104
test(lit-query/createQueryController): add type tests (#11765)
* test(lit-query/createQueryController): add type tests

* test(lit-query/createQueryController): add type tests for 'refetch' and 'suspense' return types

* test(lit-query/createQueryController): nest type tests under 'initialData' and 'Config object overload'
2026-10-03 15:52:13 +09:00
Wonsuk Choi
c9f91d1dbe
test(lit-query): add server-side rendering tests with '@lit-labs/ssr' (#11813) 2026-10-03 13:09:37 +09:00
Wonsuk Choi
85f3f97863
test(lit-query/createQueriesController): add test for reusing hydrated data on an already-connected host without an eager refetch (#11811) 2026-10-03 12:31:00 +09:00
Wonsuk Choi
1ed38048ce
test(lit-query/createInfiniteQueryController): add test for reusing hydrated data on an already-connected host without an eager refetch (#11810) 2026-10-03 12:30:54 +09:00
Wonsuk Choi
6fbdebb4ae
style(*): remove numeric separators from number literals (#11812)
* style(lit-query/{createQuery,createInfiniteQuery,createQueries}Controller): remove numeric separator from 'staleTime' values

* style(*): remove numeric separators from the remaining number literals
2026-10-03 12:07:32 +09:00
github-actions[bot]
29859ae60c
ci: Version Packages (#11806) release-2026-10-02-1005 @tanstack/react-query-persist-client@5.104.1 @tanstack/query-persist-client-core@5.104.1 @tanstack/svelte-query@6.3.1 @tanstack/svelte-query-persist-client@6.3.1 @tanstack/svelte-query-devtools@6.3.1 @tanstack/angular-query-experimental@5.104.1 @tanstack/eslint-plugin-query@5.104.1 @tanstack/lit-query@0.2.26 @tanstack/preact-query-devtools@5.104.1 @tanstack/preact-query-persist-client@5.104.1 @tanstack/preact-query@5.104.1 @tanstack/query-async-storage-persister@5.104.1 @tanstack/query-broadcast-client-experimental@5.104.1 @tanstack/query-core@5.104.1 @tanstack/query-devtools@5.104.1 @tanstack/solid-query@5.104.1 @tanstack/query-sync-storage-persister@5.104.1 @tanstack/react-query-devtools@5.104.1 @tanstack/react-query-next-experimental@5.104.1 @tanstack/vue-query-devtools@6.3.1 @tanstack/react-query@5.104.1 @tanstack/solid-query-devtools@5.104.1 @tanstack/solid-query-persist-client@5.104.1 @tanstack/vue-query@5.104.1
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-02 12:02:10 +02:00
Ciarán Curley
ec060b6f74
fix(query-devtools): isolate signals on devtools instances (#11799)
* fix(query-devtools): isolate mounted devtools instances

* refactor(query-devtools): encapsulate instance cache subscriptions

* refactor(query-devtools): inline provider state with explicit interfaces

* refactor(query-devtools): separate contexts and providers

* chore: update query devtools
2026-10-02 11:57:30 +02:00
Wonsuk Choi
94e20031dd
test(lit-query/createQueryController): add test for removing the observer from the query when destroyed (#11804) 2026-10-02 11:09:06 +09:00
Wonsuk Choi
d49c1f5885
test(lit-query/useMutationState): add test for returning the current mutation states when connected after a mutation started (#11803) 2026-10-02 10:24:25 +09:00
Wonsuk Choi
d547e2195d
test(lit-query/createQueriesController): add test for not having stale closures with 'combine' (#11802) 2026-10-02 10:23:35 +09:00
Wonsuk Choi
113ce9d467
test(lit-query/createQueryController): add test for not cancelling an ongoing 'refetch' with 'cancelRefetch: false' (#11801) 2026-10-02 09:46:07 +09:00
Wonsuk Choi
17e498e292
test(lit-query/createInfiniteQueryController): add test for not cancelling an ongoing 'fetchNextPage' with 'cancelRefetch: false' (#11800) 2026-10-02 09:38:51 +09:00
Wonsuk Choi
782b2e6fff
test(lit-query/BaseController): add test for resolving to a missing client when the host cannot dispatch events (#11797) 2026-10-01 16:09:22 +09:00
Wonsuk Choi
ea2149416b
test(lit-query/createMutationController): add test for using mutation defaults (#11793) 2026-10-01 14:13:02 +09:00
Wonsuk Choi
3df6cb9ff7
refactor(preact-query*): rename local 'useRef' variables with the 'Ref' suffix (#11792)
* refactor(preact-query*): rename local 'useRef' variables with the 'Ref' suffix

* test(preact-query): name 'useState' value and setter pairs and use stable keys
2026-10-01 12:12:52 +09:00
Wonsuk Choi
381e25494d
chore(*): replace 'typescript-eslint' with '@typescript-eslint/parser' in preact packages and remove redundant eslint options (#11791)
* chore(*): replace 'typescript-eslint' with '@typescript-eslint/parser' in preact packages and remove redundant eslint options

* style(*): add a blank line after '@ts-check' and remove the blank line between imports in preact eslint configs
2026-10-01 10:48:42 +09:00
Wonsuk Choi
4c8d15fa07
chore(pnpm-workspace): move 'typescript-eslint' to the shared catalog entries and align its range with '@typescript-eslint/parser' (#11790) 2026-10-01 10:21:12 +09:00
Wonsuk Choi
d331f383e1
chore(knip): include 'knip.ts' in the root 'tsconfig.json' and remove unnecessary nullish fallback for 'optionalDependencies' (#11789)
* chore(tsconfig.json): add 'knip.ts' to 'include' for type-aware linting

* chore(knip): remove unnecessary nullish fallback for 'optionalDependencies'
2026-10-01 09:45:35 +09:00
Wonsuk Choi
b90d8cee92
chore(*): manage 'eslint' and '@typescript-eslint/parser' with pnpm 'catalog' (#11785) 2026-10-01 08:18:54 +09:00
Wonsuk Choi
5d14b15480
chore(*): manage 'vue' eslint plugin with pnpm 'catalog' (#11784) 2026-10-01 04:51:44 +09:00
Wonsuk Choi
de6b50c43a
chore(*): manage 'svelte' eslint plugin with pnpm 'catalog' (#11783) 2026-10-01 04:42:20 +09:00
Wonsuk Choi
53eac4765b
chore(*): manage 'preact' eslint config with pnpm 'catalog' (#11782) 2026-10-01 04:24:22 +09:00
Wonsuk Choi
339e09f4e5
chore(*): manage 'react' eslint plugins with pnpm 'catalog' (#11781) 2026-10-01 04:15:27 +09:00
Wonsuk Choi
d1e1bac8e1
test(lit-query/createQueriesController): assert user-visible query results through the rendered output (#11780) 2026-10-01 04:11:04 +09:00
Wonsuk Choi
ecc633a9b5
test(lit-query/createQueriesController): add type tests for initialData, type parameters, and 'select' (#11768) 2026-10-01 04:10:55 +09:00
Wonsuk Choi
69de5a68bb
test(lit-query/createInfiniteQueryController): assert user-visible pages and errors through the rendered output (#11779) 2026-10-01 04:10:38 +09:00
Wonsuk Choi
c5486aad8c
test(lit-query/createQueryController): assert user-visible query states through the rendered output (#11778) 2026-10-01 04:10:27 +09:00
Wonsuk Choi
06441d90a5
test(lit-query/{useIsFetching,useIsMutating,useMutationState}): assert user-visible counts and states through the rendered output (#11777) 2026-10-01 04:09:50 +09:00
Wonsuk Choi
6622c5e48d
test(lit-query/createMutationController): assert user-visible mutation states through the rendered output (#11776) 2026-10-01 04:09:39 +09:00
Wonsuk Choi
27f8875cef
test(lit-query/{createQueryController,createInfiniteQueryController,createQueriesController}): add tests for returning the same result between reads when nothing changed (#11775) 2026-10-01 03:55:36 +09:00
Wonsuk Choi
8cd151db5a
test(lit-query/createInfiniteQueryController): split the combined initial page, 'fetchNextPage', and 'fetchPreviousPage' test into separate tests (#11774) 2026-10-01 03:36:31 +09:00
Wonsuk Choi
f2032dd10f
test(lit-query/createMutationController): split combined 'mutate'/'mutateAsync' and state transition tests into separate tests (#11773) 2026-10-01 03:31:12 +09:00
Wonsuk Choi
5646be2815
test(lit-query/{useIsFetching,useIsMutating}): add tests for not processing cache updates while disconnected (#11772) 2026-10-01 03:31:00 +09:00
Wonsuk Choi
cfe3acac07
test(lit-query/createQueriesController): add test for not processing detached updates when disconnected while in-flight (#11771) 2026-10-01 03:30:42 +09:00
Wonsuk Choi
f1ad8d9536
test(lit-query/createMutationController): add test for not processing detached updates when disconnected while in-flight (#11770) 2026-10-01 03:30:21 +09:00
Wonsuk Choi
e09f07e780
test(lit-query/createInfiniteQueryController): add tests for cancelling the query function when disconnected and for replacing 'skipToken' (#11761) 2026-10-01 03:24:18 +09:00
Wonsuk Choi
73f0761fda
test(lit-query/useMutationState): add test for not processing mutation cache updates while disconnected (#11764) 2026-10-01 02:20:32 +09:00
Wonsuk Choi
327f4ab9cd
test(lit-query/{useIsFetching,useIsMutating}): split filter tests into static filters and filters updated on host updates (#11763) 2026-10-01 02:17:58 +09:00
Wonsuk Choi
809e9df4ff
test(lit-query/createQueryController): split combined 'select' and 'refetchOnMount' tests into separate tests (#11762) 2026-10-01 02:17:18 +09:00
Wonsuk Choi
a44dbaf770
test(lit-query/createMutationController): add tests for calling 'mutate' and 'mutateAsync' callbacks when the controller has no callbacks (#11760) 2026-10-01 02:15:34 +09:00
Wonsuk Choi
5c31ae2908
test(lit-query/createQueriesController): add test for re-surfacing permanent placeholder 'combine' errors after initialization (#11759) 2026-10-01 02:03:57 +09:00
Wonsuk Choi
d374547a63
test(lit-query/QueryClientProvider): add tests for replacing the client before the first update and clearing it while disconnected (#11757) 2026-09-30 20:49:26 +09:00
Wonsuk Choi
e7e7283d17
test(lit-query/createInfiniteQueryController): assert that 'fetchPreviousPage' rejects when no client is available (#11755) 2026-09-30 16:47:59 +09:00
Wonsuk Choi
6fab4f4eb5
test(lit-query/createQueriesController): remove unnecessary 'as const' from 'queries' arrays and host fields (#11754) 2026-09-30 16:28:04 +09:00
Wonsuk Choi
cf871a8813
test(lit-query/createQueriesController): add tests for function 'initialData', 'initialDataUpdatedAt', and 'select' in the placeholder before a client is available (#11753) 2026-09-30 15:30:45 +09:00
Wonsuk Choi
ee077ef1b2
test(lit-query/useMutationState): add test for returning the states of all mutations when options are omitted (#11752) 2026-09-30 14:26:30 +09:00
Wonsuk Choi
3f09ef39af
test(lit-query/{useIsFetching,useIsMutating}): add tests for counting all queries and mutations when filters are omitted (#11750) 2026-09-30 13:56:53 +09:00
Wonsuk Choi
cb8fc41aef
test(lit-query): replace 'await sleep' in async 'queryFn' and 'mutationFn' with 'sleep().then' (#11749)
* test(lit-query): replace 'await sleep' in async 'queryFn' and 'mutationFn' with 'sleep().then'

* ci: trigger CI
2026-09-30 12:31:15 +09:00
Wonsuk Choi
23d7562810
test(lit-query/{useIsFetching,useIsMutating,useMutationState}): move the query and mutation controllers to a separate host in the render tests (#11748) 2026-09-30 11:58:42 +09:00
Wonsuk Choi
1adc25905a
test(lit-query/createQueryController): add tests for 'suspense' with stale, fresh, disabled, and updated options (#11747) 2026-09-30 11:36:54 +09:00