yarn react-hook-form 7.90.0
Version 7.90.0

3 hours ago

๐Ÿž Fixes

  • Fix useForm marking fields named after Object.prototype members as touched on blur and setValue (#13833)
  • Fix cloneObject preserving the length of sparse arrays (#13834)
  • Fix dirty values extraction for fields named hasOwnProperty (#13832)
  • Fix useForm retaining options removed from props on re-render (#13831)
  • Fix useFieldArray handling duplicate indexes in remove() without mutating the provided indexes (#13830)
  • Fix useFieldArray unregistering fields while a parent array reindexes (#13828)
  • Fix input values edited before the form is ready being lost (#13827)
  • Fix useWatch not updating watched objects after an Activity subtree reconnects (#13819)
  • Fix reset() incorrectly setting isDirty when using keepDefaultValues without values (#13820)
  • Fix Controller blur validation not working after reset() (#13817)
  • Fix watch using stale shouldUnregister options when registering fields (#13814)
  • Fix form value comparison for fields named ref (#13812)
  • Fix native validation using stale shouldUseNativeValidation options (#13806)
  • Fix cloneObject not cloning objects with a null prototype (#13808)
  • Fix useWatch array names not prioritizing form defaultValues (#13805)
  • Fix error updates not producing a new errors reference (#13800)
  • Fix setError and clearErrors not producing a new errors reference (#13791)

โšก Performance Improvements

  • Improve dirty fields checking (#13788)
  • Improve subscription value handling (#13787)
  • Improve watch API performance (#13792)
  • Improve named scoped subscriptions (#13793)
  • Preserve form-state tracking across unsubscribe (#13794)
  • Improve subject subscription handling (#13795)
  • Skip redundant form-state merges during subscriber notifications (#13796)
  • Avoid allocations when matching subscription names (#13823)

๐Ÿงน Refactors

๐Ÿงช Tests

  • Add coverage for useFieldArray index boundary and no-op behavior (#13815, #13822, #13824, #13829)
  • Add coverage for JSON stringify and parse edge cases (#13821)

๐Ÿ“ฆ Dependencies

  • Bump fast-uri from 3.1.2 to 3.1.8 (#13811)
  • Bump joi from 18.2.5 to 18.2.6 (#13810)

โค๏ธ Thank You

Thanks to @charan-rathore, @zigzagdev, @AdzerKI, @huytdps13400, @dfedoryshchev, @kory-kaai, @Mohamed-Elshesheny, @breken-ai, @sarmah-rup, @00200200, @giaBaoJS and @bluebill1049 for their contributions! ๐ŸŽ‰

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

NewReleases is sending notifications on new releases.