Packages

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

Other targets from 0.5.1Newest 0.x0.32.11Latest1.7.1
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

  1. 0.6.0

    8 Apr 20151 new
    • new

      Added the equals() alias for oneOf

4 other lines we could not sort, mostly version bumps
  • The resolution order of defaults and coercions has changed. as well as the general handling of null values.

    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.

    0.6.0