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
Wonsuk Choi
af6f63a314
test(svelte-query/useMutationState): add test for 'select' option in 'useMutationState' (#10150) 2026-02-26 14:42:42 +01:00
Wonsuk Choi
d27b5beea7
test(preact-query/ssr): add test for 'useMutationState' returning empty array (#10149) 2026-02-26 14:42:11 +01:00
Wonsuk Choi
e31bda9136
docs(solid-query): convert guide docs to ref-based with Solid-style code (#10146)
* docs(react-query/guides): add markers for solid-query guide overrides

* docs(solid-query/guides): convert guide docs to ref-based with Solid-style code

* docs(config): add solid offline example entry and update lockfile

* ci: apply automated fixes

* docs(react/guides/caching): unify staleTime wording to passive voice

* chore(pnpm-lock.yaml): fix broken lockfile for 'msw' dependency

* docs(solid/guides/caching): remove redundant 'StaleNote' override now unified with react

* docs(react/guides/caching): remove unused 'StaleNote' markers

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-26 14:27:51 +01:00
René Klomp
978fc52728
feat(experimental_createQueryPersister): Add removeQueries (#10186)
* Add removeQueries

* Docs

* ci: apply automated fixes

* Fix test

* Add changeset

* Udpate docs

* Await removeItem

* Improve test names

* Update .changeset/fifty-zebras-stay.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Add coderabbitai suggestion

* More data integrity checks

* removeItem if deserialize fails

* removeItem if deserialize fails in retrieveQuery as well

* removeItem if deserialize fails in restoreQueries

* Revert changes outside removeQueries scope

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-02-26 12:44:41 +01:00
Wonsuk Choi
d7d102e82e
docs(solid-query/quick-start): remove incomplete Available Functions section and fix outdated 'create' references (#10140)
* docs(solid-query/quick-start): fix outdated 'create' prefix to 'use' in Available Functions list

* docs(solid-query/quick-start): remove incomplete Available Functions section
2026-02-25 20:48:54 +01:00
Wonsuk Choi
b3b4f6092f
test(solid-query/queryOptions): add runtime test for identity function behavior (#10135)
* test(solid-query/queryOptions): add runtime test for identity function behavior

* chore: trigger CI

* Apply suggestion from @TkDodo

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2026-02-25 20:47:33 +01:00
renovate[bot]
807c8a931f
chore(deps): update dependency @astrojs/node to v9.5.4 [security] (#10183)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-24 12:46:55 +00:00
Wonsuk Choi
eb7dca5f89
test(preact-query/suspense): add test cases for 'static' staleTime with number and function (#10134) 2026-02-23 00:25:16 -06:00
vedanta
4511b636ea
chore(preact-query): Preact docs match fix (#10171)
* chore(preact-query): dual-match-pattern in docs

* window-focus-native fix
2026-02-22 12:57:08 -06:00
vedanta
ce94b37d6a
preact-docs problems fixed (#10160)
Things like Preact-Native, Preact 18.0+ is a remnant of using react-docs but without section-wise splitting. This handles that.
2026-02-21 19:37:16 -06:00
renovate[bot]
e5fcc65e5b
chore(deps): update dependency svelte to v5.51.5 [security] (#10157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-21 00:50:26 +00:00
renovate[bot]
a487708aa8
chore(deps): update dependency @sveltejs/kit to v2.52.2 [security] (#10158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-20 20:59:19 +00:00
Wonsuk Choi
bb257c2835
test(solid-query/useMutationState): add test for default 'options' parameter coverage (#10148) 2026-02-18 09:49:39 +01:00
Wonsuk Choi
984bfa6f15
test(preact-query/useSuspenseQueries): add test for suspending only pending queries when some already have cached data (#10133) 2026-02-16 14:48:05 +01:00
Wonsuk Choi
d7213f7ce8
test(query-core/mutation): add test for 'optionalRemove' when remaining observer exists (#10127) 2026-02-13 18:41:03 +01:00
Wonsuk Choi
4987d587e1
ci(labeler-config): add missing 'preact-query' package label (#10125) 2026-02-13 15:19:16 +01:00
Pavan Shinde
a25e99d6cb
docs: fix TanStack capitalization (#10128) 2026-02-13 12:07:24 +01:00
Wonsuk Choi
8830b73dae
chore(preact-query/vite.config): exclude '__tests__' directory from coverage reports (#10124) 2026-02-13 08:49:31 +01:00
Pavan Shinde
c2325ed0fe
docs(angular): fix TypeScript anchor link in mutation options (#10121) 2026-02-12 14:00:53 +01:00
github-actions[bot]
6252715573
ci: Version Packages (#10117) @tanstack/vue-query-devtools@6.1.5
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-11 17:37:27 +01:00
Lachlan Collins
4ed9dc1a7a
fix(vue-devtools): fix style prop type (#10087)
* fix(vue-devtools): fix style prop type

* Add changeset
2026-02-11 17:06:18 +01:00
라몽이
e23fa5dbaf
fix(query-codemods): fix duplicate 'a' typo in placeholder data error (#10116)
fix(query-codemods): fix duplicate 'a' typo in placeholder data error message
2026-02-11 10:59:37 +01:00
라몽이
4b50c20be6
docs(focusManager): fix duplicate 'event' typo in test comment (#10114)
Remove the duplicated "event" in the test comment of focusManager.test.tsx.
2026-02-11 10:59:01 +01:00
Yoav Rabby
b9ed67caf9
docs(community-projects): Add Tanstack Query Visualizer to the list o… (#10085)
docs(community-projects): Add Tanstack Query Visualizer to the list of community projects
2026-02-11 10:56:35 +01:00
github-actions[bot]
08050cb3eb
ci: Version Packages (#10115) @tanstack/react-query@5.90.21
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-11 10:13:08 +01:00
Wonsuk Choi
c5def66a18
refactor(react-query/useQueries): remove unreachable 'willFetch' branch in suspense promise collection (#10082)
* refactor(react-query/useQueries): remove unreachable 'willFetch' branch in suspense promise collection

* Refactor useQueries to remove unreachable code

Refactor the useQueries function to improve code clarity by removing an unreachable 'willFetch' branch in the suspense promise collection.

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2026-02-11 09:42:08 +01:00
Wonsuk Choi
ed37a87ba9
chore(.gitignore): add 'next-env.d.ts' globally and remove tracked files (#10083) 2026-02-11 09:39:51 +01:00
Wonsuk Choi
da2ff5aeb8
chore(vite.config): exclude '__tests__' directory from coverage reports (#10084) 2026-02-11 09:38:11 +01:00
Pavan Shinde
ec60e1c954
docs: angular caching queryfn fix (#10092)
* docs: fix grammar in SSR serialization section

* docs(angular): fix queryFn typo in caching guide

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2026-02-11 09:32:41 +01:00
Pavan Shinde
4ab43b3c0e
docs: fix grammar in SSR serialization section (#10086) 2026-02-11 09:31:28 +01:00
라몽이
b45be38a7e
docs(CONTRIBUTING): fix duplicate 'run' typo in changeset instructions (#10113) 2026-02-11 09:28:32 +01:00
Eunwoo
d34292dfac
docs(query-core): fix duplicated word in thenable comment (#10112)
Remove the duplicated "props" in the `pendingThenable` finalize function comment.
2026-02-11 08:23:45 +01:00
배경진
fc66c8fccb
docs(readme): fix partners logos for dark/light mode Related to #10088 (#10107)
docs(readme): fix partners logos for dark/light mode
2026-02-10 17:38:15 +01:00
Pavan Shinde
29cf1bd388
test: rename dependant queries to dependent queries (#10096) 2026-02-10 17:31:58 +01:00
Wonsuk Choi
2a592d241b
test(react-query/suspense): add test cases for 'static' staleTime with number and function (#10089) 2026-02-10 17:25:03 +01:00
Wonsuk Choi
7e3ea62364
test(react-query/QueryResetErrorBoundary): relocate 'issue-9728' test and migrate to fake timers (#10090) 2026-02-10 17:24:41 +01:00
Wonsuk Choi
5dd9d9a53b
test(query-core/queryClient): add test for 'getMutationDefaults' matching only relevant mutation defaults (#10099) 2026-02-10 17:23:18 +01:00
Wonsuk Choi
33679a154d
test(query-core/mutationObserver): add test for skipping 'notify' when 'setOptions' is called with same options (#10098) 2026-02-10 17:22:43 +01:00
Wonsuk Choi
858aa9474d
test(query-core/mutationCache): add test for 'remove' splicing target mutation from scope with multiple mutations (#10103) 2026-02-10 17:22:16 +01:00
Wonsuk Choi
e2e5401d75
test(query-core/queryObserver): add test for 'getOptimisticResult' updating 'currentResult' with changed data (#10102) 2026-02-10 17:21:40 +01:00
renovate[bot]
14a3ce5741
chore(deps): lock file maintenance (#9832)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-10 14:11:21 +00:00
github-actions[bot]
463d1cd9d4
ci: Version Packages (#10109) @tanstack/preact-query@5.91.0
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-10 12:10:06 +01:00
TkDodo
5b78aa1de4 fix: preact example name in package.json 2026-02-10 12:05:43 +01:00
vedanta
8f0d834382
feat: Preact Adapter (#9935)
* initial setup -- duplicated + package.json edited

* simple preact updations

* missed a React.ReactNode

* testing grunt work (preact library + other small issues + ErrorBoundary custom implementation)

* missed a few

* Adds ErrorBoundary (from react-error-boundary, but scaled down for preact) -- fixes a lot of tests, which expect react-related functionality

* useSuspenseQueries left -- removed the useQuery.promise tests

* forgot the console logs

* useSuspenseQueries 2 resolved; tests done

* ci: apply automated fixes

* fix: example

* fix: configs should be symlinks

* fix: sync versions for npm-run-all2

* ref: re-sync runall2

* ref: go back to 5.0.0

* ref: remove changelog

* react-query -> preact-query

* remove use client directive + added the useSyncExternalStore (decoupled from compat)

* remove the react remnants

* generate docs

* typescript eslint

* docs

* vite config fix

* docs now reference react docs (most of them atleast)

* code-rabbit issues addressed

* <div/> lol

* fix: docs

* ci: apply automated fixes

* fix: lockfile

* fix: duplicated versions

* lockfile (I cooked or am I cooked)

* ci: apply automated fixes

* Making small edits to fix versioning, warnings, and lock

* unhandled error compat

* Fixing CI

* Fixed the CI errors

* ci: apply automated fixes

* Prettier format

* Update changeset for Preact Adapter feature

---------

Co-authored-by: TkDodo <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-10 12:02:20 +01:00
Dominik Dorfmeister
d68845833b
ci: remove codecov (#10081) 2026-01-30 12:11:24 +01:00
Wonsuk Choi
dee5d3e9e4
test(react-query/ssr): add 'useMutation' and 'useMutationState' tests for SSR (#9995)
* test(react-query/ssr): add 'useMutation' and 'useMutationState' tests for SSR

* test(react-query/ssr): add 'queryCache.clear()' to 'useMutation' and 'useMutationState' tests

* chore(ci): trigger CI rerun

* ci: trigger CI re-run

* ci: trigger CI re-run

---------

Co-authored-by: Jonghyeon Ko <jonghyeon@toss.im>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2026-01-30 12:04:10 +01:00
github-actions[bot]
a678f0957c
ci: Version Packages (#10069) @tanstack/angular-query-experimental@5.90.25 @tanstack/eslint-plugin-query@5.91.4 @tanstack/query-devtools@5.93.0 @tanstack/react-query-devtools@5.91.3 @tanstack/solid-query-devtools@5.91.3 @tanstack/svelte-query-devtools@6.0.4 @tanstack/vue-query-devtools@6.1.4
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-30 10:30:28 +01:00
ColemanDunn
83366c46a6
feat(query-devtools) set data to undefined on Trigger Error in TanstackQueryDevtools (#10072)
* Set query data to undefined when an error is triggered

* changeset
2026-01-30 10:26:01 +01:00
송재욱
ed5e5fcfc1
fix(eslint-plugin-query): declare typescript as optional peer dependency (#10007)
* fix(eslint-plugin-query): declare typescript as optional peer dependency (#9846)

* fix: Restrict typescript peer dependency to versions less than 6.0.0

* chore: update pnpm-lock

* Update packages/eslint-plugin-query/package.json

* update lockfile

* Update TypeScript peer dependency in eslint-plugin-query

Declare TypeScript as an optional peer dependency for eslint-plugin-query.

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2026-01-24 10:18:14 +01:00
github-actions[bot]
7ac4e20ddb
ci: Version Packages (#10067) @tanstack/angular-query-experimental@5.90.24 @tanstack/query-async-storage-persister@5.90.22 @tanstack/query-broadcast-client-experimental@5.90.20 @tanstack/query-core@5.90.20 @tanstack/query-persist-client-core@5.91.19 @tanstack/query-sync-storage-persister@5.90.22 @tanstack/react-query-persist-client@5.90.22 @tanstack/react-query@5.90.20 @tanstack/solid-query-persist-client@5.90.23 @tanstack/solid-query@5.90.23 @tanstack/svelte-query-persist-client@6.0.20 @tanstack/svelte-query@6.0.18 @tanstack/vue-query@5.92.9
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-01-23 08:39:24 +01:00