ترقية @anthropic-ai/sdk من 0.x إلى 1.x
مقارنة الواجهة العامة لـ @anthropic-ai/sdk بين 0.137.0 و1.0.0، محسوبة تلقائيًا من أنواع 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)
لم يُكتشف شيء.
سجل التغييرات بين هذين الإصدارين
نص نشره مؤلفو الحزمة، معروض كما هو.
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زوّد وكيل الذكاء الاصطناعي بهذه البيانات
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؟
عُلِّم 0 من الصادرات أو الأعضاء حديثًا على أنها موقوفة في @anthropic-ai/sdk 1.0.0.
للوكلاء
GET https://vigia.coredls.cloud/v1/packages/npm/@anthropic-ai/sdk/upgrade?from=0.137.0&to=1.0.0