Skip to content

Releases: react-hook-form/react-hook-form

v7.51.5

21 May 11:35
Compare
Choose a tag to compare

馃摉 fix broken link to examples in README.md (#11805)
鈱笍 close: correct type of error field in getFieldState return object (#11831)
馃悶 fix #11842 radio buttons not disabled when multiple share a name (#11873)
馃悶 fix #11821 set value with disabled false before mount (#11880)
馃悶 fix setError to preserve existing errors elsewhere in the object (#11888)
鈱笍 fix: add info.value type to WatchObserver (#11872)
馃 fix issue with internal set api (#11915)

thanks to @mjr2595 @erashu212 @SimonJTurner and @peinguin

Version 7.51.4

04 May 06:34
Compare
Choose a tag to compare

馃懝 close #11778 improve unregister omit key with getValues method (#11779)
馃悶 fix #11794 issue: Fields dirty state is not updated when passing values to useForm

Version 7.51.3

11 Apr 21:34
Compare
Choose a tag to compare

馃悶 fix #11773 regression on dirty check with reset (#11775)

Version 7.51.2

26 Mar 21:14
Compare
Choose a tag to compare

馃悶 fix #11719 validation stuck on true state (#11723)

Version 7.51.1

17 Mar 01:16
Compare
Choose a tag to compare

馃悰 bug(validatingFields, trigger): handle all fields validation trigger (#11624)
馃挌 ci: cleanup actions versions (#11629)
馃悶 fix #11590 issue with trigger on validatingFields (#11613)

thanks to @Moshyfawn

Version 7.51.0

01 Mar 21:06
Compare
Choose a tag to compare

馃挰 add isValidating and validatingFields to field state (#10657)

const { formState: { validatingFields } } = useForm({ mode: 'onBlur' });

鈱笍 chore: replace ts-ignore with ts-expect-error (#11573)
馃鈥嶁檪锔 chore: update lib dev deps (#11548)
馃拝 related #11541 improve dirty check when undefined provided with reset api
馃樉 fix #11514 issue under strict mode reset invoke twice reset mounted field names with keepDirtyValues (#11546)
馃ぁ fix flush root render hack (#11521)
馃Ы chore: removed unused utils and resp. test cases (#11476)
馃悶 close #11503 issue dirty field update with async validation (#11509)

Revert "馃敡 fix data param in handleSubmit when TTransformedValues is a union type (#11420)"
Revert "鉁 feat(values): priorities values over defaultvalues (#11399)" (#11545)

鉂わ笍 Thanks to @deepgolani4, @pbankonier and @deepgolani4
鉂わ笍 Thank you principal.com for your contribution

Version v7.50.1

06 Feb 10:54
Compare
Choose a tag to compare

馃ゲ Regression: Revert "鈱笍 fix #10734 watch and useWatch without parameters return type (#11359)"

Versions 7.50.0

01 Feb 07:22
Compare
Choose a tag to compare

馃敡 fix data param in handleSubmit when TTransformedValues is a union type (#11420)
馃懛 build(Engines): remove pnpm dependency (#11425)
馃悶 fixes #11386 get new dirtyFields when reset keeping defaults and dirty values (#11401)
馃彿锔 improve CustomElement type (#11309)
馃挮 feat(useForm): leave formState flags in a consistent state when throwing in handleSubmit onValid (#11214)
鈱笍 fix: change DeepPartial to account for object union types & unknown (#11385)
鉁 feat(values): priorities values over defaultvalues (#11399)
馃悶 close #11246 skip root validation on action when mode and revalidate mode is onSubmit (#11395)
馃挬 fix #11322 trigger extra re-render with useWatch plus shouldUnregister (#11394)
鈱笍 fix #10734 watch and useWatch without parameters return type (#11359)
馃鈥鉁堬笍 fix #11281 issue with upgrade node version (#11392)
馃悶 fix #11368 keep form state mounted when keeping values (#11384)
馃悶 fix #11374: Nested deep partial with unknown (#11373)

thanks to @Moshyfawn, @jonahallibone, @eladattias1996, @RulerOfCakes, @anonkey, @Ar4ys, @IanVS and @r-kataoka11

Version 7.49.3

08 Jan 20:18
Compare
Choose a tag to compare

馃悰 fix(formState, disabled): infer controlled disabled form state (#11361)
馃悰 fix(reset): remove global reset option flag (#11355)
馃悰 fix(useController): check if disabled state was set by user (#11353)
馃枿锔 fix: Change DeepPartial type definition to be compatible with unknown (#11333)
馃悶 fix #11328 resetField with object as defaultValue (#11329)

thanks to @Moshyfawn, @geeee and @RulerOfCakes

Version 7.49.2

13 Dec 10:10
Compare
Choose a tag to compare

馃悶 fix #11292 issue with controller validation prop (#11294)