- Fixes
minandmaxvalidation and messaging
- Migrated tests from mocha to jest.
- Update default
uuidtype to be case insensitive. - Replace travis with github actions for CI.
- Fixed bug around
allowstomping onemptywhen validating strings. Originally usingallowwould require specifying''as an allowed value, even ifemptywas also enabled.
-
Added
jexlvalidator method for evaluating data against Jexl expressions. -
Added root
usemethod for adding plugin references to external packages. (Currently only used byjexlvalidator.)
- Fixed bug in
ziptype that disallowed numeric values. Now values are coerced to strings before validation checks.
-
Added Node 12 to Travis config.
-
Updated vulnerable dependencies.
- BREAKING: Fixed bug allowing empty string values for predefined types, even when required (#76).
- Conditional require rules (
requiredIf,requiredIfNot) are now removed if acreatorordefaultrule is defined.
-
BREAKING: Removed Babel dependency. This effectively drops support for Node versions <6.
-
Fixed bug around
allowNulland non-nullfalsey default values (#71).
- BREAKING: Changed default
zipto US regex pattern. The original default pattern was discovered to be overly lenient and was removed.