Wonsuk Choi
eaf768b5ec
test(react-query/useQuery): remove 'vi.waitFor', add 'advanceTimersByTimeAsync' and replace 'findByText' with 'getByText' ( #9363 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 09:28:56 +09:00
Wonsuk Choi
a0a0812c37
test(react-query/useSuspenseQueries): remove 'waitFor' and add 'advanceTimersByTimeAsync' ( #9356 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-11 09:22:02 +09:00
Tanner Linsley
4287e68336
release: v5.82.0
v5.82.0
2025-07-09 15:03:13 +00:00
우빈
f3cbfc51da
feat(react-query): add mutationOptions ( #8960 )
...
* feat(react-query): add mutationOptions
* test(react-query): add DataTag test case
* fix(react-query): remove unnecessary types from mutation
* fix(react-query): remove unncessary type overload
* chore(react-query): add mutationOptions to barrel file
* fix(react-query): fix test eslint issue
* docs(react-query): add more examples
* test(react-query): add more test cases
* chore(react-query): Change mutaitonKey to required
* fix(react-query): fix test code type error
* test(react-query): add testcase when used with other mutation util
* fix(react-query): fix error test code and avoid use deprecateed method
* fix(react-query): fix error test code and avoid use deprecateed method
* fix(react-query): fix import detect error
* fix(react-query): fix import detect error
* fix(react-query): add function overload
* test(react-query): fix mutation options test code
* Update docs/framework/react/typescript.md
* Update docs/framework/react/reference/mutationOptions.md
* Update docs/framework/react/typescript.md
* fix: update mutationOptions type definition to allow optional mutationKey with restricting filter when mutationKey wasn't passed
* ci: apply automated fixes
* chore: add Nick-Lucas as co-author
Co-authored-by: Nick Lucas <8896153+Nick-Lucas@users.noreply.github.com>
* test(react-query): fix test code and add used with useMutation without mutationKey
* Update packages/react-query/src/__tests__/mutationOptions.test-d.tsx
* docs: add mutationOptions to sidebar config
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Nick Lucas <8896153+Nick-Lucas@users.noreply.github.com>
2025-07-09 16:59:41 +02:00
Wonsuk Choi
ed8cc23454
test(react-query/useSuspenseQuery): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9364 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 18:11:00 +09:00
Wonsuk Choi
0907dabbf2
test(react-query/QueryResetErrorBoundary): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9365 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 18:01:43 +09:00
Wonsuk Choi
d449f6f367
test(react-query/usePrefetchInfiniteQuery): switch to fake timers, remove 'waitFor' and add 'advanceTimersByTimeAsync' ( #9354 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 17:55:58 +09:00
Wonsuk Choi
ac2fa17f98
test(react-query/QueryResetErrorBoundary): switch to fake timers and replace 'waitFor' with 'vi.waitFor' ( #9349 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 01:00:58 +09:00
Wonsuk Choi
ed66939ff7
test(react-query/useSuspenseQuery): switch to fake timers and replace 'waitFor' with 'vi.waitFor' ( #9357 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 00:50:04 +09:00
Wonsuk Choi
026c050c58
test(react-query/useInfiniteQuery): switch to fake timers and replace 'waitFor' with 'vi.waitFor' ( #9359 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 00:45:08 +09:00
Wonsuk Choi
058c1eb770
test(react-query/QueryClientProvider): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9345 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 00:25:36 +09:00
Wonsuk Choi
67695efb04
test(react-query/useIsFetching): remove 'vi.waitFor', add 'advanceTimersByTimeAsync' and replace 'findByText' with 'getByText' ( #9358 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 00:19:34 +09:00
Wonsuk Choi
03aca2e762
ci(.github/workflows/autofix): use 'pnpm run' for prettier script for consistency ( #9348 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 00:09:59 +09:00
Wonsuk Choi
8bf22144bc
test(react-query/useMutationState): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9353 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-06 00:05:00 +09:00
Wonsuk Choi
3eebcff515
test(react-query/fine-grained-persister): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9344 )
2025-07-06 00:01:14 +09:00
Wonsuk Choi
2bc52bf50c
test(query-core/onlineManager): replace 'advanceTimersByTimeAsync' with 'advanceTimersByTime' ( #9337 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-02 02:11:27 +09:00
Wonsuk Choi
d0bea3fb91
test(query-core/mutationCache): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9339 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-02 02:07:13 +09:00
Wonsuk Choi
998be8bca4
test(query-core/queryCache): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9340 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-02 02:01:49 +09:00
Wonsuk Choi
d75a78af7f
test(query-core/mutations): add 'await' to 'sleep', remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9341 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-02 01:55:16 +09:00
Wonsuk Choi
b805733f5d
test(query-core/infiniteQueryBehavior): remove most 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9333 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-02 01:47:47 +09:00
Wonsuk Choi
879a1e33bd
test(query-core/queriesObserver): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9342 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-02 01:38:27 +09:00
Wonsuk Choi
5e6e36daef
test(query-core/queryObserver): remove 'vi.waitFor' and add 'advanceTimersByTimeAsync' ( #9343 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-02 01:28:29 +09:00
Wonsuk Choi
a5319d5aaf
test(query-core/infiniteQueryObserver): remove duplicate 'InfiniteQueryObserver' and fix grammar in test names ( #9332 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-07-01 23:19:52 +09:00
Alex Liu
1dd32acaf7
type(vue-query): ensure type definition matches implementation ( #9276 )
...
* type(vue-query): ensure type of vue-query definition matches its implementation
* type(vue-query): update type
2025-06-30 16:45:43 +02:00
Jonghyeon Ko
4425423588
chore(*): migrate tsup configuration files to TypeScript format ( #9330 )
2025-06-29 16:45:47 +09:00
Wonsuk Choi
b16e793c0e
test(query-core/queryClient): add 'advanceTimersByTimeAsync' and remove 'vi.waitFor' ( #9326 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-06-29 16:38:25 +09:00
Wonsuk Choi
33c69ec648
test(query-core/intiniteQueryBehavior): remove duplicate 'InfiniteQueryBehavior' in test name ( #9331 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-06-29 16:30:57 +09:00
Wonsuk Choi
35d50cb36c
test(query-core/queryClient): replace 'advanceTimersByTime' with 'advanceTimersByTimeAsync' ( #9327 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-06-29 16:23:48 +09:00
Wonsuk Choi
8837536a7d
test(query-core/notifyManager): replace 'queueMicrotask' with 'advanceTimersByTimeAsync' ( #9329 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-06-29 16:16:23 +09:00
sue hyeok chae
45dac6f026
test: fix typo - remove duplicate "should run" in mutation test name ( #9328 )
2025-06-29 15:59:16 +09:00
MINSEONG KIM
f4a11151ba
chore: add typescript-eslint/require-await rule ( #9029 )
...
* chore: add typescript-eslint/require-await rule
* reflect feedback
* Update eslint.config.js
* test(angular-query-experimental): remove unnecessary async
* test(*): remove unnecessary async
* remove(query-codemods): remove unnecessary import
* chore(query-codemods): remove typescript-eslint/require-await off rule
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-06-29 01:43:14 +09:00
Wonsuk Choi
7dafa933fe
test(query-core/query): add 'advanceTimersByTimeAsync' and remove 'vi.waitFor' ( #9319 )
...
Co-authored-by: Jonghyeon Ko <manudeli.ko@gmail.com>
2025-06-29 00:46:07 +09:00
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