npm / json-schema-typed
json-schema-typed
What changed in json-schema-typed 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.
6 breaking12 new APIs and options1 behavior and defaults9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjson-schema-typed 928 changes
Breaking changes 6
In 2019-09 and 2020-12, reading
schema.contentEncodingyieldsstringinstead of the closed RFC 2045 union; draft-07 retains the union.Deno publishing is retired; Deno users can consume the npm package directly with
npm:json-schema-typed.No longer includes plain
stringor its method types; the unconstrainedJSONSchemastill accepts arbitrary strings fortype.In 2020-12,
prefixItemsmust be an array of schemas; a bare schema is no longer accepted.In-place applicators,
contains, andcontentSchemano longer inherit the parent schema'stype; nested schemas may declare any type.In 2019-09 and 2020-12,
$vocabularyis typed asRecord<string, boolean>instead ofRecord<string, string>, matching the meta-schema.
New APIs and options 12
Adds
ContentEncoding.Base16for 2019-09 and 2020-12.Adds
ContentEncoding.Base32for 2019-09 and 2020-12.Adds
ContentEncoding.Base32Hexfor 2019-09 and 2020-12.Adds
ContentEncoding.Base64URLfor 2019-09 and 2020-12.Adds the canonical import path for the 2019-09 module; the draft-prefixed path remains an alias re-exporting the same module.
Adds the canonical import path for the 2020-12 module; the draft-prefixed path remains an alias re-exporting the same module.
Adds a moving alias for the newest in-progress specification, currently the same module as v1.
Adds the unreleased JSON Schema v1 working specification module, which may change until the specification's first release; the main export remains on 2020-12.
Takes a third type parameter,
Sub, for the type of nested schemas.Exports the type utility used to build
JSONSchema.String,JSONSchema.Object, and related types.Exports the type utility used to build
JSONSchema.String,JSONSchema.Object, and related types.Exports keyword names grouped by the
typethey apply to from every module.
Behavior and default changes 1
In draft-07,
formatis permitted on every type, not only strings.
Fixes and other changes 9
Changes the package license from BSD-2-Clause to BSD-3-Clause, adding the standard non-endorsement clause.
Adds
default: falseto match the meta-schema.In v1,
$dynamicRefis typed as a plain anchor name rather than a URI reference, matching the v1 meta-schema.For union
Valuetypes,typeis constrained to the corresponding schema type names, including the list form.Adds
minimum: 0to match the meta-schema.Adds
minimum: 0to match the meta-schema.Adds the deprecated
$recursiveAnchorkeyword to draft 2020-12 because its meta-schema still lists it.Adds
default: falseto match the meta-schema.Adds the deprecated
$recursiveRefkeyword to draft 2020-12 because its meta-schema still lists it.