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

5,909 commits

Author SHA1 Message Date
Wonsuk Choi
e8ffa3f39a
test(query-core/streamedQuery): consume the signal with 'void context.signal' instead of an always-truthy condition, and explain the kept 'require-await' disables (#12337) 2026-10-25 13:41:54 +09:00
Wonsuk Choi
8429d10720
test(solid-query/{useMutation,useIsMutating,useQueries}): wait for the work to settle after unmount and assert that no error is logged (#12336) 2026-10-25 13:41:40 +09:00
Wonsuk Choi
a6211e3b2f
test(preact-query/useMutation): wait for the mutation to settle after unmount and assert that no error is logged (#12335) 2026-10-25 13:40:14 +09:00
Wonsuk Choi
43636c43e7
test(react-query/useMutation): wait for the mutation to settle after unmount and assert that no error is logged (#12334) 2026-10-25 13:39:49 +09:00
Wonsuk Choi
3700deff20
test(query-core/utils): assert with 'toBeCallableWith' that 'invalidateQueries' accepts a union of query keys with different lengths (#12333) 2026-10-25 13:39:35 +09:00
Wonsuk Choi
83aeaf054b
test(query-devtools/{Explorer,Devtools}): remove unnecessary type assertions and their 'oxlint-disable' comments (#12330) 2026-10-25 13:29:34 +09:00
Wonsuk Choi
f9931c130a
test(query-core): remove unnecessary type assertions and their 'oxlint-disable' comments, and explain the one kept in 'retryer.test-d' (#12331) 2026-10-25 13:29:08 +09:00
Wonsuk Choi
1eed9d9ef5
chore(*): explain why 'vitest-js/valid-expect' is disabled for the 'expectTypeOf<TQueryKey>(ctx.queryKey)' checks in the 'useQueries' type tests (#12332) 2026-10-25 13:28:51 +09:00
Wonsuk Choi
a155bb8c77
chore(query-core/query): explain why 'typescript/no-unnecessary-condition' is disabled for the 'state' check in 'setOptions' (#12326) 2026-10-25 12:49:57 +09:00
Wonsuk Choi
0c5ec0695a
chore(eslint-plugin-query/detect-react-query-imports): explain why 'typescript/no-unnecessary-condition' is disabled for the 'importKind' check (#12327) 2026-10-25 12:49:39 +09:00
Wonsuk Choi
016b83ecc0
chore(lit-query/{QueryClientProvider,BaseController}): explain why 'typescript/no-unnecessary-condition' is disabled for the 'client' checks (#12328) 2026-10-25 12:49:24 +09:00
Wonsuk Choi
42ae5caee8
chore(angular-query-experimental/createBaseQuery): explain why 'typescript/no-unnecessary-type-assertion' is disabled for the 'refetch' wrapper (#12329) 2026-10-25 12:49:13 +09:00
Wonsuk Choi
faa41e9c46
refactor(angular-query-experimental/injectQueries): remove the unnecessary 'QueryObserverOptions' assertion and its 'oxlint-disable' comment (#12324) 2026-10-25 12:43:36 +09:00
Wonsuk Choi
715574d87b
test(preact-query/ErrorBoundary): name the 'react/no-did-update-set-state' rule in the bare 'oxlint-disable-next-line' comment (#12323) 2026-10-25 12:13:05 +09:00
Wonsuk Choi
6c3cc51cf6
docs(angular/devtools): add an 'Embedded Mode' section for 'injectDevtoolsPanel' (#12320) 2026-10-25 10:48:27 +09:00
Wonsuk Choi
8f9dfcb30c
feat(angular-query-experimental/injectDevtoolsPanel): add the 'theme' and 'hideDisabledQueries' options (#12316) 2026-10-25 10:45:35 +09:00
Ciarán Curley
4a7386a470
chore(deps): upgrade vitest to v5 (#12317)
Bump vitest and @vitest/coverage-istanbul to 5.0.5 (root and
query-test-utils) and @vitest/eslint-plugin to 1.6.28.

Vitest 5's typecheck collector treats any name ending in Test as a test function, so notifyManagerTest in query-core/src/__tests__/notifyManager.test-d.tsx was renamed to localNotifyManager.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 19:26:03 +01:00
Wonsuk Choi
9e4253766f
fix(angular-query-experimental/withDevtools): forward an unset 'theme' to the devtools so removing it falls back to the theme selected in the devtools Settings menu (#12315) 2026-10-24 03:05:27 +09:00
Wonsuk Choi
a5d5e00458
docs(*-devtools): describe how the 'theme' prop interacts with the theme selected in the devtools Settings menu (#12314) 2026-10-24 02:53:19 +09:00
Wonsuk Choi
f232b75e35
fix(solid-query-devtools): stop defaulting the 'theme' prop to 'system' so the theme chosen in the devtools settings applies when the prop is omitted (#12310) 2026-10-24 02:48:21 +09:00
Wonsuk Choi
a282bf807a
fix(vue-query-devtools): stop defaulting the 'theme' prop to 'system' so the theme chosen in the devtools settings applies when the prop is omitted (#12312) 2026-10-24 02:47:34 +09:00
Wonsuk Choi
aff30e36bd
fix(svelte-query-devtools): stop defaulting the 'theme' prop to 'system' so the theme chosen in the devtools settings applies when the prop is omitted (#12313) 2026-10-24 02:46:23 +09:00
Wonsuk Choi
86740aed31
test(vue-query/queryOptions): add type tests for 'useQueries', 'query' with 'enabled: false' and 'skipToken', and undefined 'initialData' (#12309) 2026-10-24 02:13:37 +09:00
Wonsuk Choi
394ea297d0
test(vue-query-devtools/devtools): add tests for forwarding option changes to the devtools instance after mount (#12308) 2026-10-24 01:57:24 +09:00
Wonsuk Choi
7a10cda3e4
chore(vue-query-devtools/package.json): restore the 'test:lib' script removed in the Vite 8 update (#12307) 2026-10-24 01:54:09 +09:00
Wonsuk Choi
bdd50314f7
test(svelte-query-devtools): extract shared test setup into 'beforeEach' (#12306) 2026-10-24 01:49:33 +09:00
Wonsuk Choi
e1547fd10a
test(solid-query/useInfiniteQuery): match the 'skipToken' test timer advances to the 'queryFn' sleep of 10ms (#12305) 2026-10-24 01:49:12 +09:00
autofix-ci[bot]
4ed6095096
ci: apply automated fixes 2026-10-23 09:46:30 +00:00
Wonsuk Choi
c5de051d61
fix(vue-query/queryClient): infer the data and error types of 'getQueryState' from a tagged query key (#11921)
* fix(vue-query/queryClient): infer the data and error types of 'getQueryState' from a tagged query key

* docs(vue-query): regenerate reference docs for 'getQueryState' overloads
2026-10-23 11:45:09 +02:00
Wonsuk Choi
0ab7c5ffb9
test(solid-query/suspense): replace the 'TODO(lukemurray)' comments with notes explaining why the state counts differ from react (#12300) 2026-10-23 17:58:21 +09:00
Wonsuk Choi
65801313dc
chore(oxlint.config): add 'netinfo' to the cspell words (#12299) 2026-10-23 17:44:56 +09:00
Wonsuk Choi
91b7e3b029
test(lit-query): replace 'reparent' with 'reconnect' in the provider switch test titles (#12298) 2026-10-23 17:44:45 +09:00
Wonsuk Choi
8c3c31a77d
test(vue-query/useQueryClient): use named imports and 'importOriginal' in the 'vue-demi' mock (#12297) 2026-10-23 17:44:33 +09:00
Wonsuk Choi
75b5b6cead
docs(vue-query/queryClient): remove the author tag from the 'invalidateQueries' comment (#12296) 2026-10-23 17:44:24 +09:00
Wonsuk Choi
6bdeb13081
test(*/useQuery): rename the 'throwOnError' callback parameter to 'err' to avoid shadowing the returned 'error' (#12295) 2026-10-23 17:09:01 +09:00
Wonsuk Choi
86b9f20912
test(*/useMutationState): rename the built 'mutation' to 'existingMutation' to avoid shadowing the 'select' parameter (#12294) 2026-10-23 15:51:56 +09:00
Wonsuk Choi
d09972b850
test(*): rename the 'queryKey' test helper to 'createKey' since it creates keys for both queries and mutations (#12293)
* test(*): rename the 'queryKey' test helper to 'createKey' since it creates keys for both queries and mutations

* test(query-test-utils/createKey): change the key prefix from 'query_' to 'key-' since it is also used for mutation keys
2026-10-23 15:32:13 +09:00
Wonsuk Choi
1117bdd2dd
refactor(lit-query/createQueriesController): rename the per-result 'observer' in 'trackResult' to 'resultObserver' to avoid shadowing (#12291) 2026-10-23 12:22:07 +09:00
Wonsuk Choi
51e627fb77
refactor(query-persist-client-core/createPersister): rename the 'filters' option to 'persistFilters' internally to avoid shadowing (#12290) 2026-10-23 12:21:45 +09:00
Wonsuk Choi
16f7d4c91e
test(lit-query/createQueryController): read 'queryKey' and 'signal' from the 'queryFn' context to avoid shadowing the 'queryKey' helper (#12292) 2026-10-23 12:21:06 +09:00
Wonsuk Choi
2de1d1e15c
chore(preact-query/utils): disable 'react/exhaustive-deps' for the stable '_instance' to keep the upstream 'useSyncExternalStore' (#12289) 2026-10-23 10:02:50 +09:00
Wonsuk Choi
67a8784445
docs(preact-query/utils): pin the preact and React 'useSyncExternalStore' source links to the copied commits (#12288) 2026-10-23 10:00:30 +09:00
Wonsuk Choi
0064fe8849
test(query-codemods): replace 'async' arrow functions without 'await' with 'Promise.resolve' in the fixtures (#12286) 2026-10-23 00:12:02 +09:00
Wonsuk Choi
4071cd526b
chore(scripts/create-github-release): use the 'node:' protocol for 'fs' and sort the imported members (#12285) 2026-10-22 21:03:46 +09:00
Wonsuk Choi
75e64b5a1a
chore(oxlint.config): remove the 'vitest/no-standalone-expect' override left over from the removed 'itIf' helper (#12284) 2026-10-22 20:19:23 +09:00
Jon Ramos
f450917c38
bump Node.js to 24.22.1 (#12278)
chore(.nvmrc): bump Node.js to 24.22.1 for the October 2026 security release

24.21.0 is affected by high-severity TLS hostname-verification bypasses
and a Brotli decoder out-of-bounds write that permits remote code
execution (CVE-2026-111497).

https://nodejs.org/es/blog/vulnerability/october-2026-security-releases
2026-10-22 12:18:03 +01:00
Wonsuk Choi
84332ded75
chore({react-query,preact-query,query-broadcast-client-experimental}/vite.config): remove the CI-only 'retry' (#12279) 2026-10-22 17:21:04 +09:00
Wonsuk Choi
4b17d51f5c
test(*): remove manual 'mockRestore' calls already handled by 'restoreMocks' (#12277)
* test(*): remove manual 'mockRestore' calls already handled by 'restoreMocks'

* test(vue-query): unwrap the 'try' / 'finally' blocks that only call 'mockRestore'
2026-10-22 16:53:42 +09:00
Wonsuk Choi
4b2c6115b7
test({query-devtools,react-query-devtools,preact-query-devtools,vue-query}): enable 'unstubGlobals' and 'unstubEnvs' instead of calling 'vi.unstubAllGlobals' and 'vi.unstubAllEnvs' manually (#12276) 2026-10-22 16:36:35 +09:00
Wonsuk Choi
b2246c2bba
chore(svelte-query-persist-client/vite.config): enable 'coverage' in CI like the other packages (#12275) 2026-10-22 16:21:31 +09:00