Skip to content

v10.0.0-0

Pre-release
Pre-release

Choose a tag to compare

@mikermcneil mikermcneil released this 27 Aug 00:27
· 40 commits to master since this release

So far, this major version bump exists purely because of a minor (but breaking) change to rttc.parseHuman()-- and specifically only when a primitive type schema is provided. Now, if coercion of the human-entered string fails, a validation error is thrown (whereas before, the base value was used). In other words, parseHuman() is now using rttc.validate() (RTTC loose validation) instead of rttc.coerce() (RTTC coercion).