yup
1.7.1 · 21 Sep 2025MIT16.7M / weekRepositorynpmAtom feed
Upgrading yup from 0.5.1 to 0.6.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 1
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- breaking0.6.0
Release by release
- new
Added the
equals()alias foroneOf
- new
4 other lines we could not sort, mostly version bumps
- 0.6.0
The resolution order of defaults and coercions has changed. as well as the general handling of
nullvalues. - 0.6.0
Default values are cloned everytime they are returned, so it is impossible to share references to defaults across schemas. No one should be doing that anyway
- 0.6.0
Stopped pretending that using schemas as conditions in
when()actually worked (it didn't) - 0.6.0
transform()now passes the original value to each transformer. Allowing you to recover from a bad transform.