yup
1.7.1 · 21 Sep 2025MIT16.7M / weekRepositorynpmAtom feed
Upgrading yup from 0.6.3 to 0.7.0
1 release in betweenevery note read
- 0
- changes to make
- 0
- advisories fixed
- 2
- new
- 0
- fixes
Release by release
- new
Expose advanced signature for custom validation tests, gives finer grained control over how tests are added
- new
Added the
abortEarly(default:true) option
- new
3 other lines we could not sort, mostly version bumps
- 0.7.0
The
validation()method has been renamed totest()and has a new signature requiring anameargument - 0.7.0
Exclusive validations now trump the previous one instead of defering to it e.g:
string().max(10).max(15)has a max of15instead of10 - 0.7.0
Transforms are passed an addition parameter: 'originalValue' you allow recovering from a bad transform further up the chain (provided no one mutated the value)