Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: react-hook-form/react-hook-form
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.76.1
Choose a base ref
...
head repository: react-hook-form/react-hook-form
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.77.0
Choose a head ref
  • 16 commits
  • 31 files changed
  • 7 contributors

Commits on May 23, 2026

  1. Configuration menu
    Copy the full SHA
    30d2c4a View commit details
    Browse the repository at this point in the history
  2. 🤮 chore: fix ci build (#13469)

    * save bundle size
    
    * remove workspace
    
    * remove
    
    * remove  --frozen-lockfile
    
    * direct export
    
    * test
    
    * remove the npm install
    
    * try again
    bluebill1049 authored May 23, 2026
    Configuration menu
    Copy the full SHA
    63c974d View commit details
    Browse the repository at this point in the history
  3. 👝 save bundle size (#13468)

    * save bundle size
    
    * remove workspace
    
    * remove
    
    * remove  --frozen-lockfile
    
    * direct export
    
    * test
    
    * update ci
    
    * test
    
    * test
    
    * use isWeb
    
    * save prop deconstruct
    
    * update api contract
    
    * update e2e script
    
    * update e2e script
    
    * revert back
    
    * revert back to 9
    
    * revert back to 9
    
    * revert to master
    bluebill1049 authored May 23, 2026
    Configuration menu
    Copy the full SHA
    c60e4f0 View commit details
    Browse the repository at this point in the history
  4. 🐞 fix stale isDirty in subscribe payload after `reset(..., { keep…

    …Values: true })` (#13461)
    
    * Initial plan
    
    * fix: keep isDirty accurate on reset with keepValues
    
    * fix lint
    
    * Update subscribe.test.tsx
    
    * Update subscribe.test.tsx
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Co-authored-by: Beier Luo <[email protected]>
    Copilot and bluebill1049 authored May 23, 2026
    Configuration menu
    Copy the full SHA
    831721f View commit details
    Browse the repository at this point in the history
  5. 🐞 fix: preserve values with shouldUnregister (#13464)

    * fix: preserve values with shouldUnregister
    
    * test: align valueAsNumber NaN validation expectation
    
    * Potential fix for pull request finding
    
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    
    * Update useForm.test.tsx
    
    ---------
    
    Co-authored-by: Deepak kudi <[email protected]>
    Co-authored-by: Bill <[email protected]>
    Co-authored-by: Copilot Autofix powered by AI <[email protected]>
    4 people authored May 23, 2026
    Configuration menu
    Copy the full SHA
    d058812 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2026

  1. 🔧 fix: override rpt2 include patterns broken by picomatch v2 extglob

    rollup-plugin-typescript2's default include uses extglob syntax
    ("*.ts+(|x)") that picomatch v2 (via @rollup/[email protected]) does
    not support — picomatch v2 treats +(|x) as literal characters so the
    filter never matches any .ts/.tsx file. Override with plain globs.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
    bluebill1049 and claude committed May 24, 2026
    Configuration menu
    Copy the full SHA
    9ac8a60 View commit details
    Browse the repository at this point in the history
  2. 🌭 upgrade deps (#13470)

    * upgrade deps
    
    * fix build
    
    * 🔧 fix: override rpt2 include patterns broken by picomatch v2 extglob
    
    rollup-plugin-typescript2's default include uses extglob syntax
    ("*.ts+(|x)") that picomatch v2 (via @rollup/[email protected]) does
    not support — it treats +(|x) as literal characters so the filter
    never matches any .ts/.tsx file. Override with plain globs.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
    
    * update
    
    ---------
    
    Co-authored-by: Claude Sonnet 4.6 <[email protected]>
    bluebill1049 and claude authored May 24, 2026
    Configuration menu
    Copy the full SHA
    f8eb2d7 View commit details
    Browse the repository at this point in the history
  3. 🐞 fix inconsistent reset({}) behavior requiring double-call to take e…

    …ffect (#13473)
    
    * Initial plan
    
    * Fix inconsistent reset({}) behavior - use provided values instead of old defaultValues
    
    * Delete pnpm-workspace.yaml
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Co-authored-by: Bill <[email protected]>
    Copilot and bluebill1049 authored May 24, 2026
    Configuration menu
    Copy the full SHA
    581321c View commit details
    Browse the repository at this point in the history
  4. 🧪 add regression coverage for dynamic nested names with useController…

    … and watch APIs (#13474)
    
    * Initial plan
    
    * test: cover dynamic nested controller watch behavior
    
    Agent-Logs-Url: https://github.com/react-hook-form/react-hook-form/sessions/67405d17-6ee3-4636-9155-37a3959c2448
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Co-authored-by: Bill <[email protected]>
    Copilot and bluebill1049 authored May 24, 2026
    Configuration menu
    Copy the full SHA
    889c752 View commit details
    Browse the repository at this point in the history
  5. 🐞 fix FieldArray errors overriding nested fields (#13476)

    * Initial plan
    
    * fix: preserve nested field array errors when root error and trigger coexist
    
    When a resolver returns mixed errors (both root-level and nested indexed
    errors) for a field array, calling trigger() alongside a field array action
    (like remove()) could cause nested field errors to be wiped out.
    
    Root cause: executeSchemaAndUpdateState() was calling updateFieldArrayRootError()
    for all plain-object field array errors. updateFieldArrayRootError() used
    convertToArrayPayload() to coerce the existing errors, but when those errors
    were already a plain object (set by the useFieldArray useEffect), this wrapped
    the entire plain object as index 0 of an array — causing all the
    correctly-indexed nested errors to become inaccessible.
    
    Fix 1 (createFormControl.ts): Only call updateFieldArrayRootError() for
    field array errors that are root-only plain objects (no numeric/index keys).
    When the error has numeric keys (mixed root + nested), set it directly so
    both root info (via .type/.message) and nested errors (via [i]) are preserved.
    
    Fix 2 (updateFieldArrayRootError.ts): Replace convertToArrayPayload() with
    an Array.isArray() check so that non-array existing errors are not wrapped.
    This prevents a scenario where a second trigger() with a root-only error
    wraps a previously-set plain object, losing its nested entries.
    
    * update lint
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Co-authored-by: bill <[email protected]>
    Copilot and bluebill1049 authored May 24, 2026
    Configuration menu
    Copy the full SHA
    645478b View commit details
    Browse the repository at this point in the history

Commits on May 25, 2026

  1. Configuration menu
    Copy the full SHA
    6aa81f9 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2026

  1. Configuration menu
    Copy the full SHA
    fe8276e View commit details
    Browse the repository at this point in the history
  2. 🥡 feat: add resetDefaultValues API (#13427)

    * Initial plan
    
    * feat: add resetDefaultValues API to update defaults without changing form values
    
    Agent-Logs-Url: https://github.com/react-hook-form/react-hook-form/sessions/1f8797d4-65d5-465e-87b5-1b099e4b4d48
    
    * update api contract
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Co-authored-by: bill <[email protected]>
    Copilot and bluebill1049 authored May 27, 2026
    Configuration menu
    Copy the full SHA
    54198d9 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2026

  1. Configuration menu
    Copy the full SHA
    ba88c3d View commit details
    Browse the repository at this point in the history

Commits on May 30, 2026

  1. 🧪 add regression coverage for createFormControl + useController remou…

    …nt defaults (#13487)
    
    * Initial plan
    
    * test: add remount regression for createFormControl useController defaults
    
    ---------
    
    Co-authored-by: copilot-swe-agent[bot] <[email protected]>
    Copilot authored May 30, 2026
    Configuration menu
    Copy the full SHA
    f1a02d3 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2026

  1. 7.77.0

    bluebill1049 committed May 31, 2026
    Configuration menu
    Copy the full SHA
    5b20741 View commit details
    Browse the repository at this point in the history
Loading