v5.1.0
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
anduseSignInWithEmailLink
#261
New Features
- [auth]
useCollection
anduseDocument
now supports an optionalinitialValue
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
andsignInWithXXX
hooks will return theUserCredential
when successful #251 - [auth] All methods returned by
updateXXX
andsendXXX
hooks will return aboolean
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