Releases: imbrn/v8n
Releases · imbrn/v8n
v1.2.0
Added
- Rule
passesAnyOf()to perform branching validation. - Rule
optional()for validation of optional values.
Changed
- Rule
number()now supports a flag to make it returnfalsefor infinite numbers (#76)
Fixed
testAsync()nesting causes for failed validation.
Deprecated
- From v2.0.0: Rule
number()will returnfalsefor infinite values by default
v1.1.2
v1.1.0
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
someto verify that at least one value in an array passes a rule. - Modifier
everyto verify that all values in an array pass a rule.
Changed
- Made
ValidationExceptioninherit from JavaScript's built-inError. - 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)