firebase@12.0.0
Breaking Changes📦 firebase-sdk
⚠ 6 breaking✨ 4 features🐛 1 fixes🔧 5 symbols
Summary
Firebase JS SDK v12 introduces breaking changes to the AI module, including the removal of VertexAI APIs and GroundingAttribution, while adding support for Google Search grounding and Node 20.
⚠️ Breaking Changes
- Removed VertexAI APIs from @firebase/ai; users must migrate to alternative AI modules.
- Removed vertexai import path from the main firebase package.
- Removed GroundingAttribution from @firebase/ai.
- Converted TypeScript enum exports in @firebase/ai into const variables, which may affect projects relying on enum-specific behavior like reverse mapping.
- Minimum Node.js version requirement increased to Node 20.
- Build targets updated to ES2020, which may break compatibility with older browsers or environments.
Migration Steps
- Update code to replace removed VertexAI APIs and the vertexai import path.
- Update any references to GroundingAttribution as it has been removed.
- Check TypeScript code for usage of @firebase/ai enums, as they are now const variables.
- Ensure deployment environments support ES2020 syntax.
✨ New Features
- Added support for anyOf schemas in @firebase/ai.
- Added support for Grounding with Google Search in @firebase/ai.
- Added support for Thinking Budget in @firebase/ai.
- initializeServerApp now supports auto-initialization for Firebase App Hosting.
🐛 Bug Fixes
- Fixed typings for functionDeclaration.parameters in @firebase/ai.
🔧 Affected Symbols
VertexAIGroundingAttributioninitializeServerAppfunctionDeclaration.parametersvertexai