chore(deps): update dependency react-hook-form to v7.80.0#2090
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency react-hook-form to v7.80.0#2090renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
94d245f to
5a8fb42
Compare
5a8fb42 to
3d6c9fd
Compare
3d6c9fd to
5fcec43
Compare
5fcec43 to
162cb4f
Compare
162cb4f to
42792b8
Compare
42792b8 to
24826c4
Compare
24826c4 to
8e197b1
Compare
8e197b1 to
6a644c4
Compare
6a644c4 to
521d359
Compare
521d359 to
c1901f7
Compare
c1901f7 to
0dee5ec
Compare
0dee5ec to
42e0139
Compare
42e0139 to
a0d4c4a
Compare
a0d4c4a to
d68d770
Compare
21f15f2 to
94dcdf7
Compare
94dcdf7 to
25bbf1c
Compare
25bbf1c to
e13cae9
Compare
682b6e4 to
e58d03e
Compare
e58d03e to
594f40d
Compare
d5bd2c0 to
1c7df08
Compare
3a3556f to
1de9f2a
Compare
1de9f2a to
9b3ad06
Compare
e7614e4 to
1e79fb3
Compare
1e79fb3 to
5d0dc9f
Compare
5d0dc9f to
e70a267
Compare
e70a267 to
4617287
Compare
4617287 to
5b47a97
Compare
5b47a97 to
7b171db
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.48.2→7.80.0Release Notes
react-hook-form/react-hook-form (react-hook-form)
v7.80.0: Version 7.80.0Compare Source
🧄 feat: disable useFieldArray fields (#13535)
🛺 perf: make rhf more performant (#13524)
🐞 fix(deepEqual): empty array and empty plain object should not be equal (#13533)
thanks to @JSap0914
v7.79.0Compare Source
Added
disabledoption touseFieldArrayFixed
ControlleronChangepromise return typedeepEqualfalse positives with shared object referencesshouldUseNativeValidationbehavior for radio groupscreateFormControlstability with fast refresh in dev modeStrictModevalue preservation during remountformState.errorsreactivity with React compilerv7.78.0Compare Source
Fixed
Controllerfields afterresetwithout rerender (RN issue #13455)useFormState().isDirtyrace with async resolver inonChangemodevaluesprop overdefaultValueswhenshouldUnregisteris truedeepEqualfor empty non-plain objectsTypes
dirtyFieldstyping for field arrays with undefined entriesv7.77.0Compare Source
Added
resetDefaultValuesAPIFixed
isDirtyinsubscribepayload afterreset(..., { keepValues: true })shouldUnregisterreset({})behavior requiring double-call to take effectFieldArrayerrors overriding nested fieldsSecurity
get()against prototype-path traversal (__proto__/constructor/prototype)Performance
v7.76.1Compare Source
Fixed
setValueupdatesNaNas empty whenvalueAsNumberistrueinvalidateFieldsetValuespassoptionsparameter through to enable validationsetValuesemit whole-form change without stalename/typePerformance
setValuesskip redundant per-field deep clonessetValuesthreadskipClonethroughsetFieldValuev7.76.0Compare Source
Added
isDirtysync withdirtyFieldsstateFixed
formState.defaultValueswhenuseFieldArrayandwatchare used togethertrigger()setValueupdatesuseFieldArrayremoveleaves array with empty object when usingvaluespropControllerfields withshouldUnregistersetValuesupdates to mountedControllerfieldsappend({ obj: null })silently replaced bydefaultValuesafterremove()isValidatingreactivity whenvalidatingFieldsis not subscribedv7.75.0Compare Source
Added
getDirtyFieldsto prune empty fieldsFixed
setValuesinFormProvidercontext valueuseWatchre-render when unrelated field validation occursisDirtyafter re-registering a previously unregistered fieldv7.74.0Compare Source
Added
setValuesAPIFixed
useControllername changesNaNas empty whenvalueAsNumberistrueinvalidateFieldv7.73.1Compare Source
Fixed
setValuesthat was accidentally included in patch; fix build to exclude test filesv7.72.1Compare Source
Fixed
setValuewithshouldDirtyfrom polluting unrelated dirty fieldsHookFormControlContextto prevent render conflictsisNameInFieldArrayshould check all ancestor paths for nested field arraysformState.isValidincorrect onControllerre-mountv7.72.0Compare Source
Added
validateoptionformStateto track submit stateFixed
useFieldArrayfrom marking unrelated fields as dirtyv7.71.2Compare Source
Fixed
clearErrorsemit name signal for targeted field updatesDeepPartialSkipArrayKeyforWatchObservervalue parameterv7.71.1Compare Source
Fixed
booleans_as_integersvalue handlingv7.71.0Compare Source
v7.70.0Compare Source
Fixed
keepDirtyValueswatchreturn typesdeepEqualand validationDeepPartialsetValuev7.69.0Compare Source
Added
<Watch />API withuseWatchFixed
isValidstate whenkeepIsValidoption is usedcreateFormControl.subscribesubscription listens only to subscribed changesisValidatingstate updates with validation resultsetErrorandsetFocusv7.68.0Compare Source
Added
<FormStateSubscribe />componentFixed
reset()to fix Next.js 16 Server Actions issuev7.67.0Compare Source
Added
exactoption foruseControllerpropsFixed
undefinedvalue with asyncdefaultValuesinControllerPathValueImpltype inferencev7.66.1Compare Source
Performance
getDirtyFieldsFixed
setValid()during batch array updatesisValidafterresetwhen values update asynchronouslyObject.isindeepEqualv7.66.0Compare Source
Added
useWatchanduseControllernow react tonameprop changesFixed
watch()returningundefinedimmediately afterreset()<Watch />componentv7.65.0Compare Source
Added
<Watch />componentFixed
useFieldArrayrulesgetDirtyFieldssubmit fields withnullvalues when usinguseFormv7.64.0Compare Source
Added
PathValueImpltypeFixed
Controller'sdefaultValuewithshouldUnregisterpropv7.63.0Compare Source
Added
formStateFixed
isValidatingfieldsv7.62.0Compare Source
Fixed
defaultValuesafterresetwith newdefaultValuesFieldErrorsonBlurforreadOnlyfieldsdataincloneObjectv7.61.1Compare Source
Fixed
watchreturn type change based ondefaultValue(caused regressions)v7.61.0Compare Source
Added
computeprop foruseWatchsubscriptionFixed
defaultValuessetValuesubscription callbacks"multipart/form-data"encType in<Form />componentv7.60.0Compare Source
Added
resetwithkeepFieldsRefoption to keep fields referenceFixed
Setfrom clone objectv7.59.0Compare Source
Added
Fixed
formDatareference cloneundefinedvalue for submit datauseWatchobject variable param handlingv7.58.1: Version 7.58.1Compare Source
🔧 check window.crypto undefined (#12893)
v7.58.0Compare Source
Added
FieldArrayPathByValuetypestringToPathto prevent errors at field names containing quotesFixed
formControlreturn fromuseFormuseFieldArrayfields populationv7.57.0Compare Source
Added
errorspropUseFormResetFieldOptionstype forresetFieldAPIFixed
subscribeform.subscribeuseControllerfocus function runtime issuesetValueskips values not in own properties (prevents infinite call stack with self-referencing proto)useFieldArraymodeandreValidateModereactivityvaluesprop regressionv7.56.4: Version 7.56.4Compare Source
🐞 fix: Changes setValue to skip values that are not in ownProperties to prevent infinite call stack (#12731)
🐞 fix: checkbox duplication handling in useFieldArray (#12793)
🐞 fix: make mode and reValidateMode reactive (#12803)
v7.56.3: Version 7.56.3Compare Source
Revert "📭 close #12773 pass input ref instead partial (#12775)"
v7.56.2: Version 7.56.2Compare 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: Version 7.56.1Compare Source
🐞 fix #12761 #12762 issue with usage reset isReady formState (#12765)
🐞 fix #12763 import warning with named exports (#12764)
v7.56.0Compare Source
Added
modeandreValidateModesupportisReadystate for subscriptionFixed
useFieldArrayinput updateuseIsomorphicLayoutEffectto address SSR warningv7.55.0Compare Source
Added
createFormControlandsubscribefunctionuseControllerhook to be memoizeduseWatchdefaultValuehandleSubmitwith native events supportFixed
useFormContextvaluesanddefaultValueswork correctly withcreateFormControlanduseMemoonBlurmodedisabledfield value not returned asundefinedin resolverrevalidateModeissue withuseFieldArrayvalidationuseControllerunregister issue with strict modesetErrorinuseEffectnot working insideFormProvidercontextuseControllerreturn props reference stabilityv7.54.2: Version 7.54.2Compare 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.1Compare Source
Revert "🦥 fix: useForm should return a new object on formState changes (#12424)" (#12475)
v7.54.0Compare Source
Changed
useFormreturn methods will be memorized basedformStateupdatev7.53.2: Version 7.53.2Compare 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.1Compare 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.0Compare Source
Added
onBlurwith formStateisValidChanged
validateFieldswill only trigger re-render for async validationv7.52.2: Version 7.52.2Compare 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.1Compare 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.0Compare 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.5Compare 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
setapi (#11915)thanks to @mjr2595 @erashu212 @SimonJTurner and @peinguin
v7.51.4: Version 7.51.4Compare 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.3Compare Source
🐞 fix #11773 regression on dirty check with reset (#11775)
v7.51.2: Version 7.51.2Compare Source
🐞 fix #11719 validation stuck on true state (#11723)
v7.51.1: Version 7.51.1Compare 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.0Compare Source
Added
v7.50.1: Version v7.50.1Compare Source
🥲 Regression: Revert "⌨️ fix #10734 watch and useWatch without parameters return type (#11359)"
v7.50.0: Versions 7.50.0Compare Source
🔧 fix data param in handleSubmit when TTransformedValues is a union type (#11420)✈️ fix #11281 issue with upgrade node version (#11392)
👷 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 #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.3Compare 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.2Compare Source
🐞 fix #11292 issue with controller validation prop (#11294)
v7.49.1: Version 7.49.1Compare Source
🐞 fix #11276 issue with disabled omit on Controller (#11277)
🐞 fix #11287 disabled prop cause const dirtyFields update (#11291)
v7.49.0Compare Source
Added
errorsprop atuseFormConfiguration
📅 Schedule: (UTC)
🚦 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.