Vigia

Upgrading @anthropic-ai/sdk from 0.x to 1.x

Comparison of the public API of @anthropic-ai/sdk 0.137.0 and 1.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.

Summary

Removed import paths0
Removed exports2
Changed signatures1
Removed class or interface members12
Changed class or interface members0
Newly deprecated0
Requirement changes (engines, peer dependencies)0
New exports0

Removed exports

importexportkindBefore
@anthropic-ai/sdkAI_PROMPTvariable"\\n\\nAssistant:"
@anthropic-ai/sdkHUMAN_PROMPTvariable"\\n\\nHuman:"

Changed signatures

exportBeforeAfter
@anthropic-ai/sdk · ParseableMessageCreateParams{ stream?: boolean | undefined; max_tokens: number; messages: MessageParam[]; model: Model; cache_control?: CacheControlEphemeral | null | undefined; container?: MessageCreateParamsContainer | null | undefined; diagnostics?: DiagnosticsParam | null | undefined; inference_geo?: string | null | undefined; metadata?: Metadata | undefined; service_tier?: "auto" | "standard_only" | undefined; speed?: "standard" | "fast" | null | undefined; stop_sequences?: string[] | undefined; system?: string | TextBlockParam[] | undefined; temperature?: number | undefined; thinking?: ThinkingConfigParam | undefin…{ stream?: boolean | undefined; max_tokens: number; messages: MessageParam[]; model: Model; cache_control?: CacheControlEphemeral | null | undefined; container?: MessageCreateParamsContainer | null | undefined; diagnostics?: DiagnosticsParam | null | undefined; inference_geo?: string | null | undefined; metadata?: Metadata | undefined; service_tier?: "auto" | "standard_only" | undefined; speed?: "standard" | "fast" | null | undefined; stop_sequences?: string[] | undefined; system?: string | TextBlockParam[] | undefined; thinking?: ThinkingConfigParam | undefined; tool_choice?: ToolChoice | und…

Removed class or interface members

memberimportBefore
default.completions@anthropic-ai/sdkCompletions
default.static AI_PROMPT@anthropic-ai/sdkstring
default.static Completions@anthropic-ai/sdktypeof Completions
default.static HUMAN_PROMPT@anthropic-ai/sdkstring
Anthropic.completions@anthropic-ai/sdkCompletions
Anthropic.static AI_PROMPT@anthropic-ai/sdkstring
Anthropic.static Completions@anthropic-ai/sdktypeof Completions
Anthropic.static HUMAN_PROMPT@anthropic-ai/sdkstring
APIPromise.static __@species@5533@anthropic-ai/sdkPromiseConstructor
PagePromise.static __@species@5533@anthropic-ai/sdkPromiseConstructor
BaseAnthropic.static AI_PROMPT@anthropic-ai/sdkstring
BaseAnthropic.static HUMAN_PROMPT@anthropic-ai/sdkstring

Changed class or interface members

None detected.

Newly deprecated

None detected.

Requirement changes (engines, peer dependencies)

None detected.

Changelog between these versions

Text published by the package authors, shown as-is.

1.0.0
### ⚠ BREAKING CHANGES

* **api:** add support for new API version 2026-10-21

### Features

* **api:** add a workspace_id filter and the usage_tier scope type to list spend limits
* **api:** add support for new API version 2026-10-21


### Chores

* **ci:** check the changelog of each package a pull request changes
* **internal:** specify which changelog a pull request updates


### Documentation

* **api:** remove outdated system role note from messages description

Give your AI agent these facts

Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Add to CursorAdd to VS Code★ Star on GitHub

Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests

Frequently asked questions

What are the breaking changes when upgrading @anthropic-ai/sdk from 0 to 1?

Between @anthropic-ai/sdk 0.137.0 and 1.0.0, Vigia found 2 removed exports, 1 changed signatures and 12 removed or changed class or interface members.

What became deprecated in @anthropic-ai/sdk 1?

0 exports or members are newly marked as deprecated in @anthropic-ai/sdk 1.0.0.

For agents

GET https://vigia.coredls.cloud/v1/packages/npm/@anthropic-ai/sdk/upgrade?from=0.137.0&to=1.0.0