This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
[Snyk] Upgrade react-hook-form from 7.31.1 to 7.38.0 #456
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 was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade react-hook-form from 7.31.1 to 7.38.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: react-hook-form
🕰 support validation for week and time input type (#9189)
Screen.Recording.2022-10-19.at.8.21.56.am.mov
Screen.Recording.2022-10-19.at.8.21.56.am.mov
🧘🏻 enable focus error with disabled inputs while submitting (#9155)
🧱 prevent runtime error
startsWith
called with undefined (#9223)🐞 fix #9216 isValid state not update with async form level trigger (#9218)
🧦 fix accessibility issue on examples with input missing id (#9174)
🚔 check field array value type before updating (#9170)
📓 update TSDoc for useFieldArray (#9178)
thanks to @ BogdanCerovac and @ leapful
🍨 feature: include
defaultValues
inside formState (#8966)defaultValues: { name: 'test' }
})
const { defaultValues } = useFormState()
const name = watch('name')
return (
<div>
<p>Your name was {defaultValues.name}</p>
<p>Updated name is {name}</p>
</div>
)
Screen.Recording.2022-10-07.at.8.55.56.am.mov
Screen.Recording.2022-10-07.at.8.55.56.am.mov
🖨 close #9058 avoid clone object when contains prototype methods
constructor() {
this.firstName = null
}
}
const formData = new DataModel({ firstName: "Bob" })
useForm({
defaultValues: formData // no longer get clone internally
})
🐞 fix #9134 useFieldArray validation action inconsistency (#9136)
🥷 close #9126 useController ref overwrite under strict mode (#9130)
😵💫 close #9105 improve input focus method check (#9109)
📖 fix UseFieldArrayAppend types example (#9093)
🖇 change link (#9159)
🙌 improve naming of options forEach local (#9152)
thanks to @ arieloO @ Ilaygoldman and @ simenbrekken-visma
Read more
🪲 fix #9082 inconsistency between single/group of checkboxes disabled check state (#9083)
🌡️ improve setFocus to prevent throw error (#9081)
🚂 feature: reset to support callback syntax (#9051)
reset
with partial form values will require invokinggetValues
at the same time, here is an improvement 👇Convert your code from:
to:
Read more
Read more
Revert "🧳 let
isSubmitting
state update after valid form (#8829)"Read more
Read more
Commit messages
Package name: react-hook-form
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs