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

5,975 commits

Author SHA1 Message Date
github-actions[bot]
a6be1cede9
ci: Version Packages (#12391) release-2026-11-01-1008 @tanstack/query-devtools@5.105.1 @tanstack/query-async-storage-persister@5.105.1 @tanstack/react-query-persist-client@5.105.1 @tanstack/query-core@5.105.1 @tanstack/preact-query-persist-client@5.105.1 @tanstack/preact-query@5.105.1 @tanstack/react-query-next-experimental@5.105.1 @tanstack/angular-query-experimental@5.105.1 @tanstack/query-broadcast-client-experimental@5.105.1 @tanstack/svelte-query-devtools@6.3.7 @tanstack/preact-query-devtools@5.105.1 @tanstack/solid-query-persist-client@5.105.1 @tanstack/svelte-query-persist-client@6.3.7 @tanstack/lit-query@0.2.32 @tanstack/react-query@5.105.1 @tanstack/react-query-devtools@5.105.1 @tanstack/solid-query-devtools@5.105.1 @tanstack/solid-query@5.105.1 @tanstack/vue-query-devtools@6.3.7 @tanstack/query-persist-client-core@5.105.1 @tanstack/vue-query@5.105.1 @tanstack/svelte-query@6.3.7 @tanstack/query-sync-storage-persister@5.105.1 @tanstack/eslint-plugin-query@5.105.1
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-01 11:04:19 +01:00
Wonsuk Choi
ff6c93b7dd
chore(examples): unpin 'nuxt' and remove the 'seroval' overrides now that 'seroval' versions with provenance are available (#12467) 2026-11-01 10:48:35 +09:00
VGontier
8be136b022
fix(query-persist-client-core): discard malformed persisted queries (#11919)
* fix(query-persist-client-core): handle nullish persisted query state

* fix(query-persist-client-core): validate deserialized queries

* fix(query-persist-client-core): validate persisted query fields

* fix(query-persist-client-core): narrow persisted entry validation

---------

Co-authored-by: Vivien Gontier <vivien.gontier@paygreen.fr>
Co-authored-by: Ciarán Curley <ciaran.curley.11.11@gmail.com>
2026-10-31 15:43:35 +00:00
Wonsuk Choi
d88ba6ec46
docs(lit): remove '@tanstack/query-core' and 'lit' from the install commands to install only '@tanstack/lit-query' (#12209)
* docs(lit): remove '@tanstack/query-core' from the install commands since 'lit-query' already depends on it

* docs(lit): remove 'lit' from the install commands since apps using Lit Query already have it
2026-11-01 00:39:26 +09:00
Wonsuk Choi
5c5c11c6e7
fix(lit-query/package.json): remove '@tanstack/query-core' from 'peerDependencies' and move 'lit' to 'devDependencies' (#12189)
* fix(lit-query/package.json): remove '@tanstack/query-core' from 'peerDependencies' since it is already a dependency

* docs(lit): restore the install commands to move them to a separate change

* fix(lit-query/package.json): move 'lit' from 'dependencies' to 'devDependencies' so it is declared only as a peer dependency
2026-11-01 00:38:03 +09:00
Wonsuk Choi
9be2e7049c
test({solid-query,solid-query-persist-client,svelte-query}): access query and mutation results through their object instead of destructuring them (#12464)
* test(solid-query): access query and mutation results through their object instead of destructuring them

* test(svelte-query): access query results through their object instead of destructuring them

* test(svelte-query/createInfiniteQuery): access the error booleans through the query object instead of destructuring them

* test(solid-query-persist-client/PersistQueryClientProvider): access the 'useQueries' result by index instead of destructuring it
2026-10-31 23:57:19 +09:00
Wonsuk Choi
979695d0a2
docs({react,preact,angular,solid,svelte,vue}-query): describe when the 'Defined' and 'Undefined' 'initialData' overloads are selected (#12460)
* docs({react,preact,angular,solid,svelte,vue}-query): describe the 'initialData' overloads as 'known to be defined' and 'omitted or may be undefined'

* docs({react,preact,angular,solid,svelte,vue}-query): regenerate reference docs

* docs({react,preact,angular,solid,svelte,vue}-query): mention an 'initialData' function that may return 'undefined' in the 'Undefined' overload descriptions

* docs({react,preact,angular,solid,svelte,vue}-query): regenerate reference docs
2026-10-30 16:41:25 +09:00
Wonsuk Choi
69fcbad72b
fix(examples/vue/algolia): replace recursive 'Hit' type to avoid excessively deep type instantiation in 'useInfiniteQuery' (#12461) 2026-10-30 10:38:45 +09:00
Wonsuk Choi
7ccba6e959
fix({react,preact,angular,solid,vue}-query/infiniteQueryOptions): correct the overload selected for a possibly-undefined 'initialData' (#11373)
* fix({react,preact,angular}-query): remove erroneous '| undefined' from 'DefinedInitialDataInfiniteOptions'

* test({react,preact,angular}-query/infiniteQueryOptions): use a non-literal condition for the ternary 'initialData' test

* fix({solid,vue}-query): accept a possibly-undefined 'initialData' in 'UndefinedInitialDataInfiniteOptions'

* fix(vue-query/infiniteQueryOptions): declare the 'Defined' overload first so a defined 'initialData' still selects it

* docs({react,preact,angular,solid,vue}-query): drop generated reference doc changes, regenerated by autofix after merge

* chore(.changeset): align the message with the PR title

* docs({react,preact,angular,solid,vue}-query/infiniteQueryOptions): describe overload selection by whether 'initialData' is known to be defined

* docs(framework/*/reference): regenerate reference docs

* docs(framework): restore the generated reference docs from main and leave them to autofix

* docs({react,preact,angular,solid,vue}-query): regenerate reference docs

* test({react,preact,angular,solid,vue}-query/infiniteQueryOptions): start test titles with 'should'
2026-10-30 10:06:32 +09:00
Wonsuk Choi
b9f369a23a
fix(solid-query/{queryOptions,useQuery}): correct the overload selected for 'initialData' (#11595)
* fix(solid-query/{queryOptions,useQuery}): correct the overload selected for 'initialData'

* ci: apply automated fixes

* docs(framework/*/reference): regenerate reference docs

* ci: apply automated fixes

* test(solid-query/queryOptions): assert the 'useQuery' data type when 'initialData' may be undefined

* docs(solid-query): regenerate reference docs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-30 09:58:02 +09:00
Wonsuk Choi
c9c00015ef
docs(examples): add router and framework suffix to 'docs/config.json' labels and 'package.json' names (#12458)
* docs(examples): add router and framework suffix to 'docs/config.json' labels and 'package.json' names

* docs(examples): distinguish Next.js App/Pages Router and Nuxt/SolidStart major versions in example labels and names
2026-10-30 01:50:34 +09:00
Wonsuk Choi
007127748a
fix(examples/{react,preact}/auto-refetching): encode 'add' query parameter with 'encodeURIComponent' (#12457) 2026-10-30 01:23:06 +09:00
Wonsuk Choi
127cbf9922
docs(examples/lit): add 'auto-refetching', 'infinite-query-with-max-pages', 'load-more-infinite-scroll', 'optimistic-updates' and 'prefetching' examples (#12456)
* docs(examples/lit): add 'auto-refetching', 'infinite-query-with-max-pages', 'load-more-infinite-scroll', 'optimistic-updates' and 'prefetching' examples

* fix(examples/lit/auto-refetching): encode 'add' query parameter with 'encodeURIComponent'
2026-10-30 01:04:56 +09:00
Wonsuk Choi
8de245ba16
docs(examples/lit): add 'batching' and 'offline' examples (#12455) 2026-10-30 00:14:24 +09:00
Wonsuk Choi
af78ace5c4
docs(examples/lit): add 'star-wars' and 'rick-morty' examples with '@lit-labs/router' (#12453) 2026-10-29 19:27:22 +09:00
Wonsuk Choi
744cb2cb2e
docs(examples/lit): add 'simple', 'basic-graphql-request', 'default-query-function', 'playground', 'algolia' and 'chat' examples (#12451) 2026-10-29 17:27:14 +09:00
Wonsuk Choi
1fa2f1bba1
chore(oxlint.config): add 'vueConfig' with native 'vue' rules for 'vue-query' and 'vue-query-devtools' (#12450) 2026-10-29 15:25:01 +09:00
Wonsuk Choi
7b73668a61
chore(examples/vue): add 'eslint-plugin-vue' and 'eslint-config-prettier' to all examples and '@nuxt/eslint' to Nuxt examples (#12449)
* chore(examples/vue): add 'eslint-plugin-vue' and 'eslint-config-prettier' to all examples and '@nuxt/eslint' to Nuxt examples

* refactor(examples/vue): rename single-word components and hyphenate template attributes and events
2026-10-29 15:16:37 +09:00
Wonsuk Choi
52d7fd34a5
docs(examples/vue): replace 'nuxt3' with 'simple-nuxt3' and 'simple-nuxt4' examples and include them in the workspace (#12448) 2026-10-29 14:06:04 +09:00
Wonsuk Choi
259de1d810
chore(deps): update 'vite' to '^8.3.5', deduplicate 'pnpm-lock.yaml' and remove 'vite@6.4.1' from 'trustPolicyExclude' (#12446) 2026-10-29 12:48:15 +09:00
Wonsuk Choi
fdb7692e83
docs(examples/vue): add 'pagination', 'auto-refetching', 'load-more-infinite-scroll', 'infinite-query-with-max-pages', 'prefetching' and 'optimistic-updates' examples with Nuxt (#12445) 2026-10-29 12:08:10 +09:00
Wonsuk Choi
ff41bb21c6
docs(examples/vue): add 'suspense', 'batching' and 'offline' examples (#12444) 2026-10-29 11:38:33 +09:00
Wonsuk Choi
5aa553880a
docs(examples/vue): add 'star-wars', 'rick-morty' and 'vue-router' examples (#12439) 2026-10-29 10:25:46 +09:00
Wonsuk Choi
e423d30ae0
docs(examples/vue): add 'basic-graphql-request', 'default-query-function', 'devtools-panel', 'playground', 'shadow-dom', 'algolia' and 'chat' examples (#12438) 2026-10-28 19:18:28 +09:00
Wonsuk Choi
ec7bcd4ed1
fix(examples/chat): pass the query 'signal' to 'streamFn' so refetching cancels the previous stream (#12437) 2026-10-28 17:22:17 +09:00
Wonsuk Choi
9d61f1e43e
fix(examples): remove horizontal overflow in 'shadow-dom' and make character selection keyboard accessible in 'prefetching' (#12436) 2026-10-28 17:10:27 +09:00
Wonsuk Choi
3185bcf97c
fix(examples): validate ids, handle HTTP and loader errors, and show watchers and unknown locations correctly (#12435)
* fix(examples): validate ids, handle HTTP and loader errors, and show watchers and unknown locations correctly

* fix(examples/{batching,prefetching}): disable loading while input is invalid and reject non-decimal character ids
2026-10-28 16:56:52 +09:00
Wonsuk Choi
5f37e7cb6b
refactor(svelte): declare '$props()' with 'let' and type them with 'Props', 'LayoutProps' and 'PageProps' in examples and tests (#12434)
* refactor(examples/svelte): declare '$props()' with 'let' and type them with 'Props', 'LayoutProps' and 'PageProps'

* test(svelte-query,svelte-query-persist-client): declare '$props()' with 'let' and type them with 'Props'

* refactor(svelte-query/HydrationBoundary): declare '$props()' with 'let'
2026-10-28 16:06:44 +09:00
Wonsuk Choi
b2ed952200
docs(examples/svelte): add 'pagination', 'prefetching' and 'infinite-query-with-max-pages' examples (#12432) 2026-10-28 15:35:46 +09:00
Wonsuk Choi
2a7e3cc5e0
docs(examples/svelte): add 'batching' and 'offline' examples (#12431) 2026-10-28 14:51:48 +09:00
Wonsuk Choi
e8770f5d21
docs(examples/svelte): add 'rick-morty' and 'sveltekit' examples (#12430) 2026-10-28 13:57:37 +09:00
Wonsuk Choi
9d1e2de1d7
docs(examples/svelte): add 'basic-graphql-request', 'default-query-function', 'shadow-dom', 'algolia' and 'chat' examples (#12429)
* docs(examples/svelte): add 'basic-graphql-request', 'default-query-function', 'shadow-dom', 'algolia' and 'chat' examples

* docs(examples/svelte): declare '$props()' with 'let' in the new examples

* docs(examples/svelte/{basic-graphql-request,default-query-function}): prevent the hash navigation on the post links
2026-10-28 13:27:02 +09:00
Wonsuk Choi
158a5868cd
docs(examples/solid): add 'pagination', 'auto-refetching', 'prefetching' and 'optimistic-updates' examples with SolidStart (#12428)
* docs(examples/solid): add 'pagination', 'auto-refetching', 'prefetching' and 'optimistic-updates' examples with SolidStart

* docs(examples/solid/{pagination,optimistic-updates}): keep query errors inside the 'ErrorBoundary'
2026-10-28 12:16:21 +09:00
Wonsuk Choi
2d5e6fcfc5
docs(solid): remove the leftover 'suspense' function and option mentions from the 'suspense' guide and quick start (#12427) 2026-10-28 11:05:13 +09:00
Wonsuk Choi
e54f6ff5e3
docs(examples/solid): add 'suspense' and 'batching' examples (#12426) 2026-10-28 11:05:04 +09:00
Wonsuk Choi
19d8572b55
refactor({examples,integrations}): replace the deprecated 'prefetchQuery' with 'query' (#12425) 2026-10-28 10:40:45 +09:00
Wonsuk Choi
ce2febdacb
docs(examples/solid): add 'star-wars', 'rick-morty' and 'solid-router' examples (#12424) 2026-10-28 10:32:33 +09:00
Wonsuk Choi
35ee52aca8
docs(examples/solid): add 'devtools-panel', 'shadow-dom', 'playground', 'algolia' and 'chat' examples (#12423) 2026-10-28 10:11:54 +09:00
Wonsuk Choi
2941a23d57
chore(deps): unify and update '@eslint-react/eslint-plugin', 'eslint', 'svelte-check', 'vue-tsc' and '@tanstack/vue-query' versions (#12421)
* chore(deps): unify and update '@eslint-react/eslint-plugin', 'eslint', 'svelte-check', 'vue-tsc' and '@tanstack/vue-query' versions

* chore(pnpm-lock): run 'pnpm dedupe'
2026-10-27 21:14:48 +09:00
Wonsuk Choi
a02b77cb5f
chore(examples/react/react-native): upgrade '@react-navigation' to v7, update 'react-native-paper' and remove unused '@babel/core' and '@expo/config' (#12420) 2026-10-27 20:33:43 +09:00
Kazbek Askarov
db79da70ed
fix(query-persist-client-core): catch errors when persisting in 'persistQueryClientSubscribe' to prevent unhandled promise rejections, and log them in development (#11678)
* fix(query-persist-client-core): catch errors when persisting in 'persistQueryClientSubscribe' to prevent unhandled promise rejections, and log them in development

* test(query-persist-client-core): fix mock lint violations

---------

Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
2026-10-27 10:18:55 +01:00
Dominik Dorfmeister 🔮
ec19101885
fix(eslint-plugin-query): detect unstable clients in arrow functions and JSX (#12409) 2026-10-27 09:59:24 +01:00
Wonsuk Choi
d7543db621
chore(deps): update 'typescript' to '^6.0.3' across examples and integrations (#12418) 2026-10-27 15:28:33 +09:00
Wonsuk Choi
09fccfd094
chore(examples/react/react-native): upgrade to Expo SDK 58 and resolve 'expo-doctor' issues (#12417) 2026-10-27 14:55:18 +09:00
Wonsuk Choi
7900495c68
chore(examples/react/{react-router,rick-morty,star-wars}): upgrade 'react-router' to v8 (#12416) 2026-10-27 12:23:58 +09:00
Wonsuk Choi
f2c914ef80
chore(deps): update 'react', 'react-dom' and their types across examples and integrations (#12414)
* chore(deps): update 'react' and 'react-dom' to '^19.2.7' across examples and integrations

* chore(examples/react/shadow-dom): update '@types/react' and '@types/react-dom' to match the catalog

* chore(deps): update '@types/react' and '@types/react-dom' to '^19.3.0'

* chore(deps): update 'react' and 'react-dom' to '^19.3.1' to match their types

* chore(examples/react/react-native): pin 'react' and 'react-dom' to '19.2.3' to match Expo SDK 57
2026-10-27 12:09:50 +09:00
Wonsuk Choi
ff8bdaffc9
fix(examples/preact/{ssr,ssr-streaming}): only send the error stack in development (#12413) 2026-10-27 10:42:25 +09:00
Wonsuk Choi
ab2a7198bb
docs(preact): add a streaming section to the SSR guide and an 'ssr-streaming' example (#12412) 2026-10-27 10:38:25 +09:00
Wonsuk Choi
389769c2c3
chore(examples/react/{react-router,rick-morty,star-wars}): upgrade to React Router v7 and import from 'react-router' (#12411) 2026-10-27 10:00:04 +09:00
Wonsuk Choi
378e950827
chore(examples): remove the unused 'query-core' dependency from lit and render the devtools in algolia (#12410) 2026-10-27 09:48:07 +09:00