Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2022-11-09 | 1.7 kB | |
v5.1.0 source code.tar.gz | 2022-11-09 | 320.1 kB | |
v5.1.0 source code.zip | 2022-11-09 | 343.8 kB | |
Totals: 3 Items | 665.5 kB | 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: https://github.com/CSFrequency/react-firebase-hooks/compare/v5.0.3...v5.1.0