[Snyk] Upgrade react-hook-form from 7.58.1 to 7.61.0 #750
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.58.1 to 7.61.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 4 versions ahead of your current version.
The recommended version was released 21 days ago.
Release notes
Package name: react-hook-form
-
7.61.0 - 2025-07-23
- subscribe to the entire form but only return updated value with certain condition
type FormValue = {
- subscribe to a specific form value state
type FormValue = {
-
7.60.0 - 2025-07-04
-
7.60.0-next.0 - 2025-07-01
-
7.59.0 - 2025-06-28
-
7.58.1 - 2025-06-17
from react-hook-form GitHub release notes🧮 feat: compute prop for useWatch subscription (#12503)
test: 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 : '';
},
});
👨🔧 trigger watch callbacks in response to value changes only (#12945)
🙏 track name with setValue subscription callbacks (#12946)
⌨️ fix: watch return type based on defaultValue (#12896)
🐞 fix #12959 subscribe with latest defaultValues #12961
🐞 fix: handle explicit "multipart/form-data" encType in Form Component (#12948)
🐞 fix(build): Remove React wildcard import to resolve ESM build issues (#12942)
🦭 chore: improve exclude patterns (#12935)
🐿️ chore: remove unused omit function (#12958)
Big thanks to @ joshkel for helping with some of the subscription bugs! and also @ kamja44, @ mrazauskas, @ codepunkt, @ afontcu and @ rururux
🦘 feat:
resetnewkeepFieldsRefoptions keep fields reference (#12923)🦘 feat:
resetnewkeepFieldsRefoptions keep fields reference (#12923)🪱 feat: support deep equality checking with circular references (#12914)
🐞 fix #12900 issue with formData reference clone (#12906)
🐞 fix #12873 issue with undefined value for submit data (#12905)
🐞 fix case when useWatch accept object variable param (#12897)
🐞 fix: typo in UseFormSubscribe and missing event type for callback data in subscribe (#12904)
Revert "⌨️ rename to UseFormResetFieldOptions for type consistency" (#12907)
thanks to @ aspirisen @ n8pjl @ SKOLZ @ pushys & @ candymask0712
🔧 check window.crypto undefined (#12893)
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: