Releases: firebase/firebase-functions
Releases · firebase/firebase-functions
v0.7.5
- Reverts change which causes the error "Cannot decode type from Firestore Value" if firebase-admin peer dependency not met.
v0.7.4
- For Firestore events where no previous data exists,
event.data.previous
is no longernull
, it is always a Firebase DocumentSnapshot.event.data.previous.exists
will be false if there is no previous data. - Fixed regression where DeltaSnapshot constructor parameter ordering was changed.
- The typing of
functions.config()
now guarantees the existence offunctions.config().firebase
.
v0.7.3
- Added support for specifying which of the project's database instances should trigger a function. If not specified, function will be triggered by the default database. E.g. exports.myFunction = functions.database.instance('my-app-db-2').ref('/foo/bar').onCreate(handler)
v0.7.2
- Added support for Crashlytics-triggered functions. To get access to Crashlytics Beta, go to http://g.co/firebase/opt-in.
- Fixed bug where date values in Firestore became "Invalid date" if milliseconds were not specified.
v0.7.1
- Updated firebase-admin peer dependency to v5.4.2. This version has important updates for Firestore.
v0.7.0
- Added support for Firestore trigger type, with onWrite, onCreate, onUpdate, and onDelete events. e.g. exports.myFunction = functions.firestore.document('profiles/{user}').onCreate(handler)
- Fixed bug where a function that returned “undefined” no longer issued a warning in the logs.
v0.6.3
- Fixed bug where developers' unit tests for Database functions would fail if they defined
event.params
but notevent.resource
, and tried to accessevent.params
within the function.
v0.6.2
- Updated firebase-admin peer dependency to v5.2.1, which adds support for the Google Cloud Storage API. See release notes: https://github.com/firebase/firebase-admin-node/releases.
- Updated integration test script to be fully automated.
v0.6.1
- Updated firebase-admin peer dependency to v5.1.0, which adds support for phone authentication. See release notes: https://github.com/firebase/firebase-admin-node/releases/tag/v5.1.0.
v0.6.0
- Updated firebase-admin peer dependency to v5.0.1. For auth functions, event.data.metadata has its fields renamed from ‘createdAt’ to ‘creationTime’ and ‘lastSignedInAt’ to ‘lastSignInTime’, and both are now ISO strings instead of Date objects.