Skip to content

v1.1.0

Compare
Choose a tag to compare
@sbarfurth sbarfurth released this 30 Jul 16:33
· 239 commits to master since this release
6e5a0d7

Added

  • Ability to receive all validation errors for a value with testAll().
  • Ability to create and test asynchronous rules with testAsync().
  • Rule object() to check whether a value is an object.
  • Rule schema() to validate the schema of an object.
  • Modifier some to verify that at least one value in an array passes a rule.
  • Modifier every to verify that all values in an array pass a rule.

Changed

  • Made ValidationException inherit from JavaScript's built-in Error.
  • Rewrote documentation and moved it from the README to a website using VuePress.
  • Made the validation object immutable.

Fixed

  • Build process now properly transpiles modules from ES6 to ES5. (#44)