Skip to content

Releases: firebase/firebase-functions

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.

v3.24.1

30 Sep 18:02
Compare
Choose a tag to compare
  • Fix reference docs for performance monitoring.
  • Fix bug where function configuration wil null values couldn't be deployed. (#1246)

v3.24.0

21 Sep 18:58
Compare
Choose a tag to compare
  • Add performance monitoring triggers to v2 alerts (#1223).

v3.23.0

31 Aug 20:33
Compare
Choose a tag to compare
  • Fixes a bug that disallowed setting customClaims and/or sessionClaims in blocking functions (#1199).
  • Add v2 Schedule Triggers (#1177).

v3.22.0

29 Jun 18:49
Compare
Choose a tag to compare
  • Adds RTDB Triggers for v2 functions (#1127)
  • Adds support for Firebase Admin SDK v11 (#1151)
  • Fixes bug where emulated task queue function required auth header (#1154)

v3.21.2

17 May 18:40
Compare
Choose a tag to compare
  • Fixes bug where toJSON was not defined in UserRecord (#1125).