iammatthias / com

Digital garden built using Astro, Obsidian, and other goodies.
https://iammatthias.com
216 stars 36 forks source link

Bump react-hook-form from 7.15.4 to 7.16.1 #133

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps react-hook-form from 7.15.4 to 7.16.1.

Release notes

Sourced from react-hook-form's releases.

Version 7.16.1

🎹 fix #6646 incorrect type with fieldState error (#6650) 🎧 refactor subscription logic into useSubscribe (#6614)

Thanks to @​kotarella1110 @​barrymay

Version 7.16.0

🪄 feat: Ability to provide custom onBlur and onChange handlers (#5620)

<input
  type="text"
  {...register('test', {
    onChange: (e) => {},
    onBlur: (e) => {},
  })}
/>

🗺️ fix Mapped types for defined value type with interface (#6605) 🏥 close #6590 prevent error throw by missing input with trigger API (#6591)

Thanks to @​kotarella1110 @​exneval @​michalbundyra

Changelog

Sourced from react-hook-form's changelog.

[7.16.1] - 2021-09-27

Changed

  • formState subscription no longer subscribed at useEffect instead the execution of each hook

[7.16.0] - 2021-09-25

Added

  • register allowed pass custom onChange and onBlur
<input
  type="text"
  {...register('test', {
    onChange: (e) => {},
    onBlur: (e) => {},
  })}
/>

[7.15.0] - 2021-09-05

Added

  • useFieldArray new method replace()
const { control } = useForm({
  defaultValues: {
    test: [{ value: 'lorem' }, { value: 'ipsum' }],
  },
});
const { fields, replace } = useFieldArray({
  control,
  name: 'test',
});

const handleFullyReplacement = (): void => { // remove old and set fully new values replace([{ value: 'dolor' }, { value: 'sit' }, { value: 'amet' }]); };

[7.14.0] - 2021-08-27

Added

  • register add dependent validation

... (truncated)

Commits


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)
dependabot[bot] commented 2 years ago

Looks like react-hook-form is up-to-date now, so this is no longer needed.