Packages

yup

1.7.1 · 21 Sep 2025MIT16.7M / weekRepositorynpmAtom feed

Your version

0.28.0

16 Dec 2019Where it was published

0.32.11 is the newest release of 0.28.x.

In short

3 breaking10 new9 fixed1 internal

  • breaking

    Use Number.isInteger. This works correctly for large numbers.

  • breaking

    reach() no longer resolves the returned schema meaning it's conditions have not been processed yet; prefer validateAt/castAt where it makes sense

  • breaking

    Required no longer shows up twice in describe() output for array and strings, which also no longer override required

Release note

Bug Fixes

  • Make concat compatible with (not)oneOf

  • Array path resolve for descendants

  • Change @babel/runtime version to be a range (#488) (1c9b362), closes #486

  • Concat of mixed and subtype

  • Default message for test with object

  • noUnknown() overriding

  • String.matches() and regex global flag

  • Synchronous conditional object validation with unknown dependencies

  • Unix epoc bug in date parser

Features

Breaking changes

  • breaking

    Use Number.isInteger. This works correctly for large numbers.

Related to #147

  • breaking

    reach() no longer resolves the returned schema meaning it's conditions have not been processed yet; prefer validateAt/castAt where it makes sense

  • breaking

    Required no longer shows up twice in describe() output for array and strings, which also no longer override required