Vigia

Aktualizacja @opentelemetry/core z 2.x do 3.x

Porównanie publicznego API @opentelemetry/core 2.12.0 i 3.1.1, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.

Podsumowanie

Usunięte ścieżki importu0
Usunięte eksporty4
Zmienione sygnatury2
Usunięte składowe klas lub interfejsów0
Zmienione składowe klas lub interfejsów3
Nowo wycofane2
Zmiany wymagań (engines, zależności peer)2
Nowe eksporty7

Usunięte eksporty

importexportkindPrzed
@opentelemetry/coreunrefTimerfunction(timer: number | { unref(): unknown; }): void
@opentelemetry/core_globalThisvariabletypeof globalThis
@opentelemetry/coregetTimeOriginfunction(): number
@opentelemetry/coreotperformancevariable{ now(): number; readonly timeOrigin: number; }

Zmienione sygnatury

exportPrzedPo
@opentelemetry/core · isAttributeValue(val: unknown): val is AttributeValue(val: unknown): val is SimpleAttributeValue
@opentelemetry/core · sanitizeAttributes(attributes: unknown): Attributes(inAttributes: unknown): Attributes

Usunięte składowe klas lub interfejsów

Nie wykryto.

Zmienione składowe klas lub interfejsów

memberPrzedPo
TraceState.set(key: string, value: string): TraceState(key: string, value: string): TraceState$1
TraceState.unset(key: string): TraceState(key: string): TraceState$1
TraceState.constructor(rawTraceState?: string | undefined): TraceState(rawTraceState?: string | undefined): TraceState$1

Nowo wycofane

export@deprecated
@opentelemetry/core · isAttributeValueuse `isAnyValue`, or `isSimpleAttributeValue`.
@opentelemetry/core · sanitizeAttributesUse `cleanAttributes` or `cleanSimpleAttributes`.

Zmiany wymagań (engines, zależności peer)

PrzedPo
engines.node^18.19.0 || >=20.6.0—
peerDependencies.@opentelemetry/api>=1.0.0 <1.10.0—
Nowe eksporty (7)
importexportkind
@opentelemetry/coreisAnyValuefunction
@opentelemetry/corecleanAttributesfunction
@opentelemetry/coremaybeAddAttributefunction
@opentelemetry/coreAddAttributeDecisionenum
@opentelemetry/corecleanSimpleAttributesfunction
@opentelemetry/coreisSimpleAttributeValuefunction
@opentelemetry/coremaybeAddSimpleAttributefunction

Przekaż te dane swojemu agentowi AI

Vigia to darmowy serwer MCP: Twój agent programistyczny sprawdza wersje, zmiany łamiące zgodność i podatności, zanim napisze kod. Bez rejestracji i klucza API.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Dodaj do CursorDodaj do VS Code★ Gwiazdka na GitHubie

Dowolny inny klient MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Skill dla agentów (SKILL.md): mówi agentowi, kiedy używać Vigii · GitHub Action dla pull requestów

Najczęściej zadawane pytania

Jakie są zmiany niekompatybilne przy aktualizacji @opentelemetry/core z 2 do 3?

Między @opentelemetry/core 2.12.0 a 3.1.1 Vigia znalazła 4 usuniętych eksportów, 2 zmienionych sygnatur i 3 usuniętych lub zmienionych składowych klas lub interfejsów.

Co zostało wycofane w @opentelemetry/core 3?

2 eksportów lub składowych oznaczono w @opentelemetry/core 3.1.1 jako wycofane.

Dla agentów

GET https://vigia.coredls.cloud/v1/packages/npm/@opentelemetry/core/upgrade?from=2.12.0&to=3.1.1