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

5,550 commits

Author SHA1 Message Date
Wonsuk Choi
0362347c5c
docs(query-core/queryClient): correct the merge order described for 'defaultQueryOptions' and 'defaultMutationOptions' (#11861) 2026-10-04 05:20:23 +09:00
Wonsuk Choi
205d422412
docs(*): add missing JSDoc descriptions and enforce 'jsdoc/require-description' (#11860)
* docs(*): add missing JSDoc descriptions

* chore(eslint.config): enforce 'jsdoc/require-description'
2026-10-04 05:16:10 +09:00
Wonsuk Choi
cbdb21468a
docs(*): replace JSDoc descriptions that only repeat the names and enforce 'jsdoc/informative-docs' (#11859)
* docs(*): replace JSDoc descriptions that only repeat the names

* chore(eslint.config): enforce 'jsdoc/informative-docs'
2026-10-04 05:08:09 +09:00
Wonsuk Choi
0b9949acb9
docs(*): sort JSDoc tags and enforce 'jsdoc/sort-tags' (#11858)
* docs(*): sort JSDoc tags

* chore(eslint.config): enforce 'jsdoc/sort-tags'
2026-10-04 05:03:01 +09:00
Wonsuk Choi
edc38e2d17
docs(framework/*/reference): regenerate reference docs (#11857) 2026-10-04 04:55:10 +09:00
Wonsuk Choi
cada88ab41
docs(*): add missing JSDoc '@throws' tags and enforce 'jsdoc/require-throws' (#11856)
* docs(*): add missing JSDoc '@throws' tags

* chore(eslint.config): enforce 'jsdoc/require-throws'
2026-10-04 04:52:09 +09:00
Wonsuk Choi
6c755231dc
chore(eslint.config): enable the 'jsdoc' rules outside the recommended config that have no violations (#11855) 2026-10-04 04:46:23 +09:00
Wonsuk Choi
327b6b9ab7
chore(eslint.config): extend the error variant of the 'eslint-plugin-jsdoc' recommended config (#11854) 2026-10-04 04:36:16 +09:00
Wonsuk Choi
53899d916f
chore(angular-query-persist-client/eslint.config): remove the package-specific 'jsdoc' rules in favor of the root config (#11853) 2026-10-04 04:36:08 +09:00
Wonsuk Choi
387466debd
chore(eslint.config): use 'extends' for the 'eslint-plugin-jsdoc' recommended config (#11852) 2026-10-04 04:30:16 +09:00
Wonsuk Choi
c074a13ddb
chore(eslint.config): enforce the 'jsdoc' rules that have no remaining violations (#11851) 2026-10-04 04:27:21 +09:00
Wonsuk Choi
fe30a84837
docs(eslint-plugin-query): add missing JSDoc to rule helpers and utilities (#11848) 2026-10-04 04:19:20 +09:00
Wonsuk Choi
6dbbc36963
docs(query-devtools): add missing JSDoc to components, contexts, and utilities (#11847) 2026-10-04 04:18:36 +09:00
Wonsuk Choi
91f5d9b6c3
docs(*): add missing JSDoc to the persisters and the broadcast client (#11846)
* docs(*): add missing JSDoc to the persisters and the broadcast client

* docs(*): describe the broadcast event filters and the restore cleanup errors
2026-10-04 04:17:55 +09:00
Wonsuk Choi
4024a9d03f
docs(angular-query-experimental): add missing JSDoc to 'createBaseQuery' and the mutation state helper (#11845)
* docs(angular-query-experimental): add missing JSDoc to 'createBaseQuery' and the mutation state helper

* docs(angular-query-experimental): note that 'createBaseQuery' keeps functions callable
2026-10-04 04:17:13 +09:00
Wonsuk Choi
29a29bbe12
docs(lit-query): add missing JSDoc to accessors, context errors, and result placeholders (#11844) 2026-10-04 04:16:31 +09:00
Wonsuk Choi
ba341f5a07
docs(react-query): add missing JSDoc to react-query, react-query-next-experimental, and react-query-devtools (#11843)
* docs(react-query): add missing JSDoc to react-query, react-query-next-experimental, and react-query-devtools

* docs(react-query-next-experimental): correct where streamed hydration and HTML insertion happen
2026-10-04 04:15:50 +09:00
Wonsuk Choi
77ff943723
docs(preact-query): add missing JSDoc to preact-query and preact-query-devtools (#11842) 2026-10-04 04:15:08 +09:00
Wonsuk Choi
03786fbb93
docs(solid-query): add missing JSDoc to solid-query and solid-query-devtools (#11841) 2026-10-04 04:12:48 +09:00
Wonsuk Choi
16ae1d0cbd
docs(svelte-query): add missing JSDoc to svelte-query and svelte-query-persist-client (#11840) 2026-10-04 04:12:01 +09:00
Wonsuk Choi
7163033731
docs(vue-query): add missing JSDoc and move '@internal' after the descriptions (#11839) 2026-10-04 04:11:02 +09:00
Wonsuk Choi
8f5a2405e6
chore(eslint.config): exclude '__testfixtures__' from the 'jsdoc' rules (#11850) 2026-10-04 03:36:10 +09:00
Tiago Vilas Boas
03e8c3955d
fix(query-core): start queued scoped mutations while the window is not focused 🤖🤖🤖 (#11679)
fix(query-core): start queued scoped mutations while the window is not focused

A mutation queued behind another one in the same scope is started later
through retryer.continue(), which only resumes when canContinue() is true.
canContinue() requires the window to be focused, so with an unfocused tab
the next mutation stayed paused until the window got focus again.

Resume the initial start pause with canStart() instead, which is the same
check used to start the retryer right away. Retry pauses still use
canContinue().

Fixes #11642

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-03 20:25:15 +02:00
Wonsuk Choi
4bb041f4d9
docs(query-core): add missing JSDoc to mutation, retryer, managers, and infinite query behavior (#11838)
* docs(query-core): add missing JSDoc to mutation, retryer, managers, and infinite query behavior

* docs(query-core/mutation): note that 'continue' rejects when the resumed mutation fails

* docs(framework/*/reference): regenerate reference docs
2026-10-04 02:57:33 +09:00
Wonsuk Choi
ffa2a29b35
docs(query-core/{infiniteQueryObserver,mutationObserver,queriesObserver}): add missing JSDoc to observer methods (#11837)
* docs(query-core/{infiniteQueryObserver,mutationObserver,queriesObserver}): add missing JSDoc to observer methods

* docs(query-core/infiniteQueryObserver): note that 'cancelRefetch: false' can reuse a running fetch in the page fetch return values

* docs(framework/*/reference): regenerate reference docs
2026-10-04 02:56:34 +09:00
Wonsuk Choi
7a3ab9f36e
docs(query-core/timeoutManager): add missing JSDoc to 'TimeoutManager' methods and escape '@tanstack/query-core' (#11836)
* docs(query-core/timeoutManager): add missing JSDoc to 'TimeoutManager' methods and escape '@tanstack/query-core'

* docs(framework/*/reference): regenerate reference docs
2026-10-04 02:55:40 +09:00
Wonsuk Choi
bb2d79a6e2
docs(query-core/hydration): add missing JSDoc to dehydration and hydration functions (#11835)
* docs(query-core/hydration): add missing JSDoc to dehydration and hydration functions

* docs(framework/*/reference): regenerate reference docs
2026-10-04 02:54:47 +09:00
Wonsuk Choi
4ab74a72cf
docs(query-core/queryCache): add missing JSDoc to 'QueryCache' methods (#11834) 2026-10-04 02:53:45 +09:00
Wonsuk Choi
7883ad1102
docs(query-core/mutationCache): add missing JSDoc to 'MutationCache' methods (#11833) 2026-10-04 02:52:54 +09:00
Wonsuk Choi
68e670e1f5
docs(query-core/queryObserver): add missing JSDoc to 'QueryObserver' methods and fetch helpers (#11832) 2026-10-04 02:50:25 +09:00
Wonsuk Choi
7dd8803117
docs(query-core/query): add missing JSDoc to 'Query' members and state helpers (#11831)
* docs(query-core/query): add missing JSDoc to 'Query' members and state helpers

* docs(query-core/query): qualify the 'isStaleByTime' and 'fetch' parameter and return descriptions
2026-10-04 02:48:18 +09:00
Wonsuk Choi
6e16d3946a
docs(query-core/utils): add missing JSDoc to utility functions (#11830)
* docs(query-core/utils): add missing JSDoc to utility functions

* docs(query-core/utils): clarify that 'addToEnd' and 'addToStart' drop at most one item

* docs(framework/*/reference): regenerate reference docs
2026-10-04 02:47:14 +09:00
Wonsuk Choi
ad9a67c0ee
docs(query-core/queryClient): add missing JSDoc '@param' and '@returns' to 'QueryClient' methods (#11829)
* docs(query-core/queryClient): add missing JSDoc '@param' and '@returns' to 'QueryClient' methods

* docs(query-core/queryClient): describe 'select' in the return values of 'query' and 'infiniteQuery'
2026-10-04 02:43:31 +09:00
Wonsuk Choi
57db962344
docs(*): fix JSDoc '@param' names that don't match the parameters and enforce 'jsdoc/check-param-names' (#11828)
* docs(*): fix JSDoc '@param' names that don't match the parameters

* chore(eslint.config): raise 'jsdoc/check-param-names' to error without requiring destructured properties
2026-10-04 01:57:41 +09:00
Wonsuk Choi
9dd8afef53
docs(*): remove blank lines between JSDoc descriptions and tags and enforce 'jsdoc/tag-lines' (#11827)
* docs(*): remove blank lines between JSDoc descriptions and tags

* chore(eslint.config): raise 'jsdoc/tag-lines' from warning to error
2026-10-04 01:34:16 +09:00
Wonsuk Choi
98d63264e6
chore(eslint.config): name the repository config objects under 'tanstack/query' (#11826) 2026-10-04 01:17:19 +09:00
Wonsuk Choi
da60e24c85
chore(eslint.config): apply 'eslint-plugin-jsdoc' recommended rules to non-test source files (#11825)
* chore(eslint.config): apply 'eslint-plugin-jsdoc' recommended rules to non-test source files

* chore(eslint.config): name the 'jsdoc' config object 'tanstack/jsdoc'
2026-10-04 01:14:38 +09:00
Wonsuk Choi
6b42538b18
chore(package.json): update '@cspell/eslint-plugin' to v10.3.6 (#11824) 2026-10-04 00:54:31 +09:00
Wonsuk Choi
040881da82
chore(angular-query-persist-client): update 'eslint-plugin-jsdoc' to v65.0.1 (#11823) 2026-10-04 00:42:55 +09:00
Wonsuk Choi
79d1f22006
chore(eslint-plugin-query): move '@typescript-eslint/rule-tester' to the pnpm catalog (#11822) 2026-10-04 00:27:54 +09:00
Wonsuk Choi
7726974885
chore(*): update 'typescript-eslint' packages to v8.71.0 and '@eslint-react/eslint-plugin' to v5.23.3 (#11821) 2026-10-04 00:16:47 +09:00
Wonsuk Choi
808501b150
chore(package.json): update '@tanstack/eslint-config' to v0.4.0 (#11820) 2026-10-03 23:54:39 +09:00
Wonsuk Choi
5ab1aaeddf
chore(eslint.config): use 'defineConfig' from 'eslint/config' (#11819) 2026-10-03 23:17:10 +09:00
Wonsuk Choi
73e6575c88
chore(preact-query-devtools): replace stale 'root.eslint.config.js' copy with a symlink to the root config (#11818) 2026-10-03 23:03:29 +09:00
Wonsuk Choi
f4c174b24b
test(*): start test titles with 'should' (#11816)
* test(*): start test titles with 'should'

* test(*): start the remaining test titles with 'should'

* test(eslint-plugin-query): start 'it.each' titles with 'should'

* test({react,preact}-query/useSuspenseQueries): fix title to match the assertion that 'TData' excludes 'undefined'
2026-10-03 20:58:09 +09:00
Wonsuk Choi
d7640e36b3
test(lit-query): group declarations, setup, and each action flow with blank lines in tests (#11815)
* test(lit-query): separate setup from the flow that starts with its baseline assertions in tests

* test(lit-query/ssr): keep the server rendering setup together and group reads with their assertions

* test(lit-query): separate element class declarations from the setup in tests

* test(lit-query): separate initial assertions, rerenders, and prefetches from the flows that follow them in tests
2026-10-03 19:57:50 +09:00
Wonsuk Choi
1182a06da7
test(lit-query/createMutationController): add test for not applying updates from the previous client mutation after switching clients (#11805)
* test(lit-query/createMutationController): add test for not applying updates from the previous client mutation after switching clients

* style(lit-query/createMutationController): attach the wait to the preceding assertion
2026-10-03 16:23:41 +09:00
Wonsuk Choi
f14d9b2098
test(lit-query): group each trigger with the waits and assertions that follow it in tests (#11814) 2026-10-03 16:20:46 +09:00
Wonsuk Choi
680773d55b
test(lit-query/createMutationController): add type tests (#11767)
* test(lit-query/createMutationController): add type tests

* test(lit-query/createMutationController): add type test for 'reset'
2026-10-03 15:53:53 +09:00
Wonsuk Choi
28afaa0d19
test(lit-query/createInfiniteQueryController): add type tests (#11766)
* test(lit-query/createInfiniteQueryController): add type tests

* test(lit-query/createInfiniteQueryController): add type tests for 'refetch', 'fetchNextPage', and 'fetchPreviousPage' return types

* test(lit-query/createInfiniteQueryController): move return type tests to the end
2026-10-03 15:52:36 +09:00