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

663 commits

Author SHA1 Message Date
Wonsuk Choi
cb62f4f2ed
chore(*): adopt '@tanstack/oxlint-config' and '@tanstack/oxfmt-config', and fix the newly reported lint errors (#12555)
* chore(*): adopt '@tanstack/oxlint-config' and '@tanstack/oxfmt-config', and fix the newly reported lint errors

* chore(pnpm-lock.yaml): run 'pnpm dedupe'

* chore(scripts): move 'oxlint/plugin.ts' to 'oxlint-plugin.ts' to match the flat layout of 'scripts'

* chore(pnpm-workspace.yaml): update '@typescript-eslint/parser' and '@typescript-eslint/rule-tester' to '^8.72.1' to match the deduped '@typescript-eslint/utils'
2026-11-16 22:25:25 +09:00
Wonsuk Choi
19f555cf91
docs(examples): use each framework's template '.gitignore' in every example (#12592) 2026-11-13 10:57:29 +09:00
Wonsuk Choi
70441f460d
docs(examples): rewrite the READMEs, add the framework or router to example titles, and rename examples to '<feature>-<framework>' (#12583)
* docs(examples): describe each example in its README with a summary, the framework it is built with, how it works and the npm commands

* docs(examples): add the framework or router to the README heading and page title of examples that have variants

* docs(examples/react): rename the Next.js examples to '<feature>-nextjs-<pages|app>-router'

* docs(examples/react): update package names, docs links and labels, and the lockfile for the renamed Next.js examples

* docs(examples): rename 'svelte/sveltekit', 'solid/solid-start-streaming' and 'angular/router' to '<feature>-<framework>'

* docs(examples): correct README details on staleness, hydration, 'hasMore', streaming and dependent queries, and prefetch on 'focusin' in 'vue/prefetching-nuxt4'
2026-11-12 16:58:15 +09:00
Wonsuk Choi
78a970ad03
docs(examples): unify page titles to 'TanStack <Framework> Query <Name> Example' and remove scaffold leftovers (#12580) 2026-11-12 14:54:59 +09:00
Wonsuk Choi
e55c775411
docs(examples/react/{basic-graphql-request,contacts-react-router}): add the missing 'vite.config.ts' so '@vitejs/plugin-react' is loaded (#12579) 2026-11-12 13:49:04 +09:00
Wonsuk Choi
792f820296
docs(examples): use the TanStack Query emblem as the favicon in every example (#12578) 2026-11-12 13:33:29 +09:00
github-actions[bot]
3875d1d196
ci: Version Packages (#12543)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-07 00:00:45 +01:00
github-actions[bot]
d01e3589b4
ci: Version Packages (#12535)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-06 22:16:22 +01:00
github-actions[bot]
284abac02d
ci: Version Packages (#12526)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-05 09:04:46 +01:00
github-actions[bot]
925168e015
ci: Version Packages (#12501)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-04 21:07:35 +01:00
Dominik Dorfmeister 🔮
b1243facc8
chore(deps): update security dependencies in examples and integrations (#12509) 2026-11-03 13:48:03 +01:00
github-actions[bot]
7bf1e0f7d7
ci: Version Packages (#12498)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-02 21:34:31 +01:00
github-actions[bot]
d6b2b643f6
ci: Version Packages (#12476)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-02 14:52:11 +01:00
Wonsuk Choi
59d11de870
refactor(examples): replace 'sort-by', 'localforage' and 'font-awesome' with built-in code (#12490)
* refactor(examples): replace 'sort-by' with an inline comparator in the contacts examples

* refactor(examples): replace 'localforage' with 'localStorage' in the contacts examples

* refactor(examples): replace 'font-awesome' with a CSS module spinner in the suspense examples

* refactor(examples): respect 'prefers-reduced-motion' in the suspense spinners
2026-11-02 14:19:40 +09:00
Wonsuk Choi
4c04707036
docs(examples): debounce search inputs with TanStack Pacer in the 'algolia' and contacts examples (#12488) 2026-11-02 03:40:31 +09:00
Wonsuk Choi
73c5686de7
docs(examples/{react,solid,vue}): add offline examples for TanStack Router, React Router and Solid Router, and replace the discontinued '@tanstack/react-location' (#12483)
* docs(examples/react/offline): replace the discontinued '@tanstack/react-location' with '@tanstack/react-router' and rename it to 'offline-tanstack-router'

* docs(framework/{vue,preact,angular}/guides/mutations): point the offline example link to each adapter's own example

* docs(examples/{solid,vue}/offline-tanstack-router): use TanStack Router for the offline example, replacing the router-less Solid one and adding one for Vue

* docs(examples/react/offline-react-router): add offline example with React Router

* docs(examples/solid/offline-solid-router): add offline example with Solid Router
2026-11-02 01:49:54 +09:00
Wonsuk Choi
4223498dce
fix(examples/{react,solid,vue}/contacts-*): wait for the seed before reading contacts and separate the unfiltered list key from a search for 'all' (#12482) 2026-11-02 00:44:11 +09:00
Wonsuk Choi
1592c906ab
docs(examples/{react,solid,vue}): add 'contacts-tanstack-router' example and rename router examples to 'contacts-<router>' (#12459)
* chore(oxfmt.config): ignore generated 'routeTree.gen.ts'

* docs(examples/{react,solid,vue}): add 'contacts-tanstack-router' example and label router examples as 'Contacts'

* docs(examples/{react,solid,vue}): rename router examples to 'contacts-<router>' to match their 'Contacts' labels

* chore(examples/{react,solid,vue}/contacts-tanstack-router): align '@tanstack' query package ranges with other examples and dedupe 'seroval'

* refactor(examples/solid/contacts-tanstack-router): inline 'queryClient' into 'index.tsx'

* docs(config.json): list 'Contacts (TanStack Router)' before the other router contacts examples
2026-11-02 00:31:55 +09:00
Wonsuk Choi
92c41c0594
refactor(examples/react/nextjs-app-optimistic-updates): type the form submit handlers with 'React.SubmitEvent' instead of the deprecated 'React.FormEvent' (#12095)
* refactor(examples/react/nextjs-app-optimistic-updates): type the form submit handlers with 'React.SubmitEvent' instead of the deprecated 'React.FormEvent'

* chore(examples/react/nextjs-app-optimistic-updates/package.json): raise the '@types/react' minimum to '^19.2.10' for 'React.SubmitEvent'
2026-11-01 22:35:41 +09:00
Wonsuk Choi
14ac12ed63
docs(examples): add router and framework suffix to example directories to match their 'package.json' names (#12473)
* docs(examples): add router and framework suffix to example directories to match their 'package.json' names

* docs(svelte): update example links to the renamed 'basic-sveltekit' and 'ssr-sveltekit' directories
2026-11-01 19:39:04 +09:00
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
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
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
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
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
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
bf1de7dc21
refactor(examples/react/algolia): inline the 'useAlgolia' hook that only wraps 'useInfiniteQuery' (#12405) 2026-10-27 00:20:23 +09:00
github-actions[bot]
5cc606e2e8
ci: Version Packages (#12301)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-26 10:28:34 +01:00
Wonsuk Choi
06d1705a58
chore(deps): update '@typescript-eslint/*' to '^8.72.0' in the catalog and examples (#12388) 2026-10-26 16:33:55 +09:00
Wonsuk Choi
2b5b6417fa
chore(examples/*/eslint.config): use 'flat/recommended-strict' from '@tanstack/eslint-plugin-query' (#12385) 2026-10-26 02:55:51 +09:00
Wonsuk Choi
772bd1144e
refactor(examples/react/nextjs-suspense-streaming): move the data layer into 'services/wait' with a query factory (#12384) 2026-10-26 02:41:20 +09:00
Wonsuk Choi
437d3bec76
style(examples): write durations in 'count * unit * 1000' order (#12383) 2026-10-26 02:29:26 +09:00
Wonsuk Choi
f69600ae69
refactor(examples/{react,solid}/offline): inline 'useMovie' into the 'Detail' component (#12379) 2026-10-26 02:15:18 +09:00
Wonsuk Choi
a52f4e9777
refactor(examples/react/{basic,basic-graphql-request,eslint-legacy,nextjs,nextjs-suspense-streaming}): inline custom hooks that only wrap 'useQuery' or 'useSuspenseQuery' (#12377) 2026-10-26 02:15:02 +09:00
Wonsuk Choi
516b870c9c
refactor(examples/react/{nextjs-app-optimistic-updates,nextjs-app-prefetching}): move the data layer into 'services/{domain}' with a query factory (#12356) 2026-10-26 00:11:30 +09:00
Wonsuk Choi
db886cee9e
refactor(examples/react/{offline,react-router}): move the data layer into 'services/{domain}' with a query factory (#12355) 2026-10-26 00:11:22 +09:00
Wonsuk Choi
dce0498872
refactor(examples/react/{auto-refetching,playground}): move the data layer into 'services/todos' with query and mutation factories (#12354) 2026-10-26 00:11:13 +09:00
Wonsuk Choi
f99c6e3e45
refactor(examples/react/{batching,chat,react-native}): move the data layer into 'services/{domain}' with a query factory (#12353) 2026-10-26 00:11:05 +09:00
Wonsuk Choi
88018e578a
refactor(examples/react/{rick-morty,star-wars}): move the data layer into one 'services/{domain}' folder per resource with a query factory (#12352) 2026-10-26 00:10:52 +09:00
Wonsuk Choi
1028a29774
refactor(examples/react): move the data layer of the pagination and infinite query examples into 'services/{domain}' with a query factory (#12351) 2026-10-26 00:10:43 +09:00