Change8

firebase@12.2.0

📦 firebase-sdkView on GitHub →
4 features🐛 4 fixes🔧 6 symbols

Summary

This release introduces Gemini Live API support and new AI convenience methods, while fixing critical bugs in Firestore transactions and Functions emulator CORS handling.

Migration Steps

  1. Update firebase package to 12.2.0 to receive the latest sub-package fixes and features.

✨ New Features

  • Add support for the Gemini Live API in @firebase/ai.
  • Add thoughtSummary() convenience method to EnhancedGenerateContentResponse.
  • Add App Check limited use token option to getAI().
  • Add 'includeSafetyAttributes' field to Predict request payloads.

🐛 Bug Fixes

  • Fixed an issue where AIError messages were excessively long due to including the entire response body.
  • Excluded ChromeAdapterImpl code from the Node.js entry point in @firebase/ai.
  • Fixed a bug in Firestore where a rejected promise with an empty message in a transaction caused a timeout.
  • Fixed an issue where Firebase Functions SDK caused CORS errors when connected to emulators in Firebase Studio.

🔧 Affected Symbols

getAIEnhancedGenerateContentResponseEnhancedGenerateContentResponse.thoughtSummaryAIErrorChromeAdapterImplPredict