Packages

@ai-sdk/google

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

Upgrading @ai-sdk/google From 3.0.147 to 4.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.0.147Latest4.0.122
  1. 3.0.147yours
  2. 4.0.0target

Before you upgrade

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

Security

  • google: Prevent prototype pollution when streaming tool args

    4.0.0

Release by release

  1. 4.0.0

    Security fix25 Jun 202625 new · 19 fixes
    • Security

      google: Prevent prototype pollution when streaming tool args

    • Breaking

      provider/google: Remove useless GenerativeAI affix from types and classes for consistency

    • Breaking

      provider: Add support for reasoning-file type for files that are part of reasoning

    • Breaking

      Remove CommonJS exports from all packages. All packages are now ESM-only ("type": "module"). Consumers using require() must switch to ESM import syntax.

7 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.