Skip to content

Releases: galvez/jsontypedef

v2.0.0

17 Mar 05:45
Compare
Choose a tag to compare

This is a maintenance release containing two breaking changes, thus the new v2.0.0 major release.

  • BREAKING: The package is now ESM-only.
  • BREAKING: The schema helper has been removed and placed in its own /jsonschema submodule.

Biome is now used for linting.

v1.0.0

17 Jul 06:36
Compare
Choose a tag to compare

v1.0.0

This is the first major release of the library and introduces many breaking changes.

  • Helpers no longer have the nullable parameter, they have been replaced with the top-level nullable helper.
  • The object() helper now sets additionalProperties to true by default, mimicking a JavaScript object without restrictions.
  • The new sealed() helper now sets additionalProperties to false and can be used instead for that purpose.
  • The metadata parameter causes a metadata property to be added to JSON schemas as well, for consistency, rather than mixing the metadata properties with the main schema definition.

See the latest README for all new API information.

v0.0.2

14 Mar 02:29
Compare
Choose a tag to compare

Fixes

  • schema helper: optionalProperties were showing up in required[]

Features

  • Added number() as an alias to float64() for convenience
  • Added schema.number() and schema.integer() for convenience