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
Wonsuk Choi
7d7a21c49c
test(react-query): replace 'async/await sleep' with 'sleep().then()' in test 'queryFn' and 'mutationFn' (#10399)
* test(react-query): replace 'async/await sleep' with 'sleep().then()' in test 'queryFn' and 'mutationFn'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-06 13:52:50 +09:00
Wonsuk Choi
ef2a4e3f6c
test(solid-query): replace 'async/await sleep' with 'sleep().then()' in test 'queryFn' and 'mutationFn' (#10398) 2026-04-06 13:25:59 +09:00
Wonsuk Choi
abf854764b
test(svelte-query): replace 'async/await sleep' with 'sleep().then()' in test 'queryFn' and 'mutationFn' (#10397) 2026-04-06 10:39:51 +09:00
Wonsuk Choi
e76d47640e
test(svelte-query/createQuery): fix 'it.todo' for different stale times by advancing timer before query creation (#10396)
* test(svelte-query/createQuery): fix 'it.todo' for different stale times by advancing timer before query creation

* ci: apply automated fixes

* test(svelte-query/createQuery): reduce 'advanceTimersByTimeAsync' from 11 to 10 to match 'staleTime: 10'

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-06 10:05:12 +09:00
Wonsuk Choi
3a993e6e6f
test(svelte-query/createQuery): switch to fake timers, replace 'vi.waitFor' with 'vi.advanceTimersByTimeAsync', and move 'queryClient' to 'beforeEach' (#10390)
* test(svelte-query/createQuery): switch to fake timers, replace 'vi.waitFor' with 'vi.advanceTimersByTimeAsync', and move 'queryClient' to 'beforeEach'

* test(svelte-query/createQuery): use 'QueryCache' type instead of 'ReturnType' for 'queryCache'

* ci: apply automated fixes

* test(svelte-query/createQuery): reduce 'advanceTimersByTimeAsync' from 100 to 11 for staleTime test

* test(svelte-query/createQuery): fix 'advanceTimersByTimeAsync' to 101 to match 'staleTime: 100'

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-05 21:45:37 +09:00
Ciarán Curley
fcaa1d2db4
test(vue-query/infiniteQueryOptions): replace query-core 'QueryClient' import with vue-query proxy (#10385)
tests: use proxy instead of query core

infiniteQueryOptions.test-d.ts for Vue Query was incorrectly using the
bare query client from core instead of the vue proxy query client.

Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
2026-04-05 21:36:03 +09:00
Wonsuk Choi
80f0370894
test(svelte-query/createQueries): move type tests from 'createQueries.svelte.test.ts' to 'createQueries.test-d.ts' (#10389)
* test(svelte-query/createQueries): move type tests from 'createQueries.svelte.test.ts' to 'createQueries.test-d.ts'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-05 20:04:27 +09:00
Wonsuk Choi
7781a3e68b
test(svelte-query/createQueries): switch to fake timers, replace 'vi.waitFor' with 'vi.advanceTimersByTimeAsync', and move 'queryClient' to 'beforeEach' (#10388)
* test(svelte-query/createQueries): switch to fake timers, replace 'vi.waitFor' with 'vi.advanceTimersByTimeAsync', and move 'queryClient' to 'beforeEach'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-05 16:55:34 +09:00
Wonsuk Choi
4b2cd73707
test(svelte-query/createQueries): add test for not fetching queries with different durations when 'isRestoring' is true (#10387) 2026-04-05 16:32:30 +09:00
Wonsuk Choi
422a99758e
test(svelte-query/createQueries): move test files into 'createQueries' directory (#10386) 2026-04-05 15:50:42 +09:00
Ciarán Curley
2e5d9db73d
test(solid-query): rename infinite query options test (#10384)
Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
2026-04-05 15:44:01 +09:00
Wonsuk Choi
5f5cfabfd4
test(svelte-query/createQueries): add test for not fetching when 'isRestoring' is true (#10382)
* test(svelte-query/createQueries): add test for not fetching when 'isRestoring' is true

* test(svelte-query/createQueries): remove '(isRestoring)' from describe block

* test(svelte-query/createQueries): move 'queryClient' inside 'IsRestoringExample' component
2026-04-05 15:04:44 +09:00
github-actions[bot]
5ca721fb05
ci: Version Packages (#10379) release-2026-04-03-1025 @tanstack/angular-query-experimental@5.96.2 @tanstack/eslint-plugin-query@5.96.2 @tanstack/preact-query-devtools@5.96.2 @tanstack/preact-query-persist-client@5.96.2 @tanstack/preact-query@5.96.2 @tanstack/query-async-storage-persister@5.96.2 @tanstack/query-broadcast-client-experimental@5.96.2 @tanstack/query-core@5.96.2 @tanstack/query-devtools@5.96.2 @tanstack/query-persist-client-core@5.96.2 @tanstack/query-sync-storage-persister@5.96.2 @tanstack/react-query-devtools@5.96.2 @tanstack/react-query-next-experimental@5.96.2 @tanstack/react-query-persist-client@5.96.2 @tanstack/react-query@5.96.2 @tanstack/solid-query-devtools@5.96.2 @tanstack/solid-query-persist-client@5.96.2 @tanstack/solid-query@5.96.2 @tanstack/svelte-query-devtools@6.1.13 @tanstack/svelte-query-persist-client@6.1.13 @tanstack/svelte-query@6.1.13 @tanstack/vue-query-devtools@6.1.13 @tanstack/vue-query@5.96.2
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-03 12:20:46 +02:00
mixelburg
deb62e0028
fix(eslint-plugin): normalize whitespace in allowList variable matching for multiline expressions (#10337)
* fix(eslint-plugin): normalize whitespace in allowList variable matching

When a member expression spans multiple lines (e.g. `ignored\n    .run()`),
`sourceCode.getText()` preserves the newline. The root segment extracted
by splitting on `.'` then becomes `'ignored\n    '`, which never matches
the allowlisted variable name `'ignored'`.

Fix: extend `normalizeChain` to also collapse all whitespace, so
multi-line chains produce the same identifier path as single-line ones.

Fixes #10334

* changeset

---------

Co-authored-by: Maks Pikov <mixelburg@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-04-03 12:02:57 +02:00
Zelys
67b12ae1a0
docs: add polling guide (#10330)
* docs(react): add polling guide

Adds a dedicated guide for refetchInterval-based polling. The option was
only mentioned in passing in important-defaults.md with no explanation of
how it works, how to adapt it dynamically, or how it interacts with window
focus, networkMode, and the enabled flag.

Covers:
- Basic setup and independence from staleTime
- Dynamic intervals via function form
- refetchIntervalInBackground for dashboards / always-on UIs
- Disabling window-focus refetching for fullscreen game and kiosk UIs
- Pausing polling with the enabled flag
- networkMode: 'always' for unreliable navigator.onLine environments
- Deduplication behavior across multiple observers

Updates config.json to add the guide to the React sidebar between
Window Focus Refetching and Disabling/Pausing Queries.
Adds a cross-reference in important-defaults.md.

* docs(react/polling): add example markers for framework portability

* docs(react): fix deduplication note — timers are per observer, not per query

* docs(react): address review feedback on polling guide

- Remove staleTime enumeration; link to Important Defaults instead
- Remove game/kiosk focus management examples (scope creep)
- Rewrite pausing polling to use refetchInterval function instead of enabled: false
- Fix offline support section: connectivity uses online/offline events, not navigator.onLine
- Fix deduplication note: remove queuing implication and em dash
- Add non-browser environments note pointing to React Native guide

* docs(solid,vue): add polling guide framework ports

* docs: wrap React Native section in markers for framework port exclusion

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-01 11:04:45 +02:00
github-actions[bot]
75052a7fd0
ci: Version Packages (#10370) release-2026-04-01-0803 @tanstack/angular-query-experimental@5.96.1 @tanstack/eslint-plugin-query@5.96.1 @tanstack/preact-query-devtools@5.96.1 @tanstack/preact-query-persist-client@5.96.1 @tanstack/preact-query@5.96.1 @tanstack/query-async-storage-persister@5.96.1 @tanstack/query-broadcast-client-experimental@5.96.1 @tanstack/query-core@5.96.1 @tanstack/query-devtools@5.96.1 @tanstack/query-persist-client-core@5.96.1 @tanstack/query-sync-storage-persister@5.96.1 @tanstack/react-query-devtools@5.96.1 @tanstack/react-query-next-experimental@5.96.1 @tanstack/react-query-persist-client@5.96.1 @tanstack/react-query@5.96.1 @tanstack/solid-query-devtools@5.96.1 @tanstack/solid-query-persist-client@5.96.1 @tanstack/solid-query@5.96.1 @tanstack/svelte-query-devtools@6.1.12 @tanstack/svelte-query-persist-client@6.1.12 @tanstack/svelte-query@6.1.12 @tanstack/vue-query-devtools@6.1.12 @tanstack/vue-query@5.96.1
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-01 09:58:40 +02:00
Marc-André Côté
4a3275c15e
fix(build): exclude config files from production DTS rollup (#10358)
* fix(build): exclude config files from production DTS rollup

The `experimentalDts` option in tsup respects the tsconfig `include`
array to determine which files are in scope for DTS generation. Each
package's `tsconfig.json` includes `*.config.*` for IDE support, and
`tsconfig.prod.json` inherited this without overriding it. This caused
`vite.config.ts` and `tsup.config.ts` to be swept into the DTS rollup,
leaking `import { UserConfig } from 'vite'` into published types. Since
vite references `@types/node`, this globally overrides the DOM
`setTimeout` return type from `number` to `NodeJS.Timeout` for all
consumers.

Add `"include": ["src"]` (and `"exclude": ["src/__tests__"]` where
applicable) to all `tsconfig.prod.json` files that were missing it,
matching the pattern already used by query-core, react-query,
preact-query, and solid-query.

* chore: add changeset for DTS type pollution fix

* test(build): add regression test for build tool type leaks in .d.ts files

Adds scripts/verify-dts-imports.ts that scans all published .d.ts files
for forbidden imports from build tools (vite, tsup, vitest) and
`/// <reference types="node" />`. Wired into test:pr and test:ci to
run after the build completes.

* fix(build): fail fast when no .d.ts files found in verify-dts-imports

* chore: add exclude for consistency in react-query-next-experimental

* chore: fix log message to mention both .d.ts and .d.cts files

* ci: apply automated fixes

* chore: remove verify-dts-imports script and related package.json changes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-04-01 09:40:46 +02:00
renovate[bot]
2853bfb07f
chore(deps): lock file maintenance (#10367)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-01 04:03:07 +00:00
Zelys
3fd34606eb
docs(react): clarify staleTime 'static' vs Infinity with 'always' triggers (#10354)
* docs(react): clarify staleTime 'static' vs Infinity with 'always' triggers

* docs(react): lead with invalidateQueries() distinction for staleTime: 'static' vs Infinity
2026-03-31 16:11:02 +02:00
github-actions[bot]
73e783bd86
ci: Version Packages (#10364) release-2026-03-31-1047 @tanstack/angular-query-experimental@5.96.0 @tanstack/eslint-plugin-query@5.96.0 @tanstack/preact-query-devtools@5.96.0 @tanstack/preact-query-persist-client@5.96.0 @tanstack/preact-query@5.96.0 @tanstack/query-async-storage-persister@5.96.0 @tanstack/query-broadcast-client-experimental@5.96.0 @tanstack/query-core@5.96.0 @tanstack/query-devtools@5.96.0 @tanstack/query-persist-client-core@5.96.0 @tanstack/query-sync-storage-persister@5.96.0 @tanstack/react-query-devtools@5.96.0 @tanstack/react-query-next-experimental@5.96.0 @tanstack/react-query-persist-client@5.96.0 @tanstack/react-query@5.96.0 @tanstack/solid-query-devtools@5.96.0 @tanstack/solid-query-persist-client@5.96.0 @tanstack/solid-query@5.96.0 @tanstack/svelte-query-devtools@6.1.11 @tanstack/svelte-query-persist-client@6.1.11 @tanstack/svelte-query@6.1.11 @tanstack/vue-query-devtools@6.1.11 @tanstack/vue-query@5.96.0
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-31 12:42:54 +02:00
Eliya Cohen
ed2f2ab01f
feat(eslint-plugin-query): add prefer-query-options rule (#10359) 2026-03-31 13:12:57 +03:00
Wonsuk Choi
14a97b7ab1
test(react-query): replace 'import React' with 'import * as React' in 'usePrefetchQuery' and 'usePrefetchInfiniteQuery' (#10363) 2026-03-31 15:43:22 +09:00
Wonsuk Choi
fd8c068c94
test({react,preact}-query/useSuspenseQueries): merge redundant second 'describe' block into first (#10362) 2026-03-31 15:19:01 +09:00
Wonsuk Choi
f168555261
test({react,preact,solid}-query): move 'queryClient' and 'queryCache' to 'beforeEach' for per-test isolation (#10356)
* test({react,preact}-query): move 'queryClient' and 'queryCache' to 'beforeEach' for per-test isolation

* test(solid-query): move 'queryClient' and 'queryCache' to 'beforeEach' for per-test isolation

* test({react,preact}-query): add 'queryClient.clear()' to 'afterEach' in 'useQuery' and 'useMutation'

* test({react,preact}-query): add 'queryClient.clear()' to 'afterEach' in 'ssr' and 'suspense'

* test({react,preact}-query/ssr): remove redundant 'queryCache.clear()' calls in individual tests

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-31 10:55:02 +09:00
Zelys
7e5fe214bd
test(eslint-plugin-query/no-void-query-fn): add coverage for prefetchQuery, prefetchInfiniteQuery, ensureQueryData, ensureInfiniteQueryData (#10353)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-03-30 15:10:17 +02:00
김도현
2dca719ec7
docs(community-projects): add React Query Visualizer to the list of community projects (#10351) 2026-03-30 15:00:23 +02:00
Dami Oyeniyi
7ca1f723fb
docs(examples): clean up angular README package manager commands (#10306) 2026-03-30 14:39:34 +02:00
Wonsuk Choi
afb58127a4
test({react,preact}-query/useSuspenseQueries): inline test helpers, remove shared 'queryClient', and use 'beforeEach'/'afterEach' for setup and teardown (#10352)
* test({react,preact}-query/useSuspenseQueries): inline test helpers, remove shared 'queryClient', and use 'beforeEach'/'afterEach' for setup and teardown

* ci: apply automated fixes

* test({react,preact}-query/useSuspenseQueries): replace '[1] as const' with 'queryKey()' util and fix 'act' callback type in preact-query

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-30 02:53:39 +09:00
Wonsuk Choi
9e1bb94abc
test(react-query/useSuspenseQueries): remove unnecessary 'act' wrapper from background refetch assertions (#10350) 2026-03-29 15:12:26 +09:00
Wonsuk Choi
55cee0a71c
test({react,preact}-query/useSuspenseQueries): add test for not suspending but only refetching the stale query when one query has stale and the other has fresh cached data (#10349) 2026-03-29 14:50:42 +09:00
Zelys
289fe2eab9
test(eslint-plugin-query/no-void-query-fn): add coverage for useInfiniteQuery, useSuspenseQuery, queryOptions, fetchQuery (#10332)
The existing tests only exercised useQuery. The rule checks any object
property named queryFn, so it applies equally to useInfiniteQuery,
useSuspenseQuery, queryOptions(), and queryClient.fetchQuery(). Add
valid + invalid cases for each to document and lock in that behavior.

Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
2026-03-29 14:19:50 +09:00
Wonsuk Choi
a62f695b4e
test(preact-query): apply 'prefer-template', 'no-else-return', 'object-shorthand', 'radix', and 'require-await' eslint rules (#10346) 2026-03-28 22:16:06 +09:00
renovate[bot]
0e939ac802
chore(deps): update dependency astro to v5.18.1 [security] (#10338)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-28 09:08:49 +00:00
Wonsuk Choi
7fc6e6a911
test({react,preact}-query/useSuspenseQueries): add test for not suspending but only refetching the stale query when one query has fresh and the other has stale cached data (#10345) 2026-03-28 17:07:04 +09:00
Wonsuk Choi
0e766f25f4
test(eslint-plugin-query/stable-query-client): fix misleading test name for async component with 'solid-query' import (#10344) 2026-03-28 16:19:14 +09:00
japark
42259260e1
test(eslint-plugin-query/stable-query-client): add tests for async server component and destructuring pattern (#10315)
* test(eslint-plugin-query/stable-query-client): add tests for uncovered branches

Add 3 test cases to improve branch coverage of 'stable-query-client' rule from 78.57% to 92.85%.

- add valid case for arrow function component where fnAncestor has no id
- add valid case for async server component with @tanstack/react-query import
- add invalid case for destructuring pattern where autofix is not applicable

The existing valid tests for line 58 (non-component function, async component)
used @tanstack/solid-query imports, causing early return at the import check    (line 44) and never reaching the target branch.

* test(eslint-plugin-query/stable-query-client): remove arrow function component valid case

Remove the arrow function component test case from valid cases.

The current rule does not detect `new QueryClient()` inside arrow function
components because `fnAncestor.id` is undefined for arrow functions.
This is a false negative (known limitation), not intended behavior.
Adding it as a valid case would bake that bug into the test suite and cause failures when the rule is fixed in the future.

---------

Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
2026-03-28 15:48:04 +09:00
github-actions[bot]
1047cdc393
ci: Version Packages (#10326) release-2026-03-23-1536 @tanstack/angular-query-experimental@5.95.2 @tanstack/eslint-plugin-query@5.95.2 @tanstack/preact-query-devtools@5.95.2 @tanstack/preact-query-persist-client@5.95.2 @tanstack/preact-query@5.95.2 @tanstack/query-async-storage-persister@5.95.2 @tanstack/query-broadcast-client-experimental@5.95.2 @tanstack/query-core@5.95.2 @tanstack/query-devtools@5.95.2 @tanstack/query-persist-client-core@5.95.2 @tanstack/query-sync-storage-persister@5.95.2 @tanstack/react-query-devtools@5.95.2 @tanstack/react-query-next-experimental@5.95.2 @tanstack/react-query-persist-client@5.95.2 @tanstack/react-query@5.95.2 @tanstack/solid-query-devtools@5.95.2 @tanstack/solid-query-persist-client@5.95.2 @tanstack/solid-query@5.95.2 @tanstack/svelte-query-devtools@6.1.10 @tanstack/svelte-query-persist-client@6.1.10 @tanstack/svelte-query@6.1.10 @tanstack/vue-query-devtools@6.1.10 @tanstack/vue-query@5.95.2
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-23 16:31:44 +01:00
Dominik Dorfmeister 🔮
cd5a35b328
fix/nodejs timeout (#10325)
* fix(timeout): make sure NodeJs.Timout doesn't leak

* changeset

* fix(tsconfig): include src directory in production configuration
2026-03-23 15:58:17 +01:00
github-actions[bot]
5806444b97
ci: Version Packages (#10324) release-2026-03-23-1426 @tanstack/angular-query-experimental@5.95.1 @tanstack/eslint-plugin-query@5.95.1 @tanstack/preact-query-devtools@5.95.1 @tanstack/preact-query-persist-client@5.95.1 @tanstack/preact-query@5.95.1 @tanstack/query-async-storage-persister@5.95.1 @tanstack/query-broadcast-client-experimental@5.95.1 @tanstack/query-core@5.95.1 @tanstack/query-devtools@5.95.1 @tanstack/query-persist-client-core@5.95.1 @tanstack/query-sync-storage-persister@5.95.1 @tanstack/react-query-devtools@5.95.1 @tanstack/react-query-next-experimental@5.95.1 @tanstack/react-query-persist-client@5.95.1 @tanstack/react-query@5.95.1 @tanstack/solid-query-devtools@5.95.1 @tanstack/solid-query-persist-client@5.95.1 @tanstack/solid-query@5.95.1 @tanstack/svelte-query-devtools@6.1.9 @tanstack/svelte-query-persist-client@6.1.9 @tanstack/svelte-query@6.1.9 @tanstack/vue-query-devtools@6.1.9 @tanstack/vue-query@5.95.1
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-23 15:21:38 +01:00
Dominik Dorfmeister 🔮
1f1775ca92
fix(timeout): make sure NodeJs.Timout doesn't leak (#10323)
* fix(timeout): make sure NodeJs.Timout doesn't leak

* changeset
2026-03-23 15:07:55 +01:00
TkDodo
b1188fee93 ref: knip v6 2026-03-23 08:54:47 +01:00
Dami Oyeniyi
c73e4a2c5a
fix(examples): guard missing filmId param in react star-wars example (#10143) 2026-03-22 18:45:58 +01:00
Dami Oyeniyi
c7c0cd9439
fix(examples): guard missing mount targets in remaining react examples (#10305) 2026-03-22 18:40:46 +01:00
github-actions[bot]
4d7de830eb
ci: Version Packages (#10317) release-2026-03-22-1745 @tanstack/angular-query-experimental@5.95.0 @tanstack/eslint-plugin-query@5.95.0 @tanstack/preact-query-devtools@5.95.0 @tanstack/preact-query-persist-client@5.95.0 @tanstack/preact-query@5.95.0 @tanstack/query-async-storage-persister@5.95.0 @tanstack/query-broadcast-client-experimental@5.95.0 @tanstack/query-core@5.95.0 @tanstack/query-devtools@5.95.0 @tanstack/query-persist-client-core@5.95.0 @tanstack/query-sync-storage-persister@5.95.0 @tanstack/react-query-devtools@5.95.0 @tanstack/react-query-next-experimental@5.95.0 @tanstack/react-query-persist-client@5.95.0 @tanstack/react-query@5.95.0 @tanstack/solid-query-devtools@5.95.0 @tanstack/solid-query-persist-client@5.95.0 @tanstack/solid-query@5.95.0 @tanstack/svelte-query-devtools@6.1.8 @tanstack/svelte-query-persist-client@6.1.8 @tanstack/svelte-query@6.1.8 @tanstack/vue-query-devtools@6.1.8 @tanstack/vue-query@5.95.0
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-22 18:40:14 +01:00
Eliya Cohen
3443736e29
feat(eslint-plugin): add allowlist option to exhaustive-deps rule (#10295)
* feat(eslint-plugin): add allowlist option to exhaustive-deps rule

Introduce an `allowlist` option with `variables` and `types` arrays so
stable variables and types can be excluded from dependency enforcement.

Also report member expression dependencies more granularly for call
expressions (e.g. `a.b.foo()` suggests `a.b` instead of only `a`).

BREAKING CHANGE: exhaustive-deps now reports member expression deps more
granularly, so some previously passing code may now report missing deps.
Use the allowlist option to exclude stable variables/types as needed.

* fix

* ci: apply automated fixes

* increase coverage

* address false positives

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-03-22 18:33:16 +01:00
github-actions[bot]
8fe71e4fe7
ci: Version Packages (#10313) release-2026-03-21-1602 @tanstack/angular-query-experimental@5.94.5 @tanstack/eslint-plugin-query@5.94.5 @tanstack/preact-query-devtools@5.94.5 @tanstack/preact-query-persist-client@5.94.5 @tanstack/preact-query@5.94.5 @tanstack/query-async-storage-persister@5.94.5 @tanstack/query-broadcast-client-experimental@5.94.5 @tanstack/query-core@5.94.5 @tanstack/query-devtools@5.94.5 @tanstack/query-persist-client-core@5.94.5 @tanstack/query-sync-storage-persister@5.94.5 @tanstack/react-query-devtools@5.94.5 @tanstack/react-query-next-experimental@5.94.5 @tanstack/react-query-persist-client@5.94.5 @tanstack/react-query@5.94.5 @tanstack/solid-query-devtools@5.94.5 @tanstack/solid-query-persist-client@5.94.5 @tanstack/solid-query@5.94.5 @tanstack/svelte-query-devtools@6.1.7 @tanstack/svelte-query-persist-client@6.1.7 @tanstack/svelte-query@6.1.7 @tanstack/vue-query-devtools@6.1.7 @tanstack/vue-query@5.94.5
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-22 00:57:17 +09:00
Jonghyeon Ko
4b6536dfce
chore: add build step in release workflow (#10312)
* chore: add build step in release workflow

* chore: standardize quotes in release workflow configuration

* chore: add changeset for patch versions across multiple TanStack packages and fix build directory exclusion issue
2026-03-22 00:50:12 +09:00
Jonghyeon Ko
0ddf442d30
chore: update version in query-test-utils package.json to 0.0.0 (#10310) release-2026-03-21-1447 @tanstack/preact-query-persist-client@5.94.4 @tanstack/preact-query@5.94.4 @tanstack/query-async-storage-persister@5.94.4 @tanstack/query-core@5.94.4 @tanstack/query-persist-client-core@5.94.4 @tanstack/query-sync-storage-persister@5.94.4 @tanstack/react-query-persist-client@5.94.4 @tanstack/react-query@5.94.4 @tanstack/solid-query-persist-client@5.94.4 @tanstack/solid-query@5.94.4 @tanstack/svelte-query-persist-client@6.1.6 @tanstack/svelte-query@6.1.6 @tanstack/vue-query@5.94.4 2026-03-21 23:45:59 +09:00
github-actions[bot]
c613c22535
ci: Version Packages (#10309)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-21 23:35:14 +09:00
Jonghyeon Ko
4c75210ce8
ci(changesets): fixed version (#10064)
* chore: update changeset configuration to include fixed dependencies for various TanStack packages

* chore: update package versions across multiple examples and packages to 5.92.9, including Angular, React, Solid, Svelte, and Vue integrations

* chore: add changeset for version patches across multiple TanStack packages

* chore: update changeset configuration to include @tanstack/vue-query-devtools as a dependency

* feat: add support for Preact query packages in changeset configuration

* chore: update changeset configuration to include Preact query packages
2026-03-21 22:52:02 +09:00