Aktualizacja @types/json-schema z 6.x do 7.x
Porównanie publicznego API @types/json-schema 6.0.1 i 7.0.15, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.
Podsumowanie
| Usunięte ścieżki importu | 0 |
|---|---|
| Usunięte eksporty | 0 |
| Zmienione sygnatury | 2 |
| Usunięte składowe klas lub interfejsów | 0 |
| Zmienione składowe klas lub interfejsów | 15 |
| Nowo wycofane | 0 |
| Zmiany wymagań (engines, zależności peer) | 0 |
| Nowe eksporty | 19 |
Usunięte eksporty
Nie wykryto.
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
@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 |
Usunięte składowe klas lub interfejsów
Nie wykryto.
Zmienione składowe klas lub interfejsów
| member | Przed | Po |
|---|---|---|
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 |
Nowo wycofane
Nie wykryto.
Zmiany wymagań (engines, zależności peer)
Nie wykryto.
Nowe eksporty (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 |
Najczęściej zadawane pytania
Jakie są zmiany niekompatybilne przy aktualizacji @types/json-schema z 6 do 7?
Między @types/json-schema 6.0.1 a 7.0.15 Vigia znalazła 0 usuniętych eksportów, 2 zmienionych sygnatur i 15 usuniętych lub zmienionych składowych klas lub interfejsów.
Co zostało wycofane w @types/json-schema 7?
0 eksportów lub składowych oznaczono w @types/json-schema 7.0.15 jako wycofane.
Dla agentów
GET https://vigia.coredls.cloud/v1/packages/npm/@types/json-schema/upgrade?from=6.0.1&to=7.0.15