unstale

npm / firebase

firebase

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

21 breaking4 security6 deprecations46 new APIs and options3 performance19 behavior and defaults38 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

firebase 1326 changes

Breaking changes 7

  • The previously deprecated backend type was removed; use BackendType.AGENT_PLATFORM instead.

    13.0.0release notes

  • ChatSession is now exported as an interface instead of a class.

    13.0.0release notes

  • Part is now a discriminated union with explicit type properties; type discriminators are stripped on wire egress.

    13.0.0release notes

  • templateVariables is now required in StartTemplateChatParams.

    13.0.0release notes

  • Now accepts a unified TemplateRequest object as its first parameter.

    13.0.0release notes

  • templateVariables is now required in TemplateRequest.

    13.0.0release notes

  • The previously deprecated VertexAIBackend API was removed; use AgentPlatformBackend instead.

    13.0.0release notes

Deprecations 1

  • Deprecated in GenerationConfig and LiveGenerationConfig because the parameter is unsupported in Gemini 3.x and later models.

    13.0.0release notes

New APIs and options 6

  • Crashlytics is released for public preview.

    13.2.0release notes

  • Added as a DML stage to Pipelines.

    13.1.0release notes

  • Added as a source stage to Pipelines.

    13.1.0release notes

  • Added the atomic option for executing a pipeline in a single transaction.

    13.1.0release notes

  • Firestore now supports BSON types.

    13.0.0release notes

  • Added UnknownPart for raw wire and user-provided inputs.

    13.0.0release notes

Behavior and default changes 4

  • Pipeline Search graduates from Public Preview to GA.

    13.2.0release notes

  • Its default model-access location is global; specify us-central1 explicitly when needed.

    13.0.0release notes

  • The default hybrid-in-cloud model is now gemini-3.5-flash-lite.

    13.0.0release notes

  • UpdateData<T> now allows indexed types or Record<X, T> for T.

    13.0.0release notes

Fixes and other changes 8

  • Fixes an unhandled promise rejection if the page navigates away or is backgrounded while the initial cache is loading.

    13.2.0release notes

  • Fixes an uncatchable unhandled promise rejection when background reCAPTCHA Enterprise token verification fails during initialization or phone sign-in.

    13.2.0release notes

  • The buffer increases from 30 seconds to 5 minutes to match User.getIdToken() documentation and the proactive refresh offset.

    13.2.0release notes

  • Fixes an unhandled exception when a popup or redirect operation is cancelled by a second call before the first operation finishes initializing.

    13.2.0release notes

  • The persisted user is cleared only when the initial user reload fails with a user invalidation error, preserving sessions across transient server errors such as HTTP 5xx UNAVAILABLE.

    13.1.0release notes

  • Suppresses false-positive CONFIG_UPDATE_STREAM_ERROR events when the application enters the background and reconnects if it returns to the foreground before closing finishes.

    13.0.0release notes

  • Auth initialization now preserves the persisted user when the initial reload fails due to transient quota or rate-limit errors.

    13.0.0release notes

  • The Temporal namespace declaration is now included in global_index.d.ts.

    13.0.0release notes

firebase 12104 changes

Breaking changes 11

  • Imagen methods and types have been removed because Imagen models were shut down; migrate apps to Gemini Image models as a replacement.

    12.18.0release notes

  • Calling initializeAppCheck without a provider is no longer supported.

    12.17.0release notes

  • All timegranularity values are changed to lowercase.

    12.12.0release notes

  • The beta API changes Type from a string union to a raw string.

    12.12.0release notes

  • The minimum supported Node.js version is now 20 for the affected Firebase packages.

    12.0.0release notes

  • Firebase AI TypeScript enum exports are now const variables, which may require changes to code relying on enum exports.

    12.0.0release notes

  • The fix for document snapshots becoming undefined after clearing browser site data was reverted because it caused issues for some customers.

    12.0.0release notes

  • GroundingAttribution has been removed.

    12.0.0release notes

  • The minimum Node.js version is now Node 20.

    12.0.0release notes

  • The vertexai import path has been removed.

    12.0.0release notes

  • VertexAI APIs have been removed.

    12.0.0release notes

Security 4

  • Fixed recognition of App Check tokens sent in Firebase SQL Connect Realtime requests.

    12.18.0release notes

  • Fixes a ReDoS vulnerability in FirebaseError template replacement.

    12.17.0release notes

  • Auth API requests use strict-origin-when-cross-origin instead of no-referrer, supporting HTTP Referrer-restricted API keys in browser environments.

    12.15.0release notes

  • Hardened streaming transport with intelligent reconnection, query de-duplication, and resume optimizations.

    12.13.0release notes

