Skip to content

Releases: charlespascoe/typed-validation

v0.7.6

09 Feb 15:45
v0.7.6
Compare
Choose a tag to compare

New Features

  • Colour output message (off by default)

v0.7.4

20 Jan 12:44
v0.7.4
Compare
Choose a tag to compare

Features and Improvements

  • Improve either error messages (#9)
  • Normalise how primitive types are printed

v0.7.3

18 Jan 15:48
v0.7.3
Compare
Choose a tag to compare

Features and Improvements

  • Add overloads of optional and nullable without next assertion
  • Refactor how error messages are formatted

Fixes

  • Fix conformsTo spelling of 'property' and 'properties' (#8)
  • Fix onErrorDefaultsTo not defaulting to default on error
  • Fix eachValue missing call to next

v0.7.2

12 Jan 08:41
v0.7.2
Compare
Choose a tag to compare
  • Align documentation with v0.6.0 and v0.7.0

v0.7.1

12 Jan 08:40
v0.7.1
Compare
Choose a tag to compare
  • Fix either so that it is exported

v0.7.0

12 Jan 08:39
v0.7.0
Compare
Choose a tag to compare
  • Rename SuccessResult.result to value
  • Add isMap
  • Add eachValue
  • Add either

v0.6.0

10 Jan 12:28
v0.6.0
Compare
Choose a tag to compare

Changes

  • Change error handling to use return value rather than exceptions

v0.5.2

09 Jan 13:51
v0.5.2
Compare
Choose a tag to compare

Features

  • Add overloads of conformsTo to allow passing validation options

v0.5.1

09 Jan 13:31
v0.5.1
Compare
Choose a tag to compare

Features

  • Add validate options

Fixes

  • #5 - KeyPathNode incorrectly formatting keys with numbers

v0.5.0

27 Dec 11:26
v0.5.0
Compare
Choose a tag to compare
  • Change ValidationError.errorCode type from enum to string
  • Implement multiple error handling