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

394 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
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
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
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
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
d7543db621
chore(deps): update 'typescript' to '^6.0.3' across examples and integrations (#12418) 2026-10-27 15:28:33 +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
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
a39a5dc2f0
refactor(examples/svelte/playground): move the data layer into 'services/todos' with query and mutation factories (#12366) 2026-10-26 01:31:46 +09:00
Wonsuk Choi
80fdbd469b
refactor(examples/svelte/{auto-refetching,optimistic-updates}): move the data layer into 'services/todos' with query and mutation factories (#12365) 2026-10-26 01:30:47 +09:00
Wonsuk Choi
fb2e4c55af
refactor(examples/svelte/ssr): move the data layer into 'services/posts' with a query factory (#12364) 2026-10-26 01:19:11 +09:00
Wonsuk Choi
7d9b15ae74
refactor(examples/svelte/{basic,load-more-infinite-scroll,star-wars}): move the data layer into 'services/{domain}' with a query factory (#12363) 2026-10-26 01:19:02 +09:00
Wonsuk Choi
46744e5b05
refactor(examples/svelte/playground): edit the 'initialFilter' prop directly in 'TodosList' to remove the 'state_referenced_locally' warning (#12125) 2026-10-20 02:42:34 +09:00
github-actions[bot]
a8ecc8d42f
ci: Version Packages (#12128)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-19 18:54:46 +02:00
Wonsuk Choi
959f65e2dd
refactor(examples/svelte/optimistic-updates): move the fetchers into 'src/lib/api.ts' and share the todos query with 'queryOptions' (#12124) 2026-10-19 10:39:17 +09:00
Wonsuk Choi
2653d67fd4
refactor(examples/svelte/load-more-infinite-scroll): type the planets response and move the query into 'src/lib/api.ts' with 'infiniteQueryOptions' (#12123) 2026-10-19 10:26:57 +09:00
Wonsuk Choi
ff47e18732
fix(examples/svelte/load-more-infinite-scroll): show 'Loading more...' only while fetching the next page instead of on any background refetch (#12121) 2026-10-19 10:15:53 +09:00
Wonsuk Choi
9e6e51c73c
refactor(examples/svelte/optimistic-updates): infer the 'onError' parameter types instead of 'any' and rename 'context' to 'onMutateResult' (#12120) 2026-10-19 10:15:41 +09:00
Wonsuk Choi
9423149102
fix(examples/svelte/{basic,ssr}): remove the '!postId' check that kept 'Loading...' next to the error for non-numeric post ids (#12119) 2026-10-19 10:15:30 +09:00
Wonsuk Choi
adb932ea11
refactor(examples/svelte/star-wars): type the API responses and share the queries with 'queryOptions' (#12116) 2026-10-19 02:31:54 +09:00
Wonsuk Choi
ae6266d571
fix(examples/svelte/playground): show 'Saved!' only after a successful mutation instead of while idle (#12114) 2026-10-19 02:22:15 +09:00
Wonsuk Choi
a8fe350b8a
fix(examples/svelte/star-wars): throw on non-ok 'fetch' responses in the API functions (#12113) 2026-10-19 02:20:01 +09:00
Wonsuk Choi
3119e0c6a0
refactor(examples/svelte/ssr): read the cached post with 'postQueryOptions(id).queryKey' instead of a hard-coded key (#12112) 2026-10-19 02:13:15 +09:00
Wonsuk Choi
86c01185a0
refactor(examples/svelte/auto-refetching): move the fetchers into 'src/lib/api.ts' and share the todos query with 'queryOptions' (#12111) 2026-10-19 02:11:36 +09:00
Wonsuk Choi
69457a9e57
fix(examples/svelte/optimistic-updates): render 'Background Updating...' instead of a leftover JSX ternary (#12107) 2026-10-19 02:09:49 +09:00
Wonsuk Choi
d8ab863425
refactor(examples/svelte/basic): share the post queries with 'queryOptions' in 'src/lib/queries.ts' (#12110) 2026-10-19 02:09:21 +09:00
Wonsuk Choi
306fcda84d
fix(examples/svelte/optimistic-updates): throw on non-ok responses so a failed create rolls back the optimistic update (#12106) 2026-10-19 02:07:38 +09:00
Wonsuk Choi
d0a1dff1ba
fix(examples/svelte): throw on non-ok 'fetch' responses in the query and mutation functions (#12109) 2026-10-19 02:03:47 +09:00
github-actions[bot]
12199722dc
ci: Version Packages (#12062)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-17 19:51:17 +02:00
Wonsuk Choi
83b0831c27
fix(examples): rename the auto-refetching title from 'stale-time' to 'refetchInterval', which is the option it sets (#12051) 2026-10-17 04:01:34 +09:00
github-actions[bot]
ee47993724
ci: Version Packages (#11998)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-15 09:50:17 +02:00
Wonsuk Choi
a21e17b5e2
chore(examples/svelte/playground): add a flat config and run 'test:eslint' (#12029)
* chore(examples/svelte/playground): add a flat config and run 'test:eslint'

* refactor(examples/svelte/playground): fix lint errors
2026-10-15 15:22:16 +09:00
Wonsuk Choi
9cce260056
fix(examples/svelte/playground): keep unsaved edits out of the query cache and apply the 'staleTime' and 'gcTime' inputs (#11986) 2026-10-15 14:31:10 +09:00
Wonsuk Choi
682e00144f
chore(examples/svelte): add 'test:types' to type-check the examples in CI (#12019) 2026-10-15 09:53:04 +09:00
Wonsuk Choi
8818228c52
fix(examples/svelte/star-wars): type route params with 'PageProps' instead of 'page.params' (#12009) 2026-10-14 10:15:41 +09:00
Wonsuk Choi
ddcde7d5ad
chore(examples): use 'defineConfig' from 'eslint/config' and enable '@ts-check' in 'eslint.config.js' (#12008) 2026-10-14 10:01:19 +09:00
Wonsuk Choi
0fbbc62136
chore(examples/svelte): add a flat config and run 'test:eslint' (#12002)
* chore(examples/svelte): add a flat config and run 'test:eslint'

* refactor(examples/svelte): fix lint errors

* chore(examples/svelte): run 'svelte-kit sync' before 'eslint' in 'test:eslint'
2026-10-13 11:59:48 +09:00
Wonsuk Choi
542a6f03e7
refactor(examples/svelte/ssr): share the post queries between 'load' and components with 'queryOptions' (#11988) 2026-10-13 00:31:19 +09:00
github-actions[bot]
b699b52d60
ci: Version Packages (#11849)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-11 21:32:27 +02:00
github-actions[bot]
29859ae60c
ci: Version Packages (#11806)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-02 12:02:10 +02:00
github-actions[bot]
d4033eb1e5
ci: Version Packages (#11651)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-26 13:53:37 +10:00