@tanstack/ai-anthropic breaking changes
Updated December 4, 2026
On this page
Latest version 1.2.4, released December 1, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 0.23.0 to 1.1.1: 45 breaking changes in 2 versions.
- From 0.8.0 to 1.1.1: 164 breaking changes in 15 versions.
@tanstack/ai-anthropic 1.1.1 breaking changes
- Behavior changed
An Anthropic stream that ends before a stop reason now reports incomplete-stream instead of finishing with the partial text as a success. Code that relied on onFinish receiving partial output as success should handle this error. github.com
@tanstack/ai-anthropic 1.0.0 breaking changes
- Removed
AnthropicChatModelProviderOptionsByName.claude-opus-4-1
AnthropicChatModelProviderOptionsByName.claude-opus-4-1 was removed in @tanstack/ai-anthropic 1.0.0 npmjs.com - Removed
AnthropicChatModelProviderOptionsByName.claude-opus-5-fast
AnthropicChatModelProviderOptionsByName.claude-opus-5-fast was removed in @tanstack/ai-anthropic 1.0.0 npmjs.com - Removed
AnthropicChatModelToolCapabilitiesByName.claude-opus-4-1
AnthropicChatModelToolCapabilitiesByName.claude-opus-4-1 was removed in @tanstack/ai-anthropic 1.0.0 npmjs.com - Removed
AnthropicChatModelToolCapabilitiesByName.claude-opus-5-fast
AnthropicChatModelToolCapabilitiesByName.claude-opus-5-fast was removed in @tanstack/ai-anthropic 1.0.0 npmjs.com - Removed
AnthropicDocumentMediaType
This type is gone in 1.0. Read the media type from source.mimeType instead. tanstack.com - Removed
AnthropicDocumentMetadata.mediaType
AnthropicDocumentMetadata.mediaType was removed in @tanstack/ai-anthropic 1.0.0 npmjs.com - Removed
AnthropicImageMediaType
This type is gone in 1.0. Read the media type from source.mimeType instead. tanstack.com - Removed
AnthropicImageMetadata.mediaType
AnthropicImageMetadata.mediaType was removed in @tanstack/ai-anthropic 1.0.0 npmjs.com - Removed
AnthropicModelInputModalitiesByName.claude-opus-4-1
AnthropicModelInputModalitiesByName.claude-opus-4-1 was removed in @tanstack/ai-anthropic 1.0.0 npmjs.com - Removed
AnthropicModelInputModalitiesByName.claude-opus-5-fast
AnthropicModelInputModalitiesByName.claude-opus-5-fast was removed in @tanstack/ai-anthropic 1.0.0 npmjs.com
And 34 more in this version. Sign up to see every change
@tanstack/ai-anthropic 0.23.0 breaking changes
- Signature changed
AnthropicTextAdapter.chatStream
Was chatStream(options: TextOptions<TProviderOptions>): AsyncIterable<AdapterYieldChunk>; now chatStream(chatOptions: TextOptions<TProviderOptions>): AsyncIterable<AdapterYieldChunk>. npmjs.com - Signature changed
computerUseTool
Each Claude model now accepts only the computer use tool versions it supports, so pairs Anthropic rejects, such as computer_20250124 on claude-opus-4-6, no longer type-check. Use a version the model supports. github.com - Signature changed
tools:computerUseTool
Was function computerUseTool(config: ComputerUseToolConfig): AnthropicComputerUseTool; now function computerUseTool(config: BetaToolComputerUse20241022 | BetaToolComputerUse20250124): AnthropicComputerUseTool function... npmjs.com - Signature changed
tools:ComputerUseToolConfig
Was type ComputerUseToolConfig = BetaToolComputerUse20241022 | BetaToolComputerUse20250124; now type ComputerUseToolConfig = ComputerUseSingleToolConfig | ComputerToolsetConfig. npmjs.com
@tanstack/ai-anthropic 0.22.0 breaking changes
- Removed
AnthropicAdaptiveOnlyThinkingOptions
Code that imports this type must stop using it and set reasoning through chat() instead. github.com - Removed
AnthropicAdaptiveOrDisabledThinkingOptions
Code that imports this type must stop using it and set reasoning through chat() instead. github.com - Removed
AnthropicAdaptiveThinkingOptions
Code that imports this type must stop using it and set reasoning through chat() instead. github.com - Removed
AnthropicEffortOptions
Code that imports this type must stop using it and set reasoning through chat() instead. github.com - Removed
AnthropicOutputConfigOptions
Code that imports this type must stop using it and set reasoning through chat() instead. github.com - Removed
AnthropicTextProviderOptions.effort
Effort is no longer set through modelOptions.effort. Pass reasoning to chat() instead. npmjs.com - Removed
AnthropicTextProviderOptions.output_config
AnthropicTextProviderOptions.output_config was removed in @tanstack/ai-anthropic 0.22.0 npmjs.com - Removed
AnthropicTextProviderOptions.thinking
Claude thinking is no longer set through modelOptions.thinking. Pass reasoning to chat() instead. npmjs.com - Removed
AnthropicThinkingOptions
Code that imports this type must stop using it and set reasoning through chat() instead. github.com - Behavior changed
When stop_reason is model_context_window_exceeded, the adapter sends RUN_ERROR with code context_overflow instead of RUN_FINISHED. Code that treated this as a complete answer must handle the error. github.com
And 25 more in this version. Sign up to see every change
@tanstack/ai-anthropic 0.21.0 breaking changes
- Behavior changed
anthropicText
anthropicText, anthropicSummarize and anthropicFiles now read ANTHROPIC_AUTH_TOKEN and ANTHROPIC_OAUTH_TOKEN before ANTHROPIC_API_KEY, so setting either token changes which credential and auth mode is used. github.com - Behavior changed
usage.promptTokens
On the Anthropic, Bedrock Converse and Claude Code adapters promptTokens now includes cache reads and writes. Code that adds cachedTokens or cacheWriteTokens to promptTokens double-counts the cache and must use promptTokens as the total. github.com
@tanstack/ai-anthropic 0.20.0 breaking changes
- Behavior changed
When a response stops at the output token limit, structured output now raises a truncation error instead of a JSON parse error or a partial result returned as valid data. Code that relied on partial results must handle this error. github.com - Signature changed
ANTHROPIC_MODELS
Was const ANTHROPIC_MODELS: readonly ["claude-sonnet-5-5", "claude-opus-5-5", "claude-fable-5-1", "claude-opus-5", "claude-opus-5-fast", "claude-opus-4-6", "claude-opus-4-5", "claude-sonnet-4-6", "claude-sonnet-4-5", "claude-haiku-4-5"... npmjs.com - Signature changed
AnthropicChatModelProviderOptionsByName
Was type AnthropicChatModelProviderOptionsByName = {[CLAUDE_OPUS_4_6.id]: AnthropicCacheControlOptions & AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions &... npmjs.com - Signature changed
AnthropicChatModelToolCapabilitiesByName
Was type AnthropicChatModelToolCapabilitiesByName = {[CLAUDE_OPUS_4_6.id]: typeof CLAUDE_OPUS_4_6.supports.tools; [CLAUDE_OPUS_4_5.id]: typeof CLAUDE_OPUS_4_5.supports.tools; [CLAUDE_SONNET_4_6.id]: typeof CLAUDE_SONNET_4_6.supports.tools... npmjs.com - Signature changed
AnthropicModelInputModalitiesByName
Was type AnthropicModelInputModalitiesByName = {[CLAUDE_OPUS_4_6.id]: typeof CLAUDE_OPUS_4_6.supports.input; [CLAUDE_OPUS_4_5.id]: typeof CLAUDE_OPUS_4_5.supports.input; [CLAUDE_SONNET_4_6.id]: typeof CLAUDE_SONNET_4_6.supports.input... npmjs.com
Older versions
10 older versions, each with its first changes. Sign up to see every change
Show 10 older versions
@tanstack/ai-anthropic 0.19.1 breaking changes
- Signature changed
ANTHROPIC_MODELS
Was const ANTHROPIC_MODELS: readonly ["claude-fable-5-1", "claude-opus-5", "claude-opus-5-fast", "claude-opus-4-6", "claude-opus-4-5", "claude-sonnet-4-6", "claude-sonnet-4-5", "claude-haiku-4-5", "claude-opus-4-1", "claude-opus-4-7"... npmjs.com - Signature changed
AnthropicChatModelProviderOptionsByName
Was type AnthropicChatModelProviderOptionsByName = {[CLAUDE_OPUS_4_6.id]: AnthropicCacheControlOptions & AnthropicContainerOptions & AnthropicContextManagementOptions & AnthropicMCPOptions & AnthropicServiceTierOptions &... npmjs.com
And 2 more in this version.
@tanstack/ai-anthropic 0.17.0 breaking changes
- Behavior changed
anthropicVertexText
anthropicVertexText now accepts only models from the same Vertex Claude catalog; users relying on other model names must switch to a catalog model. github.com - Signature changed
AnthropicTextAdapter.constructor
Was constructor(config: AnthropicTextConfig, model: TModel); now constructor(config: AnthropicTextAdapterConfig, model: TModel). npmjs.com
@tanstack/ai-anthropic 0.16.0 breaking changes
- Removed
AnthropicChatModelProviderOptionsByName.claude-3-5-haiku
AnthropicChatModelProviderOptionsByName.claude-3-5-haiku was removed in @tanstack/ai-anthropic 0.16.0 npmjs.com - Removed
AnthropicChatModelProviderOptionsByName.claude-3-7-sonnet
AnthropicChatModelProviderOptionsByName.claude-3-7-sonnet was removed in @tanstack/ai-anthropic 0.16.0 npmjs.com
And 38 more in this version.
@tanstack/ai-anthropic 0.15.0 breaking changes
- Signature changed
AnthropicTextProviderOptions.container
Was container?: {id: string | null; skills: Array<{skill_id: string; type: 'anthropic' | 'custom'; version?: string;}> | null;} | null; now container?: {id: string | null; skills: Array<AnthropicContainerSkill> | null;} | null. npmjs.com - Signature changed
AnthropicTextProviderOptions.container.skills
Was skills: Array<{skill_id: string; type: 'anthropic' | 'custom'; version?: string;}> | null; now skills: Array<AnthropicContainerSkill> | null. npmjs.com
And 1 more in this version.
@tanstack/ai-anthropic 0.14.0 breaking changes
- Removed
ai
The temperature, topP and maxTokens options are no longer accepted at the root of ai(). Move them into modelOptions using each provider's native keys, or run the provided codemod. github.com - Removed
chat
The temperature, topP and maxTokens options are no longer accepted at the root of chat(). Move them into modelOptions using each provider's native keys, or run the provided codemod. github.com
And 2 more in this version.
@tanstack/ai-anthropic 0.13.0 breaking changes
- Behavior changed
When a provider returns no usage object, the usage extractor now returns undefined instead of zeroed totals. Code that assumed zero totals must handle undefined. github.com - Behavior changed
AudioGenerationResult.usage
AudioGenerationResult.usage is now typed as TokenUsage. Read promptTokens and completionTokens instead of inputTokens and outputTokens. github.com
And 1 more in this version.
@tanstack/ai-anthropic 0.11.0 breaking changes
- Removed
AnthropicChatModelProviderOptionsByName.claude-opus-4.6-fast
AnthropicChatModelProviderOptionsByName.claude-opus-4.6-fast was removed in @tanstack/ai-anthropic 0.11.0 npmjs.com - Removed
AnthropicChatModelProviderOptionsByName.claude-opus-4.7
AnthropicChatModelProviderOptionsByName.claude-opus-4.7 was removed in @tanstack/ai-anthropic 0.11.0 npmjs.com
And 9 more in this version.
@tanstack/ai-anthropic 0.10.0 breaking changes
- Signature changed
AnthropicTextAdapter
Was class AnthropicTextAdapter<TModel extends (typeof ANTHROPIC_MODELS)[number], TProviderOptions extends Record<string, any> = ResolveProviderOptions<TModel>, TInputModalities extends ReadonlyArray<Modality> =... npmjs.com
@tanstack/ai-anthropic 0.9.0 breaking changes
- Removed
modelOptions.system
System prompts must now go through the top-level systemPrompts option on chat() or structuredOutput(). Callers needing cache_control on system text must use a prior version or a custom adapter override. github.com - Behavior changed
modelOptions
The adapter now logs an errors-category line via the Logger when unknown modelOptions keys are passed, instead of silently dropping them. github.com
And 3 more in this version.
@tanstack/ai-anthropic 0.8.0 breaking changes
- Signature changed
AnthropicTextAdapter
Was class AnthropicTextAdapter<TModel extends (typeof ANTHROPIC_MODELS)[number], TProviderOptions extends object = ResolveProviderOptions<TModel>, TInputModalities extends ReadonlyArray<Modality> = ResolveInputModalities<TModel>> extends... npmjs.com - Signature changed
AnthropicTextAdapter.chatStream
Was chatStream(options: TextOptions<AnthropicTextProviderOptions>): AsyncIterable<StreamChunk>; now chatStream(options: TextOptions<TProviderOptions>): AsyncIterable<StreamChunk>. npmjs.com
And 1 more in this version.
Related packages
- @tanstack/ai
- @tanstack/ai-client
- @tanstack/ai-react
- @tanstack/ai-gemini
- @tanstack/ai-ollama
- @tanstack/ai-openai
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.