Repository navigation
For more detailed release notes, see Firebase JavaScript SDK Release Notes.
What's Changed
@firebase/ai@3.0.0
Major Changes
-
42ce99c#10380 - RefactoredTemplateGenerativeModel.generateContentandTemplateGenerativeModel.generateContentStreamto accept a unifiedTemplateRequestobject ({ templateId, templateVariables, toolConfig? }) as the first parameter.
MadetemplateVariablesrequired in bothTemplateRequestandStartTemplateChatParams. -
f83cc32#10392 - Removed APIs that were previously deprecated.Removed the previously deprecated
VertexAIBackend(andBackendType.VERTEX_AI). UseAgentPlatformBackend(andBackendType.AGENT_PLATFORM) instead.The only difference for
AgentPlatformBackendis the default
location for accessing the model.
The default location forAgentPlatformBackendisglobal, whereas the default location forVertexAIBackendwasus-central1. To useus-central1withAgentPlatformBackend, specifygetAI(app, { backend: new AgentPlatformBackend('us-central1') })when initializing the SDK. However, note that most new Gemini models do not supportus-central1.Updated default hybrid-in-cloud model to
gemini-3.5-flash-lite. -
b70fa6f#10398 - RefactoredPartinto a discriminated union with explicittypeproperties, introducedUnknownPartfor raw wire and user-provided inputs, strippedtypediscriminators on wire egress, and ensured defensive deep copying for chat history.
Minor Changes
-
87adc59#10362 - DeprecatedcandidateCount,temperature,topP,topK,presencePenalty, andfrequencyPenaltyin bothGenerationConfigandLiveGenerationConfig. These parameters are unsupported in Gemini 3.x and later models. -
565da23#10334 - Exported aChatSessioninterface instead of theChatSessionclass.Cleaned up AI Logic doc comments.
Patch Changes
firebase@13.0.0
Major Changes
-
42ce99c#10380 - RefactoredTemplateGenerativeModel.generateContentandTemplateGenerativeModel.generateContentStreamto accept a unifiedTemplateRequestobject ({ templateId, templateVariables, toolConfig? }) as the first parameter.
MadetemplateVariablesrequired in bothTemplateRequestandStartTemplateChatParams. -
f83cc32#10392 - Removed APIs that were previously deprecated.Removed the previously deprecated
VertexAIBackend(andBackendType.VERTEX_AI). UseAgentPlatformBackend(andBackendType.AGENT_PLATFORM) instead.The only difference for
AgentPlatformBackendis the default
location for accessing the model.
The default location forAgentPlatformBackendisglobal, whereas the default location forVertexAIBackendwasus-central1. To useus-central1withAgentPlatformBackend, specifygetAI(app, { backend: new AgentPlatformBackend('us-central1') })when initializing the SDK. However, note that most new Gemini models do not supportus-central1.Updated default hybrid-in-cloud model to
gemini-3.5-flash-lite. -
b70fa6f#10398 - RefactoredPartinto a discriminated union with explicittypeproperties, introducedUnknownPartfor raw wire and user-provided inputs, strippedtypediscriminators on wire egress, and ensured defensive deep copying for chat history.
Minor Changes
-
87adc59#10362 - DeprecatedcandidateCount,temperature,topP,topK,presencePenalty, andfrequencyPenaltyin bothGenerationConfigandLiveGenerationConfig. These parameters are unsupported in Gemini 3.x and later models. -
565da23#10334 - Exported aChatSessioninterface instead of theChatSessionclass.Cleaned up AI Logic doc comments.
Patch Changes
-
a034f68#10384 (fixes #9426) - Suppress false-positiveCONFIG_UPDATE_STREAM_ERRORevents emitted byonConfigUpdatedwhen 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 - IncludeTemporalnamespace declaration inglobal_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-positiveCONFIG_UPDATE_STREAM_ERRORevents emitted byonConfigUpdatedwhen 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
- Updated dependencies [
87adc59,42ce99c,f83cc32,a034f68,565da23,b70fa6f,46ae308]:- firebase@13.0.0
@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