---
title: "firebase 13.4.0 Breaking Changes on npm | Since.dev"
description: "What each firebase release removed, renamed or changed: 83 breaking changes in 11 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/firebase
last_updated: 2026-12-04
---

# firebase breaking changes

firebase 13.4.0 (November 16, 2026) is its newest release with breaking changes. The first: Pages with Trusted Types restrictions must allow the SDK policy name in firebase 13.4.0. Every breaking API change we have recorded in firebase on npm: 83 breaking changes in 11 versions. Below, its 11 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `13.4.0`, released November 16, 2026. [Source repository](https://github.com/firebase/firebase-js-sdk)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [12.18.0](#v-12-18-0) to [13.4.0](#v-13-4-0): 1 breaking change in 1 version.
- From [8.0.0](#v-8-0-0) to [13.4.0](#v-13-4-0): 45 breaking changes in 10 versions.

## firebase 13.4.0 breaking changes

firebase 13.4.0, released November 16, 2026: 1 breaking change.

- **Configuration changed**  

Scripts now load through a shared Trusted Types policy named firebase-js-sdk-policy. Pages whose CSP restricts policy names must allow this name, or script loading fails. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4013.4.0)

## firebase 12.18.0 breaking changes

firebase 12.18.0, released August 19, 2026: 10 breaking changes.

- **Removed**  

Imagen methods and types were removed because Imagen models were shut down. Migrate your apps to Gemini Image models. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4012.18.0)
- **Removed** `getImagenModel`  

