@ai-sdk/svelte
The official adapter package for the Vercel AI SDK targeting the Svelte framework. It wraps the AI SDK's streaming state as Svelte stores or reactive variables, enabling rapid integration of AI capabilities such as chat and text completion into Svelte applications.
Core Facts
If the versions of @ai-sdk/vue and ai in a project are not aligned, type mismatches or runtime behavior differences may occur.
AI SDK's framework adapter packages keep their patch version numbers aligned with the core package (for example, ai@7.0.140 corresponds to @ai-sdk/svelte@5.0.140).
@ai-sdk/xai@3.0.134 was automatically built by GitHub Actions.
Timeline (last 90 days)
An implicit interface contract exists between @ai-sdk/svelte and the core package ai, so when the core package's internal APIs are fine-tuned the adapter package must be released in sync to keep types and runtime behavior consistent.
The Svelte package is the wrapper layer of the Vercel AI SDK for the Svelte framework.
@ai-sdk/svelte's 5.x and ai's 7.x do not share the same major version number; the adapter package pins the compatible range of the core package through its own dependency declaration, and developers should not directly assume that the major version numbers of the two correspond one-to-one.
@ai-sdk/vue's dependency structure runs on two parallel lines: it depends on the ai core package and on the @ai-sdk/provider-utils utility layer.
The original release page does not detail which specific issues ai@7.0.180 fixes.
In terms of upgrade cost, patch versions carry lower risk; the usual practice is to update the version number in package.json and reinstall dependencies, then run existing tests to verify key paths such as streaming conversations and tool calls.
Whether future versions will introduce Svelte 5-related new features or API adjustments is not reflected in the current release notes.
@ai-sdk/svelte is the adapter layer for the Svelte framework and needs to stay version-synchronized with the core package ai to ensure that capabilities such as streaming responses, tool calls and structured output work properly.
This release cumulatively merged 3584 commits into the main branch.
The adapter package itself usually contains only a thin wrapper of framework bindings; the real streaming parsing, message state machine, and tool invocation logic all reside in the core package.
40 more timeline events
All Facts (20)
If the versions of @ai-sdk/vue and ai in a project are not aligned, type mismatches or runtime behavior differences may occur.
90%VerifiedAI SDK's framework adapter packages keep their patch version numbers aligned with the core package (for example, ai@7.0.140 corresponds to @ai-sdk/svelte@5.0.140).
90%Verified@ai-sdk/xai@3.0.134 was automatically built by GitHub Actions.
90%VerifiedIn high-frequency release scenarios, it is recommended to batch-upgrade pure dependency-update patch versions after validating in a test environment, rather than immediately following every patch.
90%VerifiedThis update upgrades the dependency ai to 7.0.102 and @ai-sdk/provider-utils to 5.0.41.
90%Verified@ai-sdk/vue is the adapter layer for the Vercel AI SDK within the Vue ecosystem.
90%VerifiedThe Vercel AI SDK core package ai is currently at major version 5.x, while the adapter package @ai-sdk/svelte remains at 3.x.
90%Verified@ai-sdk/vue is the official adapter package for the Vue ecosystem within the Vercel AI SDK monorepo.
90%VerifiedThe core change in @ai-sdk/tui@1.0.100 is an update to dependencies, with the associated commit being 615ac89.
90%VerifiedWhen upgrading, you should confirm whether the ai core package version in the project needs to be simultaneously upgraded to 7.0.94 to avoid runtime errors caused by version mismatches.
90%VerifiedThis release record was completed by a GitHub Actions automated workflow and carries an official GitHub verified signature (Verified).
90%Verified@ai-sdk/svelte@4.0.276 depends on the ai@6.0.276 core package.
90%VerifieduseChat is designed for multi-turn conversation scenarios and maintains a message history list, while useCompletion is suited for single-pass text completion scenarios; both expose an error state field.
90%VerifiedAccording to the Semantic Versioning specification (SemVer), 3.0.277 is a Patch-level update, which typically represents backward-compatible bug fixes or dependency synchronization and does not introduce breaking changes.
90%VerifiedVercel AI SDK uses the changesets tool to manage version changes, and each patch to the core ai package is automatically propagated to all adapter layers such as @ai-sdk/svelte, @ai-sdk/react, and @ai-sdk/vue.
90%VerifiedWhen using @ai-sdk/svelte, users should ensure that the versions of ai and @ai-sdk/svelte are aligned, avoiding mixing different major versions.
90%Verified@ai-sdk/svelte is an adapter layer for the Svelte framework that encapsulates the streaming responses, message management, tool-calling, and other capabilities of the core ai package into interfaces conforming to Svelte's reactive paradigm.
90%VerifiedPatch versions typically do not introduce breaking changes and are primarily used for bug fixes, performance optimizations, or syncing underlying dependencies, in compliance with Semantic Versioning (SemVer) specifications.
90%VerifiedThe Vercel AI SDK adopts a Monorepo single-repository management model, with the core package ai and various framework adapter packages (such as @ai-sdk/vue, @ai-sdk/react, and @ai-sdk/svelte) released in coordination.
90%VerifiedKeeping @ai-sdk/svelte aligned with the version of the core ai package is a good practice.
85%