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

5,014 commits

Author SHA1 Message Date
Wonsuk Choi
4746ac43c1
test(query-devtools/Devtools): add tests for mutation details, sort order, and filter (#10686)
* test(query-devtools/Devtools): add tests for mutation details, sort order, and filter

* ci: apply automated fixes

* test(query-devtools/Devtools): assert toggled value of 'mutationSortOrder' and exclusion in mutation filter

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-11 01:17:58 +09:00
Wonsuk Choi
abdc308f20
test(query-devtools/Devtools): add tests for query details panel and query actions (#10685)
* test(query-devtools/Devtools): add tests for query details panel and query actions

* ci: apply automated fixes

* test(query-devtools/Devtools): re-query row before second click and assert exact 'pending' status after 'Restore Error'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-11 00:47:22 +09:00
Wonsuk Choi
ac576272ef
test(query-devtools/Devtools): add tests for query list rendering, filtering, and status indicators (#10684)
* test(query-devtools/Devtools): add tests for query list rendering, filtering, and status indicators

* test(query-devtools/Devtools): use 'some' to find 'CLEAR_MUTATION_CACHE' event in dispatched calls

* test(query-devtools/Devtools): use 'vi.useFakeTimers' and 'vi.advanceTimersByTimeAsync' for microtask flush

* test(query-devtools/Devtools): assert tooltip visibility on hover/focus instead of badge presence
2026-05-11 00:31:15 +09:00
Wonsuk Choi
be4f84f770
test(query-devtools/Devtools): add tests for open and close interactions and 'localStorage' persistence (#10683) 2026-05-11 00:08:19 +09:00
Wonsuk Choi
f46b22a48b
test(query-devtools/Devtools): add tests for initial state from 'initialIsOpen' and 'localStore.open' (#10682)
* test(query-devtools/Devtools): add tests for initial state from 'initialIsOpen' and 'localStore.open'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-10 23:58:57 +09:00
Wonsuk Choi
90fbff8036
test(query-devtools/DevtoolsPanelComponent): add tests for rendering without throwing, panel-only mode, and 'onClose' prop (#10680) 2026-05-10 04:57:19 +09:00
Wonsuk Choi
b79d7b4092
test(query-devtools/DevtoolsComponent): add smoke test for rendering without throwing (#10679) 2026-05-10 04:20:32 +09:00
Wonsuk Choi
4731c07216
chore(query-devtools): set up '@solidjs/testing-library' for component tests (#10678) 2026-05-10 03:52:24 +09:00
Wonsuk Choi
9963b2fc97
test(query-devtools/TanstackQueryDevtools{,Panel}): add tests for setters (#10676) 2026-05-09 17:59:10 +09:00
Wonsuk Choi
a37c003ca1
test(query-devtools/utils): add test for stale vs fresh rank in 'status' sort of 'sortFns' (#10674)
* test(query-devtools/utils): add test for stale vs fresh rank in 'status' sort of 'sortFns'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-09 16:38:20 +09:00
Wonsuk Choi
a709b04e4a
test(query-devtools/utils): add tests for 'array nested path' and 'primitive' cases of 'deleteNestedDataByPath' (#10673) 2026-05-09 14:26:11 +09:00
Wonsuk Choi
8dd9724bf2
test(query-devtools/utils): cover empty path, array nested path, and primitive cases of 'updateNestedDataByPath' (#10672) 2026-05-09 14:08:48 +09:00
Wonsuk Choi
64d0b89894
test(query-devtools/utils): add tests for 'getQueryStatusLabel' (#10671) 2026-05-09 13:23:49 +09:00
Wonsuk Choi
abad6f0777
test(query-devtools/utils): add tests for 'getQueryStatusColor' (#10670) 2026-05-09 12:51:56 +09:00
TkDodo
3894b052b7 fix: package.json release-2026-05-08-1426 @tanstack/lit-query@0.2.0 2026-05-08 16:22:24 +02:00
TkDodo
2f6e16b1ee ref: remove versions from examples 2026-05-08 16:20:09 +02:00
github-actions[bot]
086d449c93
ci: Version Packages (#10657)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-08 16:11:52 +02:00
Gaurav
4082894509
feat: lit query adapter
* feat lit-query: add initial lit-query package

* remove internal docs from initial PR

* fix review issues

* align scripts with monorepo Nx targets and use workspace:* for query-core

* feat(lit-query): fix type inference and monorepo integration

  - Fix createQueriesController tuple type inference with recursive types
  - Add DataTag support to queryOptions
  - Fix build config and vitest custom-condition resolution
  - Fix example install scripts for standalone bootstrap

* fix(lit-query): polish package validation and examples

* ci: apply automated fixes

* lit-query: preserve provider handshake ordering in BaseController

* Update .changeset/lemon-memes-divide.md

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>

* removing prettier config from adapter, so that global config from the monorepo is used

* removed the package local format scripts so formatting stays centralized at the monorepo root

* removing like other adapters keep build and test:build as separate targets

* Compared against the other adapters and removed the lit-query-only aliases/gates, keeping the standard Nx target names so root CI can pick them up consistently

* package:check has been removed. The CJS smoke check is still needed because lit-query publishes custom CJS output/types

* fix(lit-query): align lit examples and integration with monorepo conventions

* chore(lit-query): clean up stale package checks

* fix(lit-query): address review feedback for lit examples and lifecycle tests

* chore: fix lockfile

* fix: add customCondition

* docs(lit-query): add Lit docs and generated reference

* docs(lit-query): fix Lit docs review comment and align examples

---------

Co-authored-by: gauravchugh <gauravchugh@servicenow.com>
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-08 15:18:50 +02:00
Wonsuk Choi
3d1ee9d180
test(query-devtools/utils): add tests for 'getPreferredColorScheme' (#10654) 2026-05-08 09:52:27 +09:00
Wonsuk Choi
9d1ce70b39
test(query-devtools/utils): add tests for 'mutationSortFns' (#10651) 2026-05-06 21:35:44 +09:00
Wonsuk Choi
0db5b90423
test(query-devtools/utils): add tests for 'sortFns' (#10650) 2026-05-06 16:21:24 +09:00
Wonsuk Choi
150300f6cb
test(query-devtools/utils): add tests for 'setupStyleSheet' (#10649) 2026-05-06 12:25:04 +09:00
Wonsuk Choi
24d0834f68
test(query-devtools/utils): add tests for 'convertRemToPixels' (#10648) 2026-05-06 10:33:06 +09:00
Wonsuk Choi
8a5d1897bf
test(query-devtools/utils): add tests for 'getSidedProp' (#10647) 2026-05-06 03:35:51 +09:00
Wonsuk Choi
3c24bc865e
test(query-devtools/utils): add tests for 'displayValue' (#10646) 2026-05-06 03:18:32 +09:00
Wonsuk Choi
f4a365f6d2
test(query-devtools/utils): add tests for 'getMutationStatusColor' and 'getQueryStatusColorByLabel' (#10645)
* test(query-devtools/utils): add tests for 'getMutationStatusColor' and 'getQueryStatusColorByLabel'

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-06 03:03:15 +09:00
Wonsuk Choi
0d8d64b9ef
test(query-devtools/TanstackQueryDevtoolsPanel): add 'mount' and 'unmount' lifecycle tests (#10640) 2026-05-05 21:55:25 +09:00
Wonsuk Choi
589227986b
test(query-devtools/TanstackQueryDevtools): replace placeholder with 'mount' and 'unmount' lifecycle tests (#10639) 2026-05-05 21:36:49 +09:00
Dami Oyeniyi
0d63459555
docs(devtools): correct 'errorTypes' type to array (#10634)
docs(devtools): document errorTypes as array
2026-05-05 12:08:07 +09:00
Wonsuk Choi
c8e1bde575
chore(vue-query-devtools): set up vitest environment with production fallback test (#10629)
* test(vue-query-devtools): set up vitest environment with production fallback test

* chore(vue-query-devtools): unify 'defineConfig' and 'mergeConfig' import from 'vitest/config'
2026-05-04 18:31:15 +09:00
Wonsuk Choi
74fa05eb1b
chore(tsconfig.json): narrow 'include' pattern to prevent TS6053 race conditions from tsup bundled config files (#10522)
* chore(tsconfig.json): exclude tsup bundled config files to prevent TS6053 race conditions

* chore(tsconfig.json): narrow 'include' pattern to specific config extensions

* ci: apply automated fixes

* chore(tsconfig.json): replace brace expansion with explicit '*.config.ts' and '*.config.js' patterns

* chore(tsconfig.json): use single-line 'include' arrays for consistency

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-04 03:24:13 +09:00
github-actions[bot]
8c3d523d0a
ci: Version Packages (#10630) release-2026-05-03-1449 @tanstack/angular-query-experimental@5.100.9 @tanstack/eslint-plugin-query@5.100.9 @tanstack/preact-query-devtools@5.100.9 @tanstack/preact-query-persist-client@5.100.9 @tanstack/preact-query@5.100.9 @tanstack/query-async-storage-persister@5.100.9 @tanstack/query-broadcast-client-experimental@5.100.9 @tanstack/query-core@5.100.9 @tanstack/query-devtools@5.100.9 @tanstack/query-persist-client-core@5.100.9 @tanstack/query-sync-storage-persister@5.100.9 @tanstack/react-query-devtools@5.100.9 @tanstack/react-query-next-experimental@5.100.9 @tanstack/react-query-persist-client@5.100.9 @tanstack/react-query@5.100.9 @tanstack/solid-query-devtools@5.100.9 @tanstack/solid-query-persist-client@5.100.9 @tanstack/solid-query@5.100.9 @tanstack/svelte-query-devtools@6.1.28 @tanstack/svelte-query-persist-client@6.1.28 @tanstack/svelte-query@6.1.28 @tanstack/vue-query-devtools@6.1.28 @tanstack/vue-query@5.100.9
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-03 16:45:38 +02:00
Dami Oyeniyi
bf902df59d
feat(angular-query): add devtools theme option (#10609)
* feat(angular-query): add devtools theme option

* chore: apply review feedback
2026-05-03 16:22:29 +02:00
Matt Cowley
14926b7615
docs: remove typo in QueryOptions#retry JSDoc (#10606)
fix: remove typo in QueryOptions#retry JSDoc
2026-05-03 15:16:06 +02:00
Dami Oyeniyi
3d21cacdec
fix(query-devtools): align onClose setter type (#10607) 2026-05-03 15:13:30 +02:00
Neef Rehman
fcee7bdc42
fix(query-core): restore NoInfer on persister's TQueryKey (#10601)
Follow-up to #10510. That PR removed NoInfer from all three persister
generics to fix TQueryFnData inference when the companion queryFn
declares a parameter (#7842). Keeping NoInfer on TQueryKey preserves
that fix while preventing the persister slot from widening TQueryKey
inference.

Without NoInfer on TQueryKey, the persister slot contributes to
TQueryKey inference. When Register.queryKey is augmented to a narrowed
constraint, TQueryKey widens to that constraint instead of the literal
passed to queryKey. Wrappers that brand their return with
DataTag<TQueryKey, ...> then produce a brand on the wider type, which
a plain literal tuple can no longer satisfy in contravariant positions
(vi.mocked(...).mockReturnValue, typed variable assignments, etc.).

TQueryFnData still participates in inference, so #10510's positive and
negative type tests continue to pass.

Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
2026-05-03 14:34:10 +02:00
Wonsuk Choi
9b879f1421
test(preact-query-devtools): make production fallback test deterministic with 'vi.stubEnv' and 'vi.resetModules' (#10628) 2026-05-03 14:20:03 +09:00
Wonsuk Choi
03eba38ae9
test(react-query-devtools): add tests for missing 'QueryClient', context provider, 'client' prop, and production fallback (#10627)
* test(react-query-devtools): add tests for missing 'QueryClient', context provider, 'client' prop, and production fallback

* ci: apply automated fixes

* test(react-query-devtools): make production fallback test deterministic with 'vi.stubEnv' and 'vi.resetModules'

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-03 14:19:43 +09:00
Wonsuk Choi
d5d69cbfce
test(preact-query-devtools): add tests for missing 'QueryClient', context provider, 'client' prop, and production fallback (#10626)
* test(preact-query-devtools): add tests for missing 'QueryClient', context provider, 'client' prop, and production fallback

* ci: apply automated fixes

* test(preact-query-devtools): assert 'mount' call in client provisioning tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-03 13:50:27 +09:00
Wonsuk Choi
3f0948b51b
test(svelte-query-devtools): add tests for missing 'QueryClient', context provider, and 'client' prop (#10625) 2026-05-03 10:58:53 +09:00
Wonsuk Choi
529e590c28
chore(svelte-query-devtools): set up vitest environment with '@testing-library/svelte' and a smoke test (#10624) 2026-05-03 10:25:44 +09:00
github-actions[bot]
9800c8f1a3
ci: Version Packages (#10623) release-2026-05-02-0413 @tanstack/angular-query-experimental@5.100.8 @tanstack/eslint-plugin-query@5.100.8 @tanstack/preact-query-devtools@5.100.8 @tanstack/preact-query-persist-client@5.100.8 @tanstack/preact-query@5.100.8 @tanstack/query-async-storage-persister@5.100.8 @tanstack/query-broadcast-client-experimental@5.100.8 @tanstack/query-core@5.100.8 @tanstack/query-devtools@5.100.8 @tanstack/query-persist-client-core@5.100.8 @tanstack/query-sync-storage-persister@5.100.8 @tanstack/react-query-devtools@5.100.8 @tanstack/react-query-next-experimental@5.100.8 @tanstack/react-query-persist-client@5.100.8 @tanstack/react-query@5.100.8 @tanstack/solid-query-devtools@5.100.8 @tanstack/solid-query-persist-client@5.100.8 @tanstack/solid-query@5.100.8 @tanstack/svelte-query-devtools@6.1.27 @tanstack/svelte-query-persist-client@6.1.27 @tanstack/svelte-query@6.1.27 @tanstack/vue-query-devtools@6.1.27 @tanstack/vue-query@5.100.8
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-02 13:08:18 +09:00
Wonsuk Choi
60b4416a15
refactor(preact-query-devtools): replace deprecated 'JSX.CSSProperties' with 'CSSProperties' from Preact namespace (#10622)
* refactor(preact-query-devtools): replace deprecated 'JSX.CSSProperties' with 'CSSProperties' from Preact namespace

* chore(.changeset): add changeset for 'JSX.CSSProperties' refactor
2026-05-02 13:03:29 +09:00
Wonsuk Choi
bf2546feb0
docs(devtools): add missing 'theme' option (#10621) 2026-05-02 10:50:20 +09:00
github-actions[bot]
3ae42619e5
ci: Version Packages (#10620) release-2026-05-01-0746 @tanstack/angular-query-experimental@5.100.7 @tanstack/eslint-plugin-query@5.100.7 @tanstack/preact-query-devtools@5.100.7 @tanstack/preact-query-persist-client@5.100.7 @tanstack/preact-query@5.100.7 @tanstack/query-async-storage-persister@5.100.7 @tanstack/query-broadcast-client-experimental@5.100.7 @tanstack/query-core@5.100.7 @tanstack/query-devtools@5.100.7 @tanstack/query-persist-client-core@5.100.7 @tanstack/query-sync-storage-persister@5.100.7 @tanstack/react-query-devtools@5.100.7 @tanstack/react-query-next-experimental@5.100.7 @tanstack/react-query-persist-client@5.100.7 @tanstack/react-query@5.100.7 @tanstack/solid-query-devtools@5.100.7 @tanstack/solid-query-persist-client@5.100.7 @tanstack/solid-query@5.100.7 @tanstack/svelte-query-devtools@6.1.26 @tanstack/svelte-query-persist-client@6.1.26 @tanstack/svelte-query@6.1.26 @tanstack/vue-query-devtools@6.1.26 @tanstack/vue-query@5.100.7
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-01 16:42:23 +09:00
Wonsuk Choi
868577d5da
docs(devtools): align logo, panel, and option union descriptions across docs and JSDoc (#10617)
* docs(devtools): replace framework-specific logo with 'TanStack logo' to match the actual rendered component

* docs(vue-query/devtools): replace 'React Query' panel leftover with 'Vue Query'

* docs(devtools): replace framework-specific logo with 'TanStack logo' and use adapter naming for 'devtools panel' in JSDoc

* docs(devtools): add missing 'relative' to JSDoc 'buttonPosition' union

* chore(.changeset): add changeset for devtools logo, panel, and 'buttonPosition' union alignment

* docs(preact-query-devtools): add missing 'position' union to JSDoc
2026-05-01 16:34:40 +09:00
Wonsuk Choi
3c24ff3ba2
ci(labeler-config): add missing 'preact-query-devtools' and 'preact-query-persist-client' package labels (#10618) 2026-05-01 14:49:50 +09:00
Wonsuk Choi
0694696025
docs(preact-query/devtools): add missing 'relative' to 'buttonPosition' (#10611) 2026-04-29 23:41:15 +09:00
Dami Oyeniyi
4ef364ac3d
docs(devtools): add 'relative' to Vue/Solid 'buttonPosition' and fix Vue 'style' type (#10608)
docs(devtools): align Vue and Solid option types
2026-04-29 23:29:29 +09:00
Wonsuk Choi
c5ab5a1065
test(preact-query/ErrorBoundary): replace British 'behaviour' with American 'behavior' (#10605) 2026-04-29 03:18:28 +09:00