Bump formik from 2.2.9 to 2.4.2
Bumps formik from 2.2.9 to 2.4.2.
Release notes
Sourced from formik's releases.
formik@2.4.2
Patch Changes
96280d3
#3817 Thanks@probablyup
! - Updated internal types to support React 18.formik@2.4.1
Patch Changes
2b194c2
#3808 Thanks@NagaiKoki
! - fix type of setFieldValue function
708bcb2
#3813 Thanks@probablyup
! - RevertFieldArray
"shouldComponentUpdate" performance optimization. As it turns out, it's a common use case to have JSX controlled via non-Formik state/props inside ofFieldArray
, so it's not safe to cancel re-renders here.
187e47d
#3815 Thanks@probablyup
! - Revert Yup transform support for the time being, this may be re-introduced in a future release under an opt-in prop.formik@2.4.0
Minor Changes
2f53b70
#3796 Thanks@probablyup
! - Add support for Yup "transforms".formik@2.3.3
Patch Changes
f075a0c
#3798 Thanks@probablyup
! - Fixed the use of generics for theArrayHelpers
type such thatany[]
is the default array type and for each individual method the array item type can be overridden if necessary.formik@2.3.2
Patch Changes
f086b5a
#3237 Thanks@pieplu
! - ChangedgetIn
to return undefined when it can't find a value AND a parent of that value is "falsy" ( "" / 0 / null / false )
6d8f018
#3792 Thanks@probablyup
! - Update the type forsetFieldValue
to reflect the returnedPromise
and potential returned error(s).formik@2.3.0
Minor Changes
73de78d
#3788 Thanks@probablyup
! - Added typescript generics toArrayHelpers
interface and its methods so that users who use TypeScript can set the type for their arrays and have type safety on array utils. I have also gone ahead and made supplying a type for the generic optional for the sake of backwards compatibility so any existing TS code that does not give a type for the FieldArray will continue to work as they always have.
39a7bf7
#3786 Thanks@probablyup
! - Yup by default only allows for cross-field validation within the same field object. This is not that useful in most scenarios because a sufficiently-complex form will have severalyup.object()
in the schema.const deepNestedSchema = Yup.object({ object: Yup.object({ nestedField: Yup.number().required(), }),
... (truncated)
Commits
-
db97ce4
Version Packages (#3828) -
96280d3
refactor: react 18 internal upgrade (#3817) -
274c306
chore: run tests on all pull request events and main push (#3816) -
8175d79
fix(docs/examples): fix broken codesandbox links (#3819) -
20f6848
Version Packages (#3814) -
187e47d
revert: "feat(validationSchema): support yup transforms in validate & submit ... -
708bcb2
followup from prior releases (#3813) -
2b194c2
fix type ofsetFieldValue
(#3808) -
4fcf01c
Improve e2e and GitHub Actions caching (#3805) -
c3f34e1
Add authdog to Formik users (#3736) - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts