Firebase JavaScript SDK Release Notes

To review release notes for the Firebase console and for other Firebase platforms and related SDKs, refer to the Firebase Release Notes.

Release notes for 2016-2023 are in the release notes archive.

Version 13.4.0 - November 16, 2026

  • External scripts are now loaded through a single shared Trusted Types policy named firebase-js-sdk-policy, so that Authentication (gapi and reCAPTCHA scripts), Analytics (gtag), and App Check (reCAPTCHA scripts) work on pages that enforce Trusted Types with require-trusted-types-for 'script'. If the page's CSP restricts policy names with the trusted-types directive, it must allow firebase-js-sdk-policy; if it doesn't, an error explaining this is logged when a script fails to load.

Crashlytics

  • Upgraded OpenTelemetry dependencies to 3.x, removing deprecated @opentelemetry/api-logs, @opentelemetry/sdk-trace-base, and @opentelemetry/sdk-trace-web dependencies, and updated public attribute types (CrashlyticsOptions.customAttributes, log(), and recordError()) to use Attributes from @opentelemetry/api. 3.x dependencies include @opentelemetry/api 1.10.0, SDKs 3.1.1, exporters and instrumentations 0.301.2, @opentelemetry/browser-instrumentation 0.11.0, @opentelemetry/instrumentation-document-load 0.70.0, and @opentelemetry/semantic-conventions 1.45.0 (GitHub #10606)

Version 13.3.0 - November 11, 2026

  • Fixed the compat CDN bundles firebase-compat.js and firebase-firestore-compat.js, which contained ES2022 syntax (static class fields) and failed to load in browsers that support only ES2020.

  • TypeScript versions older than 4.5, which can't parse the Firebase type declarations, now report that Firebase requires TypeScript 4.5 or later. TypeScript leaves out this error if other type declarations, such as a recent @types/node, also fail to parse. (GitHub #8837)

AI Logic

  • Added SpeechMetadata and TextPart.speechMetadata (in Public Preview) to specify the speaker and vocal style for a piece of text when generating speech with Gemini TTS models.

  • Fixed an issue where calling getAI() for an app and backend that already had an AI instance silently replaced that instance's options, so an instance created with useLimitedUseAppCheckTokens: true would start sending standard App Check tokens after a later getAI() call. getAI() now returns the existing instance unchanged when useLimitedUseAppCheckTokens is omitted or matches, and throws an AIError with code already-initialized when a different value is requested.

  • Fixed an issue where response.promptFeedback was always undefined for GoogleAIBackend responses because the mapped prompt feedback was assigned to the wrong property.

Authentication

  • Prevented a suspended background tab holding an IndexedDB readonly poll transaction from blocking Authentication startup (onAuthStateChanged or authStateReady()) or clearing currentUser in other tabs. (GitHub #10540)

Crashlytics

  • Fixed the Crashlytics CDN bundle (firebase-crashlytics.js), which imported Node.js built-in modules such as fs and zlib and failed to load in browsers.

  • Removed debug console.log overrides on OTLPLogExporter.forceFlush() and OTLPLogExporter.shutdown() so that flushing and shutting down the logger provider delegates to OTLPExporterBase without logging to the console.

Realtime Database

  • Fixed transactions becoming permanently stuck after overlapping writes cancel the same in-flight transaction more than once.

Cloud Firestore

  • Added support for window functions in Pipelines. Window functions are in preview until the backend launch is announced in the Firestore release notes.

  • Fixed an issue where documentSnapshotFromJSON() and querySnapshotFromJSON() threw an error when the snapshot data or document path contained multi-byte UTF-8 characters (such as em-dashes, emoji, or accented characters). (GitHub #10557)

Remote Config

  • Deprecated RemoteConfigOptions.templateId and RemoteConfigOptions.initialFetchResponse. Remote Config server-side rendering (SSR) hydration is no longer supported, and server templates ("firebase-server") can't be fetched from client apps. These options will be removed in a future major release.

Version 13.2.0 - October 30, 2026

Crashlytics

  • First release of the Crashlytics SDK for public preview.

Authentication

  • Updated the on-demand ID token expiration buffer (Buffer.TOKEN_REFRESH) from 30 seconds to 5 minutes to match User.getIdToken() documentation and the proactive refresh offset. (GitHub #10530)

  • Fixed an unhandled exception when a popup or redirect operation (for example, signInWithPopup) is cancelled by a second call before the first operation finishes initializing.

  • Fixed an unhandled promise rejection during initial IndexedDB cache population if the page navigates away or is backgrounded while loading.

  • Fixed an uncatchable unhandled promise rejection when background reCAPTCHA Enterprise token verification fails during initializeRecaptchaConfig or signInWithPhoneNumber.

Cloud Firestore

  • Graduated Pipeline Search from Public Preview to GA.

Version 13.1.0 - October 21, 2026

Authentication

  • Fixed an issue that caused transient server errors (e.g., HTTP 5xx UNAVAILABLE) by clearing the persisted user session during Auth initialization only when the initial user reload fails with a user invalidation error (auth/user-token-expired or auth/user-disabled). (GitHub 10438)

Cloud Firestore

  • Added DML stages (delete, update, insert, upsert) and the literals source stage to Pipelines, and added the atomic option to PipelineExecuteOptions for executing a pipeline in a single transaction.

Version 13.0.0 - October 7, 2026

AI Logic

  • Breaking change: Refactored TemplateGenerativeModel.generateContent and TemplateGenerativeModel.generateContentStream to accept a unified TemplateRequest object ({ templateId, templateVariables, toolConfig? }) as the first parameter, and made templateVariables required in both TemplateRequest and StartTemplateChatParams.

  • Breaking change: Removed the previously deprecated VertexAIBackend (and BackendType.VERTEX_AI). Use AgentPlatformBackend (and BackendType.AGENT_PLATFORM) instead.

    The only difference for AgentPlatformBackend is the default location for accessing the model. The default location for AgentPlatformBackend is global, whereas the default location for VertexAIBackend was us-central1. To use us-central1 with AgentPlatformBackend, specify getAI(app, { backend: new AgentPlatformBackend('us-central1') }) when initializing the SDK. However, note that most new Gemini models do not support us-central1.

  • Breaking change: Updated the default hybrid in-cloud model to gemini-3.5-flash-lite.

  • Breaking change: Removed previously deprecated APIs, including AI.location (use AI.backend.location), LiveSession.sendMediaChunks() and LiveSession.sendMediaStream() (use sendTextRealtime(), sendAudioRealtime(), and sendVideoRealtime()), LanguageModelCreateCoreOptions.topK and LanguageModelCreateCoreOptions.temperature, GoogleMaps.enableWidget, GroundingMetadata.retrievalQueries (use groundingSupports), and CountTokensResponse.totalBillableCharacters (use totalTokens).

  • Breaking change: Refactored Part into a discriminated union with explicit type properties, introduced UnknownPart for raw wire and user-provided inputs, stripped type discriminators on wire egress, and ensured defensive deep copying for chat history.

  • Breaking change: Exported a ChatSession interface instead of the ChatSession class.

  • Deprecated candidateCount, temperature, topP, topK, presencePenalty, and frequencyPenalty in both GenerationConfig and LiveGenerationConfig. These parameters are unsupported in Gemini 3.x and later models.

Cloud Firestore

  • Added support for BSON types.

  • Updated UpdateData<T> to allow indexed types or Record<X, T> for T. (GitHub #7813 and #10283)

  • Added the Temporal namespace declaration to global_index.d.ts.

Remote Config

  • Suppressed false-positive CONFIG_UPDATE_STREAM_ERROR events emitted by onConfigUpdated when the application enters the background, stopped recording a connection backoff penalty for these expected closes, and ensured reconnection if the application returns to the foreground before the connection finishes closing. (GitHub #9426)

Version 12.19.0 - September 9, 2026

AI Logic

  • Fixed an issue where the SDK hardcoded an invalid function role, causing 400 errors during function calling on newer Gemini models like gemini-3.6-flash.

  • Fixed client-side validation logic that incorrectly blocked text/x.enum when responseSchema or responseJsonSchema was provided. The SDK now correctly accepts both application/json and text/x.enum for structured outputs.

Authentication

  • Allowed IndexedDB persistence reconnection on demand after pagehide events, fixing "Database is closing" errors during signInWithPopup authentication on iPadOS and iOS Safari. (GitHub #10318)

  • Added a graceful fallback to in-memory persistence when persistence initialization fails or storage is inaccessible, preventing initialization deadlocks and ensuring authStateReady() resolves. (GitHub #10311)

  • Wrapped storage and persistence errors in FirebaseError (auth/internal-error) during current user updates, ensuring error.code is always defined and attaching the underlying exception under error.customData.originalError.

Cloud Firestore

  • Added support for conversion and serialization between Temporal.Instant and Firestore's Timestamp.

  • Fixed an issue where fetch connection error messages were displayed as undefined.

Version 12.18.0 - August 19, 2026

  • Updated a number of top-level devDependencies, including some that may affect the build bundle.

AI Logic

Cloud Functions for Firebase Client SDK

  • Added more details to FunctionsError. Added HTTP status code to the message field and add url to customData.

App Check

  • Updated debug token log message to include Firebase CLI commands, Firebase Console registration link, and debug token guide.

Authentication

  • Fixed an issue where signInWithPopup and other background tab operations failed with the error "Database is closing/hidden". (GitHub #10264)

SQL Connect

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

  • Fixed an issue preventing App Check tokens from being properly recognized when sent in Firebase SQL Connect Realtime requests.

Cloud Firestore

  • Fixed an issue where the cross-database document reference log named the referenced document rather than the document that contains the reference.

Version 12.17.1 - August 4, 2026

Realtime Database

  • Fixed a bug that caused an error for users of the Firebase Admin Node.js SDK during npm install, as the Firebase Admin Node.js SDK has a dependency on the @firebase/database-compat package.

SQL Connect

  • Added the X-Client-Version request header to enable metrics collection in Cloud Monitoring.

Version 12.17.0 - July 30, 2026

  • Added a more detailed error when initializeApp() is called a second time with different options or config. The new error prints the new and previous configs to make it easier to identify the difference.

  • Added @firebase/app as a peerDependency of compat packages. This may address some errors and warnings from modern package managers such as pnpm and Yarn PnP.

AI Logic

  • Added support for text-to-speech capabilities (both single- and multi-speaker configurations) for non-Live API models (for example, Gemini TTS models).

  • Deprecated VertexAIBackend in favor of AgentPlatformBackend to reflect the renaming of Vertex AI to Gemini Enterprise Agent Platform.

    The only difference for AgentPlatformBackend is the default location for accessing the model. The default location for AgentPlatformBackend is global, whereas the default location for VertexAIBackend is us-central1. To use us-central1 with AgentPlatformBackend, specify getAI(app, { backend: new AgentPlatformBackend('us-central1') }) when initializing the SDK. However, note that most new Gemini models do not support us-central1.

App Check

  • Removed ability to call initializeAppCheck() without a provider.

Cloud Firestore

  • Changed the HTTP/2 flow control window size from 64 KB to 256 KB, and added a grpcFlowControlWindow configuration option to FirestoreSettings. This change is only applicable to Node.js environments.

  • Fixed a ReDoS vulnerability in FirebaseError template replacement.

Version 12.16.0 - July 9, 2026

Remote Config

  • Added FirebaseRolloutMetadata to support realtime updates for rollouts.

Version 12.15.0 - June 16, 2026

AI Logic

  • Fixed a bug where systemInstruction text strings passed to startChat() caused an error when making a request. (GitHub #9006)

  • Deprecated GoogleMaps.enableWidget, following the announcement by the Grounding for Google Maps service.

App Check

  • Added ability to call initializeAppCheck() without a provider. If no provider is passed to initializeAppCheck(), App Check will attempt to initialize with a ReCaptchaEnterpriseProvider using the site key found in the recaptchaSiteKey field of the Firebase project config passed to initializeApp().

  • Fixed a bug that caused a conflict between Authentication and App Check when both were using reCAPTCHA Enterprise. (GitHub #9405)

Authentication

  • Fixed a bug that caused a conflict between Authentication and App Check when both were using reCAPTCHA Enterprise. (GitHub #9405)

  • Updated referrer policy for Authentication API requests from no-referrer to strict-origin-when-cross-origin to support API keys restricted by HTTP Referrer.

Remote Config

  • Fixed a bug where a parameter key would not be detected as updated when an experiment was added whose variant value matches the default value. This caused some experiments to not start. (GitHub #10000)

Version 12.14.0 - May 28, 2026

AI Logic

  • The hybrid inference feature using the Chrome Prompt API is now generally available.

  • Added initializeDeviceModel() method, which must be called explicitly to initialize the on-device model before making any on-device inference calls.

  • Fixed a bug that caused ChatSession.sendMessageStream() and TemplateChatSession.sendMessageStream() to send duplicate user turns in the request.

Cloud Firestore

  • Added minimum and maximum FieldValue operations.

  • Improved robustness and logging in query listen stream creation and re-creation. (GitHub #9985)

Cloud Messaging

  • Added new API for creating and deleting Cloud Messaging registration.

App Check

  • Fixed a bug where getLimitedUseToken() did not correctly get a limited use token because it did not send the limited_use param. This bug did not affect usage with custom backends but may have affected apps using limited use tokens in AI Logic.

Authentication

  • Fixed a bug that caused timeouts in browser extension environments. (GitHub #9732)

SQL Connect

  • Eliminated the 1-minute delay before closing idle backend connections to save resources.

Remote Config

  • Fix a bug where the client did not detect when an experiment had stopped. (GitHub #9981)

Version 12.13.0 - May 7, 2026

AI Logic

  • Added support for Grounding with Google Maps.
  • Added LiveSession.resumeSession() to allow resuming a previous LiveSession.
  • Added contextWindowCompression configuration to LiveGenerationConfig.
  • Added support for ImageConfig (aspect ratio and size).
  • Expanded FinishReason response values to align them with the values the currently supported models may return.

SQL Connect

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

Cloud Firestore

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

  • Fixed a race condition that caused "ca9: pendingResponses less than 0" assertions.

Version 12.12.1 - April 20, 2026

AI Logic

  • Fixed the TemplateChatSession type so it does not error on TypeScript build. (GitHub #9832)

  • Update code execution and URL context features to reflect that they are generally available and no longer public preview.

Version 12.12.0 - April 9, 2026

  • Fixed a typo in the package.json config in @firebase/app-types that caused errors in package managers. (GitHub #9787)

AI Logic

  • Added startChat() and automatic function calling capability to TemplateGenerativeModel.

  • All Imagen models are deprecated and will shut down as early as June 2026. As a replacement, you can migrate your apps to use Gemini Image models (the "Nano Banana" models).

  • Deprecated the topK and temperature properties for on-device usage in hybrid inference mode.

  • Fixed a bug that caused the model to error if the user specifies responseSchema or responseJsonSchema.

Authentication

  • Updated the peer dependency range for @react-native-async-storage/async-storage to support both v2 and v3.

SQL Connect

  • Added streaming support for SQL Connect.

Cloud Firestore

  • Added support for the following expressions: parent, timestamp_trunc, timestamp_diff, timestamp_extract, nor, switchOn, ifNull, and coalesce.

  • Added public preview support for full-text and geo search in Pipelines.

  • Added subquery support to Pipelines.

  • Beta API Breaking Change: Change the isType parameter Type from a type union to a raw string. (Applies to the Pipelines API only.)

  • Refactored the parameters for timestamp expressions and changed all TimeGranularity string values to lowercase. (Applies to the Pipelines API only.)

  • Fixed a bug affecting union queries in Pipelines. (GitHub #9764)

Version 12.11.0 - March 19, 2026

AI Logic

  • Added responseJsonSchema to GenerationConfig.

Cloud Firestore

  • Added support for array expressions arrayFirst, arrayFirstN, arrayLast, arrayLastN, arrayMinimum, arrayMinimumN, arrayMaximum, arrayMaximumN, arrayIndexOf, arrayLastIndexOf and arrayIndexOfAll.
  • Beta API Breaking Change: Pipeline validation now occurs during execution rather than initialization. Action required: Update your error handling to catch user data validation errors on execute() instead of during pipeline initialization.
  • Fixed "X is not a function" issues observed in server side rendering APIs.

Version 12.10.0 - February 27, 2026

AI Logic

  • Added automatic function calling capability when using ChatSession.

SQL Connect

  • Added memory-based caching to queries in SQL Connect.

Cloud Firestore

  • Added support for the following Pipelines expressions: mapSet, mapValues, mapEntries, mapKeys, stringRepeat, stringReplaceOne, stringReplaceAll, stringIndexOf, ltrim, rtrim, arrayAgg, arrayAggDistinct, first, last, rand, trunc, and isType.

Version 12.9.0 - February 5, 2026

AI Logic

  • The LiveSession.receive() return types now include a new LiveServiceGoingAwayNotice that signifies the service will soon close the session.

  • Added new UsageMetadata fields to provide cache-related usage data when the implicit caching feature is used.

  • Removed "Preview" tags from code execution and URL context documentation.

Cloud Firestore

  • Support added for regexFind and regexFindAll Pipeline expressions.

  • getFirestore now logs a warning when databaseId is not found.

Version 12.8.0 - January 14, 2026

AI Logic

  • Added support for AbortSignal, allowing requests to be aborted.

  • Added ability to specify thinking levels in thinkingConfig.

  • Breaking change: Updated default hybrid in-cloud model to gemini-2.5-flash-lite.

Cloud Firestore

  • Released Firestore Pipelines for Enterprise edition in public preview.

Remote Config

  • Added web support for A/B Testing and Rollouts.

Version 12.7.0 - December 16, 2025

AI Logic

  • Fixed generateContentStream() returning the wrong inferenceSource.

Authentication

  • Upgraded react-native-async-storage peer dependency to v2+.

Cloud Firestore

  • Corrected misleading error message when doc() is called with undefined. (GitHub #9378)

Version 12.6.0 - November 13, 2025

AI Logic

SQL Connect

  • Fixed an issue where onComplete did not trigger when the user called unsubscribe on a subscription.

Version 12.5.0 - October 30, 2025

AI Logic

  • Deprecated sendMediaChunks() and sendMediaStream(). Instead, use the new methods added to the LiveSession class: sendTextRealtime(), sendAudioReatime(), and sendVideoRealtime().

  • Added support for audio transcriptions in the Live API.

  • When using hybrid on-device inference with either the PREFER_ON_DEVICE or PREFER_IN_CLOUD mode, you can now determine which inference mode was used for a request.

  • Fixed logic for merging default onDeviceParams with user-provided onDeviceParams.

Authentication

  • Added export of MISSING_PASSWORD in AuthErrorCodes.

  • Added browserCookiePersistence beta feature to public types.

Version 12.4.0 - October 9, 2025

AI Logic

  • Breaking change: Changed the functionCallingHandler property in StartAudioConversationOptions so that it now must return a Promise<FunctionResponse>. This breaking change is allowed in a minor release since the Live API is in Public Preview.

  • Added a sendFunctionResponses method to LiveSession, allowing function responses to be sent during realtime sessions.

  • Added URLContextTool support. This allows the model to access content from provided public web URLs to inform and enhance its responses.

  • Imagen Generation is now Generally Available (GA).

  • The Gemini Developer API is now Generally Available (GA).

  • The SDK can now handle empty parts when streaming.

  • The CodeExecutionTool has been properly marked as Public Preview in our reference documentation.

  • Fixed an issue where function responses during audio conversations caused the WebSocket connection to close. (GitHub #9264)

Version 12.3.0 - September 18, 2025

AI Logic

  • Added support for the code execution tool. Enabling this tool lets the model generate and run Python code to help it perform complex tasks like solving mathematical equations or visualizing data.

  • Added support for PREFER_IN_CLOUD mode when using hybrid on-device inference. This mode allows the SDK to fall back to the on-device model if the cloud-hosted model isn't available (for example, if the device is offline).

  • Updated the hybrid on-device inference feature from "experimental" to "public preview" status.

Remote Config

  • Added support for Realtime Remote Config for the web. This feature introduces a new onConfigUpdate API and allows web applications to receive near-instant configuration updates without requiring periodic polling.

Cloud Firestore

  • Increased the buffering-proxy detection timeout to minimize the false-positive rate. Updated WebChannel to ignore duplicate messages received from the server. (GitHub #8250)

Version 12.2.1 - August 28, 2025

AI Logic

  • Fixed an issue that caused TypeScript compilation errors.

Version 12.2.0 - August 28, 2025

AI Logic

  • Add support for the Gemini Live API.

  • Add thoughtSummary() convenience method to EnhancedGenerateContentResponse.

  • Add support for limited-use tokens with Firebase App Check. These limited-use tokens are required for an upcoming optional feature called replay protection. We recommend enabling the usage of limited-use tokens now so that when replay protection becomes available, you can enable it sooner because more of your users will be on versions of your app that send limited-use tokens.

  • Fixed an issue where AIError messages were too long after including an entire response body.

  • Added 'includeSafetyAttributes' field to Predict request payloads.

  • Excluded ChromeAdapterImpl code from Node entry point.

Cloud Firestore

  • Fixed a bug where a rejected promise with an empty message in a transaction would cause a timeout. (GitHub #9147)

Cloud Functions for Firebase Client SDK

  • Fixed an issue which caused a CORS error in Firebase Studio when connected to emulators.

Version 12.1.0 - August 7, 2025

AI Logic

  • Added hybrid inference options to AI Logic. This provides options to perform inference tasks using the Prompt API in browsers that have the Prompt API enabled.

Performance Monitoring

  • Fixed errors thrown when capturing long target element names for out-of-the-box metrics. (GitHub #9136)

Version 12.0.0 - July 17, 2025

  • Updated Node.js "engines" version to require a minimum of Node 20.

  • Updated the SDK to use ES2020. Developers whose apps are not using ES2020 or higher may need to update their tooling or configuration.

  • Removed the firebase/vertexai import alias. All the functionality is still available under the new name: firebase/ai, although some methods may be renamed (see AI Logic notes below).

AI Logic

  • Removed methods and symbols with the VertexAI name in them such as getVertexAI or VertexAIError. These were deprecated in 11.8.0 and were just wrappers on the newly introduced methods with the AI name, such as getAI or AIError.

  • Added support for Grounding with Google Search.

  • Added support for the Thinking Budget feature.

  • Added support for anyOf schemas.

  • Converted each enum export to a combination of a const map and a string literal type. This makes the constants available to non-TypeScript users and allows tree-shaking of unused variables.

  • Removed GroundingAttribution, which had previously been deprecated.

  • Fixed typings for functionDeclaration.parameters to prevent the use of optionalProperties when using an object literal.

Cloud Firestore

  • Reverted a fix for an issue where Cloud Firestore would send undefined for a document snapshot if the "clear site data" button was pressed in the web browser. This fix was introduced in v11.6.1 but inadvertently caused IndexedDB issues for some customers. (GitHub #9165)

  • Further improved performance of UTF-8 string ordering logic, which had degraded in v11.3.0, was reverted in v11.3.1, and was reintroduced with some improvements in v11.5.0.

  • Fixed a regression where the SDK did not re-connect to IndexedDb after a disconnect.

Version 11.10.0 - June 26, 2025

  • Added React Native entry point.

AI Logic

  • Added deprecation label to totalBillableCharacters. totalTokens should be used instead.

Cloud Firestore

  • Added support for Firestore result types to be serialized with toJSON and then deserialized with fromJSON methods on the objects.
  • Added support to resume onSnapshot listeners in the CSR phase based on serialized DataSnapshots and QuerySnapshots built in the SSR phase.
  • Internal listener registration change for IndexedDB versionchange events.

Cloud Storage

  • Fixed CORS error that occurred in Firebase Studio.

Version 11.9.1 - June 10, 2025

Authentication

  • Fixed a Firebase Studio issue where Firebase Auth cookie refresh attempts issued in Firebase Studio resulted in CORS errors.

Cloud Storage

  • Fixed a Firebase Studio issue that didn't properly populate cookies for Storage users.

Version 11.9.0 - June 5, 2025

AI Logic

  • Added title, maximum, minimum, maxItems, minItems, and propertyOrdering to Schema.
  • Added HarmBlockThreshold.OFF support.

Cloud Firestore

  • Clean up leaked WebChannel instances when the Firestore instance is terminated.

Version 11.8.0 - May 20, 2025

  • The FirebaseApp setting automaticDataCollectionEnabled now defaults to true. This setting was previously only used by App Check and won't change the default behavior in App Check.

Cloud Firestore

  • Fixed a cache issue in Safari/WebKit that occurs when client-side indexing is used.

AI Logic

  • Initial release of the Firebase AI Logic SDK (@firebase/ai). This SDK replaces the previous Vertex AI in Firebase SDK (@firebase/vertexai) to accommodate the evolving set of supported features and services. The new Firebase AI Logic SDK provides preview support for the Gemini Developer API, including its free tier offering. Using the Firebase AI Logic SDK with the Vertex AI Gemini API is still generally available (GA).

    To start using the new SDK, use the getAI() instance getter imported from ’firebase/ai’. See details in the migration guide.

  • Added support for Gemini multimodal output.

  • Fixed an issue where GenerationConfig was not inherited from ChatSession.

Version 11.7.1 - May 7, 2025

  • Rolled back the change in 11.7.0 that set the value of automaticDataCollectionEnabled to true. Due to a backend setting not being ready yet, this will cause errors in Vertex AI in Firebase requests. This change will be restored when the backend is ready.

Version 11.7.0 - May 7, 2025

  • The FirebaseApp setting automaticDataCollectionEnabled now defaults to true. This setting was previously only used by App Check and won't change the default behavior in App Check.

Version 11.6.1 - April 24, 2025

Authentication

  • Fixed an issue where ActionCodeURL was not populating languageCode from the URL. (GitHub #8912)

SQL Connect

  • Resolved a 'cannot extend private constructor' build error that occurred when using the DataConnectError and DataConnectOperationError types. (GitHub #8898)

Cloud Firestore

  • Fixed the null value handling in != and not-in filters. (GitHub #8915)

  • Fixed 'window is not defined' error when calling clearIndexedDbPersistence from a service worker. (GitHub #6465)

  • Fixed an issue where Firestore would produce undefined for document snapshot data if using IndexedDB persistence and "clear site data" (or equivalent) was selected in the web browser. (GitHub #8953)

  • Added unique IDs and state information into fatal error messages instead of the generic "unexpected state" message.

Version 11.6.0 - March 31, 2025

Authentication

  • Added Persistence.COOKIE, a new persistence method backed by cookies. The browserCookiePersistence implementation is designed to be used in conjunction with middleware that ensures both your front and backend authentication state remain synchronized.

SQL Connect

  • Exposed partial errors to the user.

Vertex AI in Firebase

  • The SDK now throws an error when initializing models if appId is not defined in the given Vertex AI in Firebase instance.

  • Labeled GroundingAttribution as deprecated.

Version 11.5.0 - March 20, 2025

App Check

  • The getToken() method now throws internalError strings that were previously internally suppressed. (GitHub #8822)

Cloud Firestore

  • Implemented lazy UTF-8 encoded byte comparison for strings. (GitHub #8774 and #8778)

SQL Connect

  • Updated requests to point to the v1 backend endpoints instead of v1beta.

Performance Monitoring

  • New retry logic prevents infinite retry attempts. (GitHub #8813)

Realtime Database

  • Added non-null parent properties to ThenableReference.

Vertex AI in Firebase

  • Added missing BlockReason and FinishReason enum values.

  • systemInstruction, tools, and generationConfig have been added to CountTokensRequest.

Version 11.4.0 - February 27, 2025

  • Added support for the FIREBASE_WEBAPP_CONFIG environment variable at install time. This feature supports auto-initialization for SSR apps using Firebase App Hosting.

Authentication

  • Invoking connectAuthEmulator multiple times with the same parameters will no longer cause an error. (GitHub #6824)

App Check

  • Fixed a bug that caused an error to be thrown when the debug exchange request failed.

Realtime Database

  • Invoking connectDatabaseEmulator multiple times with the same parameters will no longer cause an error. (GitHub #6824)

Vertex AI in Firebase

  • Public Preview: Added support for generating images using the Imagen 3 models.

  • Added support for modality-based token count.

  • The SDK now filters out empty text parts from streaming responses. (GitHub #8714)

  • Created a separate entry point bundle for Node.js. This bundle can be automatically detected by any developer tooling configured to prefer Node.js fields in package.json, such as main or exports.node.

Remote Config

  • Added support for initial state hydration from SSR contexts.

Version 11.3.1 - February 11, 2025

Cloud Firestore

  • Reverted a change to use UTF-8 encoding in string comparisons because it caused a performance issue. (GitHub #8778)

Version 11.3.0 - February 6, 2025

  • Added an appCheckToken parameter to FirebaseServerAppSettings. FirebaseServerApp will use the token when making service requests, unblocking the use of App Check enforced products in SSR environments.

Authentication

  • Added ActionCodeSettings.linkDomain to customize the Firebase Hosting link domain that is used in mobile out-of-band email action flows. Also, deprecated ActionCodeSettings.dynamicLinkDomain.

Performance Monitoring

  • Collect web vital metrics (INP,CLS,LCP) as part of page load event.

Realtime Database

  • Fixed a potential negative offset when calculating last reconnect times. This could cause lengthy reconnect delays in some scenarios. (GitHub #8718)

Cloud Firestore

  • Fixed an issue where the SDK's string sorting differed from the server's (UTF-8 byte order) for document fields and map/document keys, resolving a mismatch caused by special characters.

Version 11.2.0 - January 16, 2025

SQL Connect

  • Usage of PromiseLike has been replaced with Promise.

Remote Config

  • Added support for custom signal targeting. Use the setCustomSignals API and to set custom signals that can be targeted using the new custom signal condition type in the Remote Config console.

Version 11.1.0 - December 12, 2024

Cloud Functions for Firebase Client SDK

  • Added .stream() API for callable functions to consume stream responses.

SQL Connect

  • Fixed issue where multiple calls to connectDataConnectEmulator caused an exception.

Cloud Messaging

  • Fixed an issue where PushManager.subscribe() is called too soon after registering the default service worker. (GitHub #7784)

Vertex AI in Firebase

  • Clear fetch timeout after request completion. Fixes an issue that caused Node.js scripts to hang on exit due to a pending timeout.

Version 11.0.2 - November 14, 2024

  • Upgraded to TypeScript 5.5.4.

Cloud Firestore

  • Prevent a possible condition of slow snapshots, caused by a rapid series of document update(s) followed by a delete. (GitHub #8474)

Vertex AI in Firebase

  • Update to new base URL in documentation.
  • Remove indentation in API Not Enabled error.
  • Send App Check dummy token in header if there is an App Check getToken error.

Version 11.0.1 - October 22, 2024

Realtime Database

  • Bumped @firebase/database-compat by a major version to ensure downstream libraries like firebase-admin don't automatically pick up the Node.js engines update in package.json.

Version 11.0.0 - October 21, 2024

  • Vertex AI in Firebase is now Generally Available (GA) and can be used in production apps.

    Use the Vertex AI in Firebase SDK to call the Vertex AI Gemini API directly from your app. This client SDK is built specifically for use with Web apps, offering security options against unauthorized clients as well as integrations with other Firebase services.

  • The SDK no longer supports versions of Node.js below version 18. engines fields in all package.json files have been updated to reflect this.

  • Removed ES5 bundles. The minimum required ES version is now ES2017.

  • Removed usage of undici and node-fetch dependencies in our Node.js bundles, replacing them with the native Node.js fetch implementation.

Authentication

  • Added ReCAPTCHA Enterprise support for app verification during phone authentication.

Cloud Functions for Firebase Client SDK

  • The FunctionsError class is now publicly exported.

Cloud Firestore

  • Memory LRU GC is now enabled by default.

Version 10.14.1 - October 10, 2024

Cloud Messaging

  • Fixed a logging issue where Web Push data was missing in BigQuery logs.

Version 10.14.0 - September 30, 2024

SQL Connect

  • Added the SQL Connect package to the SDK.

  • Added App Check support.

Cloud Firestore

  • Re-enabled useFetchStreams with the latest WebChannel implementation. This reduces the memory usage of WebChannel.

  • Refactored Cloud Firestore client instantiation. This prepares for future releases that require the client to restart.

Version 10.13.2 - September 18, 2024

Authentication

  • Suppress the use of the parameter referrerPolicy within fetch requests originating from Cloudflare Workers. Cloudflare Worker environments don't support this parameter and all Auth operations would silently fail. (GitHub #8355)

Cloud Firestore

  • Fix an issue with metadata fromCache defaulting to true when listening to cache in multiple browser tabs. (GitHub #8343)

Version 10.13.1 - August 29, 2024

  • Removed an unnecessary console.log statement. (GitHub #8436)
  • Updated undici dependency to 6.19.7 due to a memory leak in older versions. (GitHub #8431)

Cloud Functions for Firebase Client SDK

  • Allow a custom path in Firebase Functions custom domain. (GitHub #8440)

Version 10.13 - August 15, 2024

  • The compat package now checks whether firebase is defined in the global scope. (GitHub #8409)

  • Prevent heartbeats from throwing errors. (GitHub #8407)

Cloud Firestore

  • Add support for reading and writing Firestore vectors. (GitHub #8215)

Authentication

  • Remove localStorage synchronization on storage events in Safari iframes. (GitHub #8408)

Cloud Storage

  • Migrate from the Node to the Web ReadableStream. (GitHub #8410)

Version 10.12.5 - August 1, 2024

  • Reverted the change that added the safevalues library, as it is not compatible with ES5 bundles. We will return to using safevalues when we migrate all our builds away from ES5.

  • Properly handle the case in app-compat checks where window exists but self does not. (This occurs in Ionic Stencil's Jest preset, for example.)

  • Fixed typos in documentation and some internal variables and parameters.

Version 10.12.4 - July 18, 2024

Version 10.12.3 - July 3, 2024

  • Updated browser environment detection logic in firebase/util to allow for the experimental use of FirebaseServerApp instances in edge runtimes. (GitHub #8299)
  • Guard the use of FinalizationRegistry in FirebaseServerApp initialization based on the availability of FinalizationRegistry in the JavaScript runtime. (GitHub #8299)
  • The FirebaseServerAppSettings.name field inherited from FirebaseAppSettings is now omitted instead of overloading the value as undefined. This fixes a TypeScript compilation error. (GitHub #8336)

Cloud Firestore

  • Fixed a metadata sync issue with multi-tab persistence and snapshot listeners. (GitHub #8314)
  • Fixed a typo in the package.json of webchannel-wrapper that caused bloom-blob to be missing the esm5 specifier. (GitHub #8319)

Firebase AI Logic

  • Added a new publicly exported VertexAIError class. (GitHub #8240)

Version 10.12.2 - May 27, 2024

Authentication

  • Changed types paths to point to rolled-up public d.ts files. This fixes TypeScript compilation errors in the web extension and cordova bundles. (GitHub #8222)

Firebase AI Logic

  • Changed types paths to point to point to rolled-up public d.ts files. This fixes some TypeScript compiler errors. (GitHub #8256)

Version 10.12.1 - May 20, 2024

Analytics

  • Fixed a bug where setConsent was incorrectly passing consent parameters to gtag(). (GitHub #8210)

Cloud Firestore

  • Fixed a multi-tab persistence issue that caused empty snapshots.

Version 10.12.0 - May 13, 2024

Firebase AI Logic

  • Initial release of the Vertex AI for Firebase SDK (public preview). Learn how to get started with the SDK in your app.

Cloud Firestore

  • Updated @firebase/webchannel-wrapper to consume Closure dependencies from the closure-net GitHub repository.

  • Fixed multi-byte character decoding bug by updating webchannel-wrapper dependency.

Version 10.11.1 - April 25, 2024

Authentication

  • The SDK now emits a module package file with esm2017 browser extension builds. (GitHub #8115)
  • Update jszip transient dependency from 3.7.1 to 3.10.1.

Cloud Firestore

  • Prevent spurious "Backend didn't respond within 10 seconds" errors when network is in fact responding, but slowly. (GitHub #8145)
  • Update protobufjs transitive dependency from 6.11.3 to 7.2.6.
  • Return to using xmlhttprequest for bidi-streams, as fetch streams seem to be having connection issues.
  • Reduce code bundle size by 6.5 kB in applications that only use memory persistence (the default persistence mode). This bundle size regression was accidentally introduced in version 10.7.2.

Version 10.11.0 - April 11, 2024

  • FirebaseServerApp is no longer JSON serializable.
  • Upgraded undici version to 5.28.4 due to the low severity security issue CVE-2024-30260.
  • Updated dependencies in Auth, Firestore, Storage and App. (GitHub #8098)

Cloud Firestore

  • Fixed an issue where client side indexing on timestamp fields leads to incorrect query results. (GitHub #8031)

Cloud Messaging

  • Revised token update logic to prevent unnecessary token deletions during transient network issues. (GitHub #8141)

Version 10.10.0 - March 28, 2024

  • Added the new FirebaseServerApp interface to bridge state data between client and server runtime environments. This interface extends FirebaseApp.

Authentication

  • Updated transitive dependencies based on generated dependabot security reports. (GitHub #8088)
  • Additional protection against misuse of the authTokenSyncURL experiment. (GitHub #8076)

Version 10.9.0 - March 14, 2024

Authentication

  • Fixed a potential XSS vulnerability through FIREBASE_DEFAULTS settings. (GitHub #8056)

Cloud Firestore

  • Added the ListenSource enum to SnapshotListenOptions to provide an option to retrieve data from local cache only.

Version 10.8.1 - February 28, 2024

  • Upgrade undici version to 5.28.3 due to the low severity security issue CVE-2024-24758.

Version 10.8.0 - February 1, 2024

  • Fixed to catch transaction.done errors in readHeartbeatsFromIndexedDB and log them as a warning, because platform logging errors should never block user app functionality.

Authentication

  • Added a firebase/auth/web-extension entry point for web extension developers. This entry point does not include any code that loads remote scripts, which are disallowed under Manifest V3. In extensions, this entry point should replace firebase/auth completely, and developers shouldn't try to use both in the same app. (GitHub #7617)

Analytics

  • Added two new consent options to the ConsentSettings interface: ad_personalization and ad_user_data.

Realtime Database

  • Fixed issue where queryConstraint.type was undefined.

Cloud Firestore

  • Fixed isSafari() throwing in React Native. (GitHub #7962)

Version 10.7.2 - January 18, 2024

  • Catch and warn IndexedDB createObjectStore errors in Safari-based browsers. (GitHub #7829)

Cloud Firestore

  • Update the isEqual function for arrayUnion, arrayRemove and increment. (GitHub #7706)
  • Fixed leak of grpc-js resources on terminate. (GitHub #7747)
  • Adjusted the automatic index creation parameters to use more optimal values for the platform/browser detected at runtime.
  • Support special characters in query paths sent to getCountFromServer(...), getCount(...) (lite API), and getDocs(...) (lite API).

Archived release notes

Release notes for 2016-2023 are in the release notes archive. The following list links to each archived entry.