Releasestanstack-fetch 1.6.3: migrate from axios, ky, ofetch, fetch
CLI that scans axios, ky, ofetch, $fetch, and fetch call sites, applies safe rewrites for TanStack Query, and scaffolds React, Vue, Nuxt, or Next.js.
Read the postOctober 9, 2026
createFetch was always framework-agnostic. 1.7.0 ships real adapters for Solid, Angular, and Svelte — plus a health-check CLI and a docs Framework picker.
npm install tanstack-fetch@1.7.0| Import | API |
|---|---|
tanstack-fetch/solid | FetchProvider, useFetch, useSse |
tanstack-fetch/svelte | setFetchClient, useFetch, useSse |
tanstack-fetch/angular | provideFetchClient, injectFetch, useSse (signals) |
Same SSE status model as React/Vue: connecting | connected | disconnected | error. Guides: Solid · Angular · Svelte.
npx tanstack-fetch doctor --dir ./src
# alias
npx tanstack-fetch --doctor --dir ./srcChecks package.json (tanstack-fetch, legacy axios/ky/ofetch, detected frameworks), counts createFetch call sites, flags leftover legacy imports, and warns when a queryFn looks like it skips AbortSignal.
npx tanstack-fetch migrate --from axios --framework solid --write
npx tanstack-fetch migrate --from axios --framework angular --write
npx tanstack-fetch migrate --from fetch --framework svelte --write
npx tanstack-fetch migrate --from fetch --framework sveltekit --write| Framework | Query adapter | Notes |
|---|---|---|
solid | @tanstack/solid-query | api.ts + query options |
angular | @tanstack/angular-query-experimental | src/app/api.ts |
svelte | @tanstack/svelte-query | src/lib/api.ts |
sveltekit | @tanstack/svelte-query | + api.server.ts with ssr-forward |
In the site header, choose a stack (default All). Multi-framework pages (SSE, tRPC, examples) hide sections that do not match. Preference is stored in localStorage.
npx tanstack-fetch doctor --dir ./src
npx tanstack-fetch migrate --from all --framework solid --write
Releases·2 min read
CLI that scans axios, ky, ofetch, $fetch, and fetch call sites, applies safe rewrites for TanStack Query, and scaffolds React, Vue, Nuxt, or Next.js.
Releases·11 min read
tanstack-fetch 2.2.1 fixes 31 bugs: relative baseUrl, createTRPCFetch from npm, SSE reconnects with Last-Event-ID, SSR leaks in Svelte and Vue, a DevTools XSS.
Releases·3 min read
tanstack-fetch 2.1.0: abort during a retry delay, literal colons in paths, a safer refresh-token race, no stream-body retries, plus array query values.