[Snyk] Upgrade react-hook-form from 7.67.0 to 7.68.0#310
Conversation
Snyk has created this PR to upgrade react-hook-form from 7.67.0 to 7.68.0. See this package in npm: react-hook-form See this project in Snyk: https://app.snyk.io/org/whyiswhen/project/3c8c6b2d-001e-4f4e-90d5-3674c5d94fba?utm_source=github&utm_medium=referral&page=upgrade-pr
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
|
Important Review skippedIgnore keyword(s) in the title. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello @chirag127, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request automates the upgrade of the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
There was a problem hiding this comment.
Code Review
This pull request, automatically generated by Snyk, upgrades react-hook-form from version 7.67.0 to 7.68.0. The changes are confined to package.json and package-lock.json to reflect this dependency update. My review focuses on dependency management best practices. I've noticed that the updated dependency in package.json uses a caret (^) version range. To improve build reproducibility and prevent unexpected issues from transitive dependency updates, I recommend pinning dependencies to their exact versions. I've left a specific suggestion to address this.
| "react-bootstrap": "^2.10.10", | ||
| "react-dom": "^17.0.2", | ||
| "react-hook-form": "^7.67.0", | ||
| "react-hook-form": "^7.68.0", |
There was a problem hiding this comment.
To ensure more predictable and stable builds, it's a good practice to pin application dependencies to an exact version. Using a caret (^) can automatically pull in newer minor versions, which might introduce unexpected changes or bugs. I suggest removing the caret to pin react-hook-form to the exact version 7.68.0.
| "react-hook-form": "^7.68.0", | |
| "react-hook-form": "7.68.0", |

Snyk has created this PR to upgrade react-hook-form from 7.67.0 to 7.68.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 1 version ahead of your current version.
The recommended version was released 25 days ago.
Release notes
Package name: react-hook-form
-
7.68.0 - 2025-12-03
import { useForm, FormStateSubscribe } from 'react-hook-form';
-
7.67.0 - 2025-11-28
useForm({
from react-hook-form GitHub release notes🎧 feat:
<FormStateSubscribe />component (#13142)const App = () => {
const { register, control } = useForm();
return (
<div>
<form>
<input {...register('foo')} />
<input {...register('bar')} />
</form>
{/* re-render only when formState of
foochanges */}<FormStateSubscribe
control={control}
name={"foo"}
render={({errors}) => <span>{errors.foo?.message}</span>}
/>
</div>
);
};
🐞 fix: clear validation errors synchronously in reset() to fix Next.js 16 Server Actions issue (#13139)
Revert "✨ fix(types): allow undefined value with async defaultValues in Contr…" (#13171)
thanks to @ xiangnuans, @ abnud11, @ ntatoud & @ ap0nia
🎯 feat: add exact to useController props (#13154)
defaultValues: {
user: {
name: ''
}
}
})
<Controller control={control} name="user" exact={false} /> // subscribe to all user object
✨ fix(types): allow undefined value with async defaultValues in Controller (#13160)
🐞 fix(types): correct PathValueImpl type inference (#13150)
thanks to @ ap0nia, @ Fasping & @ joseph0926
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: