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
Tanner Linsley
6c9d7a7c2b
release: v5.69.1
v5.69.1
2025-03-22 14:52:26 +00:00
Joep Kockelkorn
e5404843fa
fix(angular-query): forward queryFn errors to the NgZone ( #8842 )
...
* fix(angular-query): forward queryFn errors to the NgZone
* fix(angular-query): forward mutationFn errors to the NgZone
* refactor: remove wrapping try catches
2025-03-22 15:48:38 +01:00
TkDodo
a9b073a85e
docs: fix what prettier broke
2025-03-19 09:29:27 +01:00
TkDodo
bea2ff8726
docs: fix what prettier broke
2025-03-19 09:18:45 +01:00
Tanner Linsley
03fe8cd477
release: v5.69.0
v5.69.0
2025-03-18 11:12:06 +00:00
Dominik Dorfmeister
4d67c1cfa3
feat(core): streamedQuery ( #8814 )
...
* feat: streamedQuery
* feat: streaming example
* chore: move
* chore: fix lock file
* docs: streamedQuery
2025-03-18 12:09:51 +01:00
TkDodo
f03b1090d9
docs: fix eslint links
2025-03-18 10:11:00 +01:00
TkDodo
4b7fd0e836
docs: fix internal links
2025-03-18 09:45:11 +01:00
TkDodo
980d08d464
docs: fix links in ssr guide
2025-03-18 08:55:56 +01:00
TkDodo
ff788ac4e0
docs: remove extra link
2025-03-17 12:49:52 +01:00
TkDodo
84b1bed9c3
docs: add .md to links
2025-03-17 12:37:05 +01:00
HYUNJOON
21c5e099b2
docs: Fix broken link some example path ( #8813 )
...
* docs: fix example path in "advanced-ssr.md"
* fix: broken example link
2025-03-17 12:36:03 +01:00
Jonghyeon Ko
081ef3cc04
test(query-core): use fake timers for focusManager.test.tsx ( #8809 )
2025-03-17 12:28:48 +01:00
Jonghyeon Ko
4922f06424
test(query-core): use fake timers for mutationCache.test.tsx ( #8807 )
...
* test(query-core): use fake timers for mutationCache.test.tsx
* chore: update
2025-03-17 12:28:13 +01:00
Jonghyeon Ko
730b79a740
test(query-core): use fake timers for mutations.test.tsx ( #8806 )
2025-03-17 12:27:40 +01:00
Jonghyeon Ko
fb7edb4c04
test(query-core): use fake timers for mutationObserver.test.tsx ( #8805 )
2025-03-17 12:27:11 +01:00
Tanner Linsley
69adfdb503
release: v5.68.1
v5.68.1
2025-03-17 00:21:26 +00:00
Arnoud
7d3abb891c
fix(angular-query): do not run callbacks in injection context ( #8817 )
2025-03-17 01:09:02 +01:00
Tanner Linsley
1dba812910
release: v5.68.0
v5.68.0
2025-03-14 10:00:45 +00:00
Eliya Cohen
796032d08f
feat(eslint-plugin-query): enhance no-rest-destructuring rule to detect spread operations ( #8802 )
2025-03-14 10:58:29 +01:00
조우혁
d7f4cb09e2
docs: Fix broken links in query-options.md ( #8800 )
...
* fix: broken-link
* fix: remove .md
2025-03-13 17:33:57 +01:00
Julien Piron
edbb3046d0
docs: Fix broken links on ssr.md ( #8792 )
2025-03-13 16:37:45 +01:00
조우혁
4a89814635
test: remove unnecessary async keywords ( #8784 )
...
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-03-12 10:47:53 +01:00
조우혁
e86c395c2e
test(query-core): add hashQueryKeyByOptions test code ( #8736 )
...
* test: add hashQueryKeyByOptions test code
* fix: test code
* fix: eslint
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-03-11 18:34:26 +01:00
Tanner Linsley
4f76c7c495
release: v5.67.3
v5.67.3
2025-03-11 17:19:49 +00:00
Jonghyeon Ko
36eca995d2
test(query-core): use fake timers for infiniteQueryObserver.test.tsx ( #8775 )
...
* test(query-core): use fake timers for infiniteQueryObserver.test.tsx
* test(query-core): add sleep in queryFn like in real situation
2025-03-11 18:13:11 +01:00
Jonghyeon Ko
2c8cf3c369
test(query-core): use fake timers for queryCache.test.tsx ( #8779 )
...
* test(query-core): use fake timers for queryCache.test.tsx
* chore: update
* chore: update
2025-03-11 18:12:41 +01:00
Yoomin Kang
79496dd68b
refactor(types): restore missing readonly ( #8783 )
...
* fix(react-query): fix type breaking when using useSuspenseQueries with spreaded queryOptions
* test: change test title
* refactor: restore missing readonly
2025-03-11 18:11:48 +01:00
Arnoud
79608f3069
docs(angular-query): angular examples improvements ( #8782 )
2025-03-09 20:16:50 +01:00
Jonghyeon Ko
dcfc100dd3
test(query-core): use fake timer for notifyManager.test.tsx ( #8773 )
...
* test(query-core): use fake timer for notifyManager.test.tsx
* chore: update
2025-03-08 13:59:09 +01:00
Harry
8bfa77b525
docs(react-query): fix incorrect link in documentation ( #8699 )
...
* docs(react-query): fix incorrect paths in documentation
The documentation contained incorrect file paths.
Fixed the incorrect paths to match the actual directory structure.
* docs(react-query): fixed incorrect relative path (./ -> ../)
2025-03-08 13:08:47 +01:00
Jonghyeon Ko
0511c8205d
test(query-core): use fake timers for query.test.tsx ( #8727 )
2025-03-08 10:51:18 +01:00
Jonghyeon Ko
4140898d48
test(query-core): add test case for queryClient.isMutating ( #8726 )
2025-03-08 10:30:23 +01:00
Jonghyeon Ko
887820c915
test(react-query): add test case for useQuery ( #8729 )
2025-03-08 10:26:39 +01:00
Raj Suhail
4fb781feef
docs: Fix community resource links in important Defaults page. ( #8697 )
...
* Fix community resource links
* Fix all the remaning community links
2025-03-08 09:47:59 +01:00
Joseph Markus
67e52cf889
docs: Fix 404 link for Query Keys in useQuery.md ( #8769 )
...
Current link takes to https://tanstack.com/query/latest/docs/framework/guides/query-keys which is a 404
2025-03-07 19:19:55 +01:00