Skip to content

v5.1.0

Compare
Choose a tag to compare
@chrisbianca chrisbianca released this 09 Nov 10:44
· 3 commits to master since this release

Release Notes

It's been a while since the last release, so this has been a bit of a housekeeping release focused on landing outstanding PRs and resolving a few of the simpler issues that have been reported.

I'm aware there are some outstanding issues with React 18 that require some deeper investigation and these will be tackled in a future release.

Special thanks to @levino for putting a test framework in place and adding our first test. We would welcome PRs with additional tests to improve the resilience of the library!

New Hooks

  • [auth] Add useSendPasswordResetEmail - thanks to @mparsakia
  • [auth] Add useDeleteUser - thanks to @RobertSasak
  • [auth] Add useSignOut - thanks to @RobertSasak
  • [auth] Add useVerifyBeforeUpdateEmail - thanks to @skratchdot
  • [auth] Add useIdToken #223
  • [auth] Add useSendSignInLinkToEmail and useSignInWithEmailLink #261

New Features

  • [auth] useCollection and useDocument now supports an optional initialValue option which sets the default value for hooks. This had been missed in the upgrade from v3 to v4 - thanks to @mauriceackel and @dylanwatsonsoftware
  • [auth] All methods returned by the createUser and signInWithXXX hooks will return the UserCredential when successful #251
  • [auth] All methods returned by updateXXX and sendXXX hooks will return a boolean to indicate success or failure

Bug fixes

  • Ensure that all internal functions are wrapped in useCallback to prevent unnecessary renders - thanks to @wong2 and @pzmudzinski

Full Changelog: v5.0.3...v5.1.0