Aggiornare @types/json-schema da 6.x a 7.x
Confronto dell’API pubblica di @types/json-schema 6.0.1 e 7.0.15, 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 | 2 |
| Membri di classi o interfacce rimossi | 0 |
| Membri di classi o interfacce modificati | 15 |
| Nuove deprecazioni | 0 |
| Requisiti cambiati (engines, dipendenze peer) | 0 |
| Nuovi export | 19 |
Export rimossi
Nessuna rilevata.
Firme modificate
| export | Prima | Dopo |
|---|---|---|
@types/json-schema · JSONSchema4Type | string | number | boolean | object | any[] | null | string | number | boolean | JSONSchema4Object | JSONSchema4Array | null |
@types/json-schema · JSONSchema6Type | string | number | boolean | object | any[] | null | string | number | boolean | JSONSchema6Object | JSONSchema6Array | null |
Membri di classi o interfacce rimossi
Nessuna rilevata.
Membri di classi o interfacce modificati
| member | Prima | Dopo |
|---|---|---|
JSONSchema4.required | false | string[] | undefined | boolean | string[] | undefined |
JSONSchema6.not | boolean | JSONSchema6 | undefined | JSONSchema6Definition | undefined |
JSONSchema6.allOf | JSONSchema6[] | undefined | JSONSchema6Definition[] | undefined |
JSONSchema6.anyOf | JSONSchema6[] | undefined | JSONSchema6Definition[] | undefined |
JSONSchema6.items | boolean | JSONSchema6 | JSONSchema6[] | undefined | JSONSchema6Definition | JSONSchema6Definition[] | undefined |
JSONSchema6.oneOf | JSONSchema6[] | undefined | JSONSchema6Definition[] | undefined |
JSONSchema6.$schema | "http://json-schema.org/schema#" | "http://json-schema.org/hyper-schema#" | "http://json-schema.org/draft-06/schema#" | "http://json-schema.org/draft-06/hyper-schema#" | undefined | string | undefined |
JSONSchema6.contains | boolean | JSONSchema6 | undefined | JSONSchema6Definition | undefined |
JSONSchema6.properties | { [k: string]: boolean | JSONSchema6; } | undefined | { [k: string]: JSONSchema6Definition; } | undefined |
JSONSchema6.definitions | { [k: string]: boolean | JSONSchema6; } | undefined | { [k: string]: JSONSchema6Definition; } | undefined |
JSONSchema6.dependencies | { [k: string]: boolean | string[] | JSONSchema6; } | undefined | { [k: string]: string[] | JSONSchema6Definition; } | undefined |
JSONSchema6.propertyNames | boolean | JSONSchema6 | undefined | JSONSchema6Definition | undefined |
JSONSchema6.additionalItems | boolean | JSONSchema6 | undefined | JSONSchema6Definition | undefined |
JSONSchema6.patternProperties | { [k: string]: boolean | JSONSchema6; } | undefined | { [k: string]: JSONSchema6Definition; } | undefined |
JSONSchema6.additionalProperties | boolean | JSONSchema6 | undefined | JSONSchema6Definition | undefined |
Nuove deprecazioni
Nessuna rilevata.
Requisiti cambiati (engines, dipendenze peer)
Nessuna rilevata.
Nuovi export (19)
| import | export | kind |
|---|---|---|
@types/json-schema | validate | function |
@types/json-schema | JSONSchema7 | interface |
@types/json-schema | mustBeValid | function |
@types/json-schema | JSONSchema7Type | type |
@types/json-schema | ValidationError | interface |
@types/json-schema | JSONSchema4Array | interface |
@types/json-schema | JSONSchema6Array | interface |
@types/json-schema | JSONSchema7Array | interface |
@types/json-schema | ValidationResult | interface |
@types/json-schema | JSONSchema4Object | interface |
@types/json-schema | JSONSchema6Object | interface |
@types/json-schema | JSONSchema7Object | interface |
@types/json-schema | JSONSchema4Version | type |
@types/json-schema | JSONSchema6Version | type |
@types/json-schema | JSONSchema7Version | type |
@types/json-schema | JSONSchema7TypeName | type |
@types/json-schema | checkPropertyChange | function |
@types/json-schema | JSONSchema6Definition | type |
@types/json-schema | JSONSchema7Definition | type |
Domande frequenti
Quali sono le modifiche incompatibili aggiornando @types/json-schema da 6 a 7?
Tra @types/json-schema 6.0.1 e 7.0.15, Vigia ha trovato 0 export rimossi, 2 firme modificate e 15 membri di classi o interfacce rimossi o modificati.
Cosa è stato deprecato in @types/json-schema 7?
0 export o membri risultano ora deprecati in @types/json-schema 7.0.15.
Per gli agenti
GET https://vigia.coredls.cloud/v1/packages/npm/@types/json-schema/upgrade?from=6.0.1&to=7.0.15