[Snyk] Upgrade react-hook-form from 7.54.2 to 7.55.0 #50
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.
Snyk has created this PR to upgrade react-hook-form from 7.54.2 to 7.55.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.
The recommended version is 11 versions ahead of your current version.
The recommended version was released 25 days ago.
Release notes
Package name: react-hook-form
⚡️
createFormControl
function App() {
const { register } = useForm({
formControl,
})
return <form />
}
function Test() {
useFormState({
control // no longer need context api
})
}
⚡️
subscribe
formControl.subscribe({
formState: { isDirty: true },
callback: (formState) => {
if (formState.isDirty) {
// do something here
}
}
})
function App() {
const { register } = useForm({
formControl,
})
return <form />
}
🪲 fix #12680: Update Fieldarray Unmount Status (#12690)
🫡 fix: improve type inference for useFormContext (#12689)
👮♂️ feat: infer resolver output types (#12638)
🐞 fix(useForm): make values and defaultValues work correctly with createFormControl and useMemo (#12675)
🥹 close #12665 issue with values not populate form
🐞 fix #12665 regression on values over take default values
🫡 allow use of handleSubmit with native events (#12645)
🐞 fix #12631 revalidateMode issue with useFieldArray validation (#12646)
🦥 close #12634 allow components with useController hook be memoized (#12635)
🐞 fix #12580 setError in useEffect does not work when used inside the FormProvider context (#12642)
🛟 fix: add the condition to prevent infinite render with errors prop (#12622)
🐞 fix #12580 valid state update with onBlur mode (#12612)
🐞 fix #12572 disabled field value not get undefined in resolver (#12573)
🦾 feat: reference stable for useWatch defaultValue (#12564)
⏰ chore: remove typetest folder from build (#12555)
🐞 fix #12532 useController should unregister issue with strict mode (#12538)
👁️ feat: improve reference update with useWatch (#12537)
🦥 close #12531 disabled state issue with touched and dirty (#12536)
thanks to @ jtomaszewski, @ joshkel, @ candymask0712, @ kotarella1110, @ jorisre, @ jtomaszewski, @ controversial and @ jedahu
🪲 fix #12680: Update Fieldarray Unmount Status (#12690)
🫡 fix: improve type inference for useFormContext (#12689)
thanks to @ jorisre & @ DavidIMk
👮♂️ feat: infer resolver output types (#12638)
🐞 fix(useForm): make values and defaultValues work correctly with createFormControl and useMemo (#12675)
🥹 close #12665 issue with values not populate form
thanks @ kotarella1110, @ jorisre, @ jtomaszewski, @ controversial and @ jedahu
🐞 fix #12665 regression on values over take default values
🫡 allow use of handleSubmit with native events (#12645)
🐞 fix #12631 revalidateMode issue with useFieldArray validation (#12646)
🦥 close #12634 allow components with
useController
hook be memoized (#12635)🐞 fix #12580
setError
inuseEffect
does not work when used inside the FormProvider context (#12642)thanks to @ jtomaszewski, @ joshkel, @ candymask0712 & @ kotarella1110
🛟 fix: add the condition to prevent infinite render with
errors
prop (#12622)🐞 fix #12580 valid state update with
onBlur
mode (#12612)🐞 fix #12572 disabled field value not get undefined in resolver (#12573)
🦾 feat: reference stable for useWatch defaultValue (#12564)
⏰ chore: remove typetest folder from build (#12555)
🐞 fix #12532
useController
should unregister issue with strict mode (#12538)👁️ feat: improve reference update with
useWatch
(#12537)🦥 close #12531 disabled state issue with touched and dirty (#12536)
🥲 fix incorrect type for
useForm
withformControl
+ formControl,
})
return <form />
}
7.55.0-next.0 - 2024-12-24
7.54.2 - 2024-12-20
from react-hook-form GitHub release notes
Important
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: