Releases: dhoulb/blork
Releases · dhoulb/blork
Major version
Major version change because we removed a part of the API.
- Remove
prop()
function and addprops()
function instead (prop()
was impossible to type with Flow)
Bugfix release
- 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
- Add
Bugfix release
Fix issue where if object has only one property the _any key isn't checked
Major version
Breaking API change:
- Change from symbol
[ANY]
key to_any
key for indexer property (for convenience and better Flow compatibility)
Minor version
- Add
checker("string")
function to return a raw boolean checker function itself.
Bugfix release
- More robust undefined value checking for format()
Minor version
- Add
json
checker to check for JSON-friendly values (null, true, false, finite numbers, strings, plain objects, plain arrays)
Minor version
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
Use .
dot notation in error message prefix when recursing into objects
Bugfix release
Fix bug where optional types were throwing an incorrect error message