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

327 commits

Author SHA1 Message Date
github-actions[bot]
388bbaf181
ci: Version Packages (#11265)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-23 19:57:36 +02:00
github-actions[bot]
bc423b37ef
ci: Version Packages (#11261)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-23 12:57:01 +02:00
github-actions[bot]
5743468462
ci: Version Packages (#11206)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-22 20:52:42 +02:00
Dominik Dorfmeister 🔮
267154cf6b
chore: tsup -> tsdown (#11222)
* chore: tsup -> tsdown

* revert size-limit and fix the build instead

* fix angular and devtools build

* fix nextJs builds

* more solid related things

* fix: import order
2026-08-18 15:19:43 +02:00
Dominik Dorfmeister 🔮
279bb5508b
chore: update to ts 7 and move cut-off to 5.6 (#11212)
* update to ts 7 and move cut-off to 5.7

* changeset

* fix: use typescript v6 with tsup

* ci: apply automated fixes

* ref: update sveltejs/package

* ref: make ts6 the default typescript

* fix: lit build

* effing tsup

* move ignoreDeprecations to solid tsup config

* move ignoreDeprecations to relevant tsup configs

* better lit fix

* restore vue queryClient

* Revert "restore vue queryClient"

This reverts commit 4f95fc918a.

* fix things

* ignore devDep ordering

* vue needs to use ts6

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-17 22:50:18 +02:00
ChangJun Park
e396148c07
test(query-devtools/Devtools): add test for rendering a hydrated query with a custom hash function (#11055)
* Protect restored custom-hash queries in devtools

Exercise the full dehydrate, hydrate, and query-row rendering path for a per-query custom queryKeyHashFn. This locks the queryHash lookup behavior introduced by #10750 and covers the persistence failure reported in #6958.

Constraint: The runtime lookup fix already shipped in #10750

Rejected: Reapply queryCache.get changes | current main already contains the implementation

Confidence: high

Scope-risk: narrow

Tested: query-devtools 246 tests; ESLint; TypeScript current; Prettier

Related: TanStack/query#6958

* test(query-devtools/Devtools): use 'advanceTimersByTimeAsync' for consistency and remove redundant 'clear'

* test(query-devtools/Devtools): move custom-hash hydration test to the end of 'query list'

* test(query-devtools/Devtools): align custom-hash test title with the 'when X' convention

---------

Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
2026-07-27 01:54:54 +09:00
github-actions[bot]
86bb8a6fb2
ci: Version Packages (#11094)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-21 15:00:30 +02:00
github-actions[bot]
181ea826cb
ci: Version Packages (#11089)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-20 14:01:04 +02:00
Wonsuk Choi
045c947f2a
test(*): assert exact values instead of loose matchers (#11057) 2026-07-13 02:27:36 +09:00
Wonsuk Choi
8773a1501f
test(query-devtools/PiPContext): assert exact spy arguments instead of 'objectContaining'/'stringContaining' (#11052) 2026-07-12 12:28:02 +09:00
github-actions[bot]
610e8d1684
ci: Version Packages (#10996)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-27 22:28:10 +02:00
Kamil Bażanow
49012dbd51
fix(query-devtools): set window.__nonce__ in setupStyleSheet (#10736)
* fix(query-devtools): set window.__nonce__ in setupStyleSheet

* test(query-devtools): add tests for window.__nonce__ in setupStyleSheet

* chore: add changeset

* fix: merge conflicts

* formatting

* ci: apply automated fixes

---------

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-27 22:12:25 +02:00
Li Duoyang
ceec8f0a82
fix(devtools): add transform: translateZ(0) for Safari overflow rendering (#10638)
Safari has a known issue where overflow: hidden with border-radius
doesn't work correctly without hardware acceleration. Adding
transform: translateZ(0) forces GPU compositing which fixes the
icon rendering issue.

Fixes #10633
2026-06-27 21:48:26 +02:00
Wonsuk Choi
ecd89c8faf
fix(query-devtools/utils): scope the 'setupStyleSheet' dedup check to the target so a 'shadowDOMTarget' still receives its own '#_goober' style tag when 'document.head' already has one (#10815) 2026-06-27 21:43:19 +02:00
Wonsuk Choi
01c763444e
fix(query-devtools/Devtools): correct the Theme sub-trigger className from 'position' to 'theme' (#10811) 2026-06-27 21:41:59 +02:00
Wonsuk Choi
f5bf180d93
fix(query-devtools/PiPContext): reset 'pip_open' in 'localStore' from 'closePipWindow' so the auto-open createEffect does not reopen the window after a programmatic close (#10813) 2026-06-27 21:40:58 +02:00
Wonsuk Choi
25cdd975fe
fix(query-devtools/utils): make 'last updated' sort return 0 for queries with equal 'dataUpdatedAt' to follow the standard comparator contract (#10812) 2026-06-27 21:39:30 +02:00
github-actions[bot]
b80929716f
ci: Version Packages (#10977)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-23 11:57:22 +02:00
Wonsuk Choi
feb1efd804
test(*): move 'vi.useRealTimers' to the end of 'afterEach' so cleanup runs under fake timers (#10920)
* test(*): move 'vi.useRealTimers' to the end of 'afterEach' so cleanup runs under fake timers

* test(*): move 'vi.useRealTimers' to the end of 'afterEach' in persist-client and devtools suites

* test(svelte-query/createQueries): move 'vi.useRealTimers' to the end of 'afterEach'
2026-06-11 12:08:15 +09:00
github-actions[bot]
f3d8d2abbf
ci: Version Packages (#10774)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-02 21:21:24 +02:00
Raashish Aggarwal
532bb298fb
fix(tests): disable local coverage instrumentation (#10776)
Disable local coverage instrumentation

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-05-26 17:29:33 +02:00
Wonsuk Choi
1ccc028188
test(query-devtools/Devtools): drop the 'pip_open' localStorage assertion from the PiP restore case now covered by 'PiPContext.test.tsx' (#10806) 2026-05-26 15:11:58 +09:00
Wonsuk Choi
e42d85c27d
test(query-devtools/Devtools): remove PiP auto-open and popup-blocker cases now covered by 'PiPContext.test.tsx' (#10805) 2026-05-26 12:30:38 +09:00
Wonsuk Choi
9a1aa92ef8
test(query-devtools/contexts/PiPContext): add tests for the '#_goober' MutationObserver observing and mirroring parent style mutations (#10804)
* test(query-devtools/contexts/PiPContext): add tests for the '#_goober' MutationObserver observing and mirroring parent style mutations

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-26 11:40:57 +09:00
Wonsuk Choi
db19ccfeb2
test(query-devtools/contexts/PiPContext): add tests for the 'pip_open' auto-open createEffect (#10803)
* test(query-devtools/contexts/PiPContext): add tests for the 'pip_open' auto-open createEffect

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-26 10:07:29 +09:00
Wonsuk Choi
d7c27dcf23
test(query-devtools/contexts/PiPContext): add tests for 'closePipWindow' guard and reset (#10802) 2026-05-26 09:48:30 +09:00
Wonsuk Choi
4cfd8a70fe
test(query-devtools/contexts/PiPContext): add test for the 'pagehide' listener resetting the 'pipWindow' signal and 'pip_open' (#10801) 2026-05-26 04:34:52 +09:00
Wonsuk Choi
8c666496ce
test(query-devtools/contexts/PiPContext): add tests for 'requestPipWindow' copying parent stylesheets into the PiP document head (#10800) 2026-05-26 04:11:54 +09:00
Wonsuk Choi
1b7d28adda
test(query-devtools/contexts/PiPContext): add tests for 'requestPipWindow' resetting the PiP document title, body margin, and head/body contents (#10798) 2026-05-26 03:56:55 +09:00
Wonsuk Choi
25009cd456
test(query-devtools/contexts/PiPContext): add tests for 'requestPipWindow' opening a PiP window and persisting 'pip_open' (#10797) 2026-05-26 03:35:06 +09:00
Wonsuk Choi
335975d88d
test(query-devtools/contexts/PiPContext): add test for 'usePiPWindow' throwing outside a 'PiPProvider' (#10796) 2026-05-26 03:13:59 +09:00
Wonsuk Choi
828858de1c
test(query-devtools/contexts/QueryDevtoolsContext): add test for 'Provider' value reactivity via getter properties (#10793)
* test(query-devtools/contexts/QueryDevtoolsContext): add test for 'Provider' value reactivity via getter properties

* ci: apply automated fixes

* test(query-devtools/contexts/QueryDevtoolsContext): clear 'QueryClient' instances after the reactive getter test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-26 02:54:29 +09:00
Wonsuk Choi
b110d25c40
test(query-devtools/contexts/ThemeContext): drop the 'Provider' value pass-through case in favor of the reactive 'Accessor' case (#10794) 2026-05-26 02:45:16 +09:00
Wonsuk Choi
514c132c1b
test(query-devtools/contexts/ThemeContext): split 'ThemeContext' tests into a unit test file mirroring the 'src/contexts' structure (#10787) 2026-05-25 15:35:01 +09:00
Wonsuk Choi
0cfde2a9e8
test(query-devtools/Devtools): add assertion for default theme falling back to 'dark' without a 'ThemeContext.Provider' (#10786) 2026-05-25 14:59:51 +09:00
Wonsuk Choi
67e250bb1d
test(query-devtools/Devtools): add test for rendering without a 'ThemeContext.Provider' (#10785) 2026-05-25 14:41:18 +09:00
Wonsuk Choi
04fb3fb8a5
test(query-devtools/Devtools): add test for PiP panel narrow layout below the second breakpoint (#10784) 2026-05-25 14:14:01 +09:00
Wonsuk Choi
bde5a7f3bd
test(query-devtools/Explorer): add test for rendering with a 'shadowDOMTarget' (#10782) 2026-05-25 12:51:32 +09:00
Wonsuk Choi
63b3a72d13
test(query-devtools/Explorer): add test for rendering under the 'light' theme (#10768) 2026-05-25 01:59:20 +09:00
Raashish Aggarwal
3042860e3c
fix(query-devtools): handle missing query row state (#10772)
Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-05-24 15:46:56 +02:00
Puneet Dixit
e631dc3fa1
Fix devtools query rows with mutable keys (#10750)
* Fix devtools query rows with mutable keys

* ci: apply automated fixes

---------

Co-authored-by: puneetdixit200 <236133619+puneetdixit200@users.noreply.github.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-24 15:02:26 +02:00
github-actions[bot]
ba6e7beebd
ci: Version Packages (#10767)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-23 19:13:22 +02:00
Wonsuk Choi
3f10705579
test(query-devtools/Devtools): add test for rendering an idle mutation row (#10764) 2026-05-23 21:52:15 +09:00
Wonsuk Choi
d5c6df7090
test(query-devtools/Devtools): add test for restoring 'width' to the rendered minimum after a drag clamp (#10763) 2026-05-23 16:15:15 +09:00
Wonsuk Choi
50a71c31ec
test(query-devtools/Devtools): add tests for in-page panel visibility while a PiP window is open (#10762) 2026-05-23 14:48:09 +09:00
Wonsuk Choi
217b67a4b7
test(query-devtools/Devtools): add test for 'pip_open' reset when the popup is blocked (#10761) 2026-05-23 14:26:26 +09:00
Wonsuk Choi
a00c0d2226
test(query-devtools/Devtools): add tests for opening a picture-in-picture window (#10760) 2026-05-23 14:02:58 +09:00
github-actions[bot]
05cf2bc0a4
ci: Version Packages (#10758)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-22 21:16:14 +02:00
github-actions[bot]
5ff4f6936b
ci: Version Packages (#10755)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-22 20:50:43 +02:00
Wonsuk Choi
c00ea27eb5
test(query-devtools/{DevtoolsComponent,DevtoolsPanelComponent}): add tests for rendering with all props (#10752) 2026-05-22 14:01:26 +09:00