yup
1.7.1 · 21 Sep 2025MIT16.7M / weekRepositorynpmAtom feed
Your version
0.32.11 is the newest release of 0.7.x.
In short
2 new3 changed
Release note
breaking
The
validation()method has been renamed totest()and has a new signature requiring anameargumentExclusive validations now trump the previous one instead of defering to it e.g:
string().max(10).max(15)has a max of15instead of10
other changes
Expose advanced signature for custom validation tests, gives finer grained control over how tests are added
Added the
abortEarly(default:true) optionTransforms are passed an addition parameter: 'originalValue' you allow recovering from a bad transform further up the chain (provided no one mutated the value)