Packages

@ai-sdk/gateway

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

Upgrading @ai-sdk/gateway From 2.0.177 to 4.0.139

376 releases in betweennotes for 374

Other targets from 2.0.177Newest 2.x2.0.183Latest4.0.150
  1. 2.0.177yours
  2. 6 releases
  3. 3.0.0major
  4. 235 releases
  5. 4.0.0major
  6. 8 releases
  7. 4.0.9security
  8. 123 releases
  9. 4.0.139target
  10. 30 pre
7+
changes to make
0
advisories fixed
89+
new
75+
fixes

Counted from 374 of 376 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking3.0.0
  • Deprecated4.0.122
  • Deprecated3.0.235

Security

  • Prevent prototype pollution when synchronously parsing provider JSON inputs and expose secureJsonParse from provider-utils.

    4.0.9

Release by release

  1. 4.0.139

    9 Nov 20261 new
    • New

      provider/gateway: Type the headquarters provider option

  2. 4.0.137 – 4.0.1382 releases, nothing new or fixed in the notes

  3. 4.0.136

    5 Nov 20262 new · 4 fixes
    • New

      Add opt-in streaming decoding of large generated images to reduce peak memory.

    • New

      Add marketCost, surchargeCost, and gatewayCost fields to getGenerationInfo() results, surfacing the corresponding fields from the AI Gateway generation lookup API.

    • Fixed

      Preserve optional normalized word timings returned by transcription responses and warn when shared timestampGranularities requests are not forwarded by the gateway adapter.

    • Fixed

      Accept explicit uploaded-video outcomes in video generation and status responses.

    • Fixed

      Pass through seed: 0 instead of dropping it in image and video models. KlingAI now reports seed: 0 as an unsupported setting like any other seed.

    • Fixed

      Feat (provider/gateway): implement server-side realtime connection descriptors

  4. 4.0.134 – 4.0.1352 releases, nothing new or fixed in the notes

  5. 4.0.133

    2 Nov 20261 new
    • New

      provider/gateway: Add DeepSeek Search and Fetch tools

  6. 4.0.132nothing new or fixed in the note

  7. 4.0.131

    30 Oct 20261 new
    • New

      Support promises and synchronous or asynchronous callbacks in provider API key and token settings. Resolve credentials per authenticated request while preserving existing authentication behavior and synchronous credential serialization.

  8. 4.0.130

    29 Oct 20261 fix
    • Fixed

      gateway: Preserve AbortError and TimeoutError cancellation reasons instead of wrapping them in retryable GatewayResponseError errors with status 500. Propagate these errors from speech and transcription input streams to their output streams without leaving reads pending or causing unhandled rejections.

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