-
Notifications
You must be signed in to change notification settings - Fork 4
fix(deps): update dependency react-hook-form to v7 #1560
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
base: main
Are you sure you want to change the base?
Conversation
|
2f00ab7 to
f5b33d1
Compare
d3a9357 to
49b2572
Compare
acf800f to
6c3a083
Compare
937318a to
a7531f4
Compare
2dc3302 to
62e6c87
Compare
160259b to
86dd695
Compare
ad4a550 to
97fdd88
Compare
871bb8a to
9708898
Compare
54e1a98 to
5a0626a
Compare
f0c8348 to
7feb08d
Compare
7feb08d to
9a00181
Compare
9a855d4 to
c646c89
Compare
c646c89 to
6690876
Compare
6690876 to
300a6f2
Compare
300a6f2 to
33b5d1c
Compare
33b5d1c to
86deeaa
Compare
86deeaa to
2f8e8c3
Compare
2f8e8c3 to
c138f4d
Compare
c138f4d to
4d53ff3
Compare
4d53ff3 to
7e3671d
Compare
7e3671d to
49beb9b
Compare
49beb9b to
6d31d0e
Compare
6d31d0e to
146b3ae
Compare
146b3ae to
71e6c42
Compare
51e77cf to
d5fcbf5
Compare
d5fcbf5 to
29c8f5b
Compare
29c8f5b to
bcd16fc
Compare
a2e97a4 to
27bfa90
Compare
03e81eb to
51882e7
Compare
51882e7 to
aa5e5f5
Compare
aa5e5f5 to
6086b9c
Compare
6086b9c to
0597670
Compare
0597670 to
b6991b7
Compare
This PR contains the following updates:
6.15.8->7.65.0Release Notes
react-hook-form/react-hook-form (react-hook-form)
v7.65.0Compare Source
v7.64.0: Version 7.64.0Compare Source
🚏 Support optional array fields in PathValueImpl type (#13057)
🐞 fix: preserve Controller's defaultValue with shouldUnregister prop (#13063)
✂ chore: remove unused field ids ref in useFieldArray (#13066)
thanks to @gynekolog & @uk960214
v7.63.0: Version 7.63.0Compare Source
🥢 feat: extract form values by form state (#12936)
🦍 feat: improve get dirty fields logic (#13049)
🐿️ chore: remove duplicated function isMessage (#13050)
🐞 fix: use field name to update isValidating fields (#13000)
🐞 fix: unregister previous field when switching conditional Controllers (#13041)
🐞 fix: only excuse trigger function when deps has a valid array (#13056)
thanks to @candymask0712, @GorkemKir, @kimtaejin3, @m2na7 & @abnud11
v7.62.0Compare Source
v7.61.1: Version 7.61.1Compare Source
Revert "⌨️ fix: watch return type based on defaultValue (#12896)"
v7.61.0Compare Source
v7.60.0Compare Source
v7.59.0Compare Source
v7.58.1Compare Source
v7.58.0Compare Source
v7.57.0: Version 7.57.0Compare Source
🫚 feat: root errors count in schema error lookup (#12839)
👁️ feat: focus form field for errors supplied by errors prop (#12805)
⌨️ feat: add and export options config for resetField api (#12819)
🐞 close #12707 useController focus function runtime issue (#12843)
🐞 fix: add proper types to form.subscribe (#12850)
🐞 fix: add type info for callback args in subscribe (#12859)
🔄 close #12835 revert original fix on errors empty object check (#12846)
v7.56.4Compare Source
v7.56.3Compare Source
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.1Compare Source
v7.56.0Compare Source
v7.55.0: Version 7.55.0Compare Source
⚡️
createFormControl⚡️
subscribe🪲 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.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 atuseFormv7.48.2: Version 7.48.2Compare Source
🐞 #11106 fix disabled prop not update dirty formState (#11143)
🐞 fix controller update with
disabledprop fromuseForm(#11142)v7.48.1: Version 7.48.1Compare Source
🐞 fix controller update with disabled prop from useForm
v7.48.0Compare Source
Added
disabledprop foruseFormto disable the entire formv7.47.0Compare Source
Added
resetapi withkeepIsSubmitSuccessfuloption, keep successfully submitted form state.v7.46.2: Version 7.46.2Compare Source
🐞 fix implicit type coercion (#10949)
🙄 close #10932 omit disabled prop when not defined (#10937)
🔧 fix controller test is dirty (#10899)
thanks to @samimakicc & @pierluigigiancola
v7.46.1: Version 7.46.1Compare Source
🐞 fix #10878 return disabled field state (#10879)
thanks to @Moshyfawn
v7.46.0Compare Source
Added
disabledpropexactoption for array name inuseWatchChanged
isDirtywhen settingdisabledinregisterv7.45.4: Version 7.45.4Compare Source
🐞 fix #10767 dep issue with replayio (#10768)
🐞 fix #10762 async submit with Form component (#10766)
🫖 add test case for issue #10744 to avoid future regressions (#10759)
thanks to @eg-bernardo
v7.45.3: Version 7.45.3Compare Source
📼 add Replay Test Suites (#10681)
Revert "🧑🎓 close #10585 update controller value on each render (#10586)"
🐞 close #10682 make sure action flag gets reset after useEffect (#10732)
thanks to @jasonLaster
v7.45.2: Version 7.45.2Compare Source
🧾 fix(types): async defaultValues await promise value (#10637)
🥲 revert strict type check on Controller onChange (#10609)
📖 docs(changelog 7.45.0): typo and format (#10624)
📖 fix:test-spelling-error (#10629)
thanks to @anton-g, @milhamm, @moshfeu & @OlliePrentice
v7.45.1: Version 7.45.1Compare Source
🐞 fix #10602 issue with reactive values props update (#10606)
🧑🎓 close #10585 update controller value on each render (#10586)
🧪 test(generated-id): setting window performance undefined without ts-ignore (#10584)
thanks to @mateoguzmana
v7.45.0Compare Source
Changed
onChangeuseFormContextv7.44.3: Version 7.44.3Compare Source
🦉 fix: add named component export (#10486)
💭 fix React import inconsistency (#10479)
🏙️ fix: removed code from the README updater which was trying to read a non-existent
docs/Helpers.yaml📝 fix doc: update urls from /api to /docs (#10468)
thanks to @Moshyfawn @@protofarer @farfromrest
v7.44.2: Version 7.44.2Compare Source
🪟 fix #10456
object.hasownreplaced withhasOwnProperty(#10458)v7.44.1: Version 7.44.1Compare Source
🐞 fix
<Form />component content-type json type missing (#10454)v7.44.0Compare Source
Added
<Form />componentTransformedValueswithuseFormContextuseFormContext<FormValue, TransformedValues>()TTransformedValuestoFormProviderFormProviderProps<TFieldValues, TContext, TTransformedValues>
v7.43.9: Version 7.43.9Compare Source
🍄 close #10195 close async defaultValues not load (#10203)
Revert "🐞 fix #10139 useFieldArray array error not updating in some cases (#10150)"
v7.43.8: Version 7.43.8Compare Source
🪡 related #10143 did not update dirty until interacted (#10157)
🐞 fix #10139 useFieldArray array error not updating in some cases (#10150)
thanks to @kylemclean
v7.43.7: Version 7.43.7Compare Source
🐞 fix #10131 regression on NaN data type (#10132)
🐞 fix #10129 useFieldArray unmount fieldArray wihtout register (#10130)
🦶 upgrade to TS 5.0.0 (#9834)
v7.43.6: Version 7.43.6Compare Source
🐞 fix(appendErrors): incorrect type, it can take an array of errors (#10125)
✍️ close #10096 react strict mode with mounted field value (#10102)
🦮 fix: isLoading form state (#10095)
📝 fix: typos in tsdoc (#10088)
🩴 close #10078 prevent stabled aysnc validation (#10082)
🐞 fix #10064 native validation when subscribe to isValid (#10072)
📝 correct typo in field array type declaration (#10066)
thanks to @jorisre @chrisbarless @mjw-isp and @adamtowle
v7.43.5: Version 7.43.5Compare Source
🐰 prevent runtime error with subscribe function (#10052)
🪔 close #10045 improve
useControllerdefaultValue restore under strict mode with doubleuseEffect(#10049)📷 improve form values state update (#10029)
v7.43.4: Version 7.43.4Compare Source
🐞 fix #10021 issue with
.nextruntime error and fix cypress action (#10026)v7.43.3: Version 7.43.3Compare Source
📐 fix
resetFielddefaultValue type and reduce any type (#10024)🐞 fix #9997 issue on the mounted state is updated with values prop (#10001)
Revert "🏍 delete dirty fields node instead of marking as false (#9156)" (#9996)
💅 improve state subscription consistency (#9984)
v7.43.2: Version 7.43.2Compare Source
🐞 fix #9972 input focus with submitted form (#9978)
💉 improve perf & save some bytes (#9968)
🐞 fix #9955 useForm values prop keepDirtyValues not update
isDirty(#9959)🗑️ remove JSX message check (#9921)
v7.43.1: Version 7.43.1Compare Source
🐞 fix #9871 issue with error type (#9873)
🐞 fix #9842
clearErrorsmethod does not support global error (#9843)v7.43.0Compare Source
Added
v7.42.1: Version 7.42.1Compare Source
🐞 fix #9773 useFormState missing state update (#9777)
🐞 fix #9765 fix issue with strictMode with isValid state (#9771)
v7.42.0Compare Source
Added
validatesupport second argument for form valuesChanged
handleSubmitno longer catchonSubmitcallback errorfieldState.invalidv7.41.5: Version 7.41.5Compare Source
🐞 fix #9713 regression on validate function with react native (#9714)
thanks @Moshyfawn
v7.41.4: Version 7.41.4Compare Source
🐞 fix #9709 calling setValue breaks future onChange calls from a Controller ([#9710](https://redirect.github.co
Configuration
📅 Schedule: Branch creation - Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), 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.