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

5,168 commits

Author SHA1 Message Date
Jonghyeon Ko
002550cb35
chore: add .vscode/mcp.json and .github/instructions/nx.instructions.md to .gitignore (#9325) 2025-06-29 00:37:51 +09:00
Wonsuk Choi
e4bbb89b80
test(query-core/queryClient): add missing 'await' for 'advanceTimersByTimeAsync' (#9320)
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-06-29 00:36:35 +09:00
Tanner Linsley
5dd11a3c88 release: v5.81.5 v5.81.5 2025-06-27 19:02:53 +00:00
Tmk
9813a3995c
fix(react-query): throw type error when skipToken is present in prefetch query (#9321) 2025-06-27 20:58:51 +02:00
Wonsuk Choi
b5a909528a
test(query-core/focusManager): use 'advanceTimersByTime' for boolean focused arg test (#9317) 2025-06-27 17:00:00 +02:00
Tanner Linsley
917ac88c9c release: v5.81.4 v5.81.4 2025-06-27 13:54:19 +00:00
Dominik Dorfmeister
1078bce264
refactor: deprecate createSyncStoragePersister (#9316) 2025-06-27 15:52:38 +02:00
Wonsuk Choi
20120ae493
test(query-core/mutationObserver): add 'advanceTimersByTimeAsync' in all tests (#9312)
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-06-27 14:01:44 +02:00
Tanner Linsley
46b5db96ab release: v5.81.3 v5.81.3 2025-06-27 09:11:33 +00:00
Dominik Dorfmeister
f052bf2642
fix(docs): Update persistQueryClient.md 2025-06-27 11:09:37 +02:00
Alex Liu
df564566f0
type(vue-query): introduce ShallowOption to unify shallow type and JSDoc (#9277)
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2025-06-27 01:14:50 +02:00
Arnoud
b180d83616
chore(angular-query): remove obsolete angular platform-browser-dynamic (#9311) 2025-06-25 18:23:18 +02:00
autofix-ci[bot]
0de3843c4f
ci: apply automated fixes 2025-06-25 12:14:38 +00:00
Arnoud de Vries
f0741dbc24 docs(angular-query): fix nullish coalescing warnings in examples 2025-06-25 14:12:35 +02:00
Arnoud
f7cf1b5210
chore: update @tanstack/config (#9302) 2025-06-25 12:45:48 +02:00
Jonghyeon Ko
13d775bcce
test(vue-query): use fakeTimers for flaky useMutation.test.tsx (#9300) 2025-06-22 20:43:24 +09:00
Tanner Linsley
cd87a42a31 release: v5.81.2 v5.81.2 2025-06-21 22:28:38 +00:00
Arnoud
48f116c72b
chore(angular-query): revert to tsup to build package (#9298) 2025-06-22 00:15:55 +02:00
Arnoud
5b0d320b35
fix(angular-query): fix package publishing (#9297) 2025-06-21 16:02:03 +02:00
Dominik Dorfmeister
0e44a7445d
fix: trigger release
RELEASE_ALL
2025-06-21 14:04:03 +02:00
Dominik Dorfmeister
76c91d8d7b
fix: trigger release 2025-06-21 14:03:08 +02:00
Jonghyeon Ko
b766d07963
chore: update documentation generation and publishing scripts (#9296)
- Changed documentation generation script from JavaScript to TypeScript.
- Added new TypeScript script for publishing packages with configuration for different branches.
2025-06-21 13:48:19 +02:00
Jonghyeon Ko
51cc9e704e
chore: add .cursor/rules to .gitignore (#9295) 2025-06-21 14:22:59 +09:00
Arnoud
93caca1ea2
chore(angular-query): run prepack after build (#9294) 2025-06-21 01:01:20 +02:00
Arnoud
658d5fa21d
refactor(angular-query): build with vite, publish d.ts files to package root (#9292) 2025-06-21 00:02:17 +02:00
Dmytro Borysov
1a0ab99943
docs: add Chrome extension information for TanStack Query devtools across multiple frameworks (#9275) 2025-06-19 20:51:01 +02:00
Ali Helmi
22368e03cf
docs: clarify comment regarding userIds in dependent queries example (#9288)
* docs: clarify comment in dependent queries example for userIds

* docs: clarify comment regarding userIds in dependent queries example
2025-06-19 11:40:42 +02:00
Tanner Linsley
6f3d93c2bf release: v5.80.10 v5.80.10 2025-06-19 08:52:26 +00:00
LoicDavid
fa48673776
perf(query-core): clear query's revertState once fetching ends successfully (#9265)
revertState is used as a fallback for fetching failure.
Clearing it once fetching ends successfully improve memory usage, particularly with queries
returning large amount of data.

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-06-19 10:48:26 +02:00
Anders Madsen
af1de4ddb7
docs: Change the word 'Vue' to 'Solid' (#9287) 2025-06-19 10:26:51 +02:00
Jonghyeon Ko
786beac4b1
chore: update Node version and modify script commands (#9286)
- Updated Node version in .nvmrc from 22.12.0 to 24.2.0.
- Changed the "verify-links" script in package.json to use "node" instead of "pnpm tsx".
- Removed tsx dependency from package.json and pnpm-lock.yaml.
2025-06-18 19:52:28 +02:00
Jonghyeon Ko
cdab6e2b2b
ci: add link verification step to PR workflow (#9267) 2025-06-19 01:28:16 +09:00
Konrad Lisiczyński
5b017d1a68
docs: Update community-projects.md (#9285)
I just added `@normy/vue-query` addon to normy.

Also, I added `@normy/query-core` addon and refactored `@normy/react-query` to use it, so it would be very easy to add more addons, like to angular, solid and so on
2025-06-18 18:05:29 +02:00
Tanner Linsley
ddc15f7efa release: v5.80.9 v5.80.9 2025-06-17 21:57:31 +00:00
Arnoud
e292e3e5cf
fix(angular-query): fix types missing in published package (#9283) 2025-06-17 23:55:23 +02:00
Arnoud
c251358624
Revert "refactor(angular-query): migrate from tsup to vite (#9281)" (#9282)
This reverts commit 1c7c276a54.
2025-06-17 23:37:10 +02:00
Tanner Linsley
6f519975d6 release: v5.80.8 v5.80.8 2025-06-17 18:14:33 +00:00
Arnoud
1c7c276a54
refactor(angular-query): migrate from tsup to vite (#9281)
* chore(angular-query): migrate from tsup to vite

* build fixes
2025-06-17 20:03:50 +02:00
Tanner Linsley
33d008bbb3 release: v5.80.7 v5.80.7 2025-06-11 23:52:08 +00:00
Wesley LeMahieu
bd3ac49e29
fix(solid-query-devtools): client-side code instantiating prematurely server-side (#9163)
* separate concerns of clientOnly and SolidQueryDevtools

* remove unnecessary type change
2025-06-12 01:49:17 +02:00
renovate[bot]
641ec86053
chore(deps): update autofix-ci/action digest to 635ffb0 (#9263)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-09 22:21:24 +10:00
Collin Stevens
cba46b5d79
docs: fix relative links (#9262)
* fix relative links

* Update mutations.md
2025-06-09 09:11:45 +02:00
H. C. Kruse
10b4c2fbe5
docs: Remove superfluous text from mutations.md (#9256)
Sentence ends in `Add commentMore actions` looking out of place.
2025-06-06 15:37:37 +02:00
Christina Martinez
eae7bde328
docs: Replace accidentally-deleted content in mutations.md (#9254)
Co-authored-by: christinamartinez <christina.martinez@faithlife.com>
2025-06-06 09:14:14 +02:00
Braden Wong
2b9b122b98
test: add callback return type tests for mutation callbacks (#9252)
* Revert "refactor(types): narrow onSuccess/onError/onMutate/onSettled callback types to Promise<void> | void (#9202)"

This reverts commit 982f6ca607.

* test: add callback return type tests for mutation callbacks

Adds test coverage for mutation callback return types, inspired by the discussions and [TkDodo's comment](https://github.com/TanStack/query/pull/9245#issuecomment-2939664588
) in #9245 and the original Promise.all() edge case identified in #9202.

The original PR #9202 narrowed callback return types from `Promise<unknown> | unknown`
to `Promise<void> | void`, but this broke common patterns like:

```ts
onSuccess: (data) => Promise.all([
  invalidateQueries(),
  trackAnalytics(),
])
```

As noted in [the original discussion](https://github.com/TanStack/query/pull/9202#issuecomment-2934491122),
this `Promise.all()` pattern was a legitimate use case that many users relied on.

These tests ensure we support all the callback patterns that users expect:

✅ **Sync patterns**: Implicit void, explicit void, non-void returns
✅ **Async patterns**: Async functions, Promise.resolve(), Promise<T> returns
✅ **Promise.all() patterns**: The original breaking case from #9202
✅ **Promise.allSettled() patterns**: Additional parallel operation support
✅ **Mixed patterns**: Different callback types in same mutation
✅ **Error handling**: All patterns work in error scenarios
✅ **Return value isolation**: Callback returns don't affect mutation result

* refactor(tests): remove unnecessary parameters in mutation tests

* test(mutations): fix mutation test ordering with error handling and cleanup verification

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-06-05 17:20:23 +02:00
Tanner Linsley
433599301c release: v5.80.6 v5.80.6 2025-06-05 13:09:53 +00:00
Braden Wong
dfbda9de66
refactor(types): revert narrow onSuccess/onError/onMutate/onSettled callback types to Promise<void> | void (#9202)" (#9251)
This reverts commit 982f6ca607.
2025-06-05 15:04:37 +02:00
Tanner Linsley
2db48f44b3 release: v5.80.5 v5.80.5 2025-06-04 18:43:11 +00:00
René Klomp
9e0e60c7f0
fix(experimental_createQueryPersister): Change persisterRestoreAll to restoreQueries with filter support (#9230)
* Add persisterRestoreByKey

* Fix imports

* Add missing return statement

* Fix test

* docs

* Add extra test

* Merge into single restoreQueries function
2025-06-04 20:37:26 +02:00
Tanner Linsley
baaa3104d2 release: v5.80.4 v5.80.4 2025-06-04 18:20:29 +00:00