---
title: "@ai-sdk/anthropic Breaking Changes on npm | Since.dev"
description: "What each @ai-sdk/anthropic release removed, renamed or changed: 76 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@ai-sdk/anthropic
last_updated: 2026-06-25
---

# @ai-sdk/anthropic breaking changes

Every breaking API change we have recorded in @ai-sdk/anthropic on npm: 76 breaking changes in 2 versions. Below are its newest 2 versions, removals and renames first, each with its source.

Newest change June 25, 2026

## 4.0.0

42 breaking changes, first published June 25, 2026.

- **Removed** `AnthropicMessageMetadata.cacheCreationInputTokens`  

AnthropicMessageMetadata.cacheCreationInputTokens was removed in @ai-sdk/anthropic 4.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/4.0.0)
- **Removed** `AnthropicMessageMetadata.inputTransformations`  

AnthropicMessageMetadata.inputTransformations was removed in @ai-sdk/anthropic 4.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/4.0.0)
- **Removed** `AnthropicMessageMetadata.safeguardResults`  

AnthropicMessageMetadata.safeguardResults was removed in @ai-sdk/anthropic 4.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/4.0.0)
- **Removed** `AnthropicSystemMessageProviderOptions`  

AnthropicSystemMessageProviderOptions was removed in @ai-sdk/anthropic 4.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/4.0.0)
- **Removed** `internal:sanitizeJsonSchema`  

sanitizeJsonSchema was removed in @ai-sdk/anthropic 4.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/4.0.0)
- **Removed** `internal:supportsNativeStructuredOutputSchema`  

supportsNativeStructuredOutputSchema was removed in @ai-sdk/anthropic 4.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/4.0.0)
- **Signature changed** `AnthropicLanguageModelOptions`  

Was type AnthropicLanguageModelOptions = InferSchema<typeof anthropicLanguageModelOptions>; now type AnthropicLanguageModelOptions = z.infer<typeof anthropicLanguageModelOptions>. [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/4.0.0)
- **Signature changed** `AnthropicProvider`  

Was interface AnthropicProvider extends ProviderV3; now interface AnthropicProvider extends ProviderV4. [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/4.0.0)
- **Signature changed** `AnthropicProvider.__call`  

Was (modelId: AnthropicMessagesModelId): LanguageModelV3; now (modelId: AnthropicModelId): LanguageModelV4. [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/4.0.0)
- **Signature changed** `AnthropicProvider.chat`  

Was chat(modelId: AnthropicMessagesModelId): LanguageModelV3; now chat(modelId: AnthropicModelId): LanguageModelV4. [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/4.0.0)

And 32 more in this version.

## 3.0.0

34 breaking changes, first published December 22, 2025.

- **Removed** `AnthropicMessageMetadata.iterations`  

AnthropicMessageMetadata.iterations was removed in @ai-sdk/anthropic 3.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/3.0.0)
- **Removed** `AnthropicMessageMetadata.stopDetails`  

AnthropicMessageMetadata.stopDetails was removed in @ai-sdk/anthropic 3.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/3.0.0)
- **Removed** `AnthropicSystemMessageProviderOptions`  

AnthropicSystemMessageProviderOptions was removed in @ai-sdk/anthropic 3.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/3.0.0)
- **Removed** `AnthropicUsageIteration`  

AnthropicUsageIteration was removed in @ai-sdk/anthropic 3.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/3.0.0)
- **Removed** `internal:getModelCapabilities`  

getModelCapabilities was removed in @ai-sdk/anthropic 3.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/3.0.0)
- **Removed** `internal:sanitizeJsonSchema`  

sanitizeJsonSchema was removed in @ai-sdk/anthropic 3.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/3.0.0)
- **Removed** `internal:supportsNativeStructuredOutputSchema`  

supportsNativeStructuredOutputSchema was removed in @ai-sdk/anthropic 3.0.0 [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/3.0.0)
- **Signature changed** `AnthropicMessageMetadata.contextManagement`  

Was contextManagement: {appliedEdits: Array<{type: 'clear_tool_uses_20250919'; clearedToolUses: number; clearedInputTokens: number;} | {type: 'clear_thinking_20251015'; clearedThinkingTurns: number; clearedInputTokens: number;} | {type... [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/3.0.0)
- **Signature changed** `AnthropicMessageMetadata.contextManagement.appliedEdits`  

Was appliedEdits: Array<{type: 'clear_tool_uses_20250919'; clearedToolUses: number; clearedInputTokens: number;} | {type: 'clear_thinking_20251015'; clearedThinkingTurns: number; clearedInputTokens: number;} | {type: 'compact_20260112';}>... [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/3.0.0)
- **Signature changed** `AnthropicProvider`  

Was interface AnthropicProvider extends ProviderV2; now interface AnthropicProvider extends ProviderV3. [npmjs.com](https://www.npmjs.com/package/@ai-sdk/anthropic/v/3.0.0)

And 24 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version, not only the newest. On Team and up, a fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous management.

Scan a public repository now, or give your agent one line.

### See how out of date your code is.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
