0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-18 19:33:22 +00:00
Commit graph

5,909 commits

Author SHA1 Message Date
Wonsuk Choi
d374547a63
test(lit-query/QueryClientProvider): add tests for replacing the client before the first update and clearing it while disconnected (#11757) 2026-09-30 20:49:26 +09:00
Wonsuk Choi
e7e7283d17
test(lit-query/createInfiniteQueryController): assert that 'fetchPreviousPage' rejects when no client is available (#11755) 2026-09-30 16:47:59 +09:00
Wonsuk Choi
6fab4f4eb5
test(lit-query/createQueriesController): remove unnecessary 'as const' from 'queries' arrays and host fields (#11754) 2026-09-30 16:28:04 +09:00
Wonsuk Choi
cf871a8813
test(lit-query/createQueriesController): add tests for function 'initialData', 'initialDataUpdatedAt', and 'select' in the placeholder before a client is available (#11753) 2026-09-30 15:30:45 +09:00
Wonsuk Choi
ee077ef1b2
test(lit-query/useMutationState): add test for returning the states of all mutations when options are omitted (#11752) 2026-09-30 14:26:30 +09:00
Wonsuk Choi
3f09ef39af
test(lit-query/{useIsFetching,useIsMutating}): add tests for counting all queries and mutations when filters are omitted (#11750) 2026-09-30 13:56:53 +09:00
Wonsuk Choi
cb8fc41aef
test(lit-query): replace 'await sleep' in async 'queryFn' and 'mutationFn' with 'sleep().then' (#11749)
* test(lit-query): replace 'await sleep' in async 'queryFn' and 'mutationFn' with 'sleep().then'

* ci: trigger CI
2026-09-30 12:31:15 +09:00
Wonsuk Choi
23d7562810
test(lit-query/{useIsFetching,useIsMutating,useMutationState}): move the query and mutation controllers to a separate host in the render tests (#11748) 2026-09-30 11:58:42 +09:00
Wonsuk Choi
1adc25905a
test(lit-query/createQueryController): add tests for 'suspense' with stale, fresh, disabled, and updated options (#11747) 2026-09-30 11:36:54 +09:00
Wonsuk Choi
faf33a4ed1
test(lit-query): replace 'Promise.resolve' with 'sleep' in 'queryFn' and 'mutationFn' and assert the results after advancing timers (#11746)
* test(lit-query): replace 'Promise.resolve' with 'sleep' in 'queryFn' and 'mutationFn'

* test(lit-query): assert the results after advancing timers past 'sleep' in 'queryFn' and 'mutationFn'
2026-09-30 10:51:46 +09:00
Wonsuk Choi
8bd0c2dfda
test(lit-query): replace 'forceUpdate' with reactive property changes (#11745) 2026-09-30 10:30:20 +09:00
Wonsuk Choi
350981486c
test(lit-query): replace 'await Promise.resolve()' with 'vi.advanceTimersByTimeAsync(0)' and remove unnecessary waits (#11744) 2026-09-30 10:12:14 +09:00
Wonsuk Choi
0a5727935a
test({react,preact,solid,angular}-query/mutationOptions): fix 'mutationOpt1' typo to 'mutationOpts1' in test names (#11742) 2026-09-29 21:46:55 +09:00
Wonsuk Choi
78b9d5640c
test(lit-query/mutationOptions): replace 'createMutationController' test with tests for returning the received object and usage with 'useIsMutating', 'queryClient.isMutating', and 'useMutationState' (#11741) 2026-09-29 21:40:20 +09:00
Wonsuk Choi
29298bd0fe
test(lit-query/infiniteQueryOptions): replace 'createInfiniteQueryController' test with test for returning the received object without modification (#11740) 2026-09-29 21:39:39 +09:00
Wonsuk Choi
4baed12dca
test(lit-query/queryOptions): replace 'createQueryController' test with test for returning the received object without modification (#11739) 2026-09-29 21:37:50 +09:00
Wonsuk Choi
e3b56f8efd
test(lit-query/infiniteQueryOptions): add type tests for excess properties, 'select', 'skipToken', query key tagging, and 'initialData' (#11737) 2026-09-29 18:21:19 +09:00
Wonsuk Choi
a2aa2df867
test(lit-query/mutationOptions): add type tests for callbacks, 'mutationFn' inference, and usage with 'useIsMutating' and 'queryClient.isMutating' (#11738) 2026-09-29 18:21:06 +09:00
Wonsuk Choi
3a9ab0a922
test(lit-query/queryOptions): add type tests for excess properties, 'skipToken', query key tagging, 'initialData', and 'persister' (#11736) 2026-09-29 18:20:45 +09:00
Wonsuk Choi
c5e5a89ca7
chore(lit-query/eslint.config): turn off '@typescript-eslint/no-unnecessary-condition' in test files (#11735) 2026-09-29 16:50:19 +09:00
Wonsuk Choi
0e2b6f803a
test(lit-query): move 'client-switch-controllers.test.ts' tests into the test file of each controller (#11734) 2026-09-29 16:23:22 +09:00
Wonsuk Choi
828f75468b
test(lit-query/{useIsFetching,useIsMutating}): assert filter reactivity with an unmatched key (#11733) 2026-09-29 16:22:39 +09:00
Wonsuk Choi
50db43049f
test(lit-query): split 'counters-and-state.test.ts' into 'useIsFetching', 'useIsMutating', and 'useMutationState' test files (#11732) 2026-09-29 16:10:17 +09:00
Wonsuk Choi
bb1de1f545
test(lit-query): split 'infinite-and-options.test.ts' into 'createInfiniteQueryController' and options test files (#11731) 2026-09-29 15:54:22 +09:00
Wonsuk Choi
ca7cd9b71b
test(lit-query): split 'type-inference.test.ts' into '*.test-d.ts' files per source like react-query (#11730) 2026-09-29 15:31:33 +09:00
Wonsuk Choi
cf22c05daf
test(lit-query): rename test files after the source files they cover and 'test-utils' to 'utils' (#11729) 2026-09-29 15:11:53 +09:00
Wonsuk Choi
1e4be4ee5c
chore(*): remove unused 'react' packages from the root and scope the knip '@types/react' ignore to the packages that need it (#11727) 2026-09-29 13:55:41 +09:00
Wonsuk Choi
c51bb623bb
chore(*): declare '@eslint-react/eslint-plugin' in the react packages and examples that use it instead of the root (#11726) 2026-09-29 11:56:40 +09:00
Wonsuk Choi
a91461326b
chore(*): declare 'eslint-plugin-react-hooks' in the react packages that use it instead of the root (#11725) 2026-09-29 11:37:46 +09:00
Wonsuk Choi
31dc60f7b2
test(preact-query-devtools): add test for creating the devtools instance only once across re-renders (#11723) 2026-09-29 11:14:18 +09:00
Wonsuk Choi
d99c84b6b5
chore(*): update '@eslint-react/eslint-plugin' to v5 and apply its 'recommended' config that was overridden (#11721)
* refactor(react-query*): rename local 'useRef' and 'createContext' variables to follow '@eslint-react' naming conventions

* test(react-query): follow '@eslint-react' recommended rules with 'useState' value and setter pairs, stable keys, and disables for nested component false positives

* chore(*): update '@eslint-react/eslint-plugin' to v5 and apply its 'recommended' config that was overridden

* chore(*): list 'react-hooks' rules before '@eslint-react' rules to match the config order
2026-09-29 10:43:27 +09:00
Wonsuk Choi
fd96529f3e
chore(*): update 'eslint-plugin-react-hooks' to v7 and use its stable 'recommended' config (#11720)
* chore(*): update 'eslint-plugin-react-hooks' to v7 and remove the '@ts-expect-error' for its config

* chore(*): use stable 'recommended' config of 'eslint-plugin-react-hooks' instead of 'recommended-latest'

* chore(*): remove 'react-hooks/rules-of-hooks' override that duplicates the 'recommended' config
2026-09-29 03:19:45 +09:00
Wonsuk Choi
70fd56b3dc
chore(angular-query-persist-client/package.json): remove unused '@angular/animations' (#11719) 2026-09-29 02:29:35 +09:00
Wonsuk Choi
2aeb5a8a69
chore(angular-query*): manage 'angular' packages with pnpm 'catalog' (#11717) 2026-09-29 02:13:10 +09:00
Wonsuk Choi
8d321c57fe
chore(vue-query*): manage 'vue' packages with pnpm 'catalog' (#11716) 2026-09-29 01:47:36 +09:00
Wonsuk Choi
cddf804a58
chore(svelte-query*): manage 'svelte' packages with pnpm 'catalog' (#11715) 2026-09-29 01:33:26 +09:00
Wonsuk Choi
7da749dfb6
chore(*): manage 'solid' packages with pnpm 'catalog' (#11714) 2026-09-29 01:19:27 +09:00
Wonsuk Choi
8f70ad18bb
chore(preact-query*): manage 'preact' packages with pnpm 'catalog' (#11713) 2026-09-29 01:03:02 +09:00
Wonsuk Choi
84ab643842
chore(lit-query): remove unused package-specific scripts and 'scripts' directory (#11701)
* chore(lit-query): remove unused package-specific scripts and 'scripts' directory

* chore(lit-query/package.json): move 'devDependencies' before 'peerDependencies' like other adapters
2026-09-29 00:34:18 +09:00
Wonsuk Choi
e878990b86
chore(*): manage 'react' packages with pnpm 'catalog' (#11712) 2026-09-28 18:49:08 +09:00
Wonsuk Choi
2e1ad64b52
chore(*): declare 'npm-run-all2' once in the root 'package.json' like other shared tools (#11710) 2026-09-28 13:13:48 +09:00
Wonsuk Choi
6b95f2fdf9
chore(svelte-query*): type check on TS 5.6-5.9 by running 'svelte-check' with each TypeScript version (#11708)
* chore(svelte-query*): type check on TS 5.6-5.9 and 7.0 with 'tsconfig.legacy.json' like other packages

* chore(svelte-query*): run 'svelte-check' with each TypeScript version for TS 5.6-5.9 instead of 'tsc'

* chore(svelte-query*): use descriptive names in the 'svelte-check' TypeScript swap scripts

* chore(svelte-query*): fail the versioned type checks when 'svelte-check' does not load the swapped TypeScript
2026-09-28 11:53:45 +09:00
Wonsuk Choi
f63994b998
chore(vue-query-devtools/package.json): remove 'nx' 'build' dependency on 'compile' that 'tsdown' no longer needs (#11709) 2026-09-28 11:34:49 +09:00
Wonsuk Choi
38909aa233
chore(vue-query/package.json): run 'test:types:tscurrent' by using 'npm-run-all' like other packages (#11707) 2026-09-28 10:57:59 +09:00
Wonsuk Choi
1165a67a14
chore(vue-query-devtools): type check on TS 5.6-5.9 by running 'vue-tsc' with each TypeScript version (#11706) 2026-09-28 10:41:40 +09:00
Wonsuk Choi
c1de23a80e
chore(*): manage 'typescript' with pnpm 'catalog' and declare it in each package so 'tsc' runs the default version (#11705) 2026-09-28 10:04:50 +09:00
Wonsuk Choi
024d89d4bb
chore(*): add 'tsconfig.legacy.json' and use it for type checks on older TypeScript versions (#11704) 2026-09-28 01:56:41 +09:00
Wonsuk Choi
8b1eafb918
chore(*/package.json): use 'tsconfig.legacy.json' for 'test:types:ts70' like other versioned type checks (#11703) 2026-09-28 01:17:11 +09:00
Wonsuk Choi
ccfe57c216
chore(lit-query/package.json): check types against TS 5.6-5.9 and 7.0 like other adapters (#11702) 2026-09-28 00:50:53 +09:00
Wonsuk Choi
51b0d050e3
chore(lit-query): enable 'no-unnecessary-condition' by removing unnecessary optional chains and disabling it for runtime client checks (#11700) 2026-09-27 23:15:59 +09:00