Packages

@ai-sdk/gateway

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

Upgrading @ai-sdk/gateway From 3.0.141 to 4.0.150

240 releases in betweenevery note read

Other targets from 3.0.141Newest 3.x3.0.241
  1. 3.0.141yours
  2. 96 releases
  3. 4.0.0major
  4. 8 releases
  5. 4.0.9security
  6. 133 releases
  7. 4.0.150target
  8. 30 pre

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.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.150nothing new or fixed in the note

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

  3. 4.0.148

    17 Nov 20261 new
    • New

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

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

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

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

  7. 4.0.143nothing new or fixed in the note

  8. 4.0.142

    10 Nov 20261 new · 2 fixes
    • New

      Add support for the gemini-4-carbon model with the same capabilities as gemini-4-argon.

    • Fixed

      Use Zod Mini for internal validation schemas to reduce bundle size while preserving the public message schemas' classic Zod methods, error messages, and compatibility with supported Zod 3 and Zod 4 versions.

    • Fixed

      provider/gateway: Restore export_pricing.free_rows on takoSearch results as a deprecated optional field, so code that reads it compiles again. Tako always sends 0 and will stop sending it.

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