Skip to content

Releases: firebase/firebase-functions

v3.7.0

09 Jun 23:18

Choose a tag to compare

  • Adds functions.logger SDK to enable structured logging in the Node.js 10 runtime. For example:

    const functions = require('firebase-functions');
    
    functions.logger.debug('example log with structured data', {
      uid: user.uid,
      authorized: true,
    });
  • Adds a special require that mimics Node.js 8 runtime logging in Node.js 10 and later runtimes:

    require('firebase-functions/lib/logger/compat');

    In newer runtimes, requiring this will emit text logs with multi-line support and appropriate severity. In the Node.js 8 runtime, the compat module has no effect.

  • Fixes https.onRequest type signature to allow Promises for async functions.

v3.6.2

28 May 17:29

Choose a tag to compare

  • Pin @types/express version to 4.17.3 to fix type definition issue (Issue #685).
  • Firestore onCreate, onUpdate, and onDelete now receive a QueryDocumentSnapshot instead of DocumentSnapshot, which guarantees that data is not undefined (Issue #659).
  • Modify return type of DataSnapshot.forEach to boolean | void match firebase-admin SDK.

v3.6.1

24 Apr 17:29

Choose a tag to compare

  • Update TypeScript dependency to v.3.8 to fix build issues (Issue #667)

v3.6.0

31 Mar 23:03

Choose a tag to compare

  • Adds support for europe-west3 region (e.g. functions.region("europe-west3")).
  • Adds support for async HTTP functions (Issue #606).

v3.5.0

20 Mar 18:18

Choose a tag to compare

  • Adds support for defining max number of instances for a function. Example:

    functions.runWith({
      maxInstances: 10
    }).https.onRequest(...);
    

    Learn more about max instances in the Google Cloud documentation.

  • Fixes TypeScript build error when package-lock.json is present by updating dependencies (Issue #637).

v3.4.0

19 Mar 18:10

Choose a tag to compare

  • Adds support for writing scheduled functions under handler namespace.

v3.3.0

10 Oct 21:58

Choose a tag to compare

  • Add a helper function for the Firebase Emulator suite.

v3.2.0

24 Jul 20:39

Choose a tag to compare

  • Adds support for Test Lab triggered functions with functions.testLab.
  • Upgrade lodash dependency to resolve security vulnerability CVE-2019-10744.

v3.1.0

08 Jul 22:36

Choose a tag to compare

  • Adds region support for us-east4.

v3.0.2

25 Jun 23:38

Choose a tag to compare

  • bug where auth.UserRecord.metadata was undefined.