npm / firebase-functions
firebase-functions
What changed in firebase-functions 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
1 breaking6 new APIs and options2 behavior and defaults8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initfirebase-functions 717 changes
Breaking changes 1
Literal values are validated against v2 trigger-specific ranges at function-definition or manifest-extraction time, so misconfigurations fail before deploy.
New APIs and options 6
The AI provider is exported from firebase-functions/v2.
Adds the lifecycle import path for lifecycle hooks.
Adds support for declaring lifecycle hooks in functions.
Adds a function for declaring Google Cloud API dependencies in code.
Adds a developer API for declarative security support and automatic Manifest extraction.
Adds the v2/lifecycle import path for lifecycle hooks.
Behavior and default changes 2
The 2nd gen Firebase Authentication trigger is now generally available.
The 2nd gen Firebase Authentication trigger is now generally available.
Fixes and other changes 8
Firestore snapshot creation falls back to a valid resource path.
Backwards compatibility is restored for declared parameters when SDK versions are mixed in nested dependencies.
String console.error calls and Node.js runtime warnings no longer receive synthetic Error stack traces.
The Express Response type is re-exported from firebase-functions/v2/https.
Fixes event data unpacking for auth event triggers.
Removes a false warning when an Expression is used in the cors option.
The onInit hook is now called for schedule.onRun functions.
Fixes using Params to set CORS allowed hosts.