Packages

@ai-sdk/gateway

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

Upgrading @ai-sdk/gateway From 4.0.0 to 4.0.152

145 releases in betweenevery note read

Other targets from 4.0.0Latest4.0.150
  1. 4.0.0yours
  2. 8 releases
  3. 4.0.9security
  4. 135 releases
  5. 4.0.152target

Before you upgrade

Tick each one off as you go
  • Deprecated4.0.122

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

    20 Nov 20261 new
    • New

      gateway: Support Live models over WebSocket

  2. 4.0.151

    20 Nov 20261 new · 1 fix
    • New

      google: Add the gemini-4-neon model ID with xhigh thinking support

    • Fixed

      Derive model ID types from a single modality-specific catalog and update model generation to maintain the catalog.

  3. 4.0.150nothing new or fixed in the note

  4. 4.0.149

    17 Nov 20261 new
    • New

      gateway: Add experimental extraction model support. String model ids passed to experimental_extract now resolve through the AI Gateway by default.

  5. 4.0.148

    17 Nov 20261 new
    • New

      openai: Add GPT-6.2 Astra and GPT-6.2 Sol model support

  6. 4.0.147

    17 Nov 20261 fix
    • Fixed

      Map AI Gateway access_policy_denied error responses (HTTP 403) to the new GatewayAccessPolicyDeniedError instead of GatewayInternalServerError. Use GatewayAccessPolicyDeniedError.isInstance(error) to tell an access policy denial from other 403 errors. When the response includes them, the error exposes the denying policy IDs (policyIds) and the models and providers the policies removed (removedModels, removedProviders).

  7. 4.0.145 – 4.0.1462 releases, nothing new or fixed in the notes

  8. 4.0.144

    12 Nov 20261 new
    • New

      Add the gemini-4-hydrogen model ID and support Hydrogen's xhigh thinking level in Google Generate Content and Interactions provider options. Map portable reasoning: 'xhigh' to xhigh only for Hydrogen models.

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