Change8

firebase@12.14.0

📦 firebase-authView on GitHub →
4 features🐛 5 fixes1 deprecations🔧 5 symbols

Summary

This release introduces new APIs for FCM registration and on-device model initialization, promotes hybrid inference features to GA, and includes several bug fixes across Firestore, Messaging, and App Check.

Migration Steps

  1. Migrate FCM registration creation/deletion logic to use the new API introduced in @firebase/messaging.

✨ New Features

  • Added initializeDeviceModel() method to @firebase/ai and firebase to allow explicit initialization of on-device model in hybrid mode.
  • Hybrid inference features in @firebase/ai and firebase are now marked as "public" (generally available) instead of "beta" (public preview).
  • Added minimum and maximum FieldValue operations in @firebase/firestore and firebase.
  • Added new API for creating and deleting FCM registration in @firebase/messaging.

🐛 Bug Fixes

  • Fixed a bug in @firebase/ai where ChatSession.sendMessageStream() and TemplateChatSession.sendMessageStream() sent duplicate user turns in the request.
  • Updated _isAvailable() in @firebase/auth and @firebase/auth-compat to use retry logic for the initial IndexedDB availability check, preventing incorrect fallbacks to in-memory persistence.
  • Improved robustness and logging in query listen stream creation and re-creation in @firebase/firestore.
  • Fixed delivery metrics Firelog flushing when BigQuery export is enabled in @firebase/messaging by adjusting flush scheduling and processing logic.
  • Fixed a bug in @firebase/app-check where getLimitedUseToken() did not correctly get a limited use token because it did not send the limited_use param.

Affected Symbols

⚡ Deprecations

  • Old API for creating and deleting FCM registration in @firebase/messaging is deprecated in favor of a new API.