Releases: firebase/firebase-functions
Releases · firebase/firebase-functions
v3.13.2
v3.13.1
- Fixes a bug that prevented Functions from being deployed with
availableMemoryMbset to4GB. - Fixes bug where
functions.logger.logcrashes function if circular dependencies are passed in
v3.13.0
- Adds
serviceAccountoption toruntimeOptionsto specify which service account Cloud Function should use at runtime. For example:
const functions = require('firebase-functions');
exports.myFunction = functions.runWith({
serviceAccount: '[email protected]'
// OR
// serviceAcount: 'test-sa@"
// OR
// serviceAccount: 'default'
})
Requires [email protected] or later. Thanks @egor-miasnikov!
- Upgrades
highlight.jsto10.4.1to fix a vulnerability.
v3.12.0
- Adds
4GBas amemoryoption forrunWith(). - Adds support for choosing
ingressSettingsviarunWith().
v3.11.0
v3.10.0
v3.9.1
- Updates
firebase-admindependency to support^9.0.0in addition to^8.0.0. Note thatfirebase-adminno longer supports Node.js 8.x as of9.0.0. - Fixes logging of unexpected errors in
https.onCall()functions.
v3.9.0
- Updates HTTP callable functions to use structured logging for Node 10+ environments.
- Adds type hints for new Cloud Functions regions
asia-northeast3,asia-south1, andasia-southeast2. - Updates type definition of
https.onRequestto allow for promises (async functions).
v3.8.0
- Fixes error when last argument to logger methods is
null. (#716) - Adds eight new available regions:
us-west2us-west3us-west4europe-west6asia-northeast2northamerica-northeast1southamerica-east1australia-southeast1
- No longer throw errors for unrecognized regions (deploy will error instead).
- Fixes error where
snap.refin database functions did not work when using the Emulator Suite (#726)
v3.7.0
-
Adds
functions.loggerSDK 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
compatmodule has no effect. -
Fixes
https.onRequesttype signature to allow Promises forasyncfunctions.