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 rimossi | 0 |
|---|---|
| Export rimossi | 0 |
| Firme modificate | 3 |
| Membri di classi o interfacce rimossi | 0 |
| Membri di classi o interfacce modificati | 0 |
| Nuove deprecazioni | 2 |
| Requisiti cambiati (engines, dipendenze peer) | 0 |
| Nuovi export | 9 |
Export rimossi
Nessuna rilevata.
Firme modificate
| export | Prima | Dopo |
|---|---|---|
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 · __spread | since TypeScript 4.2 - Use `__spreadArray` |
tslib · __spreadArrays | since TypeScript 4.2 - Use `__spreadArray` |
Requisiti cambiati (engines, dipendenze peer)
Nessuna rilevata.
Nuovi export (9)
| import | export | kind |
|---|---|---|
tslib | __propKey | function |
tslib | __esDecorate | function |
tslib | __spreadArray | function |
tslib | __runInitializers | function |
tslib | __setFunctionName | function |
tslib | __disposeResources | function |
tslib | __classPrivateFieldIn | function |
tslib | __addDisposableResource | function |
tslib | __rewriteRelativeImportExtension | function |
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