v3.0.0
konveyor-release-bot
released this
22 Apr 19:08
·
64 commits
to main
since this release
3.0.0 (2021-04-22)
Build System
BREAKING CHANGES
- deps: The yup upgrade bundles its own TS types, removing the need to depend on
@types/yup
, and some of the type changes are breaking.yup.Schema
has been replaced byyup.SchemaOf
, and it correctly infers array types now so we were able to remove the hackyMaybeArraySchema
type from useFormState. There have also been some behavior changes in some of the schema methods, particularly the.defined()
and.required()
methods. See those changes here: https://github.com/jquense/yup/blob/master/CHANGELOG.md (the items between 0.29.3 and 0.32.8). We felt it was a good idea to upgrade even though this is a little disruptive, because the new built-in TS types are less finicky and more helpful than the community-provided ones were.