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

chore(deps): bump react-hook-form from 7.21.2 to 7.22.0 in /generators/client/templates/react #17304

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 14, 2021

Bumps react-hook-form from 7.21.2 to 7.22.0.

Release notes

Sourced from react-hook-form's releases.

Version 7.22.0

🖱️ improve dx with reset API within onSubmit or combined with other (#7274)

const onSubmit = (data) => {};
React.useEffect(() => {
if (formState.isSubmitSuccessful) {
reset({ something: '' });
}
}, [formState, reset]);
handleSubmit(onSubmit);

to

const onSubmit = (data) => {
  setSubmittedData(data);
  reset(data); // no longer need to have useEffect
};
handleSubmit(onSubmit);

🐞 fix #7268 async reset API with useFieldArray (#7269) 🏛️ build(esm): Use explicit .mjs extension for ESM, with CJS interop (#7262)

huge thanks goes to @​evocateur

Version 7.21.3-beta.0

📏 beta: build(esm): Use explicit .mjs extension for ESM, with CJS interop

Changelog

Sourced from react-hook-form's changelog.

[7.22.0] - 2021-12-14

Changed

  • Browser native reset API will no longer be invoked when reset provided with value
const onSubmit = (data) => {};
React.useEffect(() => {
if (formState.isSubmitSuccessful) {
reset({ something: '' });
}
}, [formState, reset]);
handleSubmit(onSubmit);

to

const onSubmit = (data) => {
  setSubmittedData(data);
  reset(data); // no longer need to have useEffect
};
handleSubmit(onSubmit);

[7.21.0] - 2021-12-06

Changed

  • shouldUseNativeValidation will pass down validation props both at client and server render
const { register } = useForm()
<input {...register('name', { required: true })} />
<input name="name" required /> // both client and server render

[7.20.3] - 2021-11-26

Changed

  • register onChange will share same logic with useController for non standard event payload
</tr></table> 

... (truncated)

Commits
  • 4dd1803 7.22.0
  • 892aa0d 🏛️ build(esm): Use explicit .mjs extension for ESM, with CJS interop (#7… (#7...
  • f8aa875 🖱️ improve dx with reset API within onSubmit or combined with other APIs (#7274)
  • f4d6969 🐞 fix #7268 async reset api with useFieldArray (#7269)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [react-hook-form](https://github.com/react-hook-form/react-hook-form) from 7.21.2 to 7.22.0.
- [Release notes](https://github.com/react-hook-form/react-hook-form/releases)
- [Changelog](https://github.com/react-hook-form/react-hook-form/blob/master/CHANGELOG.md)
- [Commits](react-hook-form/react-hook-form@v7.21.2...v7.22.0)

---
updated-dependencies:
- dependency-name: react-hook-form
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added theme: dependencies Pull requests that update a dependency file theme: react labels Dec 14, 2021
@qmonmert qmonmert merged commit d96c71b into main Dec 14, 2021
@qmonmert qmonmert deleted the dependabot/npm_and_yarn/generators/client/templates/react/react-hook-form-7.22.0 branch December 14, 2021 07:39
@pascalgrimaud pascalgrimaud added this to the 7.5.0 milestone Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: dependencies Pull requests that update a dependency file theme: react
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants