Vigia

@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

हटाए गए एक्सपोर्ट

importexportkindपहले
@anthropic-ai/sdkAI_PROMPTvariable"\\n\\nAssistant:"
@anthropic-ai/sdkHUMAN_PROMPTvariable"\\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…

क्लास या इंटरफ़ेस के हटाए गए सदस्य

memberimportपहले
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

क्लास या इंटरफ़ेस के बदले गए सदस्य

कुछ नहीं मिला।

नए डिप्रिकेटेड

कुछ नहीं मिला।

आवश्यकताओं में बदलाव (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