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

5,202 commits

Author SHA1 Message Date
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
Lachlan Collins
4c87002dca
ci: add changeset version preview (#10277) 2026-03-17 23:41:26 +11:00
renovate[bot]
d4fd94177e
chore(deps): update dependency @angular/compiler to v20.3.18 [security] (#10270)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-15 05:50:19 +00:00
renovate[bot]
4b309c1421
chore(deps): update dependency @angular/core to v20.3.18 [security] (#10271)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-15 01:31:18 +00:00
github-actions[bot]
489359a569
ci: Version Packages (#10263) @tanstack/solid-query@5.90.26
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-12 13:36:10 +01:00
Birk Skyum
c3f5d6a547
fix(solid-router): useIsRestoring and useQueryClient (#10262) 2026-03-12 13:32:57 +01:00
github-actions[bot]
89a889da5f
ci: Version Packages (#10261) @tanstack/solid-query@5.90.25
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-12 13:00:24 +01:00
Birk Skyum
5303191e66
fix(solid-query): allow both create/use syntax (#10260) 2026-03-12 12:57:11 +01:00
github-actions[bot]
0635a4ae9d
ci: Version Packages (#10259) @tanstack/solid-query@5.90.24 2026-03-12 08:32:48 +01:00
wnhlee
8b936b3896
fix(solid-query): forward generic parameters in deprecated type aliases (#10093) 2026-03-12 08:09:16 +01:00
Wonsuk Choi
db663de69f
test(query-core/queryObserver): add test for rejecting promise when 'experimental_prefetchInRender' is disabled (#10249) 2026-03-11 22:55:23 +01:00
Wonsuk Choi
8670a49945
test(query-core/queryCache): add tests for 'build' with and without provided 'queryHash' (#10252) 2026-03-11 22:52:35 +01:00
Dominik Dorfmeister 🔮
67cf8b60d9
ref: ts cutoff (#10253)
* ref: update typescript versions

* check for tsgo

* drop 5.2 and 5.3

* docs

* ref: fix tsup config

* ref: use built-in NoInfer

* ci: apply automated fixes

* fix tsup config

* Revert "ref: use built-in NoInfer"

This reverts commit 45d428ce71.

# Conflicts:
#	packages/preact-query/src/useQuery.ts

* ref: remove tsgo for now

* fix builds

* fix: update svelte-check

* fix: svelte-check still needs ts 5.9

* fix: knip + ts rewrite

* ci: apply automated fixes

* fix: make ts 5.9 the tscurrent version

* fix custom conditions

* fix: coderabbit comments

* fix: lockfile

* revert docs

* fix: override eslint to 8.56.1

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-09 08:12:35 +01:00
Pavan Shinde
fe25edc2f9
docs(react): fix broken anchors in SSR and migration guides (#10214)
* docs(react): fix broken anchors in SSR and migration guides

* Update docs/framework/react/guides/ssr.md

---------

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-03-04 13:46:58 +01:00
Wonsuk Choi
8a59b2d6e9
test({react,preact}-query/useSuspenseQueries): add test for suspending when the faster query already has data (#10210) 2026-03-02 16:14:17 +01:00
Wonsuk Choi
0eca134efd
test({react,preact}-query/useSuspenseQueries): add test for not suspending but refetching when all queries have stale cached data (#10209) 2026-03-02 16:07:55 +01:00
renovate[bot]
391db367b3
chore(deps): update dependency svelte to v5.53.5 [security] (#10201)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-02 14:08:35 +00:00
Dami Oyeniyi
234c16eeb8
fix(examples): guard missing mount target in preact simple example (#10208) 2026-03-02 10:30:14 +01:00
github-actions[bot]
f010bc516e
ci: Version Packages (#10206) @tanstack/preact-query-devtools@5.92.0 @tanstack/preact-query-persist-client@5.92.0
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-02 08:52:09 +01:00
Wonsuk Choi
0aec57559b
test(svelte-query/queryOptions): add runtime test for identity function (#10178)
* test(svelte-query/queryOptions): add runtime test for identity function

* Update packages/svelte-query/tests/queryOptions/queryOptions.svelte.test.ts

* test(svelte-query/queryOptions): add explicit 'CreateQueryOptions' type annotation

* test(svelte-query/queryOptions): revert 'CreateQueryOptions' type annotation due to overload mismatch
2026-03-02 08:47:58 +01:00
Wonsuk Choi
b2dfe4f4e3
feat(svelte-query): add 'mutationOptions' (#10175)
* feat(svelte-query/mutationOptions): add 'mutationOptions' identity function for type-safe mutation configuration

* test(svelte-query/mutationOptions): add type and runtime tests for 'mutationOptions'

* docs(svelte-query/mutationOptions): add reference documentation for 'mutationOptions'

* chore(svelte-query): add changeset for 'mutationOptions'

* ci: apply automated fixes

* test(svelte-query/mutationOptions): use 'Accessor' type for props in BaseExample and wrap test values with arrow functions

* style(svelte-query/mutationOptions): remove blank lines between 'fireEvent' and assertion blocks

* refactor(svelte-query/mutationOptions): split BaseExample into BaseExample and MultiExample for single and multi mutation tests

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-02 08:47:12 +01:00
Wonsuk Choi
6af63a727e
test({react,preact}-query/useSuspenseQueries): add test for not suspending when all queries have fresh cached data (#10202) 2026-03-02 08:45:07 +01:00
Dami Oyeniyi
c654c36b4d
fix(examples): guard missing mount targets in solid examples (#10205) 2026-03-02 08:44:50 +01:00