@google/genai
3.6.1 · 18 Nov 2026Apache-2.032.9M / weekRepositoryHomepagenpmAtom feed
Upgrading @google/genai From 2.32.0 to 3.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 4
- changes to make
- 0
- advisories fixed
- 9
- new
- 4
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
Release by release
- Breaking
Default Gemini Developer API version is now
v1(wasv1beta) - Breaking
Minimum supported Node.js version is now 22 (was 20)
- Breaking
interactions:
CodeExecutionResultStep.resultis now typed asArray<Content> | string(CodeExecutionResultStepResult) instead ofstring(b36ce99). The JSON and runtime value for text-only results are still a plainstring, but TypeScript code readingstep.resultas astringmay need to narrow the union (typeof step.result === 'string'). - Breaking
Drop support for Node 20; Node.js >=22 is now required
- Breaking
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.