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

5,191 commits

Author SHA1 Message Date
Wonsuk Choi
48b7d660fa
test(query-devtools/Explorer): add tests for resetting 'CopyButton' state after success and failure (#10738) 2026-05-20 10:38:47 +09:00
Wonsuk Choi
e3ebf3f242
test(query-devtools/Explorer): add test for independently toggling two pages (#10737) 2026-05-20 10:12:36 +09:00
Wonsuk Choi
359184ebc1
test(query-devtools/Explorer): add test for 'CopyButton' error state on clipboard failure (#10734) 2026-05-19 21:53:48 +09:00
Wonsuk Choi
a4cebdb45a
test(query-devtools/Explorer): add tests for inline edit on primitive rows (#10731)
* test(query-devtools/Explorer): add tests for inline edit on primitive rows

* test(query-devtools/Explorer): explicitly provide 'valueAsNumber' in change event payload
2026-05-19 11:15:50 +09:00
Wonsuk Choi
57f8ec7b49
test(query-devtools/Explorer): add tests for action menu buttons (#10729)
* test(query-devtools/Explorer): add tests for action menu buttons

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-19 10:29:15 +09:00
Wonsuk Choi
caace8526d
test(query-devtools/Explorer): add tests for 'defaultExpanded' and pagination behavior (#10727) 2026-05-19 09:57:19 +09:00
github-actions[bot]
3e85350749
ci: Version Packages (#10706) release-2026-05-18-1948 @tanstack/angular-query-experimental@5.100.11 @tanstack/eslint-plugin-query@5.100.11 @tanstack/lit-query@0.2.2 @tanstack/preact-query-devtools@5.100.11 @tanstack/preact-query-persist-client@5.100.11 @tanstack/preact-query@5.100.11 @tanstack/query-async-storage-persister@5.100.11 @tanstack/query-broadcast-client-experimental@5.100.11 @tanstack/query-core@5.100.11 @tanstack/query-devtools@5.100.11 @tanstack/query-persist-client-core@5.100.11 @tanstack/query-sync-storage-persister@5.100.11 @tanstack/react-query-devtools@5.100.11 @tanstack/react-query-next-experimental@5.100.11 @tanstack/react-query-persist-client@5.100.11 @tanstack/react-query@5.100.11 @tanstack/solid-query-devtools@5.100.11 @tanstack/solid-query-persist-client@5.100.11 @tanstack/solid-query@5.100.11 @tanstack/svelte-query-devtools@6.1.30 @tanstack/svelte-query-persist-client@6.1.30 @tanstack/svelte-query@6.1.30 @tanstack/vue-query-devtools@6.1.30 @tanstack/vue-query@5.100.11
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-18 21:44:23 +02:00
Wonsuk Choi
334161f2f5
test(query-devtools/Explorer): add tests for 'Map' and iterable rendering branches (#10721) 2026-05-18 09:38:20 +09:00
Wonsuk Choi
3ed5d63a7b
test(query-devtools/Explorer): add tests for primitive values and basic collection rendering (#10714) 2026-05-18 09:11:24 +09:00
Corbin Crutchley
65b9b72713
chore: add CODEOWNERS file (#10703)
* chore: add CODEOWNERS file

* chore: add Nx configs

* chore: add NPMRC
2026-05-14 00:06:25 -06:00
palkim
139e67ccab
fix(vue-query): allow computed ref as queryKey property in queryOptions (#10530)
* fix(vue-query): allow computed ref as queryKey property in queryOptions

Closes #10525

* fix(vue-query): widen queryKey to MaybeRefOrGetter to match enabled

toValueDeep already calls `() => T` at runtime, so the queryKey type
should accept the same reactive forms as enabled: Ref, ComputedRef,
and getters. Adds a getter test and updates the changeset.

---------

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2026-05-13 23:12:23 +02:00
Dami Oyeniyi
299447b060
fix(vue-query-devtools): use class attribute in templates (#10635)
Co-authored-by: Damian Osipiuk <osipiukd+git@gmail.com>
2026-05-13 23:06:20 +02:00
Wonsuk Choi
57f7301c5f
test(query-devtools/Devtools): add test for clamping the width when resizing below min width (#10702)
* test(query-devtools/Devtools): add test for clamping the width when resizing below min width

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-14 02:13:17 +09:00
Wonsuk Choi
28177f5287
test(query-devtools/Devtools): add test for restoring previous query options after 'Trigger Loading' is clicked (#10701)
* test(query-devtools/Devtools): add test for restoring previous query options after 'Trigger Loading' is clicked

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-14 01:34:15 +09:00
Wonsuk Choi
5dce547b66
test(query-devtools/Devtools): add test for query details panel auto-close when resizing below min height (#10698)
* test(query-devtools/Devtools): add test for query details panel auto-close when resizing below min height

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-14 01:03:45 +09:00
Flo
e220149fcc
ci: add zizmor workflow (#10700)
* ci: add zizmor workflow

* ci: clarify release checkout credentials

* Update .github/workflows/release.yml
2026-05-13 20:17:39 +10:00
TkDodo
6840460591 pull_request_target -> pull_request 2026-05-12 08:22:21 +02:00
Sean Cassiere
65b8e31227
chore: change pull_request_target to pull_request event for labeler workflow 2026-05-12 11:00:41 +12:00
github-actions[bot]
9d2692cec4
ci: Version Packages (#10695)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-11 16:08:01 +02:00
Dominik Dorfmeister 🔮
4d130b992d
fix(query-devtools): remove experimentalDts to prevent solid-js type leak (#10694)
* fix(query-devtools): remove experimentalDts to prevent solid-js type leak

* changeset

Co-authored by @namgi2386
2026-05-11 16:02:15 +02:00
Wonsuk Choi
55c6b8ad17
test(query-devtools/Devtools): add test for hiding the panel when the 'TANSTACK' logo is clicked (#10693) 2026-05-11 12:13:08 +09:00
Wonsuk Choi
c84c9d06d7
test(query-devtools/Devtools): add tests for online toggle (#10692)
* test(query-devtools/Devtools): add tests for online toggle

* test(query-devtools/Devtools): remove redundant 'should set "onlineManager" offline' covered by label swap test
2026-05-11 10:47:12 +09:00
Wonsuk Choi
ba58314b8d
test(query-devtools/Devtools): add tests for resize handle (#10691)
* test(query-devtools/Devtools): add tests for resize handle

* test(query-devtools/Devtools): assert 'panel' is 'HTMLElement' instead of 'not.toBeNull' for stronger 'getBoundingClientRect' guarantee

* test(query-devtools/Devtools): assert non-null before parsing 'localStorage' value to prevent 'Number(null) === 0' false positive in decrease assertions
2026-05-11 10:11:10 +09:00
Wonsuk Choi
fdea97d2e6
test(query-devtools/Devtools): add tests for settings menu (#10690)
* test(query-devtools/Devtools): add tests for settings menu

* ci: apply automated fixes

* test(query-devtools/Devtools): fail fast with 'expect' instead of conditional guards on selector lookups

* test(query-devtools/Devtools): coerce 'el.textContent' to string for 'TS18047' under strict 'vue-tsc' build

* test(query-devtools/Devtools): remove redundant 'should render the settings button' covered by other settings menu tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-11 03:10:21 +09:00
Wonsuk Choi
3e74fcb13c
test(query-devtools/Devtools): add tests for sort dropdown, hide disabled queries, and sort order toggle (#10689)
* test(query-devtools/Devtools): add tests for sort dropdown, hide disabled queries, and sort order toggle

* ci: apply automated fixes

* test(query-devtools/Devtools): assert exact 'sortOrder' values ('1' and '-1') across consecutive toggles

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-11 02:34:23 +09:00
Wonsuk Choi
7e459768b2
test(query-devtools/Devtools): add tests for 'errorTypes' prop and error trigger via select (#10688)
* test(query-devtools/Devtools): add tests for 'errorTypes' prop and error trigger via select

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-11 02:05:47 +09:00
Wonsuk Choi
f24d1a37e7
test(query-devtools/Devtools): add tests for "Bulk Edit Data" mode switch, save, and invalid JSON (#10687) 2026-05-11 01:40:38 +09:00
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