[Snyk] Upgrade react-hook-form from 7.53.0 to 7.58.1 #995
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.53.0 to 7.58.1.
ℹ️ 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 26 versions ahead of your current version.
The recommended version was released a month ago.
Release notes
Package name: react-hook-form
🔧 check window.crypto undefined (#12893)
⌨️ feat: add FieldArrayPathByValue type (#12481)
📇 feat #12813 use stringToPath to prevent error at field name with quotes (#12858)
🧧 default to crypto.randomUUID in generateId (#12890)
🐞 close #12857 incorrect formControl return from useForm (#12878)
🐞 fix Initial useFieldArray fields (#12847)
🥷 chore: improve type import (#12879)
📇 chore: Added displayName to useFormContext (#11448)
✍️ chore: fix typo in assert-esm-exports.mjs (#12860)
thanks to @ mastermatt, @ clonemycode, @ dusan233, @ candymask0712, @ tran-simon & @ adnanalbeda
🫚 feat: root errors count in schema error lookup (#12839)
👁️ feat: focus form field for errors supplied by errors prop (#12805)
⌨️ feat: add and export options config for resetField api (#12819)
🐞 close #12707 useController focus function runtime issue (#12843)
🐞 fix: add proper types to form.subscribe (#12850)
🐞 fix: add type info for callback args in subscribe (#12859)
🔄 close #12835 revert original fix on errors empty object check (#12846)
thanks to @ candymask0712, @ CertainlyAria, @ jkbach, @ chrisgarber and @ evgeniyworkbel
👀
useWatch
newcompute
propstest: string;
}
const watchedValue = useWatch({
control: methods.control,
compute: (data: FormValue) => {
if (data.test?.length) {
return data.test;
}
},
});
test: string;
}
const watchedValue = useWatch({
control: methods.control,
name: 'test',
compute: (data: string) => {
return data.length > 3 ? data : '';
},
});
7.56.4 - 2025-05-17
🐞 fix: Changes setValue to skip values that are not in ownProperties to prevent infinite call stack (#12731)
🐞 fix: checkbox duplication handling in useFieldArray (#12793)
🐞 fix: make mode and reValidateMode reactive (#12803)
7.56.3 - 2025-05-07
Revert "📭 close #12773 pass input ref instead partial (#12775)"
7.56.2 - 2025-05-03
🐞 fix #12785 regression on default value gets overwritten by values props (#12790)
🐞 fix: use layoutEffect in useWatch for subscription similar to useForm (#12786)
🐞 fix #12772 reset form useWatch to utilize ref for defaultValue and … (#12780)
📭 close #12773 pass input ref instead partial (#12775)
7.56.1 - 2025-04-22
🐞 fix #12761 #12762 issue with usage reset isReady formState (#12765)
🐞 fix #12763 import warning with named exports (#12764)
7.56.0 - 2025-04-20
⏰ feat: introduce isReady state for subscription (#12568)
useEffect(() => {
// form subscription setup is ready
if (isReady) setValue('test', 'value')
}, [isReady])
🌗 feat: support reactive mode and reValidateMode (#12743)
🐞 fix #12741 regression on move/swap on useFieldArray input update (#12749)
🐞 fix: use useIsomorphicLayoutEffect to address warning in SSR (#12738)
⏰ feat: introduce isReady state for subscription (#12568)
useEffect(() => {
// form subscription setup is ready
if (isReady) setValue('test', 'value')
}, [isReady])
🌗 feat: support reactive mode and reValidateMode (#12743)
🐞 fix #12741 regression on move/swap on useFieldArray input update (#12749)
🐞 fix: use useIsomorphicLayoutEffect to address warning in SSR (#12738)
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: