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

5,395 commits

Author SHA1 Message Date
Wonsuk Choi
46b22a636f
docs(query-core): add JSDoc for 'Subscribable' and 'Removable' base classes (#11565) 2026-09-22 10:50:43 +09:00
github-actions[bot]
413ba6e30b
ci: Version Packages (#11566) release-2026-09-21-1030 @tanstack/svelte-query-devtools@6.2.3 @tanstack/svelte-query-persist-client@6.2.3 @tanstack/svelte-query@6.2.3 @tanstack/vue-query-devtools@6.2.3
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-21 20:28:35 +10:00
Simon H
1490a4b2ae
fix: support async Svelte (#9810)
* fix: support async Svelte

Svelte 5 now supports async await in components. One behavior there is that when a component is created as part of a boundary that has pending async work, its `$effect`s will not run until that async work is done.

The way the code is written right now means you can end up in an infinite pending state: If you do `await someQuery.promise`, the `$effect` for the subscription will never run, and therefore the `await` will never resolve. This PR fixes it.

* lint

* fix

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2026-09-21 20:10:05 +10:00
Dami Oyeniyi
847f471e37
feat(svelte-query-devtools): add theme option (#10636)
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2026-09-21 20:09:29 +10:00
github-actions[bot]
e0f6c5542f
ci: Version Packages (#11525) release-2026-09-21-0933 @tanstack/angular-query-experimental@5.103.2 @tanstack/eslint-plugin-query@5.103.2 @tanstack/lit-query@0.2.23 @tanstack/preact-query-devtools@5.103.2 @tanstack/preact-query-persist-client@5.103.2 @tanstack/preact-query@5.103.2 @tanstack/query-async-storage-persister@5.103.2 @tanstack/query-broadcast-client-experimental@5.103.2 @tanstack/query-core@5.103.2 @tanstack/query-devtools@5.103.2 @tanstack/query-persist-client-core@5.103.2 @tanstack/query-sync-storage-persister@5.103.2 @tanstack/react-query-devtools@5.103.2 @tanstack/react-query-next-experimental@5.103.2 @tanstack/react-query-persist-client@5.103.2 @tanstack/react-query@5.103.2 @tanstack/solid-query-devtools@5.103.2 @tanstack/solid-query-persist-client@5.103.2 @tanstack/solid-query@5.103.2 @tanstack/svelte-query-devtools@6.2.2 @tanstack/svelte-query-persist-client@6.2.2 @tanstack/svelte-query@6.2.2 @tanstack/vue-query-devtools@6.2.2 @tanstack/vue-query@5.103.2
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-21 11:29:33 +02:00
Lazizbek Ergashev
322152569e
fix(broadcast-client): don't overwrite an existing query's data on an incoming 'added' message (#11392)
* fix(broadcast-client): don't overwrite an existing query's data on an incoming 'added' message

* test(query-broadcast-client-experimental): drop test that duplicates existing 'added' build coverage
2026-09-21 10:50:04 +02:00
Wonsuk Choi
97cab92a7e
docs(solid-query): add JSDoc for re-declared 'queryKey' (#11563) 2026-09-21 12:01:41 +09:00
Wonsuk Choi
64f1795ada
docs(query-core): add JSDoc for 'select' and 'defaultOptions' (#11562) 2026-09-21 11:25:46 +09:00
Wonsuk Choi
06869a8886
docs(solid-query): rewrite shared 'hook' prose to 'primitive' in guide frontmatter (#11561) 2026-09-21 10:45:13 +09:00
Wonsuk Choi
436a3baa93
docs(solid-query): call the adapter's APIs primitives instead of functions (#11560) 2026-09-21 10:34:21 +09:00
Wonsuk Choi
94de9b4e31
docs(svelte-query): call 'useIsMutating' a function instead of a hook (#11559) 2026-09-21 10:16:49 +09:00
Wonsuk Choi
73a016baab
docs(solid-query): call the adapter's APIs functions instead of hooks (#11558) 2026-09-21 10:16:36 +09:00
Wonsuk Choi
47f27a4824
docs(svelte-query): add summaries to reference pages that render without a description (#11553) 2026-09-21 02:05:42 +09:00
Wonsuk Choi
3b45ebcadd
docs(solid-query): add summaries to reference pages that render without a description (#11554) 2026-09-21 01:47:02 +09:00
Wonsuk Choi
2a495979b4
docs(query-core): add JSDoc for shared option and registry types (#11552) 2026-09-19 18:08:15 +09:00
Wonsuk Choi
54929cf71f
docs(query-core): add JSDoc for 'initialPageParam' (#11551) 2026-09-19 17:27:33 +09:00
Wonsuk Choi
8f6d322a5a
docs(query-core): add JSDoc for 'MutationOptions' (#11550) 2026-09-19 16:51:40 +09:00
Wonsuk Choi
d346e85f01
docs(*): promote default values from prose to '@defaultValue' tags (#11538) 2026-09-18 17:16:33 +09:00
Wonsuk Choi
992c94234c
docs(query-core): inline option type aliases in generated reference docs (#11534)
* docs(query-core): inline option type aliases in generated reference docs

* docs(query-core): inline retry, notify and remaining option aliases
2026-09-18 17:08:56 +09:00
Wonsuk Choi
e0faf4d594
docs(*): render reference property lists as tables (#11533) 2026-09-18 16:53:17 +09:00
autofix-ci[bot]
bb9d31306f
ci: apply automated fixes 2026-09-18 00:43:18 +00:00
Wonsuk Choi
a66c7974d7
ci(.github/workflows/autofix): match only the subject in the autofix commit guard (#11528) 2026-09-18 09:41:26 +09:00
Wonsuk Choi
66d4fe3b3f
ci(*): generate reference docs in autofix and fail on TypeDoc conversion errors (#11522)
* ci(.github/workflows/autofix): run 'generate-docs' to keep reference docs current

* ci: apply automated fixes

* fix(scripts/generate-docs): build referenced packages and fail on TypeDoc conversion errors

* ci: apply automated fixes

* fix(package.json): build referenced packages as part of 'generate-docs'

* ci(.github/workflows/autofix): only generate reference docs on push

* ci(.github/workflows/autofix): skip runs started from its own commit

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-18 01:47:49 +09:00
곽지욱
8a28904aac
fix(query-core): ignore stale query removals (#11524) 2026-09-17 10:22:10 +02:00
Wonsuk Choi
fcd8b5b9f1
docs(CONTRIBUTING): document generated reference docs (#11523) 2026-09-17 10:06:10 +02:00
Wonsuk Choi
00059b8796
docs(*): regenerate reference docs to fix stale source links (#11521) 2026-09-17 10:05:02 +09:00
Wonsuk Choi
dcc2215986
docs(*): regenerate reference docs to fix stale source links (#11520) 2026-09-17 09:55:55 +09:00
github-actions[bot]
c08f5766dd
ci: Version Packages (#11511) release-2026-09-16-1501 @tanstack/angular-query-experimental@5.103.1 @tanstack/eslint-plugin-query@5.103.1 @tanstack/lit-query@0.2.22 @tanstack/preact-query-devtools@5.103.1 @tanstack/preact-query-persist-client@5.103.1 @tanstack/preact-query@5.103.1 @tanstack/query-async-storage-persister@5.103.1 @tanstack/query-broadcast-client-experimental@5.103.1 @tanstack/query-core@5.103.1 @tanstack/query-devtools@5.103.1 @tanstack/query-persist-client-core@5.103.1 @tanstack/query-sync-storage-persister@5.103.1 @tanstack/react-query-devtools@5.103.1 @tanstack/react-query-next-experimental@5.103.1 @tanstack/react-query-persist-client@5.103.1 @tanstack/react-query@5.103.1 @tanstack/solid-query-devtools@5.103.1 @tanstack/solid-query-persist-client@5.103.1 @tanstack/solid-query@5.103.1 @tanstack/svelte-query-devtools@6.2.1 @tanstack/svelte-query-persist-client@6.2.1 @tanstack/svelte-query@6.2.1 @tanstack/vue-query-devtools@6.2.1 @tanstack/vue-query@5.103.1
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-16 16:56:55 +02:00
곽지욱
8330b2f2d4
fix(query-core): handle plain objects with constructor fields (#11512)
fix(query-core): handle plain objects with constructor fields
2026-09-16 15:42:44 +02:00
곽지욱
3212966a36
fix(query-core): preserve null streamed query results (#11510)
fix(query-core): preserve null streamed query results
2026-09-16 11:36:14 +02:00
github-actions[bot]
19ccf2794b
ci: Version Packages (#11339) release-2026-09-16-0707 @tanstack/angular-query-experimental@5.103.0 @tanstack/eslint-plugin-query@5.103.0 @tanstack/lit-query@0.2.21 @tanstack/preact-query-devtools@5.103.0 @tanstack/preact-query-persist-client@5.103.0 @tanstack/preact-query@5.103.0 @tanstack/query-async-storage-persister@5.103.0 @tanstack/query-broadcast-client-experimental@5.103.0 @tanstack/query-core@5.103.0 @tanstack/query-devtools@5.103.0 @tanstack/query-persist-client-core@5.103.0 @tanstack/query-sync-storage-persister@5.103.0 @tanstack/react-query-devtools@5.103.0 @tanstack/react-query-next-experimental@5.103.0 @tanstack/react-query-persist-client@5.103.0 @tanstack/react-query@5.103.0 @tanstack/solid-query-devtools@5.103.0 @tanstack/solid-query-persist-client@5.103.0 @tanstack/solid-query@5.103.0 @tanstack/svelte-query-devtools@6.2.0 @tanstack/svelte-query-persist-client@6.2.0 @tanstack/svelte-query@6.2.0 @tanstack/vue-query-devtools@6.2.0 @tanstack/vue-query@5.103.0
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-16 09:03:53 +02:00
곽지욱
4c7cdbb86d
fix(query-persist-client-core): restore falsy storage values (#11509)
fix(query-persist-client-core): restore falsy storage values
2026-09-16 08:16:20 +02:00
Wonsuk Choi
2da46cd137
chore(*): use eslint description syntax for grandfathered 'no-restricted-syntax' disables (#11508) 2026-09-16 10:43:43 +09:00
Wonsuk Choi
4324e61070
test(query-core/utils): remove vacuous 'VoidFunction' assertion for 'noop' (#11507) 2026-09-16 09:48:42 +09:00
Wonsuk Choi
7b0d0a99aa
test(query-core/{streamedQuery,subscribable}): flatten generic parameter describes into 'it' names (#11506) 2026-09-16 09:48:32 +09:00
Wonsuk Choi
3f7181e4a0
test(query-core/queryClient): add test for 'pages' type in 'InfiniteQueryExecuteOptions' (#11505) 2026-09-16 09:48:22 +09:00
Dominik Dorfmeister 🔮
58ad3e2f08
fix: isolate TypeScript test output (#11503) 2026-09-15 20:56:41 +02:00
Ciarán Curley
d63afc715c
Simplifed query methods/internal tests new lint (#11347)
* chore: update type tests to use new query methods, types

* chore: disallow future calls to deprecated methods

* fix(eslint): detect computed query method calls

- Match bracket notation for deprecated query client methods
2026-09-15 20:25:08 +02:00
곽지욱
cbf77bf8e1
fix(query-core): reject longer partial array keys (#11502)
* fix(query-core): reject longer partial array keys

* test(query-core): clarify partial key regression
2026-09-15 20:24:59 +02:00
Dominik Dorfmeister 🔮
9567367dd9
fix: declare devtools dependencies and enforce strict workspace checks (#11501) 2026-09-15 20:03:10 +02:00
Ahmet Tınastepe
12027efd5c
fix(vue-query): widen 'queryOptions' input to match 'useQuery' (#11439)
* fix(vue-query): widen 'queryOptions' input to match 'useQuery'

* chore: generate-docs

* chore: changeset

---------

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-09-15 09:00:40 +02:00
Bart Spaans
2bc8ecf39b
fix(vue-query): re-export core filter types (#11287)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-09-14 16:12:52 +02:00
chungyoung kim
302345b90a
docs: explain Chrome focus emulation in window focus refetching guide (#11457) 2026-09-14 15:45:16 +02:00
Dami Oyeniyi
27cdf32c97
docs(persister): document asynchronous serialization callbacks (#11411)
Co-authored-by: grzdev <grzdev@users.noreply.github.com>
2026-09-14 15:32:30 +02:00
Dami Oyeniyi
ca0a74e7ae
docs(solid-query): correct devtools development-mode explanation (#11409)
Co-authored-by: grzdev <grzdev@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-09-14 15:32:19 +02:00
Kevin Van Cott
77647e96b5
docs(vue): fix reactivity guide heading hierarchy (#11466) 2026-09-14 15:25:17 +02:00
Wonsuk Choi
bfd42a5b79
test(query-core/queryObserver): assert the non-function arm of every option that accepts a value or a callback (#11498) 2026-09-14 10:36:29 +09:00
Wonsuk Choi
b8fdc2806f
test(query-core/queryClient): add type tests for every client method, its config and the tagged key inference (#11497) 2026-09-13 15:17:40 +09:00
Wonsuk Choi
d7f9def0d9
test(query-core/OmitKeyof): add type tests for 'TStrictly' modes, modifier preservation and 'DistributiveOmit' (#11492) 2026-09-13 15:17:26 +09:00
Wonsuk Choi
7083d1e53f
test(query-core/query): add type tests for 'Query', its state, actions and fetch types (#11490) 2026-09-13 15:17:14 +09:00