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

5,683 commits

Author SHA1 Message Date
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
Wonsuk Choi
24a7ed064e
test(lit-query): replace 'async' functions without 'await' with 'Promise.resolve' and enable 'require-await' (#11699) 2026-09-27 23:04:05 +09:00
autofix-ci[bot]
2bd18db590
ci: apply automated fixes 2026-09-27 13:54:37 +00:00
Wonsuk Choi
8b91373439
chore(lit-query): extend root eslint config and apply autofix like other adapters (#11698) 2026-09-27 22:52:21 +09:00
Wonsuk Choi
230cf71f88
chore(lit-query/vite.config): remove explicit 'include' to use the vitest default like other adapters (#11695) 2026-09-27 15:31:42 +09:00
Wonsuk Choi
eef1036fd1
chore(lit-query): remove redundant '.npmignore' covered by 'files' in 'package.json' (#11694) 2026-09-27 15:26:50 +09:00
Wonsuk Choi
b9c613e77b
test(lit-query): rename 'src/tests' to 'src/__tests__' to align with other adapters (#11693)
* test(lit-query): rename 'src/tests' to 'src/__tests__' to align with other adapters

* test(lit-query): revert '.npmignore' change
2026-09-27 15:26:41 +09:00
Wonsuk Choi
9a52fc3ea5
test(lit-query): add '@testing-library/jest-dom' and replace 'textContent' assertions with 'toHaveTextContent' (#11691) 2026-09-27 15:10:16 +09:00
Wonsuk Choi
9dbc5a2a16
test(lit-query/testHost): remove unused fake hosts (#11690) 2026-09-27 14:56:38 +09:00
Wonsuk Choi
136cfdcb73
test(lit-query/counters-and-state): replace fake hosts with 'LitElement' hosts and assert the re-rendered output (#11684)
* test(lit-query/counters-and-state): replace fake hosts with 'LitElement' hosts and assert the re-rendered output

* test(lit-query/counters-and-state): assert the mutation helpers after the consumer adopts a provider
2026-09-27 14:55:26 +09:00
Wonsuk Choi
a98b67185a
test(lit-query/type-inference): replace 'TestControllerHost' with 'LitElement' hosts (#11689) 2026-09-27 14:52:42 +09:00
Wonsuk Choi
152990fc9a
test(lit-query/base-controller): replace the fake host with a 'LitElement' host (#11688) 2026-09-27 14:52:28 +09:00
Wonsuk Choi
f14b6f2af3
test(lit-query/context-provider): replace fake hosts with 'LitElement' hosts (#11687) 2026-09-27 14:52:11 +09:00
Wonsuk Choi
ec9f445f9f
test(lit-query/client-switch-controllers): replace fake hosts with 'LitElement' hosts, assert the re-rendered output and drop the internal ID from 'describe' (#11686) 2026-09-27 14:51:43 +09:00
Wonsuk Choi
80a82e133c
test(lit-query/infinite-and-options): replace fake hosts with 'LitElement' hosts and assert the re-rendered output (#11685) 2026-09-27 14:51:34 +09:00
Wonsuk Choi
15c2a807cf
test(lit-query/queries-controller): replace fake hosts with 'LitElement' hosts and assert the re-rendered output (#11683) 2026-09-27 14:50:53 +09:00
Wonsuk Choi
e309b9cc1e
test(lit-query/query-controller): replace fake hosts with 'LitElement' hosts and assert the re-rendered output (#11682) 2026-09-27 14:50:44 +09:00
Wonsuk Choi
4752ec80d4
test(lit-query/mutation-controller): replace fake hosts with 'LitElement' hosts and add 'generateElementName' helper (#11681)
* test(lit-query/mutation-controller): replace fake hosts with 'LitElement' hosts and add 'generateElementName' helper

* test(lit-query/mutation-controller): capture the callback version when the options accessor runs
2026-09-27 14:37:56 +09:00
Wonsuk Choi
66a7103e58
test(lit-query): create 'queryClient' in 'beforeEach' and drop unneeded 'retry: false' default options (#11677) 2026-09-27 03:20:32 +09:00
Wonsuk Choi
0c40a4b5ec
test(lit-query/testHost): remove unused 'waitFor' and 'waitForMissingQueryClient' helpers (#11676) 2026-09-27 02:45:04 +09:00
Wonsuk Choi
98184c157d
test(lit-query/client-switch-controllers): switch to fake timers, use 'sleep(10)' and 'queryKey()', and unify test names with 'should' (#11671)
* test(lit-query/client-switch-controllers): switch to fake timers, use 'sleep(10)' and 'queryKey()', and unify test names with 'should'

* test(lit-query/client-switch-controllers): wait for the invalidation refetch to finish and assert its result
2026-09-27 02:36:45 +09:00
Wonsuk Choi
0c2d24a132
test(lit-query/type-inference): use 'queryKey()' and unify test names with 'should' (#11675) 2026-09-27 02:34:59 +09:00
Wonsuk Choi
bfaf34e352
test(lit-query/base-controller): switch to fake timers and unify test names with 'should' (#11674) 2026-09-27 02:34:29 +09:00
Wonsuk Choi
0389826a6e
test(lit-query/mutation-controller): switch to fake timers, use 'sleep(10)' and 'queryKey()', and unify test names with 'should' (#11672) 2026-09-27 02:34:11 +09:00
Wonsuk Choi
cdfb4870f2
test(lit-query/context-provider): switch to fake timers, use 'sleep(10)' and 'queryKey()', and unify test names with 'should' (#11673) 2026-09-27 02:33:45 +09:00
Wonsuk Choi
cbe1add42e
test(lit-query/infinite-and-options): switch to fake timers, use 'sleep(10)' and 'queryKey()', and unify test names with 'should' (#11670) 2026-09-27 02:29:48 +09:00
Wonsuk Choi
ebdfc6b269
test(lit-query/counters-and-state): switch to fake timers, use 'sleep(10)' and 'queryKey()', and unify test names with 'should' (#11669) 2026-09-27 02:29:38 +09:00