* test(vue-query/{useQuery,useQueries,mutationOptions}): add tests for the 'shallow' option
* test(vue-query/{useQuery,useQueries,mutationOptions}): add tests for deeply reactive and readonly results when 'shallow' is not set
* test(vue-query/{useMutation,mutationOptions}): move the 'useMutation' 'shallow' tests to 'useMutation.test.ts'
* test(vue-query/useMutation): add test for stopping listening to changes on 'onScopeDispose'
* test(vue-query/useMutation): assert the mutation actually runs in the 'onScopeDispose' test with 'isMutating'
* docs(svelte-query/useMutationState): replace 'hook instance' with 'createMutation' call in JSDoc
* docs(svelte-query/useMutationState): align the JSDoc description with the other adapters
* docs(svelte-query): add package README
Every other adapter (react, preact, solid, vue, lit, angular) ships a
README; svelte-query did not, so its npm page is empty. Copied from
solid-query, which uses the ci badge that still resolves.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* docs(svelte-query): fix the CI link encoding and point the downloads badge at this package
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* docs(svelte-query/README): replace 'Primitives' with 'Functions' in the description
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
* test(vue-query/useMutation): assert the error watcher throw on both Vue 2 and Vue 3
* test(vue-query/useMutation): remove the 'unhandledRejection' listener in 'onTestFinished' so it does not leak when the test fails
* test(vue-query/useMutation): assert the 'unhandledRejection' listener receives the rejected promise with 'expect.any(Promise)'
* test(vue-query/useQuery): assert the 'suspense' result in the enabled, default and 'throwOnError' tests
* test(vue-query/useQuery): remove the 'unhandledRejection' listener in 'onTestFinished' so it does not leak when the test fails
* fix(svelte-query/{createQuery,queryOptions}): correct the overload selected for 'initialData'
* test(svelte-query/queryOptions): use a non-literal condition instead of a wrapper function in the optional 'initialData' object test
* fix(vue-query): widen 'SkipToken' to 'symbol' so it type-checks inside a whole-options getter
* chore(vue-query): add changeset for 'SkipToken' widening fix
* test(vue-query/useQuery): document that widening 'SkipToken' also accepts unrelated symbols
* fix(vue-query): unify 'UseQueryOptions' with 'QueryOptions' so 'queryFn' accepts a 'computed' resolving to 'skipToken'
* test(vue-query): add runtime coverage for 'skipToken' and bare-getter 'queryKey' across 'useQuery'/'useQueries'/'useInfiniteQuery'
* fix(vue-query): narrow 'queryOptions()' input back to only 'enabled'/'queryKey'/'queryFn' reactive
* test(vue-query/useQuery): verify 'TQueryFnData' inference for a computed 'queryFn' resolving to 'skipToken'
* test(vue-query): fill remaining type-coverage gaps for reactive 'queryFn'/'queryKey' and 'queryOptions()' input narrowing
* test(vue-query/queryOptions): verify skipToken ternary inside a whole-options getter
* test(vue-query/useQueries): import 'reactive' from 'vue' and 'computed'/'ref' from 'vue-demi'
* test(vue-query): downgrade 'computed' 'queryFn' assertions 'vue-tsc' can't resolve to 'assertType'
* chore(vue-query): shorten changeset summary to match PR title
* fix(vue-query/infiniteQueryOptions): separate plain output type from reactive input and allow a bare getter for 'queryKey'
* fix(vue-query/index): export 'InfiniteQueryOptions'
* fix(vue-query): restore 'enabled' plain-callback support on 'infiniteQueryOptions'
Narrowing 'InfiniteQueryOptions' to match 'QueryOptions' had also copied its
narrower 'enabled' union, which drops the plain '(query) => boolean' callback
that 'InfiniteQueryObserverOptions' allows. Restore 'enabled' to source from
'InfiniteQueryObserverOptions' directly so all four shapes keep working.
* docs(vue-query): correct inaccurate test comments flagged by CodeRabbit
The 'unrelated symbol' comment on 'useQuery.test-d.ts' claimed it behaves like
'skipToken' at runtime, but 'ensureQueryFn' only identity-checks the exact
'skipToken' value and returns anything else verbatim, so an unrelated symbol
throws once invoked as a function. Also note why the '@ts-expect-error' in
'queryOptions.test-d.ts' sits on 'queryKey' rather than 'staleTime': overload
resolution fails on the whole object literal, and TypeScript reports it at the
first property.
* chore(vue-query): re-sync changeset summary with PR title
The 'infiniteQueryOptions()' narrowing clause got appended to the changeset
only, drifting it back over the 100-char limit and out of sync with the PR
title again. The title's 'align queryOptions/infiniteQueryOptions input'
already covers it.
* test(vue-query/{useQuery,useQueries,useInfiniteQuery}): align the 'skipToken' and whole-'queryKey' getter tests with their neighboring tests
* test(vue-query/{useQuery,useQueries,useInfiniteQuery}): use a real 'sleep(10)' delay in the new 'skipToken' and whole-'queryKey' getter tests
* test(vue-query/{useQuery,useInfiniteQuery}): drop the whole-options getter 'skipToken' test and the 'useInfiniteQuery' whole-'queryKey' getter test
* docs({react,preact}-query): fix a missing 'noop' import, a link, and typos in the SSR guide
* docs(react-query): fix subject-verb agreement in the SSR guide's waterfall section
The server-side example in the SSR guide checked `user?.userId` and then
referenced an undeclared `userId` variable. Align it with the client-side
example above it (and the Preact guide) by using `user?.id` / `user.id`.
docs(vue): fix typo 'loosing' -> 'losing' in v5 migration guide
Correct the spelling of 'losing' in the v5 migration guide for the Vue
adapter. 'Loosing' means 'to release/unfasten', while 'losing' means
'to be deprived of' — the latter is the intended meaning here.
Co-authored-by: haimingZZ <haimingZZ@users.noreply.github.com>
Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
* docs(svelte-query/{createInfiniteQuery,infiniteQueryOptions}): describe overload selection by whether 'initialData' is known to be defined
* docs(svelte-query): regenerate reference docs
* docs(solid-query): add SSR guide for SolidStart
* ci: apply automated fixes
* docs(solid-query): fix misleading 'staleTime' comment in SSR guide's 'app.tsx' example
* docs(solid-query): drop inaccurate 'gcTime' aside from the SSR guide's memory note
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix(svelte-query-devtools): update the devtools instance when options change after mount
* test(svelte-query-devtools/Devtools): add missing 'setTheme' mock and coverage
---------
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>