ai
7.0.176 · 17 Nov 2026Apache-2.048.6M / weekRepositoryHomepagenpmAtom feed
Upgrading ai From 6.0.167 to 6.0.333
157 releases in betweenevery note read
Reading releases, release notes and advisories…
Security
- 6.0.203
Harden download URL SSRF guard against hostname and redirect bypasses
- 6.0.203
Harden stream text processing and middleware against prototype pollution from stream part IDs.
- 6.0.200
Harden UI message stream processing against prototype pollution from chunk IDs.
- 6.0.171
mcp: Prevent prototype pollution by using secureJsonParse
Release by release
- Fixed
Reduce memory and CPU usage when validating UI messages with deeply nested provider or tool metadata.
validateUIMessagesandsafeValidateUIMessages, which the agent UI stream helpers also use, validated JSON values inproviderMetadata,callProviderMetadata,resultProviderMetadata, andtoolMetadatawith a recursive union schema that needed several times the memory of the value. These values are now validated in a single pass and are no longer copied, except to remove__proto__keys.
- Fixed
6.0.332nothing new or fixed in the note
- Fixed
Keep failed tool call error text consistent with the model's message history by default. Set
redactToolErrors: trueto replace it with the result ofonError. - Fixed
Prevent excessive memory and CPU usage when validating malformed UI messages.
validateUIMessages,safeValidateUIMessages, and the agent UI stream helpers reported the issues of every part schema for every invalid part, so a small request with many malformed parts could exhaust memory. Each part is now validated against the schemas for its type only, validation stops at the first invalid message or part, and an invalid JSON value in provider or tool metadata is reported as a single issue.
- Fixed
- Fixed
Fix excessive CPU usage when streaming long arrays with
Output.arrayorstreamObject. Parse and validate completed elements incrementally instead of repeatedly processing the entire accumulated array on every text chunk.
- Fixed
6.0.329nothing new or fixed in the note
- Fixed
Redact OpenAI MCP authorization and header values, and Code Interpreter and shell domain-secret values, from tool definitions recorded in generateText and streamText telemetry. Preserve the original application and provider arguments.
- Fixed
6.0.326nothing new or fixed in the note
- Fixed
Hide provider metadata from telemetry when recordOutputs is false
- Fixed
131 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.