Change8

firebase@11.5.0

Breaking Changes
📦 firebase-sdk
1 breaking4 features🐛 3 fixes🔧 10 symbols

Summary

Firebase JS SDK v11.5.0 introduces enhancements to Vertex AI token counting, improves AppCheck error reporting, and updates Data Connect to v1 backend endpoints.

⚠️ Breaking Changes

  • AppCheck's getToken() now throws internalError strings that were previously ignored. Ensure your application handles these potential exceptions.

Migration Steps

  1. Review AppCheck getToken() calls to ensure they are wrapped in try-catch blocks to handle newly surfaced internalError strings.

✨ New Features

  • Added missing BlockReason and FinishReason enum values to Vertex AI.
  • Added systemInstruction, tools, and generationConfig to CountTokensRequest in Vertex AI.
  • Added non-null parent properties to ThenableReference in Database.
  • Updated Data Connect requests to use v1 backend endpoints instead of v1beta.

🐛 Bug Fixes

  • Improved retry mechanism robustness by stopping when remaining tries reach zero.
  • Optimized string comparison using lazy encoding for UTF-8 encoded bytes in Firestore.
  • Fixed an issue where AppCheck's getToken() was suppressing internal errors.

🔧 Affected Symbols

BlockReasonFinishReasonCountTokensRequestgetTokenThenableReference@firebase/vertexai@firebase/app-check@firebase/database@firebase/data-connect@firebase/firestore