Packages

@ai-sdk/gateway

4.0.150 · 18 Nov 2026Apache-2.047.3M / weekRepositoryHomepagenpmAtom feed

Upgrading @ai-sdk/gateway From 3.0.241 to 4.0.0

1 release in betweenevery note read

Other targets from 3.0.241Latest4.0.150
  1. 3.0.241yours
  2. 4.0.0target
  3. 30 pre

Before you upgrade

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

Release by release

  1. 4.0.0

    Migration needed25 Jun 202616 new · 22 fixes
    • Breaking

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

    • Breaking

      Start v7 pre-release

    • Breaking

      Make provider implementations code patterns more consistent, including renaming certain exported symbols

    • Breaking

      Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.

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