Change8

firebase@12.5.0

📦 firebase-sdk
5 features🐛 1 fixes1 deprecations🔧 11 symbols

Summary

This release updates the Firebase JS SDK with significant enhancements to the AI Live API, including new real-time media methods and audio transcription support, while also exposing new Auth features and error codes.

Migration Steps

  1. Replace calls to sendMediaChunks() and sendMediaStream() with the new LiveSession methods: sendTextRealtime(), sendAudioReatime(), or sendVideoRealtime().

✨ New Features

  • Added sendTextRealtime(), sendAudioReatime(), and sendVideoRealtime() to the LiveSession class.
  • Added support for audio transcriptions in the Live API.
  • Added inferenceSource to generateContent and generateContentStream responses to indicate on-device or in-cloud processing.
  • Exposed browserCookiePersistence beta feature in public typings for @firebase/auth.
  • Exported MISSING_PASSWORD via AuthErrorCodes in @firebase/auth.

🐛 Bug Fixes

  • Fixed logic for merging default onDeviceParams with user-provided onDeviceParams in @firebase/ai.

🔧 Affected Symbols

LiveSessionsendMediaChunkssendMediaStreamsendTextRealtimesendAudioReatimesendVideoRealtimegenerateContentgenerateContentStreamAuthErrorCodesbrowserCookiePersistenceonDeviceParams

⚡ Deprecations

  • sendMediaChunks() and sendMediaStream() are deprecated in favor of new methods in the LiveSession class.