Deprecations 5

  • VertexAIBackend is deprecated in favor of AgentPlatformBackend; the replacement defaults to the global model location instead of us-central1.

    12.17.0release notes

  • GoogleMaps.enableWidget is deprecated following the announcement by the Grounding for Google Maps service.

    12.15.0release notes

  • All Imagen models are deprecated and will shut down as early as June 2026; migrate apps to Gemini Image models.

    12.12.0release notes

  • The temperature property is deprecated for hybrid inference mode.

    12.12.0release notes

  • The topK property is deprecated for hybrid inference mode.

    12.12.0release notes

New APIs and options 38

  • Firestore now supports conversion and serialization between Temporal.Instant and Firestore Timestamp.

    12.19.0release notes

  • Adds the grpcFlowControlWindow setting and increases the HTTP/2 flow control window from 64 KB to 256 KB in Node environments.

    12.17.0release notes

  • Adds text-to-speech support for non-Live API models, with single- and multi-speaker configurations.

    12.17.0release notes

  • A new API for creating and deleting FCM registrations is available, and the old API is deprecated.

    12.14.0release notes

  • Adds a method for explicitly initializing the on-device model in hybrid mode.

    12.14.0release notes

  • Adds minimum and maximum FieldValue operations.

    12.14.0release notes

  • Added the contextWindowCompression feature.

    12.13.0release notes

  • Expanded FinishReason values to include all currently available values provided by the models.

    12.13.0release notes

  • Added support for Grounding with Google Maps in AI Logic.

    12.13.0release notes

  • Added support for ImageConfig, including aspect ratio and size.

    12.13.0release notes

  • Added a method to resume a previous LiveSession.

    12.13.0release notes

  • Added support for languageCode, offset, limit, and retrievalDepth in the search stage.

    12.13.0release notes

  • Adds support for the coalesce pipeline expression.

    12.12.0release notes

  • Adds streaming support for Firebase Data Connect.

    12.12.0release notes

  • Adds support for the ifNull pipeline expression.

    12.12.0release notes

  • Adds support for the nor logical expression.

    12.12.0release notes

  • Adds support for the parent expression in Firestore Pipelines.

    12.12.0release notes

  • Adds startChat() for TemplateGenerativeModel.

    12.12.0release notes

  • Adds subquery support to Pipelines.

    12.12.0release notes

  • Adds support for the switchOn logical expression.

    12.12.0release notes

  • Adds support for the timestamp_diff expression.

    12.12.0release notes

  • Adds support for the timestamp_extract expression.

    12.12.0release notes

  • Adds support for the timestamp_trunc expression.

    12.12.0release notes

  • Firestore adds support for the arrayFirst array expression.

    12.11.0release notes

  • Firestore adds support for the arrayFirstN array expression.

    12.11.0release notes

  • Firestore adds support for the arrayIndexOf array expression.

    12.11.0release notes

  • Firestore adds support for the arrayIndexOfAll array expression.

    12.11.0release notes

  • Firestore adds support for the arrayLast array expression.

    12.11.0release notes

  • Firestore adds support for the arrayLastIndexOf array expression.

    12.11.0release notes

  • Firestore adds support for the arrayLastN array expression.

    12.11.0release notes

  • Firestore adds support for the arrayMaximum array expression.

    12.11.0release notes

  • Firestore adds support for the arrayMaximumN array expression.

    12.11.0release notes

  • Firestore adds support for the arrayMinimum array expression.

    12.11.0release notes

  • Firestore adds support for the arrayMinimumN array expression.

    12.11.0release notes

  • Added responseJsonSchema to GenerationConfig.

    12.11.0release notes

  • Firebase AI schemas now support anyOf.

    12.0.0release notes

  • Firebase AI now supports Grounding with Google Search.

    12.0.0release notes

  • Firebase AI now supports Thinking Budget.

    12.0.0release notes

Performance 3

  • Updated the WebSocket URL path for SQL Connect server affinity to improve server resource usage efficiency and performance.

    12.18.0release notes

  • Removes the one-minute delay before closing idle backend connections to save resources.

    12.14.0release notes

  • Performance of UTF-8 string ordering logic was further improved.

    12.0.0release notes

Behavior and default changes 13

  • The debug token log message now includes Firebase CLI commands, a Firebase Console registration link, and a debug token guide.

    12.18.0release notes

  • FunctionsError now includes the HTTP status code in its message and the URL in customData, providing more details about the error.

    12.18.0release notes

  • Requests include platform name and SDK version headers to enable metrics collection in cloud monitoring.

    12.17.1release notes

  • Calling initializeAppCheck without a provider now attempts initialization with ReCaptchaEnterpriseProvider using the recaptchaSiteKey in the Firebase project config.

    12.15.0release notes

  • Hybrid inference features are marked public rather than beta, indicating general availability.

    12.14.0release notes

  • Code execution is generally available and no longer in public preview.

    12.12.1release notes

  • URL context is generally available and no longer in public preview.

    12.12.1release notes

  • Adds public preview support for full-text search in Pipelines.

    12.12.0release notes

  • Adds public preview support for geo search in Pipelines.

    12.12.0release notes

  • The peer dependency range supports both v2 and v3.

    12.12.0release notes

  • Server prompt templates support automatic function calling and chat history.

    12.12.0release notes

  • Pipeline user data validation is deferred from initialization to execute().

    12.11.0release notes

  • initializeServerApp now supports auto-initialization for Firebase App Hosting.

    12.0.0release notes

Fixes and other changes 30

  • Firestore fetch connection error messages are no longer undefined.

    12.19.0release notes

  • Storage and persistence errors during current user updates are wrapped as FirebaseError with code auth/internal-error; the original exception is attached under error.customData.originalError.

    12.19.0release notes

  • The SDK no longer hardcodes an invalid function role, preventing 400 errors during function calling on gemini-3.6-flash.

    12.19.0release notes

  • Persistence can reconnect on demand after pagehide events, fixing Database is closing errors during signInWithPopup on iPadOS and iOS Safari.

    12.19.0release notes

  • When persistence initialization fails or storage is inaccessible, the SDK falls back to in-memory persistence, preventing initialization deadlocks and ensuring authStateReady() resolves.

    12.19.0release notes

  • Structured outputs now accept text/x.enum alongside application/json when responseSchema or responseJsonSchema is provided.

    12.19.0release notes

  • Corrected the log to name the referenced document rather than the document that contains the reference.

    12.18.0release notes

  • Removed the visibilitychange listener to fix signInWithPopup and other background-tab operations failing with “Database is closing/hidden.”

    12.18.0release notes

  • Fixed LanguageModel detection that prevented on-device models from being used in Chrome Extensions.

    12.18.0release notes

  • Fixes a regression that caused peer dependencies to be unbundled in the standalone bundle.

    12.17.1release notes

  • Its exponential backoff parameters are aligned with those of other platform SDKs.

    12.17.1release notes

  • Prevents null hydration and unexpected sign-out on pagehide or reload when using IndexedDB persistence.

    12.17.0release notes

  • ABT realtime is supported when a variant value matches the default value of a parameter.

    12.15.0release notes

  • Fixes an error when Auth and AppCheck both use ReCAPTCHA Enterprise.

    12.15.0release notes

  • The ChatSession constructor now wraps params.systemInstruction with formatSystemInstruction().

    12.15.0release notes

  • Fixes duplicate user turns being sent in the request.

    12.14.0release notes

  • Flush scheduling and queued-event processing are adjusted so export starts promptly, staged logs can start the service, and disabling export clears queued events and timers.

    12.14.0release notes

  • Fixes limited-use token retrieval by sending the limited_use parameter.

    12.14.0release notes

  • Retries the initial IndexedDB availability check to prevent incorrect fallbacks to in-memory persistence when startup transactions occasionally drop.

    12.14.0release notes

  • Query listen stream creation and re-creation are more robust and provide improved logging.

    12.14.0release notes

  • Updates the experiment when the last running experiment is stopped.

    12.14.0release notes

  • Fixed an assertion failure caused by a target creation race condition.

    12.13.0release notes

  • Fixed the TemplateChatSession type so it no longer errors during a TypeScript build.

    12.12.1release notes

  • Fixes header names for auth and app check tokens over streaming.

    12.12.0release notes

  • Fixes a bug that caused the model to error when responseJsonSchema was specified.

    12.12.0release notes

  • Fixes a bug that caused the model to error when responseSchema was specified.

    12.12.0release notes

  • Fixed “X is not a function” issues observed in server side rendering APIs.

    12.11.0release notes

  • Fixed a regression that prevented the SDK from reconnecting to IndexedDb after disconnect.

    12.0.0release notes

  • Typings for functionDeclaration.parameters have been fixed.

    12.0.0release notes

  • Fixes events not being sent when they exceed the sendBeacon payload limit.

    12.0.0release notes

firebase 117 changes

Breaking changes 3

  • ES5 bundles were removed, making ES2017 the minimum required ES version.

    11.0.0release notes

  • Calling executeQuery with mutations now throws an error.

    11.0.0release notes

  • The node bundle was removed after node-specific fetch code was removed in favor of native fetch throughout the SDK.

    11.0.0release notes

New APIs and options 2

  • The FunctionsError class is now publicly exported.

    11.0.0release notes

  • reCAPTCHA Enterprise can now be used for app verification during phone authentication.

    11.0.0release notes

Behavior and default changes 2

  • VertexAI in Firebase is generally available.

    11.0.0release notes

  • Node bundles no longer depend on undici and node-fetch; they use the native fetch implementation instead.

    11.0.0release notes