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 paths | 0 |
|---|---|
| Removed exports | 2 |
| Changed signatures | 1 |
| Removed class or interface members | 12 |
| Changed class or interface members | 0 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 0 |
| New exports | 0 |
Removed exports
| import | export | kind | Before |
|---|---|---|---|
@anthropic-ai/sdk | AI_PROMPT | variable | "\\n\\nAssistant:" |
@anthropic-ai/sdk | HUMAN_PROMPT | variable | "\\n\\nHuman:" |
Changed signatures
| export | Before | After |
|---|---|---|
@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
| member | import | Before |
|---|---|---|
default.completions | @anthropic-ai/sdk | Completions |
default.static AI_PROMPT | @anthropic-ai/sdk | string |
default.static Completions | @anthropic-ai/sdk | typeof Completions |
default.static HUMAN_PROMPT | @anthropic-ai/sdk | string |
Anthropic.completions | @anthropic-ai/sdk | Completions |
Anthropic.static AI_PROMPT | @anthropic-ai/sdk | string |
Anthropic.static Completions | @anthropic-ai/sdk | typeof Completions |
Anthropic.static HUMAN_PROMPT | @anthropic-ai/sdk | string |
APIPromise.static __@species@5533 | @anthropic-ai/sdk | PromiseConstructor |
PagePromise.static __@species@5533 | @anthropic-ai/sdk | PromiseConstructor |
BaseAnthropic.static AI_PROMPT | @anthropic-ai/sdk | string |
BaseAnthropic.static HUMAN_PROMPT | @anthropic-ai/sdk | string |
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 descriptionGive 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