A redux saga integration for firebase.
firestore.channel(pathOrRef, type, buffer, snapshotListenOptions)
now accepts a fourth, optional parameter: snapshotListenOptions
. A SnapshotListenOptions object to control the circumstances when the channel will emit events. Thanks @ted-aux! π (https://github.com/n6g7/redux-saga-firebase/pull/135)failureActionCreator
were given. (https://github.com/n6g7/redux-saga-firebase/pull/156)@babel/preset-stage-3
has been removed.@babel/runtime
is now a direct dependency to avoid conflicts with any user-installed version (see issue https://github.com/n6g7/redux-saga-firebase/issues/130).*auth.deleteProfile()
: deletes and signs out the user. Thanks, @sarovin! πThis release includes several breaking changes.
database.channel(path, event, buffer)
now accepts an optional third argument, buffer
, which defaults to buffers.none()
. Thanks @ryansully! πfirestore.channel(pathOrRef, type, buffer)
now accepts an optional third argument, buffer
, which defaults to buffers.none()
. Thanks @ryansully! π*auth.updateProfile(credential)
: updates the userβs basic profile information. Thanks, @elco45! πnew ReduxSagaFirebase(firebaseApp)
now only accepts a firebase app. There is no need to pass a firebase.firestore()
object anymore, as RSF now uses the built-in firestore instance (and, BTW, it's a bad idea to use firebase.firestore()
).*functions.call(functionName, queryParams, init)
now accepts URLs as first parameter. This is to allow running functions locally.
For more information see issue https://github.com/n6g7/redux-saga-firebase/issues/97 and the docs.*functions.call(functionName, queryParams, init)
now takes a third optional init
argument which can be used to specify any custom settings that you want to apply to the request. It's identical to fetch
's init
argument.
For more information see issue https://github.com/n6g7/redux-saga-firebase/issues/95.*auth.linkWithPopup(authProvider)
: links the authenticated provider to the user account using a pop-up based OAuth flow. Thanks @hhorne! π*auth.linkWithRedirect(authProvider)
: links the authenticated provider to the user account using a full-page redirect flow. Thanks @hhorne! π*auth.unlink(authProvider)
: unlinks a provider from a user account. Thanks @hhorne! π*database.sync(path, options, event)
now takes a third optional event
argument which defines the type of event to listen for. See the list of supported events in the Reference.on
docs.
This new argument is optional and it defaults to value
, which was the default until now, so this isn't a breaking change.
For more information see issue https://github.com/n6g7/redux-saga-firebase/issues/84.functions.call
method was failing to detect the project id automatically in some cases. Thanks @juanialt! π