opengovsg / checkfirst

Don't Know? CheckFirst. A tool to build eligibility checkers and calculators for Singapore Government policies
https://checkfirst.gov.sg
Other
12 stars 6 forks source link

chore(deps): bump react-hook-form from 7.15.1 to 7.16.1 #1081

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Bumps react-hook-form from 7.15.1 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

Version 7.15.4

👨‍🏭 close #6581 by register input with setValue to improve DX for missing registered inputs (#6582) 💉 include unit test for #6581 setValue with missing input 🐞 fix #6573 calling setValue from useEffect at mount does not update controller value (#6578) ⌚️ close #6548 watch, reset with shouldUnregister: true by trigger extra re-render to flush out the current form values (#6549) 🐞 fix async useFieldArray actions (#6540) 🔖 fix typos in examples and source code (#6531) 💉 replace updateValues with cloneObject (#6530)

Thanks, @​frankie303

Version 7.15.3

🐞 fix #6528 async reset update isMounted when isValid is not subscribed (#6529) 🐞 fix #6513 reset config keepValues update formValues (#6524) 🐞 fix #6482 reset formValues with shouldUnregister: true (#6512) 🐞 fix #6509 return defaultValues when components are not mounted (#6511) 🔨 proper fix for useController default value update (#6510)

Version 7.15.2

🐞 fix #2655 disabled input should set to undefined (#6501) 🐞 improve ControllerFieldState type for Controller types (#6500) 🐞 add File and FileList interface for ReactNative (#6495)

Thanks, @​kotarella1110

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 3 years ago

Superseded by #1086.