Releases: standardschema/javascript
Releases · standardschema/javascript
Improve Array/Tuple Type Checking
Changed
- Check with array and tuple sub-types for type checking
- Start sub-type checking at 1 (in case of an empty, but valid, object)
Fix Array Type Check
Fixed
- Fix array type check inversion
Expose `is()` type check
Changed
- Expose
is(schema, type)
type checker
Type Assertion
Changed
- Enable type assertions
- Improved schema extensions
- Fix results of array validation
Schema Extension
Added
- Ability to use
Utils.{merge,mergeSchema,extendSchema}
methods for merging schemas together - Support for
{min,max}Keys
count on object types - Included source map sources in package
Default Value Type Check
Fixed
- Make default values act as
required: false
when type checking
Object Specificity
Changed
- Add property type check values to total result
Structural Check Specificity
Changed
- Structural checks return number indicating specificity of type check
Specialised Primitive Types
Changed
- Add new primitive types -
Pattern
andLiteral
, allows for specialised type checking when using these types
Fix Structural Type Checks
Fixed
- Correct
Types.{Whitelist,Blacklist,Object}
structural type checks