@ai-sdk/react
The React adapter layer of the Vercel AI SDK, providing hooks such as useChat and useCompletion to help developers build streaming conversation and AI completion interactions in React and Next.js applications.
Core Facts
@ai-sdk/provider-utils is responsible for the general-purpose utility functions in the AI SDK for interacting with model providers, including low-level logic such as streaming response parsing, tool call formatting, and error handling.
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/rsc is a sub-package in the Vercel AI SDK ecosystem; rsc stands for React Server Components and provides tools for integrating generative AI capabilities in server component environments.
Timeline (last 90 days)
In the monorepo structure of the Vercel AI SDK, framework-layer packages (such as @ai-sdk/vue and @ai-sdk/react) depend on the hooks and utility functions provided by the core package, and after the core package is fixed the framework packages must release a new version to deliver the fix to end users
@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.
For projects locked to the 3.0.x branch, the update can be handled through the normal patch upgrade process, and interaction tests related to streaming responses should be run after upgrading.
The cost of the layered architecture is version coupling between the adapter package and the core package, which requires dependency alignment to maintain consistency; this is the main reason @ai-sdk/react frequently releases patches to keep pace with the ai core package.
In streaming response scenarios, hooks need to update state as each chunk arrives while handling race conditions involving aborts, error retries and concurrent requests.
@ai-sdk/react most likely declares the core package ai as a peer dependency to ensure that React hooks and the core SDK use the same runtime code and state management logic.
The 3.0.x series of @ai-sdk/react has long remained in the stage of incrementing patch numbers, indicating that its API surface is stabilizing and its maintenance focus is on detail fixes and dependency synchronization.
Patch versions may still fix internal hook logic (such as the timing of streaming state updates), which, while not changing public API signatures, may affect observable behavior.
Aligning this patch update of @ai-sdk/react with ai@6.0.336 is intended to narrow the intersection of version ranges, eliminate peer dependency warnings, and ensure consistency of the internal protocol between the hooks and the core SDK (such as the chunk format for streaming responses).
If @ai-sdk/mcp@2.0.103 itself fixes issues or adjusts its internal implementation, these changes propagate to @ai-sdk/react through the dependency chain, so running the existing tests after upgrading remains a prudent practice.
40 more timeline events
All Facts (20)
@ai-sdk/provider-utils is responsible for the general-purpose utility functions in the AI SDK for interacting with model providers, including low-level logic such as streaming response parsing, tool call formatting, and error handling.
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/rsc is a sub-package in the Vercel AI SDK ecosystem; rsc stands for React Server Components and provides tools for integrating generative AI capabilities in server component environments.
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%VerifiedVercel AI SDK is an open-source toolkit led by Vercel that provides a standardized large language model integration solution for JavaScript/TypeScript developers.
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%VerifiedThe AI SDK uses a layered design: the core layer (the ai package) provides unified interfaces such as streamText and generateText, and each model vendor integrates through a separate provider package.
80%VerifiedWithin the AI SDK ecosystem, there exists an adapter package @ai-sdk/zod similar to @ai-sdk/valibot, with both providing the same public interface.
80%Verified@ai-sdk/vue is the AI SDK's binding layer for the Vue framework, responsible for exposing the capabilities of the core ai package (such as streaming responses, message state management, and the useChat composable API) to Vue components.
80%VerifiedIf the project's current version is inconsistent with the core ai package, upgrading to @ai-sdk/vue@3.0.310 helps align the dependency tree.
75%VerifiedThe AI SDK officially maintains multiple framework bindings such as React, Svelte, and Vue, and these packages usually release patches with the same version number within the same time window.
75%VerifiedThe core capabilities of @ai-sdk/vue are exposed in the form of Vue Composables, such as hooks like useChat and useCompletion, which are functionally symmetric with @ai-sdk/react.
75%Verified@ai-sdk/react is the official adapter package for the React ecosystem, encapsulating Hooks such as useChat and useCompletion.
75%VerifiedWhen the core package ai publishes a patch, CI/CD automatically triggers all framework adapter packages that depend on it (@ai-sdk/react, @ai-sdk/svelte, @ai-sdk/vue, etc.) to simultaneously publish the same patch-level version, even if the adapter packages themselves have no code changes.
75%VerifiedFramework adaptation layers such as @ai-sdk/vue and @ai-sdk/react wrap core capabilities into the corresponding framework's composable APIs.
75%Verified@ai-sdk/valibot 3.0.59 is a Patch-level patch release that introduces no breaking changes and does not change the public API shape.
75%Partially Verified@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.
75%Unverified@ai-sdk/vue declares ai as a peer dependency, and when the two versions are inconsistent, npm or pnpm may install multiple copies of the ai package, leading to type mismatches, broken reactive state, or even runtime errors.
70%UnverifiedAfter upgrading, you should focus regression testing on the chunked rendering of streaming responses and the parameter parsing of tool calls, as these two areas are most sensitive to underlying changes in @ai-sdk/provider-utils.
70%Unverified@ai-sdk/svelte, @ai-sdk/react, @ai-sdk/vue, and others are adapter layer packages targeting different front-end frameworks.
70%