@ai-sdk/gateway
4.0.150 · 18 Nov 2026Apache-2.047.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/gateway From 1.0.30 to 4.0.150
570 releases in betweennotes for 563
- 8+
- changes to make
- 0
- advisories fixed
- 104+
- new
- 94+
- fixes
Counted from 563 of 570 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
- 4.0.9
Prevent prototype pollution when synchronously parsing provider JSON inputs and expose
secureJsonParsefrom provider-utils.
Release by release
4.0.150nothing new or fixed in the note
- New
gateway: Add experimental extraction model support. String model ids passed to
experimental_extractnow resolve through the AI Gateway by default.
- New
- New
openai: Add GPT-6.2 Astra and GPT-6.2 Sol model support
- New
- 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
4.0.145 – 4.0.1462 releases, nothing new or fixed in the notes
- New
Add the
gemini-4-hydrogenmodel ID and support Hydrogen'sxhighthinking level in Google Generate Content and Interactions provider options. Map portablereasoning: 'xhigh'toxhighonly for Hydrogen models.
- New
4.0.143nothing new or fixed in the note
- New
Add support for the
gemini-4-carbonmodel with the same capabilities asgemini-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_rowsontakoSearchresults as a deprecated optional field, so code that reads it compiles again. Tako always sends 0 and will stop sending it.
- New
511 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.