Skip to content

Releases: firebase/firebase-functions

v3.12.0

30 Nov 21:54
Compare
Choose a tag to compare
  • Adds 4GB as a memory option for runWith().
  • Adds support for choosing ingressSettings via runWith().

v3.11.0

21 Aug 16:10
Compare
Choose a tag to compare
  • Adds support for vpcConnector and vpcConnectorEgressSettings fields in functions.runWith(). Must be used in conjunction with firebase-tools v8.9.0 or higher. Thanks @pcboy! (#752)

v3.10.0

20 Aug 16:00
Compare
Choose a tag to compare
  • Adds support for functions failure policies (#482)

v3.9.1

12 Aug 19:59
Compare
Choose a tag to compare
  • Updates firebase-admin dependency to support ^9.0.0 in addition to ^8.0.0. Note that firebase-admin no longer supports Node.js 8.x as of 9.0.0.
  • Fixes logging of unexpected errors in https.onCall() functions.

v3.9.0

31 Jul 23:21
Compare
Choose a tag to compare
  • Updates HTTP callable functions to use structured logging for Node 10+ environments.
  • Adds type hints for new Cloud Functions regions asia-northeast3, asia-south1, and asia-southeast2.
  • Updates type definition of https.onRequest to allow for promises (async functions).

v3.8.0

14 Jul 00:00
Compare
Choose a tag to compare
  • Fixes error when last argument to logger methods is null. (#716)
  • Adds eight new available regions:
    • us-west2
    • us-west3
    • us-west4
    • europe-west6
    • asia-northeast2
    • northamerica-northeast1
    • southamerica-east1
    • australia-southeast1
  • No longer throw errors for unrecognized regions (deploy will error instead).
  • Fixes error where snap.ref in database functions did not work when using the Emulator Suite (#726)

v3.7.0

09 Jun 23:18
Compare
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
Compare
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
Compare
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
Compare
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).