Skip to content

fix(deps): update dependency react-hook-form to v7.56.4 #65

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 9, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-hook-form (source) 7.48.2 -> 7.56.4 age adoption passing confidence

Release Notes

react-hook-form/react-hook-form (react-hook-form)

v7.56.4

Compare Source

v7.56.3

Compare Source

v7.56.2: Version 7.56.2

Compare Source

🐞 fix #​12785 regression on default value gets overwritten by values props (#​12790)
🐞 fix: use layoutEffect in useWatch for subscription similar to useForm (#​12786)
🐞 fix #​12772 reset form useWatch to utilize ref for defaultValue and … (#​12780)
📭 close #​12773 pass input ref instead partial (#​12775)

v7.56.1

Compare Source

v7.56.0

Compare Source

v7.55.0: Version 7.55.0

Compare Source

⚡️ createFormControl

  • Allow us to start subscribing outside of the React component
const { formControl, control } = createFormControl(props)

function App() {
  const { register } = useForm({
    formControl,
  })

  return <form />
}

function Test() {
  useFormState({
    control // no longer need context api
  })
}

⚡️ subscribe

  • subscribe form state update without re-render
  • subscribe outside of the react component
const { formControl } = createFormControl(props)

formControl.subscribe({
  formState: { isDirty: true },
  callback: (formState) => {
    if (formState.isDirty) {
      // do something here
    }
  }
})

function App() {
  const { register } = useForm({
    formControl,
  })

  return <form />
}

🪲 fix https://github.com/react-hook-form/react-hook-form/issues/12680: Update Fieldarray Unmount Status (https://github.com/react-hook-form/react-hook-form/pull/12690)
🫡 fix: improve type inference for useFormContext (https://github.com/react-hook-form/react-hook-form/pull/12689)
👮‍♂️ feat: infer resolver output types (https://github.com/react-hook-form/react-hook-form/pull/12638)
🐞 fix(useForm): make values and defaultValues work correctly with createFormControl and useMemo (https://github.com/react-hook-form/react-hook-form/pull/12675)
🥹 close https://github.com/react-hook-form/react-hook-form/issues/12665 issue with values not populate form
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12665 regression on values over take default values
🫡 allow use of handleSubmit with native events (https://github.com/react-hook-form/react-hook-form/pull/12645)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12631 revalidateMode issue with useFieldArray validation (https://github.com/react-hook-form/react-hook-form/pull/12646)
🦥 close https://github.com/react-hook-form/react-hook-form/issues/12634 allow components with useController hook be memoized (https://github.com/react-hook-form/react-hook-form/pull/12635)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12580 setError in useEffect does not work when used inside the FormProvider context (https://github.com/react-hook-form/react-hook-form/pull/12642)
🛟 fix: add the condition to prevent infinite render with errors prop (https://github.com/react-hook-form/react-hook-form/pull/12622)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12580 valid state update with onBlur mode (https://github.com/react-hook-form/react-hook-form/pull/12612)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12572 disabled field value not get undefined in resolver (https://github.com/react-hook-form/react-hook-form/pull/12573)
🦾 feat: reference stable for useWatch defaultValue (https://github.com/react-hook-form/react-hook-form/pull/12564)
⏰ chore: remove typetest folder from build (https://github.com/react-hook-form/react-hook-form/pull/12555)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/12532 useController should unregister issue with strict mode (https://github.com/react-hook-form/react-hook-form/pull/12538)
👁️ feat: improve reference update with useWatch (https://github.com/react-hook-form/react-hook-form/pull/12537)
🦥 close https://github.com/react-hook-form/react-hook-form/issues/12531 disabled state issue with touched and dirty (https://github.com/react-hook-form/react-hook-form/pull/12536)

thanks to @​jtomaszewski, @​joshkel, @​candymask0712, @​kotarella1110, @​jorisre, @​jtomaszewski, @​controversial and @​jedahu

v7.54.2: Version 7.54.2

Compare Source

⚛️ fix #​12478 issue should unregister input with controller (#​12480)
⏰ close #​12443 track disabled fields and only omit data on submit (#​12491)
⚛️ upgrade e2e automation app to react 19 (#​12482)
🧪 test(useWatch): destructure setValue from useForm

Thanks very much, @​marcalexiei for your contribution to the documentation!

v7.54.1: Version 7.54.1

Compare Source

Revert "🦥 fix: useForm should return a new object on formState changes (#​12424)" (#​12475)

v7.54.0

Compare Source

Changed
  • useForm return methods will be memorized based formState update

v7.53.2: Version 7.53.2

Compare Source

🐞 fix #​12398 staled disabled issue with resubmit form (#​12403)
🐞 fix: add type guard to fieldRef.select (#​12390)
Revert "🏺 watch reference update on formState update (#​12326)" (#​12391)

thanks to @​developer-bandi

v7.53.1: Version 7.53.1

Compare Source

🐞 fix: #​12294 ensure Invalid Date is evaluated correctly (#​12295)
🐞 fix #​12316 setValue should work for arrays of primitives to handle checkboxes (#​12316) (#​12317)
🐞 fix #​12097 Use dirty fields along with mount names for form reset with keepDirtyValues (#​12211)
🫀 fix #​12237 disabled state trigger formState dirty/dirtyFields to update (#​12239)
🐞 fix #​12291 field array remove cause undefined with FormData (#​12305)
📝 improve flatten function with object type check (#​12306)
🖐️ improve: resolve type of set function (#​12145)
🔧 chore: upgrade eslint to v9 (#​12150)
📖 fix: code example input field placeholder name (#​12296)
📖 docs: fix typo in code example (#​12271)

thanks to @​rasikhq @​abnud11 @​crypt0box @​developer-bandi @​matmannion @​hasancruk & @​vismay7

v7.53.0

Compare Source

Added
  • add support for onBlur with formState isValid
Changed
  • validateFields will only trigger re-render for async validation

v7.52.2: Version 7.52.2

Compare Source

👍 close #​12108 useController should subscribe to exact field name of form's state (#​12109)
👍 chore: upgrade app deps
🩻 fix: add useCallback for ref callback (#​12078)
🚀 fix: skip call executeBuiltInValidation if no sub-fields left (#​12054)

thanks to @​newsiberian, @​Wendystraite and @​abnud11

v7.52.1: Version 7.52.1

Compare Source

🐞 fix #​12024 dirty not update issue with values prop (#​12041)
🐞 fix: field array validate rules shift errors (#​12033)

thanks to @​JardelCheung

v7.52.0: Version 7.52.0

Compare Source

⚛️ close #​11932 enable react 19 peer dependency (#​11935)
👮‍♀️ close #​11954 getFieldState remove unnessaried inValidating and touched subscription (#​11995)
🐞 fix #​11985 logic createFormControl check field before usage (#​11986)
⌨️ fix: enforce type safety for deps property in RegisterOptions (#​11969)
🐞 fix #​11922 keep dirty on reset with dirty fields (#​11958)
🚔 close #​11937 add validation in the cleanup process in useController (#​11938)
Revert "⌨️ close: correct type of error field in getFieldState return object (#​11831)"
📖 fix: change info.values type in WatchObserver (#​11917)

thanks to @​nakaakist, @​IdoBouskila, @​pincy and @​peinguin

v7.51.5: Version 7.51.5

Compare Source

📖 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

v7.51.4: Version 7.51.4

Compare Source

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

v7.51.3: Version 7.51.3

Compare Source

🐞 fix #​11773 regression on dirty check with reset (#​11775)

v7.51.2: Version 7.51.2

Compare Source

🐞 fix #​11719 validation stuck on true state (#​11723)

v7.51.1: Version 7.51.1

Compare Source

🐛 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

v7.51.0

Compare Source

Added
  • added 'validateFields' to formState
const {
  formState: { validateFields },
} = useForm();

v7.50.1: Version v7.50.1

Compare Source

🥲 Regression: Revert "⌨️ fix #​10734 watch and useWatch without parameters return type (#​11359)"

v7.50.0: Versions 7.50.0

Compare Source

🔧 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

v7.49.3: Version 7.49.3

Compare Source

🐛 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

v7.49.2: Version 7.49.2

Compare Source

🐞 fix #​11292 issue with controller validation prop (#​11294)

v7.49.1: Version 7.49.1

Compare Source

🐞 fix #​11276 issue with disabled omit on Controller (#​11277)
🐞 fix #​11287 disabled prop cause const dirtyFields update (#​11291)

v7.49.0

Compare Source

Added
  • add reactive errors prop at useForm
useForm({
  errors, // Server errors
});

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 was generated by Mend Renovate. View the repository job log.

Copy link

vercel bot commented Dec 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sudt-management-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2025 2:19am

@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.49.0 fix(deps): update dependency react-hook-form to v7.49.1 Dec 13, 2023
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 883536f to 9f87ebf Compare December 13, 2023 00:25
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.49.1 fix(deps): update dependency react-hook-form to v7.49.2 Dec 13, 2023
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 9f87ebf to 294e66c Compare December 13, 2023 10:42
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.49.2 fix(deps): update dependency react-hook-form to v7.49.3 Jan 8, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 294e66c to 80712dc Compare January 8, 2024 23:16
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.49.3 fix(deps): update dependency react-hook-form to v7.50.0 Feb 1, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 80712dc to 49b4ca0 Compare February 1, 2024 11:00
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.50.0 fix(deps): update dependency react-hook-form to v7.50.1 Feb 6, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 49b4ca0 to 5046a38 Compare February 6, 2024 11:03
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.50.1 fix(deps): update dependency react-hook-form to v7.51.0 Mar 1, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 5046a38 to ac4d61e Compare March 1, 2024 21:29
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from ac4d61e to 9edb4ce Compare March 17, 2024 01:47
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.51.0 fix(deps): update dependency react-hook-form to v7.51.1 Mar 17, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 9edb4ce to b42339e Compare March 27, 2024 01:48
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.51.1 fix(deps): update dependency react-hook-form to v7.51.2 Mar 27, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from b42339e to f91d92d Compare April 11, 2024 22:00
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.51.2 fix(deps): update dependency react-hook-form to v7.51.3 Apr 11, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from f91d92d to 42d0b1d Compare May 4, 2024 09:39
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.53.1 fix(deps): update dependency react-hook-form to v7.53.2 Nov 9, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 80a938b to 5a66984 Compare December 7, 2024 02:10
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.53.2 fix(deps): update dependency react-hook-form to v7.54.0 Dec 7, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 5a66984 to 85e0d1d Compare December 13, 2024 02:09
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.54.0 fix(deps): update dependency react-hook-form to v7.54.1 Dec 13, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 85e0d1d to 4226b60 Compare December 20, 2024 22:50
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.54.1 fix(deps): update dependency react-hook-form to v7.54.2 Dec 20, 2024
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 4226b60 to 470af6b Compare March 28, 2025 23:28
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.54.2 fix(deps): update dependency react-hook-form to v7.55.0 Mar 28, 2025
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 470af6b to 33a025d Compare April 20, 2025 09:58
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.55.0 fix(deps): update dependency react-hook-form to v7.56.0 Apr 20, 2025
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.56.0 fix(deps): update dependency react-hook-form to v7.56.1 Apr 22, 2025
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 33a025d to b327d47 Compare April 22, 2025 23:12
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from b327d47 to 19185da Compare May 3, 2025 23:15
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.56.1 fix(deps): update dependency react-hook-form to v7.56.2 May 3, 2025
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 19185da to 920d070 Compare May 8, 2025 00:06
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.56.2 fix(deps): update dependency react-hook-form to v7.56.3 May 8, 2025
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 920d070 to 83d3458 Compare May 17, 2025 02:18
@renovate renovate bot changed the title fix(deps): update dependency react-hook-form to v7.56.3 fix(deps): update dependency react-hook-form to v7.56.4 May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants