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

1,134 commits

Author SHA1 Message Date
github-actions[bot]
a6be1cede9
ci: Version Packages (#12391)
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
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
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
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
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
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
Wonsuk Choi
d9029ef465
chore(examples/*/tsconfig): include '*.config.ts' and '*.config.js' like the packages (#12408) 2026-10-27 09:11:08 +09:00
Wonsuk Choi
479a8dbf3c
docs(examples/preact/ssr): add ssr example with prefetching, dependent queries and error handling (#12407)
* docs(examples/preact/ssr): add ssr example

* docs(examples/preact/ssr): prefetch a dependent query and treat the posts as critical content
2026-10-27 00:41:37 +09:00
Wonsuk Choi
bf1de7dc21
refactor(examples/react/algolia): inline the 'useAlgolia' hook that only wraps 'useInfiniteQuery' (#12405) 2026-10-27 00:20:23 +09:00
Wonsuk Choi
7a2bc3c95b
docs(examples/preact/optimistic-updates): add optimistic-updates example (#12404) 2026-10-27 00:16:00 +09:00
Wonsuk Choi
8af7af6f11
docs(examples/preact): add 'auto-refetching', 'pagination', 'load-more-infinite-scroll', 'infinite-query-with-max-pages' and 'prefetching' examples (#12403)
* docs(examples/preact): add 'auto-refetching', 'pagination', 'load-more-infinite-scroll', 'infinite-query-with-max-pages' and 'prefetching' examples

* docs(examples/preact/auto-refetching): share the mocked list across tabs through 'localStorage'
2026-10-27 00:09:32 +09:00
Wonsuk Choi
bb11f3cc82
docs(examples/preact): add 'suspense' and 'batching' examples (#12402) 2026-10-26 23:23:26 +09:00
Wonsuk Choi
b484ddd573
docs(examples/preact): add 'star-wars', 'rick-morty' and 'offline' examples (#12401)
* docs(examples/preact): add 'suspense', 'star-wars' and 'rick-morty' examples

* ci: apply automated fixes

* docs(examples/preact): move 'suspense' out and add 'offline' example

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-26 23:15:51 +09:00
Wonsuk Choi
a075333e4c
docs(examples/preact): add 'shadow-dom' and 'devtools-panel' examples (#12399) 2026-10-26 22:33:32 +09:00
Wonsuk Choi
bf50a62dd0
docs(examples/preact): add 'basic-graphql-request', 'default-query-function', 'playground', 'algolia' and 'chat' examples (#12397)
* docs(examples/preact/basic-graphql-request): add basic-graphql-request example

* docs(examples/preact): add 'default-query-function', 'playground', 'algolia' and 'chat' examples
2026-10-26 22:16:25 +09:00
Wonsuk Choi
7dd898ce2d
chore(examples/preact/basic): update '@tanstack/*' to '^5.105.0' (#12398) 2026-10-26 22:07:05 +09:00
Wonsuk Choi
edbceae5d3
docs(examples/preact/basic): add basic example (#12387) 2026-10-26 21:25:39 +09:00