Packages

@ai-sdk/gateway

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

Upgrading @ai-sdk/gateway From 1.0.41 to 4.0.139

549 releases in betweennotes for 544

Other targets from 1.0.41Latest4.0.150
  1. 1.0.41yours
  2. 2.0.0major
  3. 178 releases
  4. 3.0.0major
  5. 235 releases
  6. 4.0.0major
  7. 8 releases
  8. 4.0.9security
  9. 123 releases
  10. 4.0.139target
  11. 60 pre
8+
changes to make
0
advisories fixed
100+
new
87+
fixes

Counted from 544 of 549 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
  • Breaking2.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.

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