Skip to content

build(deps): bump @google/genai from 1.52.0 to 2.6.0#205

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/google/genai-2.6.0
Open

build(deps): bump @google/genai from 1.52.0 to 2.6.0#205
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/google/genai-2.6.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 27, 2026

Bumps @google/genai from 1.52.0 to 2.6.0.

Release notes

Sourced from @​google/genai's releases.

v2.6.0

2.6.0 (2026-05-21)

Features

  • add enable_prompt_injection_detection for Computer Use feature for the Gemini API. (f780f3c)
  • Add budget_exceeded status (1e97bd0)
  • Add gemini-3.5-flash (1e97bd0)
  • add new fields (b78eeee)

v2.5.0

2.5.0 (2026-05-20)

Features

  • Add Gemini 3.5 Flash model to options (fcf26e3)

v2.4.0

2.4.0 (2026-05-17)

Features

  • support Agent and Environment APIs. (b0d9d2b)

Bug Fixes

  • output_text for turns that don't end with text. (1a3d94f)

v2.3.0

2.3.0 (2026-05-15)

Features

  • interaction.{output_text,output_image,output_audio,output_video} (0188233)

v2.2.0

2.2.0 (2026-05-12)

Features

  • Added missing FunctionCallResultDelta type and arguments field to the ArgumentDelta type (f76138b)

v2.1.0

2.1.0 (2026-05-12)

... (truncated)

Changelog

Sourced from @​google/genai's changelog.

2.6.0 (2026-05-21)

Features

  • add enable_prompt_injection_detection for Computer Use feature for the Gemini API. (f780f3c)
  • Add budget_exceeded status (1e97bd0)
  • Add gemini-3.5-flash (1e97bd0)
  • add new fields (b78eeee)

2.5.0 (2026-05-20)

Features

  • Add Gemini 3.5 Flash model to options (fcf26e3)

2.4.0 (2026-05-17)

Features

  • support Agent and Environment APIs. (b0d9d2b)

Bug Fixes

  • output_text for turns that don't end with text. (1a3d94f)

2.3.0 (2026-05-15)

Features

  • interaction.{output_text,output_image,output_audio,output_video} (0188233)

2.2.0 (2026-05-12)

Features

  • Added missing FunctionCallResultDelta type and arguments field to the ArgumentDelta type (f76138b)

2.1.0 (2026-05-12)

Features

  • Add gemini-3.1-flash-lite to model options (b0664e1)
  • Add parameters to video response_format. (207c8f8)

... (truncated)

Commits
  • a631549 chore(main): release 2.6.0 (#1623)
  • f780f3c feat: add enable_prompt_injection_detection for Computer Use feature for th...
  • b78eeee feat: add new fields
  • 1e97bd0 feat: Add budget_exceeded status
  • 2cb1814 chore(main): release 2.5.0 (#1616)
  • f06e3a2 chore: update comment in BatchJobOutputInfo to unblock javadoc generation
  • fcf26e3 feat: Add Gemini 3.5 Flash model to options
  • b252753 chore: Cleanup
  • dbe4484 chore(main): release 2.4.0 (#1604)
  • b0d9d2b feat: support Agent and Environment APIs.
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 27, 2026
@dependabot dependabot Bot requested a review from a team as a code owner May 27, 2026 19:51
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 27, 2026

Greptile Summary

This is an automated dependency bump of @google/genai from ^1.52.0 to ^2.6.0. The v2.0.0 release notes explicitly state that breaking changes are confined to the Interactions API only — generateContent usage is unaffected — and the codebase exclusively uses generateContent along with stable exports (GoogleGenAI, FinishReason, ThinkingLevel, ThinkingConfig).

  • The Gemini provider (packages/core/src/providers/gemini/provider.ts) calls client.models.generateContent(...) and reads response.text / response.candidates, all of which remain unchanged across this major version bump.
  • ThinkingLevel (HIGH / MEDIUM / LOW) and thinkingBudget are still present and correctly gated behind model-family checks that match the current Google documentation guidance.

Confidence Score: 5/5

Safe to merge — the only changed file in production code is the package version; all API calls made by the codebase are unaffected by the v2 major version bump.

The v2.0.0 breaking changes apply exclusively to the Interactions API (SSE events and response_format deprecation), which this codebase never uses. Every import and API call in the Gemini provider (generateContent, FinishReason, ThinkingLevel, ThinkingConfig, response.text) is unchanged in v2.x, so there is no regression risk from this upgrade.

No files require special attention.

Important Files Changed

Filename Overview
packages/core/package.json Bumps @google/genai from ^1.52.0 to ^2.6.0; only this version range is changed.
package-lock.json Lock file updated to resolve @google/genai 2.6.0 and its transitive dependencies.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["GeminiProvider.callModel()"] --> B["client.models.generateContent()"]
    B --> C{"response.candidates[0].finishReason"}
    C -->|"SAFETY"| D["Throw ErodeError\n(PROVIDER_SAFETY_BLOCK)"]
    C -->|"MAX_TOKENS"| E["Throw ErodeError\n(PROVIDER_INVALID_RESPONSE)"]
    C -->|"other"| F{"response.text?"}
    F -->|"empty"| G["Throw ErodeError\n(PROVIDER_INVALID_RESPONSE)"]
    F -->|"present"| H["Return text"]

    subgraph ThinkingConfig
        I["isGemini25Model?"] -->|yes| J["thinkingBudget: -1 or 0"]
        I -->|no| K["isGemini3Model?"]
        K -->|yes| L["thinkingLevel: HIGH/MEDIUM/LOW"]
        K -->|no| M["empty config {}"]
    end

    A --> ThinkingConfig
    ThinkingConfig --> B
Loading

Reviews (5): Last reviewed commit: "build(deps): bump @google/genai from 1.5..." | Re-trigger Greptile

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/google/genai-2.6.0 branch 3 times, most recently from 01350c0 to d20f207 Compare May 27, 2026 20:04
Bumps [@google/genai](https://github.com/googleapis/js-genai) from 1.52.0 to 2.6.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.52.0...v2.6.0)

---
updated-dependencies:
- dependency-name: "@google/genai"
  dependency-version: 2.6.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/google/genai-2.6.0 branch from d20f207 to 6c1e0fc Compare May 27, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants