yup
1.7.1 · 21 Sep 2025MIT16.7M / weekRepositorynpmAtom feed
Your version
0.32.11 is the newest release of 0.5.x.
In short
1 new1 changed
Release note
breaking
isValid is now async, provide a node style callback, or use the promise the method returns to read the validity. This change allows for more robust validations, specifically remote ones for client code (or db queries for server code). The cast method is still, and will remain, synchronous.
other changes
Added validate method (also async) which resolves to the value, and rejects with a new ValidationError