Packages

@ai-sdk/gateway

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

Upgrading @ai-sdk/gateway From 3.0.2 to 3.0.241

233 releases in betweennotes for 231

Other targets from 3.0.2Latest4.0.150
  1. 3.0.2yours
  2. 139 releases
  3. 3.0.144security
  4. 92 releases
  5. 3.0.241target
2+
changes to make
0
advisories fixed
49+
new
50+
fixes

Counted from 231 of 233 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Deprecated3.0.235
  • Deprecated3.0.220

Security

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

    3.0.144

Release by release

  1. 3.0.241nothing new or fixed in the note

  2. 3.0.238

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

  3. 3.0.237nothing new or fixed in the note

  4. 3.0.236

    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.

  5. 3.0.235

    Deprecation10 Nov 20261 new
    • Deprecated

      provider/gateway: Add developer-only variableCost, maxVariableCostUsd and extraBody options to takoSearch, and type Tako placeholder cards, relevance_score, premium and variable-cost pricing fields, and usage.variable_cost. Mark export_pricing.free_rows as deprecated and optional; Tako always sends 0 and will stop sending it.

    • New

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

  6. 3.0.234nothing new or fixed in the note

  7. 3.0.232

    9 Nov 20261 new
    • New

      provider/gateway: Type the headquarters provider option

  8. 3.0.228 – 3.0.2314 releases, nothing new or fixed in the notes

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