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
MINSEONG KIM
069cf070ca
test(query-core) resolve ESLint typescript-eslint/require-await warnings for devtools.test.tsx (#8917) 2025-04-01 17:23:13 +02:00
MINSEONG KIM
12762a3919
test(query-persist-client-core): resolve ESLint typescript-eslint/require-await warnings for createPersister.test.tsx (#8915) 2025-04-01 17:22:43 +02:00
MINSEONG KIM
15ebad80ba
test(query-persist-client-core): resolve ESLint typescript-eslint/require-await warnings for persist.test.tsx (#8914) 2025-04-01 17:22:17 +02:00
MINSEONG KIM
b1a2fef8d9
test(react-query-devtools): resolve ESLint typescript-eslint/require-await warnings (#8912) 2025-04-01 17:20:45 +02:00
MINSEONG KIM
4be57404c5
test(react-query): resolve ESLint typescript-eslint/require-await warnings (#8908) 2025-04-01 17:20:00 +02:00
MINSEONG KIM
78c8a0c870
test(react-query): resolve ESLint typescript-eslint/require-await warnings (#8907) 2025-04-01 17:19:45 +02:00
MINSEONG KIM
815ff24b99
test(react-query): resolve ESLint typescript-eslint/require-await warnings (#8905) 2025-04-01 17:19:26 +02:00
MINSEONG KIM
4117d68bb3
test(react-query): resolve ESLint typescript-eslint/require-await warnings (#8904) 2025-04-01 17:19:06 +02:00
MINSEONG KIM
3799d8705d
test(react-query): resolve ESLint typescript-eslint/require-await warnings (#8903) 2025-04-01 17:18:38 +02:00
MINSEONG KIM
4779747a3e
test(react-query): resolve ESLint typescript-eslint/require-await warnings (#8902) 2025-04-01 17:18:25 +02:00
MINSEONG KIM
f4aa6e35c8
test(query-core): resolve ESLint typescript-eslint/require-await warnings (#8901) 2025-04-01 17:18:10 +02:00
MINSEONG KIM
a8beb4a58f
test(query-core): resolve ESLint typescript-eslint/require-await warnings (#8899) 2025-04-01 17:16:38 +02:00
Birk Skyum
0c463bc15c
update vue-tsc (#8926) 2025-04-01 16:33:33 +02:00
Birk Skyum
aa382e9d50
cleanup devDeps tsup, typescript, @microsoft/api-extractor (#8924) 2025-04-01 16:17:50 +02:00
novice0840
d3cf47968e
docs(react-guides): fixed link typo (#8923) 2025-04-01 15:50:19 +02:00
Tanner Linsley
202fe49157 release: v5.71.2 v5.71.2 2025-04-01 11:57:32 +00:00
Birk Skyum
1e2b12e9c8
fix(solid-query,query-devtools): bump solid (1.9.5) and vite-plugin-solid (2.11.6) (#8922)
* fix(solid-query,query-devtools): bump to solid 1.9.5

* bump vite-plugin-solid to 2.11.6
2025-04-01 13:55:21 +02:00
Birk Skyum
d2d9084326
increase pnpm to 10.7 (#8920) 2025-04-01 12:36:19 +02:00
renovate[bot]
1896c096e4
chore(deps): update dependency vite to v5.4.16 [security] (#8910)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 22:54:48 +00:00
Clarence
24c80558c4
docs(react-reference): fixed cancellation typo (#8883) 2025-03-31 11:10:17 +02:00
Clarence
f1743868b2
docs(react-guides): fixed cancellation typo (#8882) 2025-03-31 11:10:06 +02:00
Clarence
ee5dc1ae40
docs(react-guides): fixed cancelMutations typo (#8881) 2025-03-31 11:06:11 +02:00
Tanner Linsley
6c105d6ddf release: v5.71.1 v5.71.1 2025-03-31 08:35:33 +00:00
Daniel Osmond
610ba6874c
fix: Prevent redundant function call error in dev mode (#8877) 2025-03-31 10:29:12 +02:00
MINSEONG KIM
cf7b375542
test(react-query): fix async to promise (#8889) 2025-03-31 10:28:24 +02:00
MINSEONG KIM
bd4c8d176f
test(react-query): resolve ESLint typescript-eslint/require-await warnings (#8888) 2025-03-31 10:28:08 +02:00
MINSEONG KIM
517c490d05
test(react-query): fix async to promise and remove unnecessary await (#8887) 2025-03-31 10:27:44 +02:00
MINSEONG KIM
627062bd62
test(react-query): resolve ESLint typescript-eslint/require-await warnings (#8886) 2025-03-31 10:27:04 +02:00
MINSEONG KIM
5acf8e666e
test(react-query): fix queryFn to use Promise.resolve to match TypeScript requirements (#8885) 2025-03-31 10:26:39 +02:00
MINSEONG KIM
cd6c8c04ee
test(react-query): use fake timers for useQuery.promise.test.tsx (#8890) 2025-03-30 20:52:27 +02:00
Tanner Linsley
ad777b43de release: v5.71.0 v5.71.0 2025-03-30 12:53:58 +00:00
Clarence
62b872051d
docs(react-community): fixed typescript typo (#8879) 2025-03-30 14:50:39 +02:00
Dominik Dorfmeister
cea2d58733
Revert "feat(eslint-plugin): no void queryFn (#8878)" (#8880)
This reverts commit c2e5272346.
2025-03-30 14:48:40 +02:00
Eliya Cohen
c2e5272346
feat(eslint-plugin): no void queryFn (#8878)
* feat(eslint-plugin-query): implement no-void-query-fn rule

* add docs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-30 10:49:49 +02:00
MINSEONG KIM
1fa539ac71
test(query-core): fix mutationFn to use Promise.resolve to match TypeScript requirements (#8875) 2025-03-30 10:48:56 +02:00
autofix-ci[bot]
747eea807d
ci: apply automated fixes 2025-03-28 16:25:38 +00:00
Tyler
e5ef2757a0
docs(queryClient): JSDoc hint for queryClient.getQueryData (#8862)
* docs(queryClient): JSDoc hint for queryClient.getQueryData

follow up from: https://bsky.app/profile/tylur.dev/post/3llennpm4kk2z

* Update packages/query-core/src/queryClient.ts

* Update packages/query-core/src/queryClient.ts

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-03-28 17:24:39 +01:00
Tanner Linsley
72ca2e6c32 release: v5.70.0 v5.70.0 2025-03-28 15:06:53 +00:00
Dominik Dorfmeister
00de4a0afb
feat: export defaultScheduler (#8872)
* feat: export defaultScheduleFn

so that users can set a different scheduler and fall back to the default, too

* chore: rename to defaultScheduler
2025-03-28 16:04:46 +01:00
Tanner Linsley
9ecaf2f43b release: v5.69.3 v5.69.3 2025-03-28 10:53:59 +00:00
Jonghyeon Ko
dcb3c500d0
test(react-query): use fake timer for HydrationBoundary.test.tsx (#8774)
* test(react-query): use fake timer for HydrationBoundary.test.tsx

* chore: update

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-03-28 11:42:15 +01:00
Jonghyeon Ko
ed2d4e95a0
refactor(react-query-persist-client): remove unnecessary props spreading (#8778)
* fix(react-query-persist-client): remove unnecessary props spreading

* chore: reflect review
2025-03-28 11:33:14 +01:00
Tanner Linsley
597654d284 release: v5.69.2 v5.69.2 2025-03-28 08:20:34 +00:00
Dominik Dorfmeister
1b545389a1
fix(core): make sure that calling setOptions will always notifyListeners (#8771)
* fix(core): make sure that calling setOptions will always notifyListeners

we have an optimized `shouldNotifyListeners` logic internally in the QueryObserver that will make sure we only notify listeners that are interested in a change because they are using a specific key (tracked query properties)

the optimization to force a skip of the notification when updating options because the optimistic result should already contain all the necessary output falls apart in the situation described in the test and in the linked issue #8741.

while the issue itself is a niche edge-case, the fix is to actually remove a bunch of code, so I'm all for it

* chore: fix other adapters

* chore: fix svelte, too

* chore: fix svelte tests
2025-03-28 09:18:20 +01:00
Eva
b23bb3974c
docs: Update overview.md (#8859)
Updated several mentions of "React Query" to "TanStack Query".
Wrote "formerly known as" instead of using a not all that well known abbreviation to better support the multilingual audience.
2025-03-27 14:46:48 +01:00
Brandon Weeks
6d03341457
docs: Add Connect RPC to the list of community projects (#8850)
* docs: Add Connect RPC to the list of community projects

Connect RPC has a native TanStack Query integration.

https://github.com/connectrpc/connect-query-es

* ci: apply automated fixes

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-26 13:57:12 +01:00
Keyur Govrani
3064422e53
docs: fix ignored promise from invalidate queries (#8847)
* fix(examples): Promise returned from invalidateQueries being ignored in optimistic-updates-cache example

* fix(examples): Promise returned from invalidateQueries is ignored in optimistic-updates-ui example

* fix(docs): Promise returned from invalidateQueries is ignored in optimistic-updates documentation

* Update docs/framework/react/guides/optimistic-updates.md

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* refactor(docs, examples): standardize queryClient.invalidateQueries syntax in all onSettled callbacks

* ci: apply automated fixes

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-26 10:27:36 +01:00
renovate[bot]
f45205f9a2
chore(deps): update dependency vite to v5.4.15 [security] (#8856)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-25 18:55:22 +00:00
Denis Shvets
04712b7bc1
docs: fix internal link (#8855)
* docs: fix internal link

* Update docs/framework/react/guides/query-invalidation.md

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-03-25 16:32:47 +01:00
Dominik Dorfmeister
fb1dffca7b
docs: Update testing.md 2025-03-24 11:00:44 +01:00