- Fixes
min
andmax
validation and messaging
- Migrated tests from mocha to jest.
- Update default
uuid
type to be case insensitive. - Replace travis with github actions for CI.
- Fixed bug around
allow
stomping onempty
when validating strings. Originally usingallow
would require specifying''
as an allowed value, even ifempty
was also enabled.
-
Added
jexl
validator method for evaluating data against Jexl expressions. -
Added root
use
method for adding plugin references to external packages. (Currently only used byjexl
validator.)
- Fixed bug in
zip
type 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 acreator
ordefault
rule is defined.
-
BREAKING: Removed Babel dependency. This effectively drops support for Node versions <6.
-
Fixed bug around
allowNull
and non-null
falsey default values (#71).
- BREAKING: Changed default
zip
to US regex pattern. The original default pattern was discovered to be overly lenient and was removed.