github firebase/firebase-js-sdk firebase@13.0.0

4 hours ago

For more detailed release notes, see Firebase JavaScript SDK Release Notes.

What's Changed

@firebase/ai@3.0.0

Major Changes

  • 42ce99c #10380 - Refactored TemplateGenerativeModel.generateContent and TemplateGenerativeModel.generateContentStream to accept a unified TemplateRequest object ({ templateId, templateVariables, toolConfig? }) as the first parameter.
    Made templateVariables required in both TemplateRequest and StartTemplateChatParams.

  • f83cc32 #10392 - Removed APIs that were previously deprecated.

    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.

    Updated default hybrid-in-cloud model to gemini-3.5-flash-lite.

  • b70fa6f #10398 - 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.

Minor Changes

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

  • 565da23 #10334 - Exported a ChatSession interface instead of the ChatSession class.

    Cleaned up AI Logic doc comments.

Patch Changes

  • ac44c69 #10363 - Migrate test suite to Vitest and update type-only re-exports.

firebase@13.0.0

Major Changes

  • 42ce99c #10380 - Refactored TemplateGenerativeModel.generateContent and TemplateGenerativeModel.generateContentStream to accept a unified TemplateRequest object ({ templateId, templateVariables, toolConfig? }) as the first parameter.
    Made templateVariables required in both TemplateRequest and StartTemplateChatParams.

  • f83cc32 #10392 - Removed APIs that were previously deprecated.

    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.

    Updated default hybrid-in-cloud model to gemini-3.5-flash-lite.

  • b70fa6f #10398 - 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.

Minor Changes

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

  • 565da23 #10334 - Exported a ChatSession interface instead of the ChatSession class.

    Cleaned up AI Logic doc comments.

  • 46ae308 #10337 - Added support for BSON types.

Patch Changes

  • a034f68 #10384 (fixes #9426) - Suppress false-positive CONFIG_UPDATE_STREAM_ERROR events emitted by onConfigUpdated when the application enters the background, stop recording a connection backoff penalty for these expected closes, and reconnect if the application returns to the foreground before the connection finishes closing.

  • Updated dependencies [410d620, 87adc59, 42ce99c, f83cc32, 5ab2fc6, a034f68, 565da23, b70fa6f, 46ae308, 142b409, ac44c69, 9b3d815]:

    • @firebase/auth@1.13.7
    • @firebase/app@0.16.3
    • @firebase/ai@3.0.0
    • @firebase/firestore@4.18.0
    • @firebase/remote-config@0.9.3
    • @firebase/storage@0.14.6
    • @firebase/auth-compat@0.6.12
    • @firebase/app-compat@0.5.19
    • @firebase/firestore-compat@0.4.15
    • @firebase/remote-config-compat@0.2.30
    • @firebase/storage-compat@0.4.6

@firebase/firestore@4.18.0

Minor Changes

Patch Changes

  • 5ab2fc6 #7887 - UpdateData allows indexed types or Record<X, T> for T.

  • 142b409 #10367 - Include Temporal namespace declaration in global_index.d.ts.

@firebase/app@0.16.3

Patch Changes

  • Update SDK_VERSION.

@firebase/app-compat@0.5.19

Patch Changes

  • Updated dependencies []:
    • @firebase/app@0.16.3

@firebase/auth@1.13.7

Patch Changes

  • 410d620 #10418 (fixes #10402) - Preserve the persisted user during Auth initialization when the initial user reload fails due to a transient quota (auth/quota-exceeded) or rate-limit (auth/too-many-requests) error.

@firebase/auth-compat@0.6.12

Patch Changes

  • Updated dependencies [410d620]:
    • @firebase/auth@1.13.7

@firebase/firestore-compat@0.4.15

Patch Changes

@firebase/remote-config@0.9.3

Patch Changes

  • a034f68 #10384 (fixes #9426) - Suppress false-positive CONFIG_UPDATE_STREAM_ERROR events emitted by onConfigUpdated when the application enters the background, stop recording a connection backoff penalty for these expected closes, and reconnect if the application returns to the foreground before the connection finishes closing.

@firebase/remote-config-compat@0.2.30

Patch Changes

  • Updated dependencies [a034f68]:
    • @firebase/remote-config@0.9.3

@firebase/rules-unit-testing@6.0.0

Patch Changes

@firebase/storage@0.14.6

Patch Changes

  • 9b3d815 #10388 - Migrate test suite to Vitest, catch unhandled emulator ping, and update type-only re-exports.

@firebase/storage-compat@0.4.6

Patch Changes

  • Updated dependencies [9b3d815]:
    • @firebase/storage@0.14.6

Don't miss a new firebase-js-sdk release

NewReleases is sending notifications on new releases.