firebase@12.5.0
📦 firebase-authView on GitHub →
✨ 4 features🐛 2 fixes⚡ 3 deprecations🔧 13 symbols
Summary
This release introduces new real-time sending methods to LiveSession, adds support for audio transcriptions, and exposes inference source information in AI responses. Several methods related to media sending are deprecated.
Migration Steps
- If you were using `sendMediaChunks()` or `sendMediaStream()`, replace them with the new methods available on the `LiveSession` class (e.g., `sendTextRealtime()`, `sendAudioReatime()`, `sendVideoRealtime()`).
✨ New Features
- Added `sendTextRealtime()`, `sendAudioReatime()`, and `sendVideoRealtime()` to the `LiveSession` class.
- Added support for audio transcriptions in the Live API.
- Added `inferenceSource` to the response from `generateContent` and `generateContentStream` to indicate on-device or in-cloud inference source.
- Expose `browserCookiePersistence` beta feature in public typings for @firebase/auth.
🐛 Bug Fixes
- Fixed logic for merging default `onDeviceParams` with user-provided `onDeviceParams` in @firebase/ai.
- Exported `MISSING_PASSWORD` via `AuthErrorCodes` in @firebase/auth (fixes #9270).
🔧 Affected Symbols
sendMediaChunks()sendMediaStream()LiveSessionsendTextRealtime()sendAudioReatime()sendVideoRealtime()generateContentgenerateContentStreaminferenceSourceonDeviceParamsAuthErrorCodesMISSING_PASSWORDbrowserCookiePersistence⚡ Deprecations
- The methods `sendMediaChunks()` and `sendMediaStream()` are deprecated. Users should switch to using the new methods added to the `LiveSession` class.
- Deprecate `sendMediaChunks()` and `sendMediaStream()` in @firebase/ai.
- Deprecate `sendMediaChunks()` and `sendMediaStream()` in firebase.