# What changed in firebase-functions

> 17 changes in firebase-functions 7 from its official release notes, upgrade guides and advisories: 1 breaking, 6 new APIs and options. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/firebase-functions/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## firebase-functions 7

### Breaking changes

- Literal values are validated against v2 trigger-specific ranges at function-definition or manifest-extraction time, so misconfigurations fail before deploy. (7.3.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.3.0)

### New APIs and options

- The AI provider is exported from firebase-functions/v2. (7.4.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.4.0)
- Adds the lifecycle import path for lifecycle hooks. (7.3.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.3.0)
- Adds support for declaring lifecycle hooks in functions. (7.3.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.3.0)
- Adds a function for declaring Google Cloud API dependencies in code. (7.3.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.3.0)
- Adds a developer API for declarative security support and automatic Manifest extraction. (7.3.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.3.0)
- Adds the v2/lifecycle import path for lifecycle hooks. (7.3.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.3.0)

### Behavior and default changes

- The 2nd gen Firebase Authentication trigger is now generally available. (7.4.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.4.0)
- The 2nd gen Firebase Authentication trigger is now generally available. (7.4.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.4.0)

### Fixes and other changes

- Firestore snapshot creation falls back to a valid resource path. (7.4.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.4.0)
- Backwards compatibility is restored for declared parameters when SDK versions are mixed in nested dependencies. (7.4.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.4.0)
- String console.error calls and Node.js runtime warnings no longer receive synthetic Error stack traces. (7.4.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.4.0)
- The Express Response type is re-exported from firebase-functions/v2/https. (7.4.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.4.0)
- Fixes event data unpacking for auth event triggers. (7.3.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.3.0)
- Removes a false warning when an Expression is used in the cors option. (7.3.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.3.0)
- The onInit hook is now called for schedule.onRun functions. (7.3.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.3.0)
- Fixes using Params to set CORS allowed hosts. (7.3.0) — [release notes](https://github.com/firebase/firebase-functions/releases/tag/v7.3.0)
