Skip to content

⬆️ upgrade react-hook-form to v7.80.0#843

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/react-hook-form-7.x-lockfile
Open

⬆️ upgrade react-hook-form to v7.80.0#843
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/react-hook-form-7.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Mar 29, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
react-hook-form (source) 7.54.27.80.0 age confidence

Release Notes

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

v7.80.0: Version 7.80.0

Compare Source

🧄 feat: disable useFieldArray fields (#​13535)

const { fields } = useFieldArray({ disabled: true });
fields[0].disabled; // contains disabled props

🛺 perf: make rhf more performant (#​13524)
🐞 fix(deepEqual): empty array and empty plain object should not be equal (#​13533)

thanks to @​JSap0914

v7.79.0

Compare Source

Added
  • disabled option to useFieldArray
Fixed
  • Controller onChange promise return type
  • deepEqual false positives with shared object references
  • shouldUseNativeValidation behavior for radio groups
  • createFormControl stability with fast refresh in dev mode
  • StrictMode value preservation during remount
  • formState.errors reactivity with React compiler

v7.78.0

Compare Source

Fixed
  • Recover Controller fields after reset without rerender (RN issue #​13455)
  • useFormState().isDirty race with async resolver in onChange mode
  • Use reactive values prop over defaultValues when shouldUnregister is true
  • deepEqual for empty non-plain objects
Types
  • Update dirtyFields typing for field arrays with undefined entries

v7.77.0

Compare Source

Added
  • resetDefaultValues API
Fixed
  • Stale isDirty in subscribe payload after reset(..., { keepValues: true })
  • Preserve values with shouldUnregister
  • Inconsistent reset({}) behavior requiring double-call to take effect
  • FieldArray errors overriding nested fields
Security
  • Harden get() against prototype-path traversal (__proto__ / constructor / prototype)
Performance
  • Bundle size reduction

v7.76.1

Compare Source

Fixed
  • Revert notify all matching field-array roots on nested setValue updates
  • Revert treat NaN as empty when valueAsNumber is true in validateField
  • setValues pass options parameter through to enable validation
  • setValues emit whole-form change without stale name/type
Performance
  • setValues skip redundant per-field deep clones
  • setValues thread skipClone through setFieldValue

v7.76.0

Compare Source

Added
  • Improve isDirty sync with dirtyFields state
Fixed
  • Preserve formState.defaultValues when useFieldArray and watch are used together
  • Preserve nested resolver field-array errors in trigger()
  • Notify all matching field-array roots on nested setValue updates
  • useFieldArray remove leaves array with empty object when using values prop
  • Preserve reset values for conditionally mounted Controller fields with shouldUnregister
  • Propagate setValues updates to mounted Controller fields
  • Native validation tooltip suppression caused by duplicate submit-error focus
  • append({ obj: null }) silently replaced by defaultValues after remove()
  • Errors state when using form-level validation
  • isValidating reactivity when validatingFields is not subscribed

v7.75.0

Compare Source

Added
  • Improve getDirtyFields to prune empty fields
  • TypeScript 6.0 support
Fixed
  • Include setValues in FormProvider context value
  • Preserve watch updates on field array unmount
  • Prevent useWatch re-render when unrelated field validation occurs
  • Recompute isDirty after re-registering a previously unregistered field

v7.74.0

Compare Source

Added
  • setValues API
Fixed
  • Preserve previous field value when useController name changes
  • Handle null parent when unregistering nested field
  • Treat NaN as empty when valueAsNumber is true in validateField

v7.73.1

Compare Source

Fixed
  • Reverted setValues that was accidentally included in patch; fix build to exclude test files

v7.72.1

Compare Source

Fixed
  • Prevent setValue with shouldDirty from polluting unrelated dirty fields
  • Memoize control in HookFormControlContext to prevent render conflicts
  • isNameInFieldArray should check all ancestor paths for nested field arrays
  • formState.isValid incorrect on Controller re-mount

v7.72.0

Compare Source

Added
  • Built-in form-level validate option
  • Subscribe formState to track submit state
Fixed
  • Checkbox form validation ignored with native validation
  • Prevent useFieldArray from marking unrelated fields as dirty

v7.71.2

Compare Source

Fixed
  • clearErrors emit name signal for targeted field updates
  • Use DeepPartialSkipArrayKey for WatchObserver value parameter

v7.71.1

Compare Source

Fixed
  • Issue with booleans_as_integers value handling

v7.71.0

Compare Source

v7.70.0

Compare Source

Fixed
  • Prevent field array ghost elements with keepDirtyValues
  • Improve watch return types
  • Improve invalid date handling in deepEqual and validation
  • Handle branded types correctly in DeepPartial
  • Fix native validation focus issue
  • Prevent duplicate subscription trigger in setValue

v7.69.0

Compare Source

Added
  • Align <Watch /> API with useWatch
Fixed
  • Security: CVE-2025-67779, CVE-2025-55184, CVE-2025-55183, CVE-2025-55182
  • Preserve isValid state when keepIsValid option is used
  • Ensure createFormControl.subscribe subscription listens only to subscribed changes
  • Batch isValidating state updates with validation result
  • Resolve race condition between setError and setFocus

v7.68.0

Compare Source

Added
  • <FormStateSubscribe /> component
Fixed
  • Clear validation errors synchronously in reset() to fix Next.js 16 Server Actions issue

v7.67.0

Compare Source

Added
  • exact option for useController props
Fixed
  • Allow undefined value with async defaultValues in Controller
  • Correct PathValueImpl type inference

v7.66.1

Compare Source

Performance
  • Reduce redundant property access in getDirtyFields
Fixed
  • Skip setValid() during batch array updates
  • Recompute isValid after reset when values update asynchronously
  • Handle NaN comparison correctly using Object.is in deepEqual

v7.66.0

Compare Source

Added
  • useWatch and useController now react to name prop changes
Fixed
  • watch() returning undefined immediately after reset()
  • Correct render function parameter typing for <Watch /> component

v7.65.0

Compare Source

Added
  • <Watch /> component
Fixed
  • Respect parent-provided useFieldArray rules
  • getDirtyFields submit fields with null values when using useForm

v7.64.0

Compare Source

Added
  • Support optional array fields in PathValueImpl type
Fixed
  • Preserve Controller's defaultValue with shouldUnregister prop

v7.63.0

Compare Source

Added
  • Improve get dirty fields logic
  • Extra form values accessible via formState
Fixed
  • Only execute trigger function when deps has a valid array
  • Unregister previous field when switching conditional Controllers
  • Use field name to update isValidating fields

v7.62.0

Compare Source

Fixed
  • Sync two defaultValues after reset with new defaultValues
  • Field name type conflict in nested FieldErrors
  • Prevent onBlur for readOnly fields
  • Do not override prototype of data in cloneObject

v7.61.1

Compare Source

Fixed
  • Reverted watch return type change based on defaultValue (caused regressions)

v7.61.0

Compare Source

Added
  • compute prop for useWatch subscription
Fixed
  • Subscribe with latest defaultValues
  • Trigger watch callbacks only in response to value changes
  • Track name with setValue subscription callbacks
  • Handle explicit "multipart/form-data" encType in <Form /> component
  • Remove React wildcard import to resolve ESM build issues

v7.60.0

Compare Source

Added
  • reset with keepFieldsRef option to keep fields reference
Fixed
  • Remove Set from clone object

v7.59.0

Compare Source

Added
  • Support deep equality checking with circular references
Fixed
  • Issue with formData reference clone
  • Issue with undefined value for submit data
  • useWatch object variable param handling

v7.58.1: Version 7.58.1

Compare Source

🔧 check window.crypto undefined (#​12893)

v7.58.0

Compare Source

Added
  • FieldArrayPathByValue type
  • Use stringToPath to prevent errors at field names containing quotes
Fixed
  • Incorrect formControl return from useForm
  • Initial useFieldArray fields population

v7.57.0

Compare Source

Added
  • Focus form field for errors supplied via errors prop
  • Export UseFormResetFieldOptions type for resetField API
  • Root errors count in schema error lookup
Fixed
  • Type info for callback args in subscribe
  • Proper types for form.subscribe
  • useController focus function runtime issue
  • setValue skips values not in own properties (prevents infinite call stack with self-referencing proto)
  • Checkbox duplication handling in useFieldArray
  • mode and reValidateMode reactivity
  • Default value being overwritten by values prop regression

v7.56.4: Version 7.56.4

Compare 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.3

Compare Source

Revert "📭 close #​12773 pass input ref instead partial (#​12775)"

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: Version 7.56.1

Compare Source

🐞 fix #​12761 #​12762 issue with usage reset isReady formState (#​12765)
🐞 fix #​12763 import warning with named exports (#​12764)

v7.56.0

Compare Source

Added
  • Reactive mode and reValidateMode support
  • isReady state for subscription
Fixed
  • Regression on move/swap in useFieldArray input update
  • Use useIsomorphicLayoutEffect to address SSR warning

v7.55.0

Compare Source

Added
  • createFormControl and subscribe function
  • Infer resolver output types
  • Allow components with useController hook to be memoized
  • Track disabled fields and only omit data on submit
  • Stable reference for useWatch defaultValue
  • handleSubmit with native events support
Fixed
  • Type inference for useFormContext
  • values and defaultValues work correctly with createFormControl and useMemo
  • Prevent infinite render with condition check
  • Valid state update with onBlur mode
  • disabled field value not returned as undefined in resolver
  • revalidateMode issue with useFieldArray validation
  • useController unregister issue with strict mode
  • setError in useEffect not working inside FormProvider context
  • useController return props reference stability

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "every weekend"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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.

@vercel

vercel Bot commented Mar 29, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kitchn-docs Error Error Jun 20, 2026 2:47am
kitchn-workshop Error Error Jun 20, 2026 2:47am

@changeset-bot

changeset-bot Bot commented Mar 29, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d5ea00b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 354d29f to 2ccc39a Compare April 1, 2025 11:20
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 2ccc39a to 7eaba80 Compare April 8, 2025 14:44
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 7eaba80 to d6f7ce1 Compare April 20, 2025 10:36
@renovate renovate Bot changed the title ⬆️ upgrade react-hook-form to v7.55.0 ⬆️ upgrade react-hook-form to v7.56.0 Apr 20, 2025
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from d6f7ce1 to 3102759 Compare April 23, 2025 03:24
@renovate renovate Bot changed the title ⬆️ upgrade react-hook-form to v7.56.0 ⬆️ upgrade react-hook-form to v7.56.1 Apr 23, 2025
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 3102759 to 91990b4 Compare April 24, 2025 06:49
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch 2 times, most recently from 1e13e75 to bedd306 Compare April 26, 2025 15:35
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from bedd306 to f5f7374 Compare May 4, 2025 02:25
@renovate renovate Bot changed the title ⬆️ upgrade react-hook-form to v7.56.1 ⬆️ upgrade react-hook-form to v7.56.2 May 4, 2025
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 41ee89c to fc9f912 Compare May 19, 2025 11:49
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from fc9f912 to 4ddc624 Compare May 28, 2025 13:29
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 4ddc624 to 689a821 Compare June 2, 2025 01:34
@renovate renovate Bot changed the title ⬆️ upgrade react-hook-form to v7.56.4 ⬆️ upgrade react-hook-form to v7.57.0 Jun 2, 2025
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 689a821 to 05a52ac Compare June 4, 2025 06:45
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 05a52ac to a8125e9 Compare June 15, 2025 13:28
@renovate renovate Bot changed the title ⬆️ upgrade react-hook-form to v7.57.0 ⬆️ upgrade react-hook-form to v7.58.0 Jun 15, 2025
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from a8125e9 to 328c5b2 Compare June 17, 2025 17:24
@renovate renovate Bot changed the title ⬆️ upgrade react-hook-form to v7.58.0 ⬆️ upgrade react-hook-form to v7.58.1 Jun 17, 2025
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from 328c5b2 to e962e60 Compare June 22, 2025 15:03
@renovate renovate Bot force-pushed the renovate/react-hook-form-7.x-lockfile branch from e962e60 to d601ded Compare June 28, 2025 05:54
@renovate renovate Bot changed the title ⬆️ upgrade react-hook-form to v7.58.1 ⬆️ upgrade react-hook-form to v7.59.0 Jun 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants