Vigia

Aktualizacja tslib z 1.x do 2.x

Porównanie publicznego API tslib 1.14.1 i 2.8.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 eksporty0
Zmienione sygnatury3
Usunięte składowe klas lub interfejsów0
Zmienione składowe klas lub interfejsów0
Nowo wycofane2
Zmiany wymagań (engines, zależności peer)0
Nowe eksporty9

Usunięte eksporty

Nie wykryto.

Zmienione sygnatury

exportPrzedPo
tslib · __exportStar(m: any, exports: any): void(m: any, o: any): void
tslib · __classPrivateFieldGet<T extends object, V>(receiver: T, privateMap: { has(o: T): boolean; get(o: T): V | undefined; }): V<T extends object, V>(receiver: T, state: { has(o: T): boolean; get(o: T): V | undefined; }, kind?: "f" | undefined): V | <T extends new (...args: any[]) => unknown, V>(receiver: T, state: T, kind: "f", f: { value: V; }): V | <T extends object, V>(receiver: T, state: { has(o: T): boolean; }, kind: "a", f: () => V): V | <T extends new (...args: any[]) => unknown, V>(receiver: T, state: T, kind: "a", f: () => V): V | <T extends object, V extends (...args: any[]) => unknown>(receiver: T, state: { has(o: T): boolean; }, kind: "m", f: V): V | <T extends new (...args: any[]) => unknown, V extends (.…
tslib · __classPrivateFieldSet<T extends object, V>(receiver: T, privateMap: { has(o: T): boolean; set(o: T, value: V): any; }, value: V): V<T extends object, V>(receiver: T, state: { has(o: T): boolean; set(o: T, value: V): unknown; }, value: V, kind?: "f" | undefined): V | <T extends new (...args: any[]) => unknown, V>(receiver: T, state: T, value: V, kind: "f", f: { value: V; }): V | <T extends object, V>(receiver: T, state: { has(o: T): boolean; }, value: V, kind: "a", f: (v: V) => void): V | <T extends new (...args: any[]) => unknown, V>(receiver: T, state: T, value: V, kind: "a", f: (v: V) => void): V

Usunięte składowe klas lub interfejsów

Nie wykryto.

Zmienione składowe klas lub interfejsów

Nie wykryto.

Nowo wycofane

export@deprecated
tslib · __spreadsince TypeScript 4.2 - Use `__spreadArray`
tslib · __spreadArrayssince TypeScript 4.2 - Use `__spreadArray`

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

Nie wykryto.

Nowe eksporty (9)
importexportkind
tslib__propKeyfunction
tslib__esDecoratefunction
tslib__spreadArrayfunction
tslib__runInitializersfunction
tslib__setFunctionNamefunction
tslib__disposeResourcesfunction
tslib__classPrivateFieldInfunction
tslib__addDisposableResourcefunction
tslib__rewriteRelativeImportExtensionfunction

Najczęściej zadawane pytania

Jakie są zmiany niekompatybilne przy aktualizacji tslib z 1 do 2?

Między tslib 1.14.1 a 2.8.1 Vigia znalazła 0 usuniętych eksportów, 3 zmienionych sygnatur i 0 usuniętych lub zmienionych składowych klas lub interfejsów.

Co zostało wycofane w tslib 2?

2 eksportów lub składowych oznaczono w tslib 2.8.1 jako wycofane.

Dla agentów

GET https://vigia.coredls.cloud/v1/packages/npm/tslib/upgrade?from=1.14.1&to=2.8.1