Imagen model shutdown on August 17, 2026 means getImagenModel no longer serves Imagen; use getGenerativeModel with a Gemini Nano Banana model instead. [firebase.google.com](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
- **Removed** `imagenModel`  

All Imagen models shut down on August 17, 2026. Use getGenerativeModel or generativeModel with a Gemini Nano Banana model and response modality IMAGE instead of the Imagen model classes. [firebase.google.com](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
- **Signature changed** `compat/app:default.auth.Auth.onAuthStateChanged`  

Was onAuthStateChanged(nextOrObserver: | firebase.Observer\<any> | ((a: firebase.User | null) => any), error?: (a: firebase.auth.Error) => any, completed?: firebase.Unsubscribe): firebase.Unsubscribe; now onAuthStateChanged(nextOrObserver... [npmjs.com](https://www.npmjs.com/package/firebase/v/12.18.0)
- **Signature changed** `compat/app:default.auth.Auth.onIdTokenChanged`  

Was onIdTokenChanged(nextOrObserver: | firebase.Observer\<any> | ((a: firebase.User | null) => any), error?: (a: firebase.auth.Error) => any, completed?: firebase.Unsubscribe): firebase.Unsubscribe; now onIdTokenChanged(nextOrObserver... [npmjs.com](https://www.npmjs.com/package/firebase/v/12.18.0)
- **Signature changed** `compat/app:default.database.EventType`  

Was type EventType = | 'value' | 'child_added' | 'child_changed' | 'child_moved' | 'child_removed'; now type EventType = 'value' | 'child_added' | 'child_changed' | 'child_moved' | 'child_removed'. [npmjs.com](https://www.npmjs.com/package/firebase/v/12.18.0)
- **Signature changed** `compat/app:default.EmulatorMockTokenOptions`  

Was type EmulatorMockTokenOptions = (| {user_id: string} | {sub: string}) & Partial\<FirebaseIdToken>; now type EmulatorMockTokenOptions = ({user_id: string} | {sub: string}) & Partial\<FirebaseIdToken>. [npmjs.com](https://www.npmjs.com/package/firebase/v/12.18.0)
- **Signature changed** `compat/app:default.messaging.Messaging.onBackgroundMessage`  

Was onBackgroundMessage(nextOrObserver: | firebase.NextFn\<MessagePayload> | firebase.Observer\<MessagePayload>): firebase.Unsubscribe; now onBackgroundMessage(nextOrObserver: firebase.NextFn\<MessagePayload> |... [npmjs.com](https://www.npmjs.com/package/firebase/v/12.18.0)
- **Signature changed** `compat/app:default.storage.UploadTask.then`  

Was then(onFulfilled?: | ((snapshot: firebase.storage.UploadTaskSnapshot) => any) | null, onRejected?: ((error: FirebaseStorageError) => any) | null): Promise\<any>; now then(onFulfilled?: ((snapshot: firebase.storage.UploadTaskSnapshot) =>... [npmjs.com](https://www.npmjs.com/package/firebase/v/12.18.0)
- **Signature changed** `getGenerativeModel`  

To generate images with Nano Banana models, pass responseModalities of IMAGE and an imageConfig in generationConfig; Imagen options such as numberOfImages, negativePrompt, addWatermark, imageFormat and personGeneration are not supported. [firebase.google.com](https://firebase.google.com/docs/ai-logic/imagen-models-migration)

## firebase 12.12.0 breaking changes

firebase 12.12.0, released April 9, 2026: 2 breaking changes.

- **Removed** `ImagenModel`  

All Imagen models are shut down, so ImagenModel image generation stops working. Create a GenerativeModel with a Gemini Nano Banana model and request IMAGE output instead. [firebase.google.com](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
- **Behavior changed** `Type`  

The Type string union is changed to a raw string, which is a beta API breaking change for existing code. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4012.12.0)

## firebase 12.11.0 breaking changes

firebase 12.11.0, released March 19, 2026: 1 breaking change.

- **Removed** `updateEmulatorBanner`  

updateEmulatorBanner() was removed in this release. Code that calls it must stop calling it. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4012.11.0)

## firebase 12.0.0 breaking changes

firebase 12.0.0, released July 17, 2025: 5 breaking changes.

- **Removed** `GroundingAttribution`  

GroundingAttribution was removed, so code that imports or uses it will break. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4012.0.0)
- **Removed** `vertexai`  

The vertexai import path was removed, so imports from it will fail. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4012.0.0)
- **Removed** `VertexAI`  

The VertexAI APIs were removed in this release, so code that calls them will break. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4012.0.0)
- **Configuration changed**  

The package's node engines minimum is now Node 20, so projects on older Node versions must upgrade. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4012.0.0)
- **Signature changed**  

Enum exports in Firebase AI are now const variables, which can change how existing enum types and imports are used. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4012.0.0)

## firebase 11.5.0 breaking changes

firebase 11.5.0, released March 20, 2025: 2 breaking changes.

- **Signature changed** `compat/app:default.database.ThenableReference.key`  

Was key: string | null; now key: string. [npmjs.com](https://www.npmjs.com/package/firebase/v/11.5.0)
- **Signature changed** `compat/app:default.database.ThenableReference.parent`  

Was parent: firebase.database.Reference | null; now parent: Reference. [npmjs.com](https://www.npmjs.com/package/firebase/v/11.5.0)

## Older versions

5 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### firebase 11.2.0 breaking changes

firebase 11.2.0, released January 16, 2025: 1 breaking change.

- **Signature changed**  

Some typings were changed from PromiseLike to Promise, so code that depends on the old type, such as custom thenable values, may need to be updated. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4011.2.0)

### firebase 11.0.0 breaking changes

firebase 11.0.0, released October 21, 2024: 1 breaking change.

- **Removed**  

ES5 bundles are no longer shipped, so code running in ES5-only environments must use a transpiler or a newer runtime. [github.com](https://github.com/firebase/firebase-js-sdk/releases/tag/firebase%4011.0.0)

### firebase 10.0.0 breaking changes

firebase 10.0.0, released July 7, 2023: 5 breaking changes.

- **Removed** `firebase.auth.react-native`  

The firebase/auth/react-native entry point was removed; React Native build tools pick up the react-native fields in package.json instead, so imports of this path must be dropped. [github.com](https://github.com/firebase/firebase-js-sdk/blob/firebase@10.0.0/packages/firebase/CHANGELOG.md)
- **Behavior changed** `getAuth`  

In the React Native bundle, getAuth now imports AsyncStorage from @react-native-async-storage/async-storage instead of the react-native core package, so that package must be installed. [github.com](https://github.com/firebase/firebase-js-sdk/blob/firebase@10.0.0/packages/firebase/CHANGELOG.md)

And 3 more in this version.

### firebase 9.0.0 breaking changes

firebase 9.0.0, released August 25, 2021: 17 breaking changes.

- **Removed** `default.messaging.Messaging.onTokenRefresh`  

messaging().onTokenRefresh() was removed in firebase 9.0.0 [npmjs.com](https://www.npmjs.com/package/firebase/v/9.0.0)
- **Removed** `default.messaging.Messaging.requestPermission`  

Use https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission instead. [npmjs.com](https://www.npmjs.com/package/firebase/v/9.0.0)

And 15 more in this version.

### firebase 8.0.0 breaking changes

firebase 8.0.0, released October 26, 2020: 38 breaking changes.

- **Removed** `apps`  

apps was removed in firebase 8.0.0 [npmjs.com](https://www.npmjs.com/package/firebase/v/8.0.0)
- **Removed** `database.ThenableReference.[Symbol.toStringTag]`  

database.ThenableReference.\[Symbol.toStringTag\] was removed in firebase 8.0.0 [npmjs.com](https://www.npmjs.com/package/firebase/v/8.0.0)

And 36 more in this version.

## Related packages

- [@firebase/crashlytics](https://since.dev/packages/npm/@firebase/crashlytics.md)
- [firebase-functions](https://since.dev/packages/npm/firebase-functions.md)
- [firebase-tools](https://since.dev/packages/npm/firebase-tools.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
