react-hook-form/react-hook-form (react-hook-form)
### [`v7.53.2`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.53.2): Version 7.53.2
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.53.1...v7.53.2)
๐ fix [#12398](https://redirect.github.com/react-hook-form/react-hook-form/issues/12398) staled disabled issue with resubmit form ([#12403](https://redirect.github.com/react-hook-form/react-hook-form/issues/12403))
๐ fix: add type guard to fieldRef.select ([#12390](https://redirect.github.com/react-hook-form/react-hook-form/issues/12390))
Revert "๐บ watch reference update on formState update ([#12326](https://redirect.github.com/react-hook-form/react-hook-form/issues/12326))" ([#12391](https://redirect.github.com/react-hook-form/react-hook-form/issues/12391))
thanks to [@developer-bandi](https://redirect.github.com/developer-bandi)
### [`v7.53.1`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.53.1): Version 7.53.1
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.53.0...v7.53.1)
๐ง chore: upgrade eslint to v9 ([#12150](https://redirect.github.com/react-hook-form/react-hook-form/issues/12150))
๐ fix: [#12294](https://redirect.github.com/react-hook-form/react-hook-form/issues/12294) ensure Invalid Date is evaluated correctly ([#12295](https://redirect.github.com/react-hook-form/react-hook-form/issues/12295))
๐ fix [#12316](https://redirect.github.com/react-hook-form/react-hook-form/issues/12316) setValue should work for arrays of primitives to handle checkboxes ([#12316](https://redirect.github.com/react-hook-form/react-hook-form/issues/12316)) ([#12317](https://redirect.github.com/react-hook-form/react-hook-form/issues/12317))
๐ fix [#12097](https://redirect.github.com/react-hook-form/react-hook-form/issues/12097) Use dirty fields along with mount names for form reset with keepDirtyValues ([#12211](https://redirect.github.com/react-hook-form/react-hook-form/issues/12211))
๐ซ fix [#12237](https://redirect.github.com/react-hook-form/react-hook-form/issues/12237) disabled state trigger formState dirty/dirtyFields to update ([#12239](https://redirect.github.com/react-hook-form/react-hook-form/issues/12239))
๐ improve flatten function with object type check ([#12306](https://redirect.github.com/react-hook-form/react-hook-form/issues/12306))
๐ fix [#12291](https://redirect.github.com/react-hook-form/react-hook-form/issues/12291) field array remove cause undefined with FormData ([#12305](https://redirect.github.com/react-hook-form/react-hook-form/issues/12305))
๐๏ธ improve: resolve type of set function ([#12145](https://redirect.github.com/react-hook-form/react-hook-form/issues/12145))
๐ fix: code example input field placeholder name ([#12296](https://redirect.github.com/react-hook-form/react-hook-form/issues/12296))
๐ docs: fix typo in code example ([#12271](https://redirect.github.com/react-hook-form/react-hook-form/issues/12271))
thanks to [@rasikhq](https://redirect.github.com/rasikhq) [@abnud11](https://redirect.github.com/abnud11) [@crypt0box](https://redirect.github.com/crypt0box) [@developer-bandi](https://redirect.github.com/developer-bandi) [@matmannion](https://redirect.github.com/matmannion) [@hasancruk](https://redirect.github.com/hasancruk) & [@vismay7](https://redirect.github.com/vismay7)
### [`v7.53.0`](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.52.2...35e2d7744c250b2844717b753bc48a81c9ac4e56)
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.52.2...v7.53.0)
### [`v7.52.2`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.52.2)
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.52.1...v7.52.2)
๐ close [#12108](https://redirect.github.com/react-hook-form/react-hook-form/issues/12108) useController should subscribe to exact field name of form's state ([#12109](https://redirect.github.com/react-hook-form/react-hook-form/issues/12109))
๐ chore: upgrade app deps
๐ฉป fix: add useCallback for ref callback ([#12078](https://redirect.github.com/react-hook-form/react-hook-form/issues/12078))
๐ fix: skip call executeBuiltInValidation if no sub-fields left ([#12054](https://redirect.github.com/react-hook-form/react-hook-form/issues/12054))
thanks to [@newsiberian](https://redirect.github.com/newsiberian), [@Wendystraite](https://redirect.github.com/Wendystraite) and [@abnud11](https://redirect.github.com/abnud11)
### [`v7.52.1`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.52.1): v7.51.1
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.52.0...v7.52.1)
๐ fix [#12024](https://redirect.github.com/react-hook-form/react-hook-form/issues/12024) dirty not update issue with values prop ([#12041](https://redirect.github.com/react-hook-form/react-hook-form/issues/12041))
๐ fix: field array validate rules shift errors ([#12033](https://redirect.github.com/react-hook-form/react-hook-form/issues/12033))
thanks to [@JardelCheung](https://redirect.github.com/JardelCheung)
### [`v7.52.0`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.52.0)
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.5...v7.52.0)
โ๏ธ close [#11932](https://redirect.github.com/react-hook-form/react-hook-form/issues/11932) enable react 19 peer dependency ([#11935](https://redirect.github.com/react-hook-form/react-hook-form/issues/11935))
๐ฎโโ๏ธ close [#11954](https://redirect.github.com/react-hook-form/react-hook-form/issues/11954) getFieldState remove unnessaried inValidating and touched subscription ([#11995](https://redirect.github.com/react-hook-form/react-hook-form/issues/11995))
๐ fix [#11985](https://redirect.github.com/react-hook-form/react-hook-form/issues/11985) logic createFormControl check field before usage ([#11986](https://redirect.github.com/react-hook-form/react-hook-form/issues/11986))
โจ๏ธ fix: enforce type safety for deps property in RegisterOptions ([#11969](https://redirect.github.com/react-hook-form/react-hook-form/issues/11969))
๐ fix [#11922](https://redirect.github.com/react-hook-form/react-hook-form/issues/11922) keep dirty on reset with dirty fields ([#11958](https://redirect.github.com/react-hook-form/react-hook-form/issues/11958))
๐ close [#11937](https://redirect.github.com/react-hook-form/react-hook-form/issues/11937) add validation in the cleanup process in useController ([#11938](https://redirect.github.com/react-hook-form/react-hook-form/issues/11938))
Revert "โจ๏ธ close: correct type of error field in getFieldState return object ([#11831](https://redirect.github.com/react-hook-form/react-hook-form/issues/11831))"
๐ fix: change info.values type in WatchObserver ([#11917](https://redirect.github.com/react-hook-form/react-hook-form/issues/11917))
thanks to [@nakaakist](https://redirect.github.com/nakaakist), [@IdoBouskila](https://redirect.github.com/IdoBouskila), [@pincy](https://redirect.github.com/pincy) and [@peinguin](https://redirect.github.com/peinguin)
### [`v7.51.5`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.51.5)
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.4...v7.51.5)
๐ fix broken link to examples in README.md ([#11805](https://redirect.github.com/react-hook-form/react-hook-form/issues/11805))
โจ๏ธ close: correct type of error field in getFieldState return object ([#11831](https://redirect.github.com/react-hook-form/react-hook-form/issues/11831))
๐ fix [#11842](https://redirect.github.com/react-hook-form/react-hook-form/issues/11842) radio buttons not disabled when multiple share a name ([#11873](https://redirect.github.com/react-hook-form/react-hook-form/issues/11873))
๐ fix [#11821](https://redirect.github.com/react-hook-form/react-hook-form/issues/11821) set value with disabled false before mount ([#11880](https://redirect.github.com/react-hook-form/react-hook-form/issues/11880))
๐ fix setError to preserve existing errors elsewhere in the object ([#11888](https://redirect.github.com/react-hook-form/react-hook-form/issues/11888))
โจ๏ธ fix: add info.value type to WatchObserver ([#11872](https://redirect.github.com/react-hook-form/react-hook-form/issues/11872))
๐ซก fix issue with internal `set` api ([#11915](https://redirect.github.com/react-hook-form/react-hook-form/issues/11915))
thanks to [@mjr2595](https://redirect.github.com/mjr2595) [@erashu212](https://redirect.github.com/erashu212) [@SimonJTurner](https://redirect.github.com/SimonJTurner) and [@peinguin](https://redirect.github.com/peinguin)
### [`v7.51.4`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.51.4): Version 7.51.4
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.3...v7.51.4)
๐น close [#11778](https://redirect.github.com/react-hook-form/react-hook-form/issues/11778) improve unregister omit key with getValues method ([#11779](https://redirect.github.com/react-hook-form/react-hook-form/issues/11779))
๐ fix [#11794](https://redirect.github.com/react-hook-form/react-hook-form/issues/11794) issue: Fields dirty state is not updated when passing values to useForm
### [`v7.51.3`](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.2...c1520742a4736be7a55edc8799d8060d1150c53b)
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.2...v7.51.3)
### [`v7.51.2`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.51.2): Version 7.51.2
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.1...v7.51.2)
๐ fix [#11719](https://redirect.github.com/react-hook-form/react-hook-form/issues/11719) validation stuck on true state ([#11723](https://redirect.github.com/react-hook-form/react-hook-form/issues/11723))
### [`v7.51.1`](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.0...00ce24a0a3fc25c98606f673d79ae90c6d3de81a)
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.0...v7.51.1)
### [`v7.51.0`](https://redirect.github.com/react-hook-form/react-hook-form/blob/HEAD/CHANGELOG.md#7510---2024-3-2)
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.50.1...v7.51.0)
##### Added
- added 'validateFields' to formState
```tsx
const { formState: { validateFields } } = useForm();
```
### [`v7.50.1`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.50.1): Version v7.50.1
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.50.0...v7.50.1)
๐ฅฒ Regression: Revert "โจ๏ธ fix [#10734](https://redirect.github.com/react-hook-form/react-hook-form/issues/10734) watch and useWatch without parameters return type ([#11359](https://redirect.github.com/react-hook-form/react-hook-form/issues/11359))"
### [`v7.50.0`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.50.0): Versions 7.50.0
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.49.3...v7.50.0)
๐ง fix data param in handleSubmit when TTransformedValues is a union type ([#11420](https://redirect.github.com/react-hook-form/react-hook-form/issues/11420))
๐ท build(Engines): remove pnpm dependency ([#11425](https://redirect.github.com/react-hook-form/react-hook-form/issues/11425))
๐ fixes [#11386](https://redirect.github.com/react-hook-form/react-hook-form/issues/11386) get new dirtyFields when reset keeping defaults and dirty values ([#11401](https://redirect.github.com/react-hook-form/react-hook-form/issues/11401))
๐ท๏ธ improve CustomElement type ([#11309](https://redirect.github.com/react-hook-form/react-hook-form/issues/11309))
๐ซ feat(useForm): leave formState flags in a consistent state when throwing in handleSubmit onValid ([#11214](https://redirect.github.com/react-hook-form/react-hook-form/issues/11214))
โจ๏ธ fix: change DeepPartial to account for object union types & unknown ([#11385](https://redirect.github.com/react-hook-form/react-hook-form/issues/11385))
โจ feat(values): priorities values over defaultvalues ([#11399](https://redirect.github.com/react-hook-form/react-hook-form/issues/11399))
๐ close [#11246](https://redirect.github.com/react-hook-form/react-hook-form/issues/11246) skip root validation on action when mode and revalidate mode is onSubmit ([#11395](https://redirect.github.com/react-hook-form/react-hook-form/issues/11395))
๐ฉ fix [#11322](https://redirect.github.com/react-hook-form/react-hook-form/issues/11322) trigger extra re-render with useWatch plus shouldUnregister ([#11394](https://redirect.github.com/react-hook-form/react-hook-form/issues/11394))
โจ๏ธ fix [#10734](https://redirect.github.com/react-hook-form/react-hook-form/issues/10734) watch and useWatch without parameters return type ([#11359](https://redirect.github.com/react-hook-form/react-hook-form/issues/11359))
๐งโโ๏ธ fix [#11281](https://redirect.github.com/react-hook-form/react-hook-form/issues/11281) issue with upgrade node version ([#11392](https://redirect.github.com/react-hook-form/react-hook-form/issues/11392))
๐ fix [#11368](https://redirect.github.com/react-hook-form/react-hook-form/issues/11368) keep form state mounted when keeping values ([#11384](https://redirect.github.com/react-hook-form/react-hook-form/issues/11384))
๐ fix [#11374](https://redirect.github.com/react-hook-form/react-hook-form/issues/11374): Nested deep partial with unknown ([#11373](https://redirect.github.com/react-hook-form/react-hook-form/issues/11373))
thanks to [@Moshyfawn](https://redirect.github.com/Moshyfawn), [@jonahallibone](https://redirect.github.com/jonahallibone), [@eladattias1996](https://redirect.github.com/eladattias1996), [@RulerOfCakes](https://redirect.github.com/RulerOfCakes), [@anonkey](https://redirect.github.com/anonkey), [@Ar4ys](https://redirect.github.com/Ar4ys), [@IanVS](https://redirect.github.com/IanVS) and [@r-kataoka11](https://redirect.github.com/r-kataoka11)
### [`v7.49.3`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.49.3): Version 7.49.3
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.49.2...v7.49.3)
๐ fix(formState, disabled): infer controlled disabled form state ([#11361](https://redirect.github.com/react-hook-form/react-hook-form/issues/11361))
๐ fix(reset): remove global reset option flag ([#11355](https://redirect.github.com/react-hook-form/react-hook-form/issues/11355))
๐ fix(useController): check if disabled state was set by user ([#11353](https://redirect.github.com/react-hook-form/react-hook-form/issues/11353))
๐จ๏ธ fix: Change DeepPartial type definition to be compatible with unknown ([#11333](https://redirect.github.com/react-hook-form/react-hook-form/issues/11333))
๐ fix [#11328](https://redirect.github.com/react-hook-form/react-hook-form/issues/11328) resetField with object as defaultValue ([#11329](https://redirect.github.com/react-hook-form/react-hook-form/issues/11329))
thanks to [@Moshyfawn](https://redirect.github.com/Moshyfawn), [@geeee](https://redirect.github.com/geeee) and [@RulerOfCakes](https://redirect.github.com/RulerOfCakes)
### [`v7.49.2`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.49.2): Version 7.49.2
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.49.1...v7.49.2)
๐ fix [#11292](https://redirect.github.com/react-hook-form/react-hook-form/issues/11292) issue with controller validation prop ([#11294](https://redirect.github.com/react-hook-form/react-hook-form/issues/11294))
### [`v7.49.1`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.49.1): Version 7.49.1
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.49.0...v7.49.1)
๐ fix [#11276](https://redirect.github.com/react-hook-form/react-hook-form/issues/11276) issue with disabled omit on Controller ([#11277](https://redirect.github.com/react-hook-form/react-hook-form/issues/11277))
๐ fix [#11287](https://redirect.github.com/react-hook-form/react-hook-form/issues/11287) disabled prop cause const dirtyFields update ([#11291](https://redirect.github.com/react-hook-form/react-hook-form/issues/11291))
### [`v7.49.0`](https://redirect.github.com/react-hook-form/react-hook-form/blob/HEAD/CHANGELOG.md#7490---2023-12-10)
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.48.2...v7.49.0)
##### Added
- add reactive `errors` prop at `useForm`
```tsx
useForm({
errors, // Server errors
});
```
### [`v7.48.2`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.48.2): Version 7.48.2
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.48.1...v7.48.2)
๐ [#11106](https://redirect.github.com/react-hook-form/react-hook-form/issues/11106) fix disabled prop not update dirty formState ([#11143](https://redirect.github.com/react-hook-form/react-hook-form/issues/11143))
๐ fix controller update with `disabled` prop from `useForm` ([#11142](https://redirect.github.com/react-hook-form/react-hook-form/issues/11142))
### [`v7.48.1`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.48.1): Version 7.48.1
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.48.0...v7.48.1)
๐ fix controller update with disabled prop from useForm
### [`v7.48.0`](https://redirect.github.com/react-hook-form/react-hook-form/blob/HEAD/CHANGELOG.md#7480---2023-11-05)
[Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.47.0...v7.48.0)
##### Added
- added new `disabled` prop for `useForm` to disable the entire form
const App = () => {
const [disabled, setDisabled] = useState(false);
const { handleSubmit } = useForm({ disabled });
return (
Configuration
๐ Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
๐ฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.
โป Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
๐ Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
7.46.1
->7.53.2
Release Notes
react-hook-form/react-hook-form (react-hook-form)
### [`v7.53.2`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.53.2): Version 7.53.2 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.53.1...v7.53.2) ๐ fix [#12398](https://redirect.github.com/react-hook-form/react-hook-form/issues/12398) staled disabled issue with resubmit form ([#12403](https://redirect.github.com/react-hook-form/react-hook-form/issues/12403)) ๐ fix: add type guard to fieldRef.select ([#12390](https://redirect.github.com/react-hook-form/react-hook-form/issues/12390)) Revert "๐บ watch reference update on formState update ([#12326](https://redirect.github.com/react-hook-form/react-hook-form/issues/12326))" ([#12391](https://redirect.github.com/react-hook-form/react-hook-form/issues/12391)) thanks to [@developer-bandi](https://redirect.github.com/developer-bandi) ### [`v7.53.1`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.53.1): Version 7.53.1 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.53.0...v7.53.1) ๐ง chore: upgrade eslint to v9 ([#12150](https://redirect.github.com/react-hook-form/react-hook-form/issues/12150)) ๐ fix: [#12294](https://redirect.github.com/react-hook-form/react-hook-form/issues/12294) ensure Invalid Date is evaluated correctly ([#12295](https://redirect.github.com/react-hook-form/react-hook-form/issues/12295)) ๐ fix [#12316](https://redirect.github.com/react-hook-form/react-hook-form/issues/12316) setValue should work for arrays of primitives to handle checkboxes ([#12316](https://redirect.github.com/react-hook-form/react-hook-form/issues/12316)) ([#12317](https://redirect.github.com/react-hook-form/react-hook-form/issues/12317)) ๐ fix [#12097](https://redirect.github.com/react-hook-form/react-hook-form/issues/12097) Use dirty fields along with mount names for form reset with keepDirtyValues ([#12211](https://redirect.github.com/react-hook-form/react-hook-form/issues/12211)) ๐ซ fix [#12237](https://redirect.github.com/react-hook-form/react-hook-form/issues/12237) disabled state trigger formState dirty/dirtyFields to update ([#12239](https://redirect.github.com/react-hook-form/react-hook-form/issues/12239)) ๐ improve flatten function with object type check ([#12306](https://redirect.github.com/react-hook-form/react-hook-form/issues/12306)) ๐ fix [#12291](https://redirect.github.com/react-hook-form/react-hook-form/issues/12291) field array remove cause undefined with FormData ([#12305](https://redirect.github.com/react-hook-form/react-hook-form/issues/12305)) ๐๏ธ improve: resolve type of set function ([#12145](https://redirect.github.com/react-hook-form/react-hook-form/issues/12145)) ๐ fix: code example input field placeholder name ([#12296](https://redirect.github.com/react-hook-form/react-hook-form/issues/12296)) ๐ docs: fix typo in code example ([#12271](https://redirect.github.com/react-hook-form/react-hook-form/issues/12271)) thanks to [@rasikhq](https://redirect.github.com/rasikhq) [@abnud11](https://redirect.github.com/abnud11) [@crypt0box](https://redirect.github.com/crypt0box) [@developer-bandi](https://redirect.github.com/developer-bandi) [@matmannion](https://redirect.github.com/matmannion) [@hasancruk](https://redirect.github.com/hasancruk) & [@vismay7](https://redirect.github.com/vismay7) ### [`v7.53.0`](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.52.2...35e2d7744c250b2844717b753bc48a81c9ac4e56) [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.52.2...v7.53.0) ### [`v7.52.2`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.52.2) [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.52.1...v7.52.2) ๐ close [#12108](https://redirect.github.com/react-hook-form/react-hook-form/issues/12108) useController should subscribe to exact field name of form's state ([#12109](https://redirect.github.com/react-hook-form/react-hook-form/issues/12109)) ๐ chore: upgrade app deps ๐ฉป fix: add useCallback for ref callback ([#12078](https://redirect.github.com/react-hook-form/react-hook-form/issues/12078)) ๐ fix: skip call executeBuiltInValidation if no sub-fields left ([#12054](https://redirect.github.com/react-hook-form/react-hook-form/issues/12054)) thanks to [@newsiberian](https://redirect.github.com/newsiberian), [@Wendystraite](https://redirect.github.com/Wendystraite) and [@abnud11](https://redirect.github.com/abnud11) ### [`v7.52.1`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.52.1): v7.51.1 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.52.0...v7.52.1) ๐ fix [#12024](https://redirect.github.com/react-hook-form/react-hook-form/issues/12024) dirty not update issue with values prop ([#12041](https://redirect.github.com/react-hook-form/react-hook-form/issues/12041)) ๐ fix: field array validate rules shift errors ([#12033](https://redirect.github.com/react-hook-form/react-hook-form/issues/12033)) thanks to [@JardelCheung](https://redirect.github.com/JardelCheung) ### [`v7.52.0`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.52.0) [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.5...v7.52.0) โ๏ธ close [#11932](https://redirect.github.com/react-hook-form/react-hook-form/issues/11932) enable react 19 peer dependency ([#11935](https://redirect.github.com/react-hook-form/react-hook-form/issues/11935)) ๐ฎโโ๏ธ close [#11954](https://redirect.github.com/react-hook-form/react-hook-form/issues/11954) getFieldState remove unnessaried inValidating and touched subscription ([#11995](https://redirect.github.com/react-hook-form/react-hook-form/issues/11995)) ๐ fix [#11985](https://redirect.github.com/react-hook-form/react-hook-form/issues/11985) logic createFormControl check field before usage ([#11986](https://redirect.github.com/react-hook-form/react-hook-form/issues/11986)) โจ๏ธ fix: enforce type safety for deps property in RegisterOptions ([#11969](https://redirect.github.com/react-hook-form/react-hook-form/issues/11969)) ๐ fix [#11922](https://redirect.github.com/react-hook-form/react-hook-form/issues/11922) keep dirty on reset with dirty fields ([#11958](https://redirect.github.com/react-hook-form/react-hook-form/issues/11958)) ๐ close [#11937](https://redirect.github.com/react-hook-form/react-hook-form/issues/11937) add validation in the cleanup process in useController ([#11938](https://redirect.github.com/react-hook-form/react-hook-form/issues/11938)) Revert "โจ๏ธ close: correct type of error field in getFieldState return object ([#11831](https://redirect.github.com/react-hook-form/react-hook-form/issues/11831))" ๐ fix: change info.values type in WatchObserver ([#11917](https://redirect.github.com/react-hook-form/react-hook-form/issues/11917)) thanks to [@nakaakist](https://redirect.github.com/nakaakist), [@IdoBouskila](https://redirect.github.com/IdoBouskila), [@pincy](https://redirect.github.com/pincy) and [@peinguin](https://redirect.github.com/peinguin) ### [`v7.51.5`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.51.5) [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.4...v7.51.5) ๐ fix broken link to examples in README.md ([#11805](https://redirect.github.com/react-hook-form/react-hook-form/issues/11805)) โจ๏ธ close: correct type of error field in getFieldState return object ([#11831](https://redirect.github.com/react-hook-form/react-hook-form/issues/11831)) ๐ fix [#11842](https://redirect.github.com/react-hook-form/react-hook-form/issues/11842) radio buttons not disabled when multiple share a name ([#11873](https://redirect.github.com/react-hook-form/react-hook-form/issues/11873)) ๐ fix [#11821](https://redirect.github.com/react-hook-form/react-hook-form/issues/11821) set value with disabled false before mount ([#11880](https://redirect.github.com/react-hook-form/react-hook-form/issues/11880)) ๐ fix setError to preserve existing errors elsewhere in the object ([#11888](https://redirect.github.com/react-hook-form/react-hook-form/issues/11888)) โจ๏ธ fix: add info.value type to WatchObserver ([#11872](https://redirect.github.com/react-hook-form/react-hook-form/issues/11872)) ๐ซก fix issue with internal `set` api ([#11915](https://redirect.github.com/react-hook-form/react-hook-form/issues/11915)) thanks to [@mjr2595](https://redirect.github.com/mjr2595) [@erashu212](https://redirect.github.com/erashu212) [@SimonJTurner](https://redirect.github.com/SimonJTurner) and [@peinguin](https://redirect.github.com/peinguin) ### [`v7.51.4`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.51.4): Version 7.51.4 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.3...v7.51.4) ๐น close [#11778](https://redirect.github.com/react-hook-form/react-hook-form/issues/11778) improve unregister omit key with getValues method ([#11779](https://redirect.github.com/react-hook-form/react-hook-form/issues/11779)) ๐ fix [#11794](https://redirect.github.com/react-hook-form/react-hook-form/issues/11794) issue: Fields dirty state is not updated when passing values to useForm ### [`v7.51.3`](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.2...c1520742a4736be7a55edc8799d8060d1150c53b) [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.2...v7.51.3) ### [`v7.51.2`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.51.2): Version 7.51.2 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.1...v7.51.2) ๐ fix [#11719](https://redirect.github.com/react-hook-form/react-hook-form/issues/11719) validation stuck on true state ([#11723](https://redirect.github.com/react-hook-form/react-hook-form/issues/11723)) ### [`v7.51.1`](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.0...00ce24a0a3fc25c98606f673d79ae90c6d3de81a) [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.51.0...v7.51.1) ### [`v7.51.0`](https://redirect.github.com/react-hook-form/react-hook-form/blob/HEAD/CHANGELOG.md#7510---2024-3-2) [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.50.1...v7.51.0) ##### Added - added 'validateFields' to formState ```tsx const { formState: { validateFields } } = useForm(); ``` ### [`v7.50.1`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.50.1): Version v7.50.1 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.50.0...v7.50.1) ๐ฅฒ Regression: Revert "โจ๏ธ fix [#10734](https://redirect.github.com/react-hook-form/react-hook-form/issues/10734) watch and useWatch without parameters return type ([#11359](https://redirect.github.com/react-hook-form/react-hook-form/issues/11359))" ### [`v7.50.0`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.50.0): Versions 7.50.0 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.49.3...v7.50.0) ๐ง fix data param in handleSubmit when TTransformedValues is a union type ([#11420](https://redirect.github.com/react-hook-form/react-hook-form/issues/11420)) ๐ท build(Engines): remove pnpm dependency ([#11425](https://redirect.github.com/react-hook-form/react-hook-form/issues/11425)) ๐ fixes [#11386](https://redirect.github.com/react-hook-form/react-hook-form/issues/11386) get new dirtyFields when reset keeping defaults and dirty values ([#11401](https://redirect.github.com/react-hook-form/react-hook-form/issues/11401)) ๐ท๏ธ improve CustomElement type ([#11309](https://redirect.github.com/react-hook-form/react-hook-form/issues/11309)) ๐ซ feat(useForm): leave formState flags in a consistent state when throwing in handleSubmit onValid ([#11214](https://redirect.github.com/react-hook-form/react-hook-form/issues/11214)) โจ๏ธ fix: change DeepPartial to account for object union types & unknown ([#11385](https://redirect.github.com/react-hook-form/react-hook-form/issues/11385)) โจ feat(values): priorities values over defaultvalues ([#11399](https://redirect.github.com/react-hook-form/react-hook-form/issues/11399)) ๐ close [#11246](https://redirect.github.com/react-hook-form/react-hook-form/issues/11246) skip root validation on action when mode and revalidate mode is onSubmit ([#11395](https://redirect.github.com/react-hook-form/react-hook-form/issues/11395)) ๐ฉ fix [#11322](https://redirect.github.com/react-hook-form/react-hook-form/issues/11322) trigger extra re-render with useWatch plus shouldUnregister ([#11394](https://redirect.github.com/react-hook-form/react-hook-form/issues/11394)) โจ๏ธ fix [#10734](https://redirect.github.com/react-hook-form/react-hook-form/issues/10734) watch and useWatch without parameters return type ([#11359](https://redirect.github.com/react-hook-form/react-hook-form/issues/11359)) ๐งโโ๏ธ fix [#11281](https://redirect.github.com/react-hook-form/react-hook-form/issues/11281) issue with upgrade node version ([#11392](https://redirect.github.com/react-hook-form/react-hook-form/issues/11392)) ๐ fix [#11368](https://redirect.github.com/react-hook-form/react-hook-form/issues/11368) keep form state mounted when keeping values ([#11384](https://redirect.github.com/react-hook-form/react-hook-form/issues/11384)) ๐ fix [#11374](https://redirect.github.com/react-hook-form/react-hook-form/issues/11374): Nested deep partial with unknown ([#11373](https://redirect.github.com/react-hook-form/react-hook-form/issues/11373)) thanks to [@Moshyfawn](https://redirect.github.com/Moshyfawn), [@jonahallibone](https://redirect.github.com/jonahallibone), [@eladattias1996](https://redirect.github.com/eladattias1996), [@RulerOfCakes](https://redirect.github.com/RulerOfCakes), [@anonkey](https://redirect.github.com/anonkey), [@Ar4ys](https://redirect.github.com/Ar4ys), [@IanVS](https://redirect.github.com/IanVS) and [@r-kataoka11](https://redirect.github.com/r-kataoka11) ### [`v7.49.3`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.49.3): Version 7.49.3 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.49.2...v7.49.3) ๐ fix(formState, disabled): infer controlled disabled form state ([#11361](https://redirect.github.com/react-hook-form/react-hook-form/issues/11361)) ๐ fix(reset): remove global reset option flag ([#11355](https://redirect.github.com/react-hook-form/react-hook-form/issues/11355)) ๐ fix(useController): check if disabled state was set by user ([#11353](https://redirect.github.com/react-hook-form/react-hook-form/issues/11353)) ๐จ๏ธ fix: Change DeepPartial type definition to be compatible with unknown ([#11333](https://redirect.github.com/react-hook-form/react-hook-form/issues/11333)) ๐ fix [#11328](https://redirect.github.com/react-hook-form/react-hook-form/issues/11328) resetField with object as defaultValue ([#11329](https://redirect.github.com/react-hook-form/react-hook-form/issues/11329)) thanks to [@Moshyfawn](https://redirect.github.com/Moshyfawn), [@geeee](https://redirect.github.com/geeee) and [@RulerOfCakes](https://redirect.github.com/RulerOfCakes) ### [`v7.49.2`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.49.2): Version 7.49.2 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.49.1...v7.49.2) ๐ fix [#11292](https://redirect.github.com/react-hook-form/react-hook-form/issues/11292) issue with controller validation prop ([#11294](https://redirect.github.com/react-hook-form/react-hook-form/issues/11294)) ### [`v7.49.1`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.49.1): Version 7.49.1 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.49.0...v7.49.1) ๐ fix [#11276](https://redirect.github.com/react-hook-form/react-hook-form/issues/11276) issue with disabled omit on Controller ([#11277](https://redirect.github.com/react-hook-form/react-hook-form/issues/11277)) ๐ fix [#11287](https://redirect.github.com/react-hook-form/react-hook-form/issues/11287) disabled prop cause const dirtyFields update ([#11291](https://redirect.github.com/react-hook-form/react-hook-form/issues/11291)) ### [`v7.49.0`](https://redirect.github.com/react-hook-form/react-hook-form/blob/HEAD/CHANGELOG.md#7490---2023-12-10) [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.48.2...v7.49.0) ##### Added - add reactive `errors` prop at `useForm` ```tsx useForm({ errors, // Server errors }); ``` ### [`v7.48.2`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.48.2): Version 7.48.2 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.48.1...v7.48.2) ๐ [#11106](https://redirect.github.com/react-hook-form/react-hook-form/issues/11106) fix disabled prop not update dirty formState ([#11143](https://redirect.github.com/react-hook-form/react-hook-form/issues/11143)) ๐ fix controller update with `disabled` prop from `useForm` ([#11142](https://redirect.github.com/react-hook-form/react-hook-form/issues/11142)) ### [`v7.48.1`](https://redirect.github.com/react-hook-form/react-hook-form/releases/tag/v7.48.1): Version 7.48.1 [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.48.0...v7.48.1) ๐ fix controller update with disabled prop from useForm ### [`v7.48.0`](https://redirect.github.com/react-hook-form/react-hook-form/blob/HEAD/CHANGELOG.md#7480---2023-11-05) [Compare Source](https://redirect.github.com/react-hook-form/react-hook-form/compare/v7.47.0...v7.48.0) ##### Added - added new `disabled` prop for `useForm` to disable the entire form const App = () => { const [disabled, setDisabled] = useState(false); const { handleSubmit } = useForm({ disabled }); return (Configuration
๐ Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
๐ฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.
โป Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
๐ Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.