@anthropic-ai/sdk を 0.x から 1.x へアップグレード
@anthropic-ai/sdk 0.137.0 と 1.0.0 の公開 API を、TypeScript の型から自動的に比較したものです。シグネチャの変更は破壊的変更の候補であり、確定ではありません。
概要
| 削除されたインポートパス | 0 |
|---|---|
| 削除されたエクスポート | 2 |
| 変更されたシグネチャ | 1 |
| 削除されたクラス/インターフェースのメンバー | 12 |
| 変更されたクラス/インターフェースのメンバー | 0 |
| 新たに非推奨 | 0 |
| 要件の変更(engines、peer 依存関係) | 0 |
| 新しいエクスポート | 0 |
削除されたエクスポート
| import | export | kind | 変更前 |
|---|---|---|---|
@anthropic-ai/sdk | AI_PROMPT | variable | "\\n\\nAssistant:" |
@anthropic-ai/sdk | HUMAN_PROMPT | variable | "\\n\\nHuman:" |
変更されたシグネチャ
| export | 変更前 | 変更後 |
|---|---|---|
@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… |
削除されたクラス/インターフェースのメンバー
| member | import | 変更前 |
|---|---|---|
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 |
変更されたクラス/インターフェースのメンバー
検出されませんでした。
新たに非推奨
検出されませんでした。
要件の変更(engines、peer 依存関係)
検出されませんでした。
これらのバージョン間の changelog
パッケージ作者が公開したテキストをそのまま表示しています。
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このデータを AI エージェントに渡す
Vigia は無料の MCP サーバーです。コーディングエージェントがコードを書く前に、バージョン・破壊的変更・脆弱性を確認できます。登録も API キーも不要です。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Cursor に追加VS Code に追加★ GitHub でスターを付ける
その他の MCP クライアント
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }エージェント用スキル (SKILL.md):Vigia を使うタイミングをエージェントに伝えます · プルリクエスト用 GitHub Action
よくある質問
@anthropic-ai/sdk を 0 から 1 にアップグレードする際の破壊的変更は?
@anthropic-ai/sdk 0.137.0 と 1.0.0 の間で、Vigia は削除されたエクスポートを 2 件、変更されたシグネチャを 1 件、削除または変更されたクラス/インターフェースのメンバーを 12 件検出しました。
@anthropic-ai/sdk 1 で非推奨になったものは?
@anthropic-ai/sdk 1.0.0 では 0 件のエクスポートまたはメンバーが新たに非推奨になりました。
エージェント向け
GET https://vigia.coredls.cloud/v1/packages/npm/@anthropic-ai/sdk/upgrade?from=0.137.0&to=1.0.0