github jquense/yup v1.0.0-beta.0

latest releases: v1.4.0, v1.3.3, v1.3.2...
pre-release2 years ago

1.0.0-beta.0 (2021-12-29)

  • feat!: add json() method and remove default object/array coercion (94b73c4)

Features

  • Make Array generic consistent with others (a82353f)

BREAKING CHANGES

  • types only, ArraySchema initial generic is the array type not the type of the array element. array<T>() is still the inner type.
  • object and array schema no longer parse JSON strings by default, nor do they return null for invalid casts.
object().json().cast('{}')
array().json().cast('[]')

to mimic the previous behavior

Don't miss a new yup release

NewReleases is sending notifications on new releases.