build: update dependency @google/genai to v2#3655
build: update dependency @google/genai to v2#3655angular-robot wants to merge 1 commit intoangular:mainfrom
Conversation
See associated pull request for more information.
There was a problem hiding this comment.
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.
| "@actions/core": "3.0.1", | ||
| "@google-cloud/spanner": "8.0.0", | ||
| "@google/genai": "1.52.0", | ||
| "@google/genai": "2.0.1", |
There was a problem hiding this comment.
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.
This PR contains the following updates:
1.52.0→2.0.1^1.43.0→^2.0.0Release Notes
googleapis/js-genai (@google/genai)
v2.0.1Compare Source
Bug Fixes
v2.0.0Compare Source
⚠ BREAKING CHANGES - Interactions Only
Note: The breaking changes are only in interactions.
GenerateContentusage in unaffected.Refer to https://ai.google.dev/gemini-api/docs/interactions-breaking-changes-may-2026 for details
Bug Fixes