Packages

@ai-sdk/google

4.0.122 · 17 Nov 2026Apache-2.014.6M / weekRepositoryHomepagenpmAtom feed

Upgrading @ai-sdk/google From 1.2.22 to 2.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.2.22Latest4.0.122
  1. 1.2.22yours
  2. 2.0.0target

Before you upgrade

Tick each one off as you go
  • Breaking2.0.0
  • Breaking2.0.0

Release by release

  1. 2.0.0

    Migration needed31 Jul 202514 new · 14 fixes
    • Breaking

      AI SDK 5

    • Breaking

      Removes (unsupported) additionalProperties from the Schema sent in the request payloads to Google APIs

    • New

      Add code execution provider defined tool

    • New

      Expose raw usageMetadata returned from Google Generative AI in providerMetadata

5 internal lines (docs, tests, tooling) left out.

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.