chore(deps): bump @google/genai from 1.48.0 to 2.4.0#40
Conversation
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
Bumps [@google/genai](https://github.com/googleapis/js-genai) from 1.48.0 to 2.4.0. - [Release notes](https://github.com/googleapis/js-genai/releases) - [Changelog](https://github.com/googleapis/js-genai/blob/main/CHANGELOG.md) - [Commits](googleapis/js-genai@v1.48.0...v2.4.0) --- updated-dependencies: - dependency-name: "@google/genai" dependency-version: 2.2.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
ce8abd3 to
0dac16c
Compare
📝 WalkthroughWalkthroughThis PR updates the ChangesGoogle GenAI Dependency Update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
إغلاق: هذا الـ PR قديم وسيتم فتحه من جديد مع rebase لاحقاً |
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Bumps @google/genai from 1.48.0 to 2.4.0.
Release notes
Sourced from @google/genai's releases.
... (truncated)
Changelog
Sourced from @google/genai's changelog.
... (truncated)
Commits
dbe4484chore(main): release 2.4.0 (#1604)b0d9d2bfeat: support Agent and Environment APIs.3845122chore: Improve APIConnectionTimeoutError message.6bb8572chore: Deprecate image_config and response_mime_type1a3d94ffix: output_text for turns that don't end with text.2f3bfefchore(main): release 2.3.0 (#1594)0188233feat: interaction.{output_text,output_image,output_audio,output_video}2a51b78chore: Remove experimental warnings for interactionscd4d52cchore: Fix nondeterministic baseUrl errors1cc001cchore: CleanupInstall script changes
This version adds
preinstallscript that runs during installation. Review the package contents before updating.Summary by CodeRabbit
**Disclaimer This is AxiomID Review Agent.
Greptile Summary
This PR bumps
@google/genaifrom 1.48.0 to 2.4.0 (a major version jump), while the v2.0.0 breaking changes are scoped exclusively to the "interactions" API —generateContentusage in this codebase is unaffected. The lock file regeneration also drops orphaned@hookform/resolvers,react-hook-form, and@standard-schema/utilsentries that were already absent frompackage.json.@google/genai2.4.0 introduces apreinstallinstall script (flagged byhasInstallScript: truein the lock file); the script contents should be verified before merging.imageConfigused inscripts/gen-bg.mjsis deprecated in this release; it still works but should be migrated to the newresponse_formatfield.react-hook-form,@hookform/resolvers,minimatchmoved to dev) are cleaned up incidentally by the lock file regeneration.Confidence Score: 4/5
Safe to merge after manually verifying the new preinstall script contents in the published @google/genai 2.4.0 package.
The v2 breaking changes don't touch the generateContent paths used by this codebase. The main items to confirm before merging are the new preinstall script that now runs on every npm install, and the deprecated imageConfig field in gen-bg.mjs that will need migration before it is removed upstream.
scripts/gen-bg.mjs uses the deprecated imageConfig field; package-lock.json carries the new hasInstallScript flag for @google/genai.
Security Review
@google/genai2.4.0 adds apreinstallnpm script (hasInstallScript: truein lock file). This script executes automatically onnpm installin all environments including CI. The PR description explicitly flags this for review. Verify the published package's install script contents before merging.Important Files Changed
Sequence Diagram
sequenceDiagram participant App as Application Code participant GenAI as @google/genai v2.4.0 participant API as Gemini API App->>GenAI: "new GoogleGenAI({ apiKey })" App->>GenAI: "ai.models.generateContent({ model, contents, config })" Note over GenAI: imageConfig is deprecated in v2.4.0<br/>use response_format instead GenAI->>API: HTTP POST /generateContent API-->>GenAI: Response (candidates, parts) GenAI-->>App: GenerateContentResponseComments Outside Diff (1)
package-lock.json, line 1882-1895 (link)preinstallscript runs on install@google/genai2.4.0 setshasInstallScript: truein the lock file, meaning apreinstallscript will execute automatically duringnpm install. The PR description itself flags this for review before updating. Confirm the script's contents in the published package are acceptable for your CI/CD and developer environments before merging.Reviews (1): Last reviewed commit: "chore(deps): bump @google/genai from 1.4..." | Re-trigger Greptile