0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

5,624 commits

Author SHA1 Message Date
Eliya Cohen
3443736e29
feat(eslint-plugin): add allowlist option to exhaustive-deps rule (#10295)
* feat(eslint-plugin): add allowlist option to exhaustive-deps rule

Introduce an `allowlist` option with `variables` and `types` arrays so
stable variables and types can be excluded from dependency enforcement.

Also report member expression dependencies more granularly for call
expressions (e.g. `a.b.foo()` suggests `a.b` instead of only `a`).

BREAKING CHANGE: exhaustive-deps now reports member expression deps more
granularly, so some previously passing code may now report missing deps.
Use the allowlist option to exclude stable variables/types as needed.

* fix

* ci: apply automated fixes

* increase coverage

* address false positives

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-03-22 18:33:16 +01:00
github-actions[bot]
8fe71e4fe7
ci: Version Packages (#10313) release-2026-03-21-1602 @tanstack/angular-query-experimental@5.94.5 @tanstack/eslint-plugin-query@5.94.5 @tanstack/preact-query-devtools@5.94.5 @tanstack/preact-query-persist-client@5.94.5 @tanstack/preact-query@5.94.5 @tanstack/query-async-storage-persister@5.94.5 @tanstack/query-broadcast-client-experimental@5.94.5 @tanstack/query-core@5.94.5 @tanstack/query-devtools@5.94.5 @tanstack/query-persist-client-core@5.94.5 @tanstack/query-sync-storage-persister@5.94.5 @tanstack/react-query-devtools@5.94.5 @tanstack/react-query-next-experimental@5.94.5 @tanstack/react-query-persist-client@5.94.5 @tanstack/react-query@5.94.5 @tanstack/solid-query-devtools@5.94.5 @tanstack/solid-query-persist-client@5.94.5 @tanstack/solid-query@5.94.5 @tanstack/svelte-query-devtools@6.1.7 @tanstack/svelte-query-persist-client@6.1.7 @tanstack/svelte-query@6.1.7 @tanstack/vue-query-devtools@6.1.7 @tanstack/vue-query@5.94.5
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-22 00:57:17 +09:00
Jonghyeon Ko
4b6536dfce
chore: add build step in release workflow (#10312)
* chore: add build step in release workflow

* chore: standardize quotes in release workflow configuration

* chore: add changeset for patch versions across multiple TanStack packages and fix build directory exclusion issue
2026-03-22 00:50:12 +09:00
Jonghyeon Ko
0ddf442d30
chore: update version in query-test-utils package.json to 0.0.0 (#10310) release-2026-03-21-1447 @tanstack/preact-query-persist-client@5.94.4 @tanstack/preact-query@5.94.4 @tanstack/query-async-storage-persister@5.94.4 @tanstack/query-core@5.94.4 @tanstack/query-persist-client-core@5.94.4 @tanstack/query-sync-storage-persister@5.94.4 @tanstack/react-query-persist-client@5.94.4 @tanstack/react-query@5.94.4 @tanstack/solid-query-persist-client@5.94.4 @tanstack/solid-query@5.94.4 @tanstack/svelte-query-persist-client@6.1.6 @tanstack/svelte-query@6.1.6 @tanstack/vue-query@5.94.4 2026-03-21 23:45:59 +09:00
github-actions[bot]
c613c22535
ci: Version Packages (#10309)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-21 23:35:14 +09:00
Jonghyeon Ko
4c75210ce8
ci(changesets): fixed version (#10064)
* chore: update changeset configuration to include fixed dependencies for various TanStack packages

* chore: update package versions across multiple examples and packages to 5.92.9, including Angular, React, Solid, Svelte, and Vue integrations

* chore: add changeset for version patches across multiple TanStack packages

* chore: update changeset configuration to include @tanstack/vue-query-devtools as a dependency

* feat: add support for Preact query packages in changeset configuration

* chore: update changeset configuration to include Preact query packages
2026-03-21 22:52:02 +09:00
Birk Skyum
3b7a177ed0
ci: use separate changeset publishing pr (#10303) 2026-03-20 14:03:33 +01:00
github-actions[bot]
9346430657 ci: changeset release @tanstack/preact-query@5.94.3 @tanstack/react-query@5.91.3 @tanstack/solid-query@5.91.4 release-2026-03-20-1227 2026-03-20 12:27:46 +00:00
Dominik Dorfmeister 🔮
be3746f069
fix: stop node types from leaking into browser (#10302) 2026-03-20 13:25:49 +01:00
Birk Skyum
e79176a72b
ci: align publishing to router with main/-pre/-maint (#10283) 2026-03-19 22:01:19 +01:00
github-actions[bot]
b6fd86b0b0
ci: Version Packages (#10297) @tanstack/angular-query-experimental@5.90.28 @tanstack/preact-query-persist-client@5.92.3 @tanstack/preact-query@5.94.2 @tanstack/query-async-storage-persister@5.90.27 @tanstack/query-broadcast-client-experimental@5.90.23 @tanstack/query-core@5.91.2 @tanstack/query-persist-client-core@5.92.4 @tanstack/query-sync-storage-persister@5.90.27 @tanstack/react-query-persist-client@5.90.27 @tanstack/react-query@5.91.2 @tanstack/solid-query-persist-client@5.90.28 @tanstack/solid-query@5.91.3 @tanstack/svelte-query-persist-client@6.0.25 @tanstack/svelte-query@6.1.3 @tanstack/vue-query@5.92.12
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-19 11:09:07 +01:00
github-actions[bot]
79e37cb5de
ci: Version Packages (#10296)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-03-19 11:04:55 +01:00
Dominik Dorfmeister 🔮
248975e896
fix(streamedQuery): maintain error state on reset refetch with initialData defined (#10287)
* fix(streamedQuery): maintain error state on reset refetch with initialData defined

* ref: changeset

* fix: isRefetch computation

* test: add refetch behavior for reset mode after initial error

* test: add reset behavior for refetch after initial error with initialData

* ref: re-use isFetched in queryObserver.ts

* ref: function instead of getter
2026-03-19 10:55:22 +01:00
Dominik Dorfmeister 🔮
a89aab9755
fix(core): cancel paused initial fetch when last observer unsubscribes (#10291)
* fix(core): cancel paused initial fetch when last observer unsubscribes

* ci: apply automated fixes

* fix: preact and solid tests

* changeset

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-19 10:50:02 +01:00
Wonsuk Choi
b799510ebf
test(angular-query-experimental/injectQueries): switch to fake timers, replace 'setTimeout' with 'sleep', replace 'findByText' with 'getByText', add 'toBeInTheDocument', remove unused 'toString' method, rename '_pushResults' to '_', and add '@testing-library/jest-dom/vitest' (#9896) 2026-03-18 15:22:03 +01:00
Wonsuk Choi
0249bbd52e
test(vue-query/useQueries): add test for 'refetch' of individual query without affecting others (#10242) 2026-03-18 15:21:52 +01:00
github-actions[bot]
3761d2bd13
ci: Version Packages (#10290) @tanstack/angular-query-experimental@5.90.26 @tanstack/preact-query-persist-client@5.92.1 @tanstack/preact-query@5.94.0 @tanstack/query-async-storage-persister@5.90.25 @tanstack/query-broadcast-client-experimental@5.90.21 @tanstack/query-core@5.91.0 @tanstack/query-persist-client-core@5.92.2 @tanstack/query-sync-storage-persister@5.90.25 @tanstack/react-query-persist-client@5.90.25 @tanstack/react-query@5.91.0 @tanstack/solid-query-persist-client@5.90.26 @tanstack/solid-query@5.91.1 @tanstack/svelte-query-persist-client@6.0.23 @tanstack/svelte-query@6.1.1 @tanstack/vue-query@5.92.10
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-18 14:44:42 +01:00
Lubos
0e066c444c
docs: Update Hey API description (#10230)
Aligned the description with the GitHub repository.
2026-03-18 14:40:45 +01:00
Dami Oyeniyi
f8c434051e
fix(examples): guard missing mount targets in react examples (#10226) 2026-03-18 14:39:57 +01:00
Dominik Dorfmeister 🔮
81689b6c46
fix ci (#10289)
* ci

* fix: remove ts 6.0 remnants

* fix ts peer resolution

* revert debugging

* revert to main
2026-03-18 14:38:37 +01:00
Dominik Dorfmeister 🔮
0c2cb738c9
ci: detect agent workflow (#10288) 2026-03-18 13:41:09 +01:00
Dominik Dorfmeister 🔮
6fa901b97a
feat/environmentManager (#10199)
* environmentManager

* ci: apply automated fixes

* ref: environmentManager

* fix: adapt tests to not using isServer anymore

* ref: revert to main

* make tests better

* Create moody-mails-deliver.md

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-18 12:52:51 +01:00
Pavan Shinde
5cd3896947
docs(react): update legacy react-query GitHub links (#10232)
* docs(react): update legacy react-query GitHub links

* docs: fix React Query stars badge repo
2026-03-18 12:49:21 +01:00
Dami Oyeniyi
bf9ca9869f
docs(examples): fix nuxt3 README links and commands (#10227)
* docs(examples): fix nuxt3 README links and commands

* docs(examples): polish nuxt3 README wording
2026-03-18 12:47:43 +01:00
Wonsuk Choi
16e8c1aeb6
test(query-core/queriesObserver): add test for 'getObservers' method (#10248) 2026-03-18 12:46:39 +01:00
Wonsuk Choi
93f9134cbf
test(query-core/queriesObserver): add test for 'getQueries' method (#10247) 2026-03-18 12:46:21 +01:00
Wonsuk Choi
a41178d0f3
test(query-core/queriesObserver): add test for subscribing new observers when a query is added while subscribed (#10246)
* test(query-core/queriesObserver): add test for subscribing new observers when a query is added while subscribed

* ci: re-trigger CI
2026-03-18 12:46:00 +01:00
Wonsuk Choi
9ced4694ea
test(svelte-query/{queryOptions,infiniteQueryOptions}): flatten test directories that don't require '.svelte' component files (#10245) 2026-03-18 12:45:35 +01:00
Wonsuk Choi
c79a191703
test(svelte-query/createMutation): add test for recreating observer when 'queryClient' changes (#10244) 2026-03-18 12:45:13 +01:00
Wonsuk Choi
50eecb2d98
test(vue-query/useQueries): add test for outside scope warning in development mode (#10240) 2026-03-18 12:44:08 +01:00
Wonsuk Choi
ef2eb66887
test(vue-query/useMutation): add test for 'throw' from error watcher when 'throwOnError' returns true (#10239) 2026-03-18 12:43:52 +01:00
Wonsuk Choi
eca0da2eec
test(vue-query/useMutation): add test for outside scope warning in development mode (#10238)
* test(vue-query/useMutation): add test for outside scope warning in development mode

* refactor(vue-query/useMutation): wrap outside scope warning test with 'try/finally' for cleanup safety
2026-03-18 12:43:31 +01:00
Wonsuk Choi
38cd749a6c
test(vue-query/useIsFetching): add test for outside scope warning in development mode (#10237)
* test(vue-query/useIsFetching): add test for outside scope warning in development mode

* refactor(vue-query/useIsFetching): wrap outside scope warning test with 'try/finally' for cleanup safety
2026-03-18 12:43:14 +01:00
Wonsuk Choi
15d4a1a463
test(vue-query/useMutationState): split 'useMutationState' tests into separate file from 'useIsMutating.test.ts' (#10236) 2026-03-18 12:42:55 +01:00
Wonsuk Choi
b6fd093354
test(vue-query/useQuery): add test for outside scope warning in development mode (#10223)
* test(vue-query/useQuery): add test for outside scope warning in development mode

* refactor(vue-query/useQuery): wrap outside scope warning test with 'try/finally' for cleanup safety
2026-03-18 12:41:59 +01:00
Wonsuk Choi
2d3f5b3b28
test(vue-query/queryOptions): add runtime test for identity function (#10222) 2026-03-18 12:41:39 +01:00
Wonsuk Choi
6717985bdc
test(vue-query/queryClient): add test for 'ensureQueryData' ref unwrapping (#10221) 2026-03-18 12:41:26 +01:00
Wonsuk Choi
09ebf1b5de
test(angular-query/injectQuery): add test for not fetching during restoring period when 'isRestoring' is true (#10220) 2026-03-18 12:41:09 +01:00
Wonsuk Choi
09971c070b
test(angular-query/injectMutation): add test for 'throwOnError' with 'mutate' (#10219) 2026-03-18 12:40:53 +01:00
Wonsuk Choi
6fc3b451ab
test(angular-query/injectIsRestoring): add tests for 'injectIsRestoring' and 'provideIsRestoring' (#10217)
* test(angular-query/injectIsRestoring): add tests for 'injectIsRestoring' and 'provideIsRestoring'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-18 12:40:24 +01:00
Wonsuk Choi
31c1696c9d
fix(vue-query/useMutation): add missing '_defaulted' omit in 'UseMutationOptionsBase' (#10215)
* fix(vue-query/useMutation): add missing '_defaulted' omit in 'UseMutationOptionsBase'

* chore(.changeset): add changeset for '_defaulted' omit fix
2026-03-18 12:40:05 +01:00
Wonsuk Choi
3fac499f7e
test(react-query/useSuspenseInfiniteQuery): add test for basic suspend and resolve states (#10213)
* test(react-query/useSuspenseInfiniteQuery): add test for basic suspend and resolve states

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-18 12:39:36 +01:00
Wonsuk Choi
6d0a2a95b9
test(react-query/useSuspenseQuery): remove unnecessary 'act' from background refetch, 'refetchInterval', and post-unmount assertions (#10212) 2026-03-18 12:39:14 +01:00
Wonsuk Choi
9ec0fc6b71
test(react-query/useSuspenseQueries): remove unnecessary 'act' from background refetch and post-unmount assertions (#10211) 2026-03-18 12:38:57 +01:00
github-actions[bot]
4b1febdb39
ci: Version Packages (#10281) @tanstack/eslint-plugin-query@5.91.5 @tanstack/solid-query@5.91.0 2026-03-18 10:45:17 +01:00
Wonsuk Choi
09397ca84c
feat(solid-query): add 'mutationOptions' (#10138) 2026-03-18 03:12:01 +01:00
Birk Skyum
e924517767
ci: issues permissions for changeset preview (#10284) 2026-03-18 02:58:33 +01:00
Eliya Cohen
84a8ff14fe
fix: improve exhaustive dependencies detection (#10258)
* fix: improve exhaustive-deps to detect nested callback/control flow dependencies

* fix: detect callee objects as dependencies in exhaustive-deps rule

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2026-03-18 01:55:27 +11:00
DeoJin
6bcf9bf739
docs: fix Preact hydration nav link (#10274)
docs: fix preact hydration nav link

Co-authored-by: OpenClaw Bot <bot@openclaw.local>
2026-03-17 14:45:20 +01:00
Lachlan Collins
df0779721b
ci: update actions/labeler (#10278)
* ci: update actions/labeler

* Remove unnecessary config
2026-03-18 00:05:48 +11:00