Skip to content

Releases: dhoulb/blork

Major version

13 May 11:51
Compare
Choose a tag to compare

Major version change because we removed a part of the API.

  • Remove prop() function and add props() function instead (prop() was impossible to type with Flow)

Bugfix release

07 May 02:10
Compare
Choose a tag to compare
  • 5.1.1
    • Fix minor issues with coverage and improve some internal error messages
  • 5.1.0
    • Add prop() function that defines a locked object property that must match a Blork type

Bugfix release

07 Apr 23:30
Compare
Choose a tag to compare

Fix issue where if object has only one property the _any key isn't checked

Major version

07 Apr 21:42
Compare
Choose a tag to compare

Breaking API change:

  • Change from symbol [ANY] key to _any key for indexer property (for convenience and better Flow compatibility)

Minor version

06 Apr 03:50
Compare
Choose a tag to compare
  • Add checker("string") function to return a raw boolean checker function itself.

Bugfix release

02 Apr 22:01
Compare
Choose a tag to compare
  • More robust undefined value checking for format()

Minor version

30 Mar 22:16
Compare
Choose a tag to compare
  • Add json checker to check for JSON-friendly values (null, true, false, finite numbers, strings, plain objects, plain arrays)

Minor version

30 Mar 20:12
Compare
Choose a tag to compare

Minor version release introducing new features:

  • Add circular checker to check for objects with circular references
  • Add ! modifier to enable invert checking, e.g. !num (don't allow numbers) or !circular (don't allow circular

Bugfix release

30 Mar 03:24
Compare
Choose a tag to compare

Use . dot notation in error message prefix when recursing into objects

Bugfix release

30 Mar 03:17
Compare
Choose a tag to compare

Fix bug where optional types were throwing an incorrect error message