# firebase-js-sdk/release
Firebase JS SDK firebase@13.0.0
importance: highbreakingdeprecationmigrationfeature
This major release introduces breaking changes to the AI features, including refactored APIs and removal of deprecated functionality. It also adds support for BSON types and updates the default AI model.
affected
Users of the Firebase JavaScript SDK, especially those using AI features, are affected by breaking changes and deprecations.
action
Review the breaking changes and migration steps, update your code accordingly, and test thoroughly.
release_signals
-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`.
-Removed the previously deprecated `VertexAIBackend` (and `BackendType.VERTEX_AI`). Use `AgentPlatformBackend` (and `BackendType.AGENT_PLATFORM`) instead. The default location for `AgentPlatformBackend` is `global`, whereas the default location for `VertexAIBackend` was `us-central1`.
-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.
# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.