Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade react-hook-form from 7.34.2 to 7.46.1 #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DeFiTON
Copy link
Contributor

@DeFiTON DeFiTON commented Sep 28, 2023

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade react-hook-form from 7.34.2 to 7.46.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 62 versions ahead of your current version.
  • The recommended version was released 23 days ago, on 2023-09-04.
Release notes
Package name: react-hook-form
  • 7.46.1 - 2023-09-04

    🐞 fix #10878 return disabled field state (#10879)

    thanks to @ Moshyfawn

  • 7.46.0 - 2023-09-03

    🧟‍♂️ feat: support disabled prop for useController (#10810)

    const [disabled, setDisabled] = useState(false)
    useController({
      disabled
    })
    • field value will be disabled
    • field value will be omitted

    🫖 prevent reset argument mutation (#10847)
    🐞 fix: add exact option for array name in useWatch. (#10707)
    🐞 update isDirty when setting disabled in register (#10805)
    🧶 feat: trigger passed names to construct resolver options (#10590)

    thanks to @ selimb @ vonagam @ jgullstr and @ rabbitson87

  • 7.46.0-next.0 - 2023-08-13

    disabled prop

    • new disabled props for useForm
    • allow user to disable the entire form with all associated inputs
    useForm({
    disabled: true
    })

    const App = () => {
    const [disabled, setDisabled] = useState(false);
    const { register, handleSubmit, control } = useForm({
    disabled,
    });

    return (
    <form
    onSubmit={handleSubmit(async () => {
    setDisabled(true);
    await sleep(100);
    setDisabled(false);
    })}
    >
    <input
    type={'checkbox'}
    {...register('checkbox')}
    data-testid={'checkbox'}
    />
    <input type={'radio'} {...register('radio')} data-testid={'radio'} />
    <input type={'range'} {...register('range')} data-testid={'range'} />
    <select {...register('select')} data-testid={'select'} />
    <textarea {...register('textarea')} data-testid={'textarea'} />

      <span class="pl-c1">&lt;</span><span class="pl-smi">Controller</span> <span class="pl-c1">control</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">control</span><span class="pl-kos">}</span> <span class="pl-c1">render</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-kos">{</span> field <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">disabled</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">field</span><span class="pl-kos">.</span><span class="pl-c1">disabled</span><span class="pl-kos">}</span>  <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">}</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"test"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span>
    
      <span class="pl-c1">&lt;</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span>Submit<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span>
    <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">form</span><span class="pl-c1">&gt;</span>
    

    );
    }




  • 7.45.4 - 2023-08-05

    🐞 fix #10767 dep issue with replayio (#10768)

    🐞 fix #10762 async submit with Form component (#10766)

    🫖 add test case for issue #10744 to avoid future regressions (#10759)

    thanks to @ eg-bernardo

  • 7.45.3 - 2023-08-04

    📼 add Replay Test Suites (#10681)
    Revert "🧑‍🎓 close #10585 update controller value on each render (#10586)"
    🐞 close #10682 make sure action flag gets reset after useEffect (#10732)

    thanks to @ jasonLaster

  • 7.45.2 - 2023-07-17

    🧾 fix(types): async defaultValues await promise value (#10637)
    🥲 revert strict type check on Controller onChange (#10609)
    📖 docs(changelog 7.45.0): typo and format (#10624)
    📖 fix:test-spelling-error (#10629)

    thanks to @ anton-g, @ milhamm, @ moshfeu & @ OlliePrentice

  • 7.45.1 - 2023-06-28

    🐞 fix #10602 issue with reactive values props update (#10606)
    🧑‍🎓 close #10585 update controller value on each render (#10586)
    🧪 test(generated-id): setting window performance undefined without ts-ignore (#10584)

    thanks to @ mateoguzmana

  • 7.45.0 - 2023-06-19
    Read more
  • 7.45.0-next.1 - 2023-06-18

    🪲 fix: useFormContext ReturnType (#10543)

    thanks to @ swallowtail62

  • 7.45.0-next.0 - 2023-06-11
  • 7.44.3 - 2023-06-01
  • 7.44.3-beta.1 - 2023-05-31
  • 7.44.3-beta.0 - 2023-05-31
  • 7.44.2 - 2023-05-28
  • 7.44.1 - 2023-05-27
  • 7.44.0 - 2023-05-27
  • 7.44.0-rc.5 - 2023-05-20
  • 7.44.0-rc.4 - 2023-05-20
  • 7.44.0-rc.3 - 2023-05-07
  • 7.44.0-rc.1 - 2023-04-15
  • 7.44.0-rc.0 - 2023-03-10
  • 7.44.0-next.1 - 2023-02-16
  • 7.44.0-next.0 - 2023-02-09
  • 7.43.9 - 2023-03-30
  • 7.43.8 - 2023-03-24
  • 7.43.7 - 2023-03-18
  • 7.43.6 - 2023-03-17
  • 7.43.5 - 2023-03-06
  • 7.43.4 - 2023-03-03
  • 7.43.3 - 2023-03-01
  • 7.43.2 - 2023-02-22
  • 7.43.1 - 2023-02-07
  • 7.43.0 - 2023-01-30
  • 7.43.0-next.0 - 2023-01-18
  • 7.42.1 - 2023-01-15
  • 7.42.0 - 2023-01-13
  • 7.42.0-next.0 - 2023-01-01
  • 7.41.8-beta.0 - 2023-01-04
  • 7.41.5 - 2023-01-04
  • 7.41.4 - 2023-01-03
  • 7.41.3 - 2022-12-30
  • 7.41.2 - 2022-12-28
  • 7.41.1 - 2022-12-23
  • 7.41.0 - 2022-12-16
  • 7.40.0 - 2022-11-29
  • 7.40.0-next.1 - 2022-11-23
  • 7.40.0-next.0 - 2022-11-17
  • 7.39.7 - 2022-11-28
  • 7.39.6 - 2022-11-27
  • 7.39.5 - 2022-11-21
  • 7.39.4 - 2022-11-14
  • 7.39.3 - 2022-11-10
  • 7.39.2 - 2022-11-09
  • 7.39.1 - 2022-11-02
  • 7.39.0 - 2022-11-01
  • 7.38.0 - 2022-10-18
  • 7.37.0 - 2022-10-06
  • 7.37.0-next.0 - 2022-09-29
  • 7.36.1 - 2022-09-23
  • 7.36.0 - 2022-09-20
  • 7.35.0 - 2022-09-09
  • 7.35.0-next.0 - 2022-08-25
  • 7.34.2 - 2022-08-15
from react-hook-form GitHub release notes
Commit messages
Package name: react-hook-form
  • ece261a 7.46.1
  • 2b1f00c 🐞 fix #10878 return `disabled` field state (#10879)
  • e34e96c 📝 docs(changelog): add 7.46.0 changelog (#10881)
  • fecef29 7.46.0
  • 89a3584 🫖 prevent `reset` argument mutation (#10847)
  • 390c01e 🐞 fix: add exact option for array name in useWatch. (#10707)
  • 5f3df12 📖 Update README.md for sponsors
  • abb9ada 🧟‍♂️ feat: support `disabled` prop for useController (#10810)
  • fa0daca Revert "📼 add Replay Test Suites (#10681)"
  • 75ae6e7 🐞 update isDirty when setting disabled in register (#10805)
  • 38ff4ef 🧶 feat: `trigger` passed names to construct resolver options (#10590)
  • f6750e0 7.45.4
  • b79be31 🐞 fix #10767 dep issue with replayio (#10768)
  • 67a97c3 🐞 fix #10762 async submit with Form component (#10766)
  • 011163f 🫖 add test case for issue #10744 to avoid future regressions (#10759)
  • ac7bc39 7.45.3
  • 109a12e 📼 add Replay Test Suites (#10681)
  • 3ca1701 Revert "🧑‍🎓 close #10585 update controller value on each render (#10586)"
  • f45dc4d 🐞 close #10682 make sure action flag gets reset after useEffect (#10732)
  • 011fad5 7.45.2
  • a2c668c 🧾 fix(types): async defaultValues await promise value (#10637)
  • 437267e ❤️ thank you kwork for sponsoring
  • 73a73a0 📖 docs(changelog 7.45.0): typo and format (#10624)
  • 8675a0a 📖 fix:test-spelling-error (#10629)

Compare


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:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

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