Releases: standardschema/javascript
Releases · standardschema/javascript
Default `Array#items` to `Any` type
Changed
- Default
Array#items == Any
Unknown Transform
Added
- Expose
Unknown
type for implementation issues
Transforms
Added
- Expose transforms for manipulating data and type model
Enable `toJSON`
Added
- Serialize classes to JSON
Refactor to class model with assignability checks
Changed
- Use classes to represent type model, simplify types and enable assignability checks
Remove void-able return from "bests"
Changed
- Return type can no longer be
void
, throws instead
Throw on invalid "best"
Changed
- When best does not exist, throw with invalid score
Mirror `bestSchema` with `bestValue`
Added
- Expose a method to select the best value in a list
Object {min,max}Keys Reference
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
Changed
- Add array item length to type checking with min/max items