This repository was archived by the owner on Jan 6, 2024. It is now read-only.
Update dependency formik to v2.4.5 #37
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.2.9->2.4.5Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
jaredpalmer/formik (formik)
v2.4.5Compare Source
Patch Changes
d7db9cd#3860 Thanks @patik! - Add missing dependency@types/hoist-non-react-statics, closes #3837fe4ed7e#3501 Thanks @markspolakovs! - Markformikas side-effect free inpackage.jsonv2.4.4Compare Source
Patch Changes
41720c2#3862 Thanks @yazaldefilimonepinto! - ForwardclassNamefor custom components used withFieldda58b29#3858 Thanks @alaanescobedo! - Remove use of deprecatedStatelessComponenttype in favor ofFunctionComponent5c01ee7#3872 Thanks @rajpatelbot! - FIX: Fixed resetForm function dependency issuev2.4.3Compare Source
Patch Changes
9e0a661#3843 Thanks @bonimba! - Fix FormikHelper and FieldHelperProps typesv2.4.2Compare Source
Patch Changes
96280d3#3817 Thanks @probablyup! - Updated internal types to support React 18.v2.4.1Compare Source
Patch Changes
2b194c2#3808 Thanks @NagaiKoki! - fix type of setFieldValue function708bcb2#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.v2.4.0Compare Source
Minor Changes
2f53b70#3796 Thanks @probablyup! - Add support for Yup "transforms".v2.3.3Compare Source
Patch Changes
f075a0c#3798 Thanks @probablyup! - Fixed the use of generics for theArrayHelperstype such thatany[]is the default array type and for each individual method the array item type can be overridden if necessary.v2.3.2Compare Source
Patch Changes
f086b5a#3237 Thanks @pieplu! - ChangedgetInto 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 forsetFieldValueto reflect the returnedPromiseand potential returned error(s).v2.3.0Compare Source
Minor Changes
73de78d#3788 Thanks @probablyup! - Added typescript generics toArrayHelpersinterface 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 thesame field object. This is not that useful in most scenarios because
a sufficiently-complex form will have several
yup.object()in theschema.
However, Yup offers something called
contextwhich can operate acrossthe entire schema when using a \$ prefix:
With this change, you may now validate against any field in the entire schema,
regardless of position when using the \$ prefix.
v2.2.10Compare Source
Patch Changes
22e236e#3784 Thanks @probablyup! - Improve performance of theFieldArraycomponent by adding ashouldComponentUpdatecheck; this should help avoid unnecessary re-renders which may affect the performance of a form.bc9cb28#3785 Thanks @probablyup! - Fixed field error state for array fields that have an error and become empty through an API likearrayHelpers.remove.The prior behavior resolved the field error to
[undefined], now it is simplyundefined.9cbf150#3787 Thanks @probablyup! - Fix infinite loop issue inFieldwhen field helpers (setTouched, etc) are used as an argument inReact.useEffect.9c75a9f#3780 Thanks @probablyup! - Fixed an issue with array field errors being incorrectly split into an array of individual characters instead of an array of error strings.35fa4cc#3783 Thanks @probablyup! - Fix validation of deep.dot.path field references when using thevalidateFieldAPI.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.