Vigia

@firebase/ai upgraden van 2.x naar 3.x

Vergelijking van de publieke API van @firebase/ai 2.16.0 en 3.0.0, automatisch berekend uit hun TypeScript-types. Een gewijzigde signatuur is een mogelijke brekende wijziging, geen zekerheid.

Samenvatting

Verwijderde importpaden0
Verwijderde exports2
Gewijzigde signaturen3
Verwijderde leden van klassen of interfaces53
Gewijzigde leden van klassen of interfaces8
Nieuw als verouderd gemarkeerd11
Gewijzigde vereisten (engines, peer-afhankelijkheden)1
Nieuwe exports1

Verwijderde exports

importexportkindVoor
@firebase/aiChatSessionBaseclassclass
@firebase/aiVertexAIBackendclassclass

Gewijzigde signaturen

exportVoorNa
@firebase/ai · ToolFunctionDeclarationsTool | CodeExecutionTool | GoogleMapsTool | GoogleSearchTool | URLContextToolCodeExecutionTool | FunctionDeclarationsTool | GoogleMapsTool | GoogleSearchTool | URLContextTool
@firebase/ai · BackendType"AGENT_PLATFORM" | "VERTEX_AI" | "GOOGLE_AI""AGENT_PLATFORM" | "GOOGLE_AI"
@firebase/ai · ChatSessionclassinterface

Verwijderde leden van klassen of interfaces

memberimportVoor
AI.location@firebase/aistring
TextPart.inlineData@firebase/aiundefined
TextPart.functionCall@firebase/aiundefined
TextPart.executableCode@firebase/aiundefined
TextPart.functionResponse@firebase/aiundefined
TextPart.codeExecutionResult@firebase/aiundefined
GoogleMaps.enableWidget@firebase/aiboolean | undefined
ChatSession._history@firebase/aiContent[]
ChatSession._apiSettings@firebase/aiApiSettings
ChatSession.chromeAdapter@firebase/aiany
LiveSession.sendMediaChunks@firebase/ai(mediaChunks: GenerativeContentBlob[]): Promise<void>
LiveSession.sendMediaStream@firebase/ai(mediaChunkStream: ReadableStream<GenerativeContentBlob>): Promise<void>
FileDataPart.text@firebase/aiundefined
FileDataPart.inlineData@firebase/aiundefined
FileDataPart.functionCall@firebase/aiundefined
FileDataPart.executableCode@firebase/aiundefined
FileDataPart.functionResponse@firebase/aiundefined
FileDataPart.codeExecutionResult@firebase/aiundefined
InlineDataPart.text@firebase/aiundefined
InlineDataPart.functionCall@firebase/aiundefined
InlineDataPart.executableCode@firebase/aiundefined
InlineDataPart.functionResponse@firebase/aiundefined
InlineDataPart.codeExecutionResult@firebase/aiundefined
FunctionCallPart.text@firebase/aiundefined
FunctionCallPart.inlineData@firebase/aiundefined
FunctionCallPart.executableCode@firebase/aiundefined
FunctionCallPart.functionResponse@firebase/aiundefined
FunctionCallPart.codeExecutionResult@firebase/aiundefined
GroundingMetadata.retrievalQueries@firebase/aistring[] | undefined
ExecutableCodePart.text@firebase/aiundefined
ExecutableCodePart.thought@firebase/aiundefined
ExecutableCodePart.fileData@firebase/ainever
ExecutableCodePart.inlineData@firebase/aiundefined
ExecutableCodePart.functionCall@firebase/aiundefined
ExecutableCodePart.functionResponse@firebase/aiundefined
ExecutableCodePart.codeExecutionResult@firebase/aiundefined
CountTokensResponse.totalBillableCharacters@firebase/ainumber | undefined
FunctionResponsePart.text@firebase/aiundefined
FunctionResponsePart.inlineData@firebase/aiundefined
FunctionResponsePart.functionCall@firebase/aiundefined
FunctionResponsePart.executableCode@firebase/aiundefined
FunctionResponsePart.codeExecutionResult@firebase/aiundefined
CodeExecutionResultPart.text@firebase/aiundefined
CodeExecutionResultPart.thought@firebase/aiundefined
CodeExecutionResultPart.fileData@firebase/ainever
CodeExecutionResultPart.inlineData@firebase/aiundefined
CodeExecutionResultPart.functionCall@firebase/aiundefined
CodeExecutionResultPart.executableCode@firebase/aiundefined
CodeExecutionResultPart.functionResponse@firebase/aiundefined
LanguageModelCreateOptions.topK@firebase/ainumber | undefined
LanguageModelCreateOptions.temperature@firebase/ainumber | undefined
LanguageModelCreateCoreOptions.topK@firebase/ainumber | undefined
LanguageModelCreateCoreOptions.temperature@firebase/ainumber | undefined

Gewijzigde leden van klassen of interfaces

memberVoorNa
ChatSession.constructor(apiSettings: ApiSettings, model: string, chromeAdapter?: ChromeAdapter | undefined, params?: StartChatParams | undefined, requestOptions?: RequestOptions | undefined): ChatSession
GenerativeModel.generateContent(request: string | GenerateContentRequest | (string | Part)[], singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentResult>(request: string | (string | Part)[] | GenerateContentRequest, singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentResult>
GenerativeModel.generateContentStream(request: string | GenerateContentRequest | (string | Part)[], singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentStreamResult>(request: string | (string | Part)[] | GenerateContentRequest, singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentStreamResult>
ExecutableCodePart.executableCodeExecutableCode | undefinedExecutableCode
CodeExecutionResultPart.codeExecutionResultCodeExecutionResult | undefinedCodeExecutionResult
StartTemplateChatParams.templateVariablesRecord<string, unknown> | undefinedRecord<string, unknown>
TemplateGenerativeModel.generateContent(templateId: string, templateVariables: Record<string, unknown>, singleRequestOptions?: SingleRequestOptions | undefined, templateToolConfig?: TemplateToolConfig | undefined): Promise<GenerateContentResult>(request: TemplateRequest, singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentResult>
TemplateGenerativeModel.generateContentStream(templateId: string, templateVariables: Record<string, unknown>, singleRequestOptions?: SingleRequestOptions | undefined, templateToolConfig?: TemplateToolConfig | undefined): Promise<GenerateContentStreamResult>(request: TemplateRequest, singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentStreamResult>

Nieuw als verouderd gemarkeerd

export@deprecated
@firebase/ai · GenerationConfig.topKNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · GenerationConfig.topPNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · GenerationConfig.temperatureNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · GenerationConfig.candidateCountNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Make parallel requests instead.
@firebase/ai · GenerationConfig.presencePenaltyNot supported in Gemini 3.x and later models. Requests that include this parameter will fail with a 400 error. Omit this parameter.
@firebase/ai · GenerationConfig.frequencyPenaltyNot supported in Gemini 3.x and later models. Requests that include this parameter will fail with a 400 error. Omit this parameter.
@firebase/ai · LiveGenerationConfig.topKNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · LiveGenerationConfig.topPNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · LiveGenerationConfig.temperatureNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · LiveGenerationConfig.presencePenaltyNot supported in Gemini 3.x and later models. Requests that include this parameter will fail with a 400 error. Omit this parameter.
@firebase/ai · LiveGenerationConfig.frequencyPenaltyNot supported in Gemini 3.x and later models. Requests that include this parameter will fail with a 400 error. Omit this parameter.

Gewijzigde vereisten (engines, peer-afhankelijkheden)

VoorNa
engines.node>=20.0.0>=24.12.0
Nieuwe exports (1)
importexportkind
@firebase/aiTemplateRequestinterface

Geef je AI-agent deze feiten

Vigia is een gratis MCP-server: je coding-agent controleert versies, breaking changes en kwetsbaarheden voordat hij code schrijft. Geen account, geen API-sleutel.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Toevoegen aan CursorToevoegen aan VS Code★ Ster op GitHub

Elke andere MCP-client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Agent-skill (SKILL.md): vertelt de agent wanneer hij Vigia moet gebruiken · GitHub Action voor pull requests

Veelgestelde vragen

Wat zijn de brekende wijzigingen bij het upgraden van @firebase/ai van 2 naar 3?

Tussen @firebase/ai 2.16.0 en 3.0.0 vond Vigia 2 verwijderde exports, 3 gewijzigde signaturen en 61 verwijderde of gewijzigde leden van klassen of interfaces.

Wat is verouderd in @firebase/ai 3?

11 exports of leden zijn in @firebase/ai 3.0.0 nieuw als verouderd gemarkeerd.

Voor agents

GET https://vigia.coredls.cloud/v1/packages/npm/@firebase/ai/upgrade?from=2.16.0&to=3.0.0