Change8

firebase@11.6.0

📦 firebase-sdk
2 features🐛 1 fixes1 deprecations🔧 7 symbols

Summary

This release introduces cookie-based authentication persistence for better frontend/backend synchronization and improves error reporting in VertexAI and Data Connect.

Migration Steps

  1. If using VertexAI, ensure appId is defined in the instance before initializing models to avoid new initialization errors.
  2. To use the new cookie-based persistence, implement browserCookiePersistence in conjunction with backend middleware for state synchronization.

✨ New Features

  • Added Persistence.COOKIE (browserCookiePersistence) to @firebase/auth, allowing authentication state to be synchronized between front and backend via cookies.
  • Exposed partial errors to users in @firebase/data-connect.

🐛 Bug Fixes

  • VertexAI now throws an explicit error during model initialization if appId is not defined.

🔧 Affected Symbols

Persistence.COOKIEbrowserCookiePersistenceGroundingAttributionVertexAI@firebase/auth@firebase/data-connect@firebase/vertexai

⚡ Deprecations

  • The GroundingAttribution type in @firebase/vertexai has been labeled as deprecated.