Releases: typeofweb-org/schema
Releases · typeofweb-org/schema
v0.4.2
0.4.2 (2021-01-16)
Features
- documentation: Readability improvements &
pipe
docs (#24) (7542cde)
- validator: Add unknown() validator (#26) (c044a7a)
Bug Fixes
- validator: Make sure undefined fields are also optional (#25) (8b8f825)
v0.4.0
0.4.0 (2021-01-15)
⚠ BREAKING CHANGES
- errors: New structure of
ValidationError
.
Features
- errors: Add more descriptive error messages. (#22) (be8b391)
- Add pipe and λ functions to easily compose validators (#21) (1037d00)
- documentation: Quick fixes to documentation (#19) (0a0847f)
v0.3.1
0.3.1 (2021-01-14)
Improvements
- performance: Remove sorting object keys and replace Object.fromEntries (#15) (2815436)
v0.3.0
0.3.0 (2021-01-13)
⚠ BREAKING CHANGES
- parser: The new parsing behaviour changes how
date
, number
and string
validators work.
Features
- parser: Add parsing in validate function & Tests & Documentation (#10) (f9ecbd9)
v0.2.0
0.2.0 (2021-01-13)
⚠ BREAKING CHANGES
Features
- modifier: Added nonEmpty and minLength modifiers (#9) (51e19a0)
- validator: Allow passing validators and values to
oneOf
(#11) (0aeb24d)
v0.1.0
0.1.0 (2021-01-13)
⚠ BREAKING CHANGES
- validator: Removed old array syntax:
array([string()])
is no longer valid. Use array(string())
instead.
Features
- validator: Array shorthand syntax (#7) (0b03c58)
- Add Invalid Date validation (405d800)