Skip to content

Conversation

@peterj
Copy link
Collaborator

@peterj peterj commented Aug 16, 2025

snyk-top-banner

Snyk has created this PR to upgrade react-hook-form from 7.61.0 to 7.61.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 1 version ahead of your current version.

  • The recommended version was released 23 days ago.

Release notes
Package name: react-hook-form
  • 7.61.1 - 2025-07-24

    Revert "⌨️ fix: watch return type based on defaultValue (#12896)"

  • 7.61.0 - 2025-07-23

    🧮 feat: compute prop for useWatch subscription (#12503)

    • subscribe to the entire form but only return updated value with certain condition
    type FormValue = {
    test: string;
    }

    const watchedValue = useWatch({
    control: methods.control,
    compute: (data: FormValue) => {
    if (data.test?.length) {
    return data.test;
    }

    <span class="pl-k">return</span> <span class="pl-s">''</span><span class="pl-kos">;</span>
    

    },
    });

    • subscribe to a specific form value state
    type FormValue = {
    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

from react-hook-form GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

Snyk has created this PR to upgrade react-hook-form from 7.61.0 to 7.61.1.

See this package in npm:
react-hook-form

See this project in Snyk:
https://app.snyk.io/org/kagent/project/3a1ab099-8f8f-43a5-81e6-e07ff34c96dc?utm_source=github&utm_medium=referral&page=upgrade-pr
Copilot AI review requested due to automatic review settings August 16, 2025 08:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the react-hook-form dependency from version 7.61.0 to 7.61.1, which is a patch release that reverts a problematic change related to watch return types and includes various bug fixes and improvements.

  • Updates react-hook-form to latest patch version (7.61.1)
Files not reviewed (1)
  • ui/package-lock.json: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@peterj peterj merged commit 7f846f1 into main Aug 17, 2025
13 checks passed
@peterj peterj deleted the snyk-upgrade-17254766ad5191b6675e2df22c1fc4cc branch August 17, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants