Vigia

Aggiornare tslib da 1.x a 2.x

Confronto dell’API pubblica di tslib 1.14.1 e 2.8.1, calcolato automaticamente dai tipi TypeScript. Una firma modificata è una possibile modifica incompatibile, non una certezza.

Riepilogo

Percorsi di import rimossi0
Export rimossi0
Firme modificate3
Membri di classi o interfacce rimossi0
Membri di classi o interfacce modificati0
Nuove deprecazioni2
Requisiti cambiati (engines, dipendenze peer)0
Nuovi export9

Export rimossi

Nessuna rilevata.

Firme modificate

exportPrimaDopo
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

Membri di classi o interfacce rimossi

Nessuna rilevata.

Membri di classi o interfacce modificati

Nessuna rilevata.

Nuove deprecazioni

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

Requisiti cambiati (engines, dipendenze peer)

Nessuna rilevata.

Nuovi export (9)
importexportkind
tslib__propKeyfunction
tslib__esDecoratefunction
tslib__spreadArrayfunction
tslib__runInitializersfunction
tslib__setFunctionNamefunction
tslib__disposeResourcesfunction
tslib__classPrivateFieldInfunction
tslib__addDisposableResourcefunction
tslib__rewriteRelativeImportExtensionfunction

Domande frequenti

Quali sono le modifiche incompatibili aggiornando tslib da 1 a 2?

Tra tslib 1.14.1 e 2.8.1, Vigia ha trovato 0 export rimossi, 3 firme modificate e 0 membri di classi o interfacce rimossi o modificati.

Cosa è stato deprecato in tslib 2?

2 export o membri risultano ora deprecati in tslib 2.8.1.

Per gli agenti

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