Skip to content

Releases: standardschema/javascript

Default `Array#items` to `Any` type

07 Sep 22:23
Compare
Choose a tag to compare

Changed

  • Default Array#items == Any

Unknown Transform

07 Sep 22:22
Compare
Choose a tag to compare

Added

  • Expose Unknown type for implementation issues

Transforms

07 Sep 22:22
Compare
Choose a tag to compare

Added

  • Expose transforms for manipulating data and type model

Enable `toJSON`

07 Sep 22:21
Compare
Choose a tag to compare

Added

  • Serialize classes to JSON

Refactor to class model with assignability checks

07 Sep 22:20
Compare
Choose a tag to compare

Changed

  • Use classes to represent type model, simplify types and enable assignability checks

Remove void-able return from "bests"

08 Jul 00:57
Compare
Choose a tag to compare

Changed

  • Return type can no longer be void, throws instead

Throw on invalid "best"

08 Jul 00:55
Compare
Choose a tag to compare

Changed

  • When best does not exist, throw with invalid score

Mirror `bestSchema` with `bestValue`

08 Jul 00:53
Compare
Choose a tag to compare

Added

  • Expose a method to select the best value in a list

Object {min,max}Keys Reference

08 Jul 00:35
Compare
Choose a tag to compare

Changed

  • Allow object key counts to be references

Added

  • Expose a method for selecting the "best" schema by type checking

Array Item Count Type Check

30 Jun 22:09
Compare
Choose a tag to compare

Changed

  • Add array item length to type checking with min/max items