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

5,005 commits

Author SHA1 Message Date
github-actions[bot]
cfc755cbc1
ci: Version Packages (#9770)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-16 12:44:49 +00:00
jinseoIT
20ef922a0a
fix(types): remove duplicate Array condition in MutationKey type (#9754)
* fix(types): preserve readonly mutation keys by removing duplicate Array check

* Fix duplicate Array condition in MutationKey type

* ci: apply automated fixes

* fix: make MutationKey type consistent with QueryKey

* chore: trigger GitHub UI refresh

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-16 14:39:00 +02:00
Lachlan Collins
969801c373
ci(prettier): ignore changesets (#9768) 2025-10-16 22:44:25 +11:00
github-actions[bot]
a7ff29b76b
ci: Version Packages (#9767) @tanstack/solid-query-devtools@5.90.4
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-16 11:04:32 +00:00
github-actions[bot]
c36a524e5d
ci: Version Packages (#9766)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-16 11:03:15 +00:00
CapitaineToinon
8fe3b100fb
fix: solid-query-devtools and panel query client (#9763)
* fixed solid-query-devtools and panel

* Added changeset

* Fixed typo
2025-10-16 13:00:23 +02:00
github-actions[bot]
9df1308181
ci: Version Packages (#9765) @tanstack/eslint-plugin-query@5.91.2
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-16 08:28:59 +00:00
autofix-ci[bot]
eae25b3073
ci: apply automated fixes 2025-10-16 08:25:18 +00:00
Ali Motahari
9595254b2f
fix: allow useQueries with combine property in no-unstable-deps rule (#9720)
* fix: allow useQueries with combine property in no-unstable-deps rule

- Add hasCombineProperty function to detect combine property in useQueries calls
- Skip tracking useQueries with combine as unstable since combine makes result stable
- Add tests for useQueries with and without combine property
- Fixes #9718

* ci: apply automated fixes

* Create ten-crabs-glow.md

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-10-16 10:24:12 +02:00
github-actions[bot]
b59925ebcc
ci: Version Packages (#9760) @tanstack/eslint-plugin-query@5.91.1
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-15 08:30:12 +00:00
Eliya Cohen
b9a478dc79
fix(eslint-plugin): avoid imports from typescript (#9759)
* fix(eslint-plugin): avoid imports from typescript

* add changeset

* fix
2025-10-15 10:28:05 +02:00
github-actions[bot]
36ece87d70
ci: Version Packages (#9753) @tanstack/angular-query-experimental@5.90.3 @tanstack/query-async-storage-persister@5.90.5 @tanstack/query-broadcast-client-experimental@5.90.3 @tanstack/query-core@5.90.3 @tanstack/query-persist-client-core@5.91.2 @tanstack/query-sync-storage-persister@5.90.5 @tanstack/react-query-persist-client@5.90.5 @tanstack/react-query@5.90.3 @tanstack/solid-query-persist-client@5.90.6 @tanstack/solid-query@5.90.4 @tanstack/svelte-query-persist-client@6.0.3 @tanstack/svelte-query@6.0.1 @tanstack/vue-query@5.90.3
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-13 18:48:07 +00:00
Fredrik Höglund
4e1c4338a7
fix(hydration): fix unhandled promise rejections (#9752) 2025-10-13 20:41:45 +02:00
Wonsuk Choi
ee85d165e5
docs(.github/pull_request_template): update test command to use explicit 'pnpm run' syntax (#9733) 2025-10-13 14:28:26 +02:00
github-actions[bot]
787a7346ca
ci: Version Packages (#9748) @tanstack/query-async-storage-persister@5.90.4 @tanstack/query-persist-client-core@5.91.1 @tanstack/query-sync-storage-persister@5.90.4 @tanstack/react-query-persist-client@5.90.4 @tanstack/solid-query-persist-client@5.90.5 @tanstack/svelte-query-persist-client@6.0.2
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-10 21:20:25 +00:00
Damian Osipiuk
846d53d989
fix(query-persist-client-core): allow restoring null values (#9747) 2025-10-10 23:18:36 +02:00
github-actions[bot]
ea62def6db
ci: Version Packages (#9746) @tanstack/query-async-storage-persister@5.90.3 @tanstack/query-persist-client-core@5.91.0 @tanstack/query-sync-storage-persister@5.90.3 @tanstack/react-query-persist-client@5.90.3 @tanstack/solid-query-persist-client@5.90.4 @tanstack/svelte-query-persist-client@6.0.1
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-10 21:06:03 +00:00
Damian Osipiuk
5cd86c6ef1
fix(query-persist-client-core): add option to change behavior of refetch after restore (#9745) 2025-10-10 23:04:23 +02:00
Dominik Dorfmeister
f4a0cd596b
chore: update eslint-plugin-react-hooks (#9737)
* chore: update eslint-plugin-react-hooks

* chore: override warning rules to error

* chore: config everywhere

* chore: lint violations
2025-10-08 15:09:08 +02:00
Lachlan Collins
9f82d8e56f
docs(svelte-query): fix diff notation (#9717) 2025-09-30 22:37:49 +10:00
github-actions[bot]
a99f771523
ci: Version Packages (#9716) @tanstack/svelte-query-devtools@6.0.0 @tanstack/svelte-query-persist-client@6.0.0 @tanstack/svelte-query@6.0.0
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-30 22:11:13 +10:00
Lachlan Collins
1056ba63b3
feat!(svelte-query): rewrite Svelte adapter to use runes (#9694)
* WIP: Svelte 5 adapter (#6981)

* feat(svelte-query): Improve svelte runes API (#8852)

* feat: Draft proposal

* chore: Improve reactive containers

* ci: apply automated fixes

* oops

* fix: Update API, add a bunch of tests

* merge main

* fix: use const

* more tests

* feat: More tests, back to thunks, fixed svelte-query-persist-client

* feat: More tests and examples!

* lockfile

* fixes

* Fix current CI errors

* More small fixes/tweaks

* Remove test.only

* ci: apply automated fixes

* Fix pnpm-lock, fix import order

* update main docs

* feat: More tests

* ci: apply automated fixes

* add back old tests

* Cleanup

* Fix persist client

* Fix useMutationState

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>

* Use sleep from query-test-utils

* Simplify test reset logic

* Fix some merge conflicts

* More fixes

* A few more fixes

* Fix useMutationState

* Add changeset

* Add migration docs

* Replace Set with SvelteSet

* Update minimum svelte version

* Bump svelte-eslint-parser

* Unwrap createQuery test

* fix(svelte-query): `state_unsafe_mutation` error with `useIs...` (#9493)

* fix(svelte-query): don't wrap observers in derived to avoid state_unsafe_mutation

fixes useIsFetching and useIsMutating in svelte 5 adapter

* test(svelte-query): wrap (useIs...) tests in QueryClientProvider to test non colocated query

* fix(svelte-query): update observers when passed in query client changes

* fix(svelte-query): simplify creatMutation sub/unsub

* Refactor result handling in createMutation.svelte.ts

Replace derived state with direct state and add watchChanges for result updates.

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>

* chore(svelte-query): fix eslint config (#9699)

* chore(svelte-query): fix eslint config

* Use @typescript-eslint/parser directly

* ci: apply automated fixes

* Fix sherif

* Update docs and changeset

* Update keywords

---------

Co-authored-by: Zhiheng Zhang <55773069+zhihengGet@users.noreply.github.com>
Co-authored-by: Elliott Johnson <sejohnson@torchcloudconsulting.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: David <david@hmnd.io>
2025-09-30 22:07:17 +10:00
Lachlan Collins
a242f98b82
Revert "chore(deps): update all non-major dependencies" (#9715)
Revert "chore(deps): update all non-major dependencies (#9712)"

This reverts commit 571bc184fd.
2025-09-30 15:29:40 +10:00
Lachlan Collins
0f5f643896
test(svelte-query): add infinite query setQueryData test (#9714)
* test(svelte-query): add infiniteQuery setQueryData test

* Remove state tracking

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-30 14:05:10 +10:00
espada-edalex
593eacbf17
docs: add docs for mutation-property-order eslint rule (#9271) 2025-09-29 17:11:46 +02:00
renovate[bot]
571bc184fd
chore(deps): update all non-major dependencies (#9712)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 04:32:59 +00:00
Lachlan Collins
4cf6a9a2d3
ci(release): do not auto-merge major releases (#9710)
* ci(release): do not auto-merge major releases

* Testing

* Add test changesets

* Undo test changes
2025-09-28 10:41:13 +10:00
github-actions[bot]
dcc7bd9616
ci: Version Packages (#9709) @tanstack/eslint-plugin-query@5.91.0
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-27 23:58:39 +00:00
Lachlan Collins
b72a56fd6a ci(release): try repository dispatch event 2025-09-28 09:56:28 +10:00
Lachlan Collins
18a12cab5f ci(release): add workflow dispatch 2025-09-28 09:42:45 +10:00
Lachlan Collins
245af793d9 ci(release): allow PR creation 2025-09-28 09:12:56 +10:00
Matt Mower
832fac36ab
feat(eslint-plugin): improve type of exported plugin (#9700)
* feat(eslint-plugin): Improve type of exported plugin

Use satisfies operator to verify that the shape of `plugins` matches
`ESLint.Plugin` (the extended version of it) while retaining its actual
shape.

* add changeset

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2025-09-28 09:09:03 +10:00
Lachlan Collins
da9e8bc442 ci(release): attempt to fix condition 2025-09-28 08:59:36 +10:00
Lachlan Collins
1bcdf097a3
ci(release): update changesets auto-merge logic (#9703)
* ci: update changesets auto-merge logic

* Intentionally breaking build

* Undo intentional break

* Remove auto since we don't have auto-merge
2025-09-28 08:54:40 +10:00
Lachlan Collins
5e8fd61126
chore: update @eslint-react/eslint-plugin (#9702)
chore: update eslint-plugin-react
2025-09-28 08:25:02 +10:00
Lachlan Collins
4f4866e270 ci: fix setting npm token 2025-09-27 23:57:02 +10:00
Tanner Linsley
51ca638fac ci: Version Packages @tanstack/eslint-plugin-query@5.90.2 2025-09-27 13:53:08 +00:00
Lachlan Collins
41b3a7849b ci: Add missing token 2025-09-27 23:50:45 +10:00
Fabian Bieler
24a2266ace
fix(eslint-plugin): exhaustive-deps with variables and type assertions (#9643) (#9687)
* fix(eslint-plugin): exhaustive-deps with variables and type assertions (#9643)

Recursively dereference variables and type assertions in query keys.

Also dereference even if the referenced expression is not an array
expression.

* fixup! fix(eslint-plugin): exhaustive-deps with variables and type assertions (#9643)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fixup! fix(eslint-plugin): exhaustive-deps with variables and type assertions (#9643)

* Add changeset

* ci: apply automated fixes

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-09-27 10:22:35 +02:00
renovate[bot]
b01be850cd
chore(deps): update dependency vite to ^4.5.14 [security] (#9636)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-27 12:55:43 +10:00
Lachlan Collins
130382ab8f
ci: switch to nxCloudId (#9697) 2025-09-27 12:50:53 +10:00
Lachlan Collins
93a9d71e91
docs(examples): update star-wars and rick-morty examples (#9696) 2025-09-27 12:31:46 +10:00
Lachlan Collins
8e429262f2
ci: add danielroe/provenance-action (#9693) 2025-09-26 22:53:48 +10:00
Lachlan Collins
89be1895e3
chore: update svelte examples and tests from runes PR 2025-09-26 22:51:17 +10:00
Lachlan Collins
db60bddc96
chore: update eslint-plugin-vue (#9691) 2025-09-26 22:02:02 +10:00
Lachlan Collins
4b40dd9367
fix-versioning (#9690) 2025-09-26 19:55:05 +10:00
Lachlan Collins
2a15f36576
ci: introduce changesets (#9502)
* ci: introduce changesets

* Avoid using changesets/action

* Remove PR permission

* Update PR template

* Update link
2025-09-26 17:32:23 +10:00
Cam Jackson
cd290631ab
docs(react-query): add caveat for typing getQueriesData (#9684) 2025-09-24 14:41:36 +02:00
Tanner Linsley
4d8da1e29e release: v5.90.3 v5.90.3 2025-09-24 11:40:30 +00:00
Kaung Zin Hein
865095ddfe
fix(solid-query): export queryOptions without type errors (#9668)
* fix(solid-query): add missing generic error type

* refactor(solid-query): remove unused generic type

* test(solid-query): add case for error tag

---------

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2025-09-24 13:33:08 +02:00