Skip to content

[Snyk] Upgrade react-hook-form from 7.54.2 to 7.75.0 - #52

Open
qbey wants to merge 1 commit into
mainfrom
snyk-upgrade-4d398e747bf1b6db93a194c9f8a29a02
Open

qbey wants to merge 1 commit into
mainfrom
snyk-upgrade-4d398e747bf1b6db93a194c9f8a29a02

Conversation

@qbey

@qbey qbey commented May 30, 2026

Copy link
Copy Markdown
Member

snyk-top-banner

Snyk has created this PR to upgrade react-hook-form from 7.54.2 to 7.75.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 44 versions ahead of your current version.

  • The recommended version was released a month ago.

Release notes
Package name: react-hook-form
  • 7.75.0 - 2026-05-02

    🦧 feat: improve get dirty fields prune empty fields (#13363)

    + dirtyFields: { test: [{ data: false }] }
    - dirtyFields: {} // removed the empty node with false value

    🎹 typescript 6.0 (#13330)
    🌡️ chore: minor improvement on setValue & reset (#13366)
    🐞 fix #13403: include setValues in FormProvider context value (#13404)
    🐞 fix: recompute isDirty after re-registering a previously unregistered field (#13399)
    🐞 fix: preserve watch updates on field array unmount fixes #13375 (#13385)
    🐞 fix: prevent useWatch re-render when unrelated field validation is … (#13398)

    thanks to @ dfedoryshchev, @ cyky & @ gkarabelos

  • 7.74.0 - 2026-04-25

    🪇 feat: setValues (#13201)

    setValues((data) => {
    return {
    ...data,
    name: 'test'
    }
    })

    setValues(formValues);

    🐞 fix: preserve previous field value when useController name changes (#13395)
    🐞 fix: handle null parent when unregistering nested field (#13396)
    🐞 fix: treat NaN as empty when valueAsNumber is true in validateField (#13388)
    🪢 fix build to exclude test files (#13387)

    thanks to @ Yihao-G & @ mixelburg

  • 7.73.1 - 2026-04-20

    ⚡perf: memoize submit (#13378)
    🚉 perf: improve deepEqual performance (#13362)
    👀 perf: skip re-render in setValue when value is unchanged (#13352)
    ✂️ remove unneeded flag check for shouldDirty
    🚨 fix: safely access field._f during register (#13365)
    🧹 close #13298: improve fieldState errors when resolver uses dot-notation string keys (#13350)
    🐞 fix #13178: update state correctly in watch callback with Controller, trigger, and reset (#13180)
    🐞 fix #13331: skip field array validation when mode is onBlur (#13333)
    🐞 fix #13334 sDirty remains false after deletion an item with shouldDirty: true (#13357)
    🐞 fix: handle nested field when parent defaultValue is null (#13348)

    thanks to @ Prasadzoman, @ cyphercodes, @ lorenzoceglia, @ rizwan-rizu, @ tomeelog & @ ap0nia

  • 7.72.1 - 2026-04-03

    🐞 fix: add isDirty check for numeric string keys in defaultValues (issue #13346) (#13347)
    🐞 fix: prevent setValue with shouldDirty from polluting unrelated dirty fields (#13326)
    🐞 fix: memoize control in HookFormControlContext to prevent render conflicts (#13272) (#13312)
    🐞 fix: isNameInFieldArray should check all ancestor paths for nested field arrays (#13318)
    🐞 fix: #13320 formState.isValid incorrect on Controller re-mount (#13324)

    thanks to @ 6810779s, @ candymask0712, @ olagokemills, @ shahmir-oscilar & @ bae080311

  • 7.72.0 - 2026-03-22

    ⚓️ feat: built-in form level validate (#13195)

    useForm({
    validate: async ({ formValues }: FormValidateResult) => {
    if (formValues.test1.length > formValues.test.length) {
    return {
    type: 'formError',
    message: 'something is wrong here',
    };
    }

    <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">formValues</span><span class="pl-kos">.</span><span class="pl-c1">test</span> <span class="pl-c1">===</span> <span class="pl-s">'test'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
      <span class="pl-k">return</span> <span class="pl-s">'direct error message'</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span>
    
    <span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
    

    },
    });

    🐞 fix: prevent useFieldArray from marking unrelated fields as dirty (#13299)
    🐞 fix #13300 checkbox form validation ignored with native validation (#13310)
    🌉 allow subscribe formState to track submit state (#13319)

    thanks to @ WiXSL, @ BrendanC23 & @ 6810779s

  • 7.71.2 - 2026-02-20

    🕵️‍♂️ fix: use DeepPartialSkipArrayKey for WatchObserver value parameter (#13278)
    🧹 fix(clearErrors): emit name signal for targeted field updates (#13280)

    thanks to @ veeceey, @ kaigritun, @ pgoslatara & @ seongbiny

  • 7.71.1 - 2026-01-13

    🐞 fix #13250 issue with booleans_as_integers (#13252)

  • 7.71.0 - 2026-01-11

    ⚡ perf: memoize FormProvider context value to prevent unnecessary rerenders (#13235)
    🚄 perf: separate control context to prevent unnecessary rerenders (#13234)
    🐞 fix: update isValid when field disabled state changes (#13231)
    👌 chore: optimize bundle size via safe terser options (#13243) (#13244)

    thanks to @ kamja44, @ a28689604 & @ newsiberian

  • 7.70.0 - 2026-01-04
  • 7.69.0 - 2025-12-20
  • 7.68.0 - 2025-12-03
  • 7.67.0 - 2025-11-28
  • 7.66.1 - 2025-11-17
  • 7.66.0 - 2025-10-31
  • 7.65.0 - 2025-10-10
  • 7.64.0 - 2025-10-04
  • 7.63.0 - 2025-09-19
  • 7.62.0 - 2025-08-01
  • 7.61.1 - 2025-07-24
  • 7.61.0 - 2025-07-23
  • 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
  • 7.58.0 - 2025-06-15
  • 7.57.0 - 2025-06-01
  • 7.57.0-next.0 - 2025-04-27
  • 7.56.4 - 2025-05-17
  • 7.56.3 - 2025-05-07
  • 7.56.2 - 2025-05-03
  • 7.56.1 - 2025-04-22
  • 7.56.0 - 2025-04-20
  • 7.56.0-next.0 - 2025-04-13
  • 7.55.0 - 2025-03-28
  • 7.55.0-next.9 - 2025-03-17
  • 7.55.0-next.8 - 2025-03-13
  • 7.55.0-next.7 - 2025-03-07
  • 7.55.0-next.6 - 2025-03-05
  • 7.55.0-next.5 - 2025-02-22
  • 7.55.0-next.4 - 2025-02-08
  • 7.55.0-next.3 - 2025-01-25
  • 7.55.0-next.2 - 2025-01-18
  • 7.55.0-next.1 - 2024-12-27
  • 7.55.0-next.0 - 2024-12-24
  • 7.54.2 - 2024-12-20
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.54.2 to 7.75.0.

See this package in npm:
react-hook-form

See this project in Snyk:
https://app.eu.snyk.io/org/lasuite-dinum-default/project/79c0937d-1ee2-48f1-8afc-366fdb5bf1cb?utm_source=github&utm_medium=referral&page=upgrade-pr
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.

2 participants