@ai-sdk/gateway
4.0.150 · 18 Nov 2026Apache-2.047.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/gateway From 3.0.136 to 3.0.241
101 releases in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 30
- new
- 18
- fixes
Before you upgrade
Tick each one off as you go- Deprecated3.0.235
- Deprecated3.0.220
Security
- 3.0.144
Prevent prototype pollution when synchronously parsing provider JSON inputs and expose
secureJsonParsefrom provider-utils.
Release by release
3.0.241nothing new or fixed in the note
- Fixed
Map AI Gateway
access_policy_deniederror responses (HTTP 403) to the newGatewayAccessPolicyDeniedErrorinstead ofGatewayInternalServerError. UseGatewayAccessPolicyDeniedError.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).
- Fixed
3.0.237nothing new or fixed in the note
- New
Add the
gemini-4-hydrogenmodel ID and support Hydrogen'sxhighthinking level in Google Generate Content and Interactions provider options.
- New
- Deprecated
provider/gateway: Add developer-only
variableCost,maxVariableCostUsdandextraBodyoptions totakoSearch, and type Tako placeholder cards,relevance_score, premium and variable-cost pricing fields, andusage.variable_cost. Markexport_pricing.free_rowsas deprecated and optional; Tako always sends 0 and will stop sending it. - New
Add support for the
gemini-4-carbonmodel with the same capabilities asgemini-4-argon.
- Deprecated
3.0.234nothing new or fixed in the note
- New
provider/gateway: Type the headquarters provider option
- New
3.0.228 – 3.0.2314 releases, nothing new or fixed in the notes
103 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.