Skip to content

Releases: imbrn/v8n

v1.2.0

31 Jul 17:19
7a3bc17

Choose a tag to compare

Added

  • Rule passesAnyOf() to perform branching validation.
  • Rule optional() for validation of optional values.

Changed

  • Rule number() now supports a flag to make it return false for infinite numbers (#76)

Fixed

  • testAsync() nesting causes for failed validation.

Deprecated

  • From v2.0.0: Rule number() will return false for infinite values by default

v1.1.2

30 Jul 16:34

Choose a tag to compare

Fixed

  • Issue with schema() not validating at deeper levels properly.

v1.1.0

30 Jul 16:33
6e5a0d7

Choose a tag to compare

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)