yarn react-hook-form 7.91.0
Version 7.91.0

latest release: 8.0.0-beta.5
2 hours ago

๐Ÿž Fixes

  • Fix useFieldArray not updating rows when using setValue or setValues (#13842, #13939)
  • Fix useFieldArray not unregistering values correctly on unmount (#13843)
  • Fix field registration without a value incorrectly adding array rows (#13846, #13849)
  • Fix useFieldArray reindexing fields incorrectly when array rules are registered (#13873)
  • Fix useFieldArray losing validation rules after reset() (#13940)
  • Fix stale field array validation results after array changes (#13888)
  • Fix useFieldArray validation after submission in onBlur mode (#13867)
  • Fix dirty state updates when setValues changes field arrays (#13870)
  • Fix stale asynchronous validation results after reset() and unregister() (#13908, #13912, #13934)
  • Fix Controller validation using stale DOM values (#13880)
  • Fix isValid not updating correctly after reset() and subsequent changes (#13847, #13930)
  • Fix handleSubmit leaving isSubmitting active when validation throws (#13905)
  • Fix empty validation message arrays being treated as errors (#13937)
  • Fix delayed validation errors not being flushed on blur (#13861)
  • Fix form state subscriptions and validity updates (#13866, #13877, #13906)
  • Fix dirty state tracking and resetField() with falsy values (#13868, #13900)
  • Fix unregister retaining validation rules when using keepValue (#13891)
  • Fix <Form /> handling of JSON, URL-encoded, multipart and plain-text submissions (#13848, #13854, #13874, #13893, #13907, #13915, #13926)
  • Fix useWatch not updating default values when the watched name changes (#13859)
  • Fix select options being lost before the form is ready (#13872)
  • Fix useForm retaining removed options and disabled state (#13882, #13883, #13889, #13898)
  • Fix progressive required attributes (#13924)
  • Fix numeric zero maxLength validation (#13851)
  • Fix object comparison for null-prototype objects and sparse arrays (#13853, #13855, #13857)
  • Fix cloneObject handling objects with a constructor key (#13875)
  • Fix setValue handling null-prototype objects (#13916)
  • Fix form-level validation error types (#13860)
  • Fix useForm mutating the externally provided errors object (#13896)
  • Fix stale NaN and invalid date validation results (#13910)

โšก Performance Improvements

  • Avoid unnecessary copies when calling getValues() (#13894)
  • Reduce unnecessary <Form /> re-renders (#13899)

๐Ÿงน Refactors

  • Simplify multipart Content-Type handling (#13926)
  • Improve internal types and remove unnecessary type assertions (#13871, #13886)
  • Clean up memoized component display names (#13897)
  • Fix JSDoc examples (#13895)

๐Ÿงช Tests

  • Add coverage for disabled field array operations (#13841)
  • Expand regression coverage for useFieldArray, reset, validation and form state

๐Ÿ“ฆ Dependencies

  • Bump joi from 18.2.6 to 18.2.9 (#13836)
  • Update browserslist and baseline-browser-mapping (#13837, #13838, #13839)
  • Bump follow-redirects from 1.16.0 to 1.16.1 (#13913)
  • Bump vite from 6.4.3 to 6.4.4 (#13914)

โค๏ธ Thank You

Thanks to @vicuts, @maxymlyskov, @ahamsel, @dasjideepak, @feritcemkahraman, @DahanItamar, @arba-octo, @dfedoryshchev, @jeremiah-white, @TiagoGranelli, @zigzagdev, @nandyx, @hardikkaurani, @Marve10s, @candymask0712, @saaahilhussain, @itisrmk, @Enesuygurs and @bluebill1049 for their contributions! ๐ŸŽ‰

Special thanks to the Pennylane team for their incredible support! โค๏ธ

Don't miss a new react-hook-form release

NewReleases is sending notifications on new releases.