yup
1.7.1 · 21 Sep 2025MIT16.7M / weekRepositorynpmAtom feed
Upgrading yup from 0.4.2 to 0.5.0
1 release in betweenevery note read
- 0
- changes to make
- 0
- advisories fixed
- 1
- new
- 0
- fixes
Release by release
- new
Added validate method (also async) which resolves to the value, and rejects with a new ValidationError
- new
1 other line we could not sort, mostly version bumps
- 0.5.0
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.