unstale

npm / firebase-functions

firebase-functions

What changed in firebase-functions 4 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

17 breaking2 deprecations20 new APIs and options4 behavior and defaults14 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

firebase-functions 738 changes

Breaking changes 7

  • Literal values are validated against v2 trigger-specific ranges at function-definition or manifest-extraction time, so misconfigurations fail before deploy.

    7.3.0release notes

  • Removes attemptDeadlineSeconds from v2 scheduled functions.

    7.0.2release notes

  • The package now targets ES2022, which may affect runtime compatibility requirements.

    7.0.0release notes

  • The deprecated API is removed; use the params module for environment variables instead.

    7.0.0release notes

  • The v1 Event type is renamed to avoid an api-extractor conflict.

    7.0.0release notes

  • Node.js 16 is no longer supported; projects must use Node.js 18 or later.

    7.0.0release notes

  • The package upgrades to TypeScript v5, which may affect projects compiling against its types.

    7.0.0release notes

New APIs and options 17

  • The AI provider is exported from firebase-functions/v2.

    7.4.0release notes

  • Adds the lifecycle import path for lifecycle hooks.

    7.3.0release notes

  • Adds support for declaring lifecycle hooks in functions.

    7.3.0release notes

  • Adds a function for declaring Google Cloud API dependencies in code.

    7.3.0release notes

  • Adds a developer API for declarative security support and automatic Manifest extraction.

    7.3.0release notes

  • Adds the v2/lifecycle import path for lifecycle hooks.

    7.3.0release notes

  • CallableOptions now accepts BooleanParams, allowing it to be used in callable options.

    7.2.3release notes

  • Realtime database events in the v2 SDK now provide auth context.

    7.2.0release notes

  • The expr tag lets string expressions be used in string interpolation.

    7.2.0release notes

  • All V1 configuration, including pubsub topics, can now be set with params.

    7.2.0release notes

  • Secret params now support a label and/or description.

    7.2.0release notes

  • Support is added for VPC direct connect using network interfaces.

    7.2.0release notes

  • Adds the onGraphRequest method for handling graph requests.

    7.1.0release notes

  • Exports parameter types such as SecretParam and StringParam for use in type annotations.

    7.0.2release notes

  • Function secrets option arrays now allow JsonSecretParam.

    7.0.2release notes

  • ESM is supported alongside CommonJS.

    7.0.0release notes

  • A trigger for Firebase Data Connect is added.

    7.0.0release notes

Behavior and default changes 2

  • The 2nd gen Firebase Authentication trigger is now generally available.

    7.4.0release notes

  • v2 auth blocking functions can use run.app or cloudfunctions.net URLs.

    7.2.2release notes

Fixes and other changes 12

  • Firestore snapshot creation falls back to a valid resource path.

    7.4.0release notes

  • Backwards compatibility is restored for declared parameters when SDK versions are mixed in nested dependencies.

    7.4.0release notes

  • String console.error calls and Node.js runtime warnings no longer receive synthetic Error stack traces.

    7.4.0release notes

  • The Express Response type is re-exported from firebase-functions/v2/https.

    7.4.0release notes

  • Fixes event data unpacking for auth event triggers.

    7.3.0release notes

  • Removes a false warning when an Expression is used in the cors option.

    7.3.0release notes

  • The onInit hook is now called for schedule.onRun functions.

    7.3.0release notes

  • Fixes using Params to set CORS allowed hosts.

    7.3.0release notes

  • Fixes handling of literals with leading or trailing slashes in v1 Firestore paths.

    7.2.1release notes

  • Fixed a missing dependency on graphql.

    7.0.5release notes

  • Fixes the dual-package hazard for parameterized configuration in ESM projects.

    7.0.1release notes

  • Unhandled errors in async handlers now return a 500 error immediately in the Emulator.

    7.0.0release notes

firebase-functions 64 changes

Breaking changes 1

  • The package's default entrypoint changes from v1 to v2, which may affect which API developers use by default.

    6.0.0release notes

Deprecations 1

  • The functions.config() API is annotated as deprecated.

    6.0.0release notes

New APIs and options 1

  • Adds an API for storing structured JSON objects in Cloud Secret Manager.

    6.6.0release notes

Fixes and other changes 1

  • Validation against incomplete or invalid app_remove events is enhanced to avoid runtime crashes.

    6.6.0release notes

firebase-functions 52 changes

New APIs and options 1

  • Adds an option to select a named Firestore instance for v2 Firestore functions.

    5.0.0release notes

Behavior and default changes 1

  • Firestore triggers support multiple databases after removing the firebase-admin v10 dependency.

    5.0.0release notes

firebase-functions 413 changes

Breaking changes 9

  • Support for Admin SDK versions 8 and 9 was dropped.

    4.0.0release notes

  • The logging severity for Auth/App Check token validation changed from info to debug.

    4.0.0release notes

  • App Check enforcement on callable functions is disabled by default in v4.

    4.0.0release notes

  • The Realtime Database trigger now receives a DataSnapshot matching the Admin SDK's version, with null values removed.

    4.0.0release notes

  • Deploys now clear configurations not specified in source code; use preserveExternalChanges to keep existing behavior.

    4.0.0release notes

  • The functions.handler namespace was removed.

    4.0.0release notes

  • It now always outputs an error object and is included in Google Cloud Error Reporting.

    4.0.0release notes

  • Support for Node.js versions 8, 10, and 12 was dropped.

    4.0.0release notes

  • The __trigger object was removed from function handlers.

    4.0.0release notes

Deprecations 1

  • The option is deprecated; use enforceAppCheck instead.

    4.0.0release notes

New APIs and options 1

  • Use this option to keep existing deployment behavior and preserve configurations not specified in source code.

    4.0.0release notes

Behavior and default changes 1

  • Logs created with this package in v2 functions are annotated with each request's trace ID, helping correlate log entries with incoming requests.

    4.0.0release notes

Fixes and other changes 1

  • Event parameters for 2nd generation functions are now strongly typed, permitting stronger TypeScript types for matched parameters.

    4.0.0release notes