Skip to content

Releases: firebase/firebase-functions

v0.8.0

03 Jan 22:19
Compare
Choose a tag to compare
  • firebase-admin peer dependency is now v5.6.0. Must update firebase-admin version inside of your functions directory's package.json and re-install locally.
  • For Firestore events where no previous data exists, event.data.previous is no longer null, it is always a Firebase DocumentSnapshot. event.data.previous.exists will be false if there is no previous data. (This change was previously released in v0.7.4, and reverted in v0.7.5.)

v0.7.5

20 Dec 01:12
Compare
Choose a tag to compare
  • Reverts change which causes the error "Cannot decode type from Firestore Value" if firebase-admin peer dependency not met.

v0.7.4

18 Dec 19:21
Compare
Choose a tag to compare
  • For Firestore events where no previous data exists, event.data.previous is no longer null, 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 of functions.config().firebase.

v0.7.3

10 Nov 18:50
Compare
Choose a tag to compare
  • 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

31 Oct 08:18
Compare
Choose a tag to compare
  • 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

10 Oct 21:44
Compare
Choose a tag to compare
  • Updated firebase-admin peer dependency to v5.4.2. This version has important updates for Firestore.

v0.7.0

03 Oct 16:54
Compare
Choose a tag to compare
  • 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

30 Aug 00:36
Compare
Choose a tag to compare
  • Fixed bug where developers' unit tests for Database functions would fail if they defined event.params but not event.resource, and tried to access event.params within the function.

v0.6.2

17 Aug 17:03
Compare
Choose a tag to compare
  • 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

26 Jul 18:46
Compare
Choose a tag to compare
  • 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.