| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(query-core): exclude fetchStatus from fetching filters (#12390) | 1 天前 | |
fix(query-core): exclude fetchStatus from fetching filters (#12390) | 1 天前 | |
ci(*): add attw --pack for all packages (#7119) Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc> | 2 年前 | |
ci: Version Packages (#12301) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 1 天前 | |
docs({react-query,preact-query,solid-query,svelte-query}/README): point the CI badge at the 'release.yml' workflow on 'main' (#11633) * docs({react-query,preact-query,solid-query,svelte-query}/README): point the CI badge at the 'release.yml' workflow on 'main' * docs({react-query,preact-query,solid-query,svelte-query}/README): add alt text to the release badge | 1 个月前 | |
chore: replace eslint with oxlint (#11938) * chore: replace eslint with oxlint Migrates to oxlint as the replacement linter for eslint. Keeps the existing ruleset, runs js plugins for non-native oxlint rules and the local no-restricted-syntax plugin Svelte packages keep a slim ESLint config for the svelte/* rules, which need the component template. React examples that use the query eslint plugin also still use eslint for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: use oxlint disable directives ESLint no longer lints these files, so switch eslint-disable comments to oxlint-disable and the @typescript-eslint/ prefix to typescript/. Remove directives that oxlint reports as unused, and name the rule in the cspell oxlint-enable comments, which oxlint does not match to a rule-specific disable otherwise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: lint expectTypeOf with vitest valid-expect Oxlint's native vitest/valid-expect only checks `expect` calls, so load @vitest/eslint-plugin as a JS plugin for this rule to keep flagging `expectTypeOf` calls without a matcher, and restore the directives for the intentional ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> | 18 天前 | |
chore(*): pass the root 'settings' to the package oxlint configs, which 'extends' does not inherit (#11941) | 18 天前 | |
ci: Version Packages (#12301) ci: changeset release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 1 天前 | |
chore: replace eslint with oxlint (#11938) * chore: replace eslint with oxlint Migrates to oxlint as the replacement linter for eslint. Keeps the existing ruleset, runs js plugins for non-native oxlint rules and the local no-restricted-syntax plugin Svelte packages keep a slim ESLint config for the svelte/* rules, which need the component template. React examples that use the query eslint plugin also still use eslint for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: use oxlint disable directives ESLint no longer lints these files, so switch eslint-disable comments to oxlint-disable and the @typescript-eslint/ prefix to typescript/. Remove directives that oxlint reports as unused, and name the rule in the cspell oxlint-enable comments, which oxlint does not match to a rule-specific disable otherwise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: lint expectTypeOf with vitest valid-expect Oxlint's native vitest/valid-expect only checks `expect` calls, so load @vitest/eslint-plugin as a JS plugin for this rule to keep flagging `expectTypeOf` calls without a matcher, and restore the directives for the intentional ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> | 18 天前 | |
feat!(svelte-query): rewrite Svelte adapter to use runes (#9694) * WIP: Svelte 5 adapter (#6981) * feat(svelte-query): Improve svelte runes API (#8852) * feat: Draft proposal * chore: Improve reactive containers * ci: apply automated fixes * oops * fix: Update API, add a bunch of tests * merge main * fix: use const * more tests * feat: More tests, back to thunks, fixed svelte-query-persist-client * feat: More tests and examples! * lockfile * fixes * Fix current CI errors * More small fixes/tweaks * Remove test.only * ci: apply automated fixes * Fix pnpm-lock, fix import order * update main docs * feat: More tests * ci: apply automated fixes * add back old tests * Cleanup * Fix persist client * Fix useMutationState --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> * Use sleep from query-test-utils * Simplify test reset logic * Fix some merge conflicts * More fixes * A few more fixes * Fix useMutationState * Add changeset * Add migration docs * Replace Set with SvelteSet * Update minimum svelte version * Bump svelte-eslint-parser * Unwrap createQuery test * fix(svelte-query): `state_unsafe_mutation` error with `useIs...` (#9493) * fix(svelte-query): don't wrap observers in derived to avoid state_unsafe_mutation fixes useIsFetching and useIsMutating in svelte 5 adapter * test(svelte-query): wrap (useIs...) tests in QueryClientProvider to test non colocated query * fix(svelte-query): update observers when passed in query client changes * fix(svelte-query): simplify creatMutation sub/unsub * Refactor result handling in createMutation.svelte.ts Replace derived state with direct state and add watchChanges for result updates. --------- Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> * chore(svelte-query): fix eslint config (#9699) * chore(svelte-query): fix eslint config * Use @typescript-eslint/parser directly * ci: apply automated fixes * Fix sherif * Update docs and changeset * Update keywords --------- Co-authored-by: Zhiheng Zhang <55773069+zhihengGet@users.noreply.github.com> Co-authored-by: Elliott Johnson <sejohnson@torchcloudconsulting.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: David <david@hmnd.io> | 1 年前 | |
docs(query-core): add JSDoc across the package and expose it in generated reference docs (#11438) * docs(query-core): add JSDoc across the package and expose it in generated reference docs * docs(config.json): add sidebar entries for newly generated query-core reference docs * docs(query-core): migrate remaining prose from the legacy 'docs/reference' pages into JSDoc * docs(query-core): remove legacy 'docs/reference' pages superseded by the generated reference * docs(query-core): regenerate reference docs after merging main * docs(query-core): document missing default values for MutationOptions, combine, and QueryFilters.type * fix(query-devtools): drop unnecessary 'query-core' project reference * docs(query-core): document missing default values and normalize 'Defaults to' spacing * docs(query-core): fix 'environmentManager' JSDoc example | 1 个月前 | |
chore(svelte-query*): type check on TS 5.6-5.9 by running 'svelte-check' with each TypeScript version (#11708) * chore(svelte-query*): type check on TS 5.6-5.9 and 7.0 with 'tsconfig.legacy.json' like other packages * chore(svelte-query*): run 'svelte-check' with each TypeScript version for TS 5.6-5.9 instead of 'tsc' * chore(svelte-query*): use descriptive names in the 'svelte-check' TypeScript swap scripts * chore(svelte-query*): fail the versioned type checks when 'svelte-check' does not load the swapped TypeScript | 29 天前 | |
test({svelte-query,svelte-query-devtools,vue-query}): enable 'restoreMocks' and recreate the vue-query spies in 'beforeEach' (#12274) | 5 天前 |

Functions for fetching, caching and updating asynchronous data in Svelte
Enjoy this library? Try the entire TanStack! TanStack Table, TanStack Router, TanStack Virtual
Visit tanstack.com/query for docs, guides, API and more!
Quick Features
- Transport/protocol/backend agnostic data fetching (REST, GraphQL, promises, whatever!)
- Auto Caching + Refetching (stale-while-revalidate, Window Refocus, Polling/Realtime)
- Parallel + Dependent Queries
- Mutations + Reactive Query Refetching
- Multi-layer Cache + Automatic Garbage Collection
- Paginated + Cursor-based Queries
- Load-More + Infinite Scroll Queries w/ Scroll Recovery
- Request Cancellation
- Dedicated Devtools