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
useSendSignInLinkToEmailanduseSignInWithEmailLink#261
New Features
- [auth]
useCollectionanduseDocumentnow supports an optionalinitialValueoption 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
createUserandsignInWithXXXhooks will return theUserCredentialwhen successful #251 - [auth] All methods returned by
updateXXXandsendXXXhooks will return abooleanto indicate success or failure
Bug fixes
- Ensure that all internal functions are wrapped in
useCallbackto 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]
useCollectionDataanduseDocumentDatahooks no longer supportsidField,refFieldortransformoptions as these are incompatible with the new Firebase v9 typings. Instead, use the built inFirestoreDataConverterfunctionality 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,useSignInWithTwitteranduseSignInWithYahoo- thanks to @isaiah-solo for the originaluseSignInWithGooglehook that was adapted. - [auth] Add a number of user update hooks:
useUpdateEmail,useUpdatePasswordanduseUpdateProfile - [auth] Add a couple of email hooks:
useSendPasswordResetEmailanduseSendEmailVerification - [functions] Add the
useHttpsCallablehook to allow callable Cloud Functions to be executed - [messaging] Add the
useTokenhook to allow access to the Cloud Messaging token - [storage] Add the
useUploadFilehook to allow files to be uploaded to Cloud Storage - thanks to @dohomi for the inspiration
New Features
- [auth]
useAuthStatenow supports an optionalonUserChangedoption to allow custom functions to be called when a user changes, e.g. to access custom claims (#139) - thanks to @dohomi - [firestore]
useCollectionDataanduseDocumentDatanow return thesnapshotobject to allow access to things like metadata - [firestore]
use***Oncehooks now return areloadfunction 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
initialValuewhen 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-hooksto 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.