Packages

@google/genai

3.6.1 · 18 Nov 2026Apache-2.032.9M / weekRepositoryHomepagenpmAtom feed

Upgrading @google/genai From 0.3.1 to 0.4.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.3.1Newest 0.x0.15.0Latest3.6.1
  1. 0.3.1yours
  2. 0.4.0target
1
change to make
0
advisories fixed
4
new
0
fixes

Before you upgrade

Tick each one off as you go
  • Breaking0.4.0

Release by release

  1. 0.4.0

    Migration needed14 Mar 20254 new
    • Breaking

      Remove the createPartFromVideoMetadata usability function.

    • New

      Enable union type for Schema when calling Gemini API.

    • New

      Provide a better error message when trying to use VertexAI in browsers.

    • New

      Support returned safety attributes for generate_images

    • New

      Throw exception when given method is not supported in Gemini API or Vertex AI

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.