@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