Skip to content

Releases: standardschema/javascript

Default `Array#items` to `Any` type

Choose a tag to compare

@blakeembrey blakeembrey released this 07 Sep 22:23

Changed

  • Default Array#items == Any

Unknown Transform

Choose a tag to compare

@blakeembrey blakeembrey released this 07 Sep 22:22

Added

  • Expose Unknown type for implementation issues

Transforms

Choose a tag to compare

@blakeembrey blakeembrey released this 07 Sep 22:22

Added

  • Expose transforms for manipulating data and type model

Enable `toJSON`

Choose a tag to compare

@blakeembrey blakeembrey released this 07 Sep 22:21

Added

  • Serialize classes to JSON

Refactor to class model with assignability checks

Choose a tag to compare

@blakeembrey blakeembrey released this 07 Sep 22:20

Changed

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

Remove void-able return from "bests"

Choose a tag to compare

@blakeembrey blakeembrey released this 08 Jul 00:57

Changed

  • Return type can no longer be void, throws instead

Throw on invalid "best"

Choose a tag to compare

@blakeembrey blakeembrey released this 08 Jul 00:55

Changed

  • When best does not exist, throw with invalid score

Mirror `bestSchema` with `bestValue`

Choose a tag to compare

@blakeembrey blakeembrey released this 08 Jul 00:53

Added

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

Object {min,max}Keys Reference

Choose a tag to compare

@blakeembrey blakeembrey released this 08 Jul 00:35

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

Choose a tag to compare

@blakeembrey blakeembrey released this 30 Jun 22:09

Changed

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