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