Skip to content

build: update dependency @google/genai to v2#3655

Open
angular-robot wants to merge 1 commit into
angular:mainfrom
angular-robot:ng-renovate/google-genai-2-x
Open

build: update dependency @google/genai to v2#3655
angular-robot wants to merge 1 commit into
angular:mainfrom
angular-robot:ng-renovate/google-genai-2-x

Conversation

@angular-robot
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@google/genai 1.52.02.0.1 age adoption passing confidence
@google/genai ^1.43.0^2.0.0 age adoption passing confidence

  • If you want to rebase/retry this PR, check this box

Release Notes

googleapis/js-genai (@​google/genai)

v2.0.1

Compare Source

Bug Fixes
  • Update response_format field names to snake_case. (26af549)

v2.0.0

Compare Source

⚠ BREAKING CHANGES - Interactions Only

Note: The breaking changes are only in interactions. GenerateContent usage in unaffected.
Refer to https://ai.google.dev/gemini-api/docs/interactions-breaking-changes-may-2026 for details

  • Add steps for interactions (c0814c4)
  • Deprecate legacy response_format and publish new polymorphic field. (68a6809)
  • Rename SSE events to interaction.created and interaction.completed (d1b836b)
Bug Fixes
  • timeout not functioning (850f680)

See associated pull request for more information.
@angular-robot angular-robot added action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: automation This PR is targeted to only merge into the branch defined in Github [bot use only] labels May 11, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the @google/genai dependency from version 1.x to 2.x across multiple packages. A critical issue was identified where the major version upgrade introduces breaking changes, particularly in the 'interactions' feature, which have not been addressed in the application code. This oversight could lead to runtime errors and requires corresponding code updates to ensure compatibility with the v2 API.

Comment thread ng-dev/package.json
"@actions/core": "3.0.1",
"@google-cloud/spanner": "8.0.0",
"@google/genai": "1.52.0",
"@google/genai": "2.0.1",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Upgrading @google/genai to a new major version (v2) introduces breaking changes, particularly around the 'interactions' feature, as noted in the release logs. This PR only contains the dependency update and lacks the corresponding code changes to address these breaking changes. This will likely cause runtime errors if the 'interactions' feature is being used.

To resolve this, the code that consumes @google/genai must be updated to align with the v2 API. Merging this PR as-is poses a significant risk to application stability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: automation This PR is targeted to only merge into the branch defined in Github [bot use only]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant