@google/generative-ai breaking changes
@google/generative-ai 0.24.0 (March 7, 2025) is its newest release with breaking changes, 7 of them. The first: Removed StringSchema.description. Every breaking API change we have recorded in @google/generative-ai on npm: 21 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.24.1, released April 29, 2025.
Packages on npm run on Node.js. Node.js end of life dates.
@google/generative-ai 0.24.0 breaking changes
- Removed
StringSchema.description
StringSchema.description was removed in @google/generative-ai 0.24.0 npmjs.com - Removed
StringSchema.enum
StringSchema.enum was removed in @google/generative-ai 0.24.0 npmjs.com - Removed
StringSchema.nullable
StringSchema.nullable was removed in @google/generative-ai 0.24.0 npmjs.com - Removed
StringSchema.type
StringSchema.type was removed in @google/generative-ai 0.24.0 npmjs.com - Behavior changed
String schemas are now checked for format safety, so schemas that previously passed may now be rejected. Review string schemas and update any unsafe formats. github.com - Signature changed
server:GoogleAIFileManager.uploadFile
Was uploadFile(filePath: string, fileMetadata: FileMetadata): Promise<UploadFileResponse>; now uploadFile(fileData: string | Buffer, fileMetadata: FileMetadata): Promise<UploadFileResponse>. npmjs.com - Signature changed
StringSchema
Was interface StringSchema extends BaseSchema; now type StringSchema = SimpleStringSchema | EnumStringSchema. npmjs.com
@google/generative-ai 0.22.0 breaking changes
- Removed
GroundingMetadata.groundingChuncks
GroundingMetadata.groundingChuncks was removed in @google/generative-ai 0.22.0 npmjs.com - Removed
GroundingMetadata.groundingSupport
GroundingMetadata.groundingSupport was removed in @google/generative-ai 0.22.0 npmjs.com - Removed
Schema.description
Schema.description was removed in @google/generative-ai 0.22.0 npmjs.com - Removed
Schema.enum
Schema.enum was removed in @google/generative-ai 0.22.0 npmjs.com - Removed
Schema.example
Schema.example was removed in @google/generative-ai 0.22.0 npmjs.com - Removed
Schema.format
Schema.format was removed in @google/generative-ai 0.22.0 npmjs.com - Removed
Schema.items
Schema.items was removed in @google/generative-ai 0.22.0 npmjs.com - Removed
Schema.nullable
Schema.nullable was removed in @google/generative-ai 0.22.0 npmjs.com - Removed
Schema.properties
Schema.properties was removed in @google/generative-ai 0.22.0 npmjs.com - Removed
Schema.required
Schema.required was removed in @google/generative-ai 0.22.0 npmjs.com
And 4 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.