Releases: CSFrequency/react-firebase-hooks
v5.1.1
Release Notes
Bug fixes
- Fixes missing import for
useIdToken
- thanks @vwxyutarooo
Full Changelog: v5.1.0...v5.1.1
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
v5.0.3
v5.0.2
v5.0.1
v5.0.0
Release Notes
This is one of the biggest releases for a while, bringing a raft of simplifications to the underlying code and a number of new hooks to support a greater breadth of Firebase functionality.
Breaking Changes
- [firestore]
useCollectionData
anduseDocumentData
hooks no longer supportsidField
,refField
ortransform
options as these are incompatible with the new Firebase v9 typings. Instead, use the built inFirestoreDataConverter
functionality to control how the snapshots returned by Firebase are converted. - [typings] Flow typings have been removed as they were wildly out of date
New Hooks
- [auth] Add a number of social login hooks:
useSignInWithApple
,useSignInWithFacebook
,useSignInWithGithub
,useSignInWithGoogle
,useSignInWithMicrosoft
,useSignInWithTwitter
anduseSignInWithYahoo
- thanks to @isaiah-solo for the originaluseSignInWithGoogle
hook that was adapted. - [auth] Add a number of user update hooks:
useUpdateEmail
,useUpdatePassword
anduseUpdateProfile
- [auth] Add a couple of email hooks:
useSendPasswordResetEmail
anduseSendEmailVerification
- [functions] Add the
useHttpsCallable
hook to allow callable Cloud Functions to be executed - [messaging] Add the
useToken
hook to allow access to the Cloud Messaging token - [storage] Add the
useUploadFile
hook to allow files to be uploaded to Cloud Storage - thanks to @dohomi for the inspiration
New Features
- [auth]
useAuthState
now supports an optionalonUserChanged
option to allow custom functions to be called when a user changes, e.g. to access custom claims (#139) - thanks to @dohomi - [firestore]
useCollectionData
anduseDocumentData
now return thesnapshot
object to allow access to things like metadata - [firestore]
use***Once
hooks now return areload
function to allow manual reloading of the data
Bug fixes
Full Changelog: v4.0.1...v5.0.0
v4.0.2
v3.0.5
Release Notes
New features
- [firestore] Add support for
initialValue
when using Firestore data hooks (#190 and #191 ) - thanks to @dylanwatsonsoftware
v4.0.1
v4.0.0
Release Notes
A big thank you to @andipaetzold who made the underlying changes for this release.
Breaking Changes
- This release updates
react-firebase-hooks
to support Firebase v9, the new modular SDK from Firebase. Whilst there should be no changes required to the way that you interact withreact-firebase-hooks
, a number of changes will need to be made to how you interact with the underlying Firebase SDKs. More can be found here.