Skip to content

Releases: standardschema/javascript

Improve Array/Tuple Type Checking

30 Jun 22:05
Compare
Choose a tag to compare

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

30 Jun 22:02
Compare
Choose a tag to compare

Fixed

  • Fix array type check inversion

Expose `is()` type check

30 Jun 21:36
Compare
Choose a tag to compare

Changed

  • Expose is(schema, type) type checker

Type Assertion

30 Jun 21:30
Compare
Choose a tag to compare

Changed

  • Enable type assertions
  • Improved schema extensions
  • Fix results of array validation

Schema Extension

21 Jun 23:46
Compare
Choose a tag to compare

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

19 Jun 20:50
Compare
Choose a tag to compare

Fixed

  • Make default values act as required: false when type checking

Object Specificity

19 Jun 20:38
Compare
Choose a tag to compare

Changed

  • Add property type check values to total result

Structural Check Specificity

19 Jun 20:38
Compare
Choose a tag to compare

Changed

  • Structural checks return number indicating specificity of type check

Specialised Primitive Types

13 Jun 21:49
Compare
Choose a tag to compare

Changed

  • Add new primitive types - Pattern and Literal, allows for specialised type checking when using these types

Fix Structural Type Checks

08 Jun 16:09
Compare
Choose a tag to compare

Fixed

  • Correct Types.{Whitelist,Blacklist,Object} structural type checks