Skip to content

Releases: firebase/firebase-functions

v4.4.0

08 May 19:19
Compare
Choose a tag to compare
  • Fix typo on alert event type. (#1384)
  • Add consumeAppCheckToken option for callable functions (#1374)

v4.3.1

20 Apr 14:11
Compare
Choose a tag to compare
  • Export Change interface from the v2 firestore path (#1379).

v4.3.0

13 Apr 21:15
Compare
Choose a tag to compare
  • Enhance firstore triggers (#1358).
  • Allow parametrized string type in ServiceAccount fields in Functions and trigger configs (#1309)
  • Adds support for region params (#1353).

v4.2.1

02 Feb 19:33
Compare
Choose a tag to compare
  • Fixes an emulator issue where snapshot.ref could not point to multiple databases (#1339).
  • Fixes emulated v1 callable functions that use a monorepo setup (#1345).

v4.2.0

19 Jan 22:56
Compare
Choose a tag to compare
  • Allow Functions to specify vpcConnector as a string parameter (#1329)
  • Upgrade jsonwebtoken to version 9 (#1336)
  • Adds 'eventarcpublishing' as required API to custom event function
  • Hide type information of defineFloat in params module - it's not supported yet (#1341)

v4.1.1

12 Dec 21:01
Compare
Choose a tag to compare
  • Fix bug where some FireAlerts v2 functions didn't correctly return values back to Functions Framework. (#1324)

v4.1.0

17 Nov 17:05
Compare
Choose a tag to compare
  • Deprecate typoed function name lessThanorEqualTo (#1284)
  • Fix a bug where supplying preserveExternalChanges to scheduled functions would cause deployment failure (#1305).
  • Adds omit option to skip function deploys (#1298).

v4.0.2

01 Nov 20:20
Compare
Choose a tag to compare
  • Fix bug where secret parameters, defined using defineSecret(), were missing a .value() method (#1281)
  • Fix bug where v1/https was not exported (#1267)
  • Fix incorrect typeVersion export paths (#1287)
  • Revert removal of \_\_trigger (#1274)

v4.0.1

18 Oct 13:24
Compare
Choose a tag to compare

Correct the function BooleanExpression#then to BooleanExpression#thenElse (#1268)

v4.0.0

17 Oct 14:54
Compare
Choose a tag to compare

Breaking Changes

  • Deprecated allowInvalidAppCheckToken option. Instead use
    enforceAppCheck.

App Check enforcement on callable functions is disabled by default in v4.
Requests containing invalid App Check tokens won't be denied unless you
explicitly enable App Check enforcement using the new enforceAppCheck option.
Furthermore, when enforcement is enabled, callable functions will deny
all requests without App Check tokens.

  • Dropped support for Node.js versions 8, 10, and 12.
  • Dropped support for Admin SDK versions 8 and 9.
  • Removed the functions.handler namespace.
  • DataSnapshot passed to the Firebase Realtime Database trigger now
    matches the DataSnapshot returned by the Admin SDK, with null values
    removed.
  • Removed __trigger object on function handlers.
  • Reorganized source code location. This affects only apps that directly import files instead of using the recommend entry points specified in the
  • Reworked the apps library and removed lodash as a runtime dependency.
  • Change default behavior of function deploy to clear configurations not specified in the source code (e.g. change memory configuration in Google Cloud Console). Use preserveExternalChanges to keep existing behavior. See docs for more info.

Enhancements

  • Logs created with the functions.logger package in v2 functions
    are now annotated with each request's trace ID, making it easy to correlate
    log entries with the incoming request. Trace IDs are especially useful for
    cases where 2nd gen's concurrency feature permits a function
    to handle multiple requests at any given time. See
    Correlate log entries to learn more.
  • functions.logger.error now always outputs an error object and is included in Google Cloud Error Reporting.
  • The logging severity of Auth/App Check token validation has changed from info to debug level.
  • Event parameters for 2nd generation functions are now strongly typed, permitting stronger TypeScript types for matched parameters.