ai
7.0.176 · 17 Nov 2026Apache-2.048.6M / weekRepositoryHomepagenpmAtom feed
Upgrading ai From 5.0.288 to 5.0.292
4 releases in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 0
- advisories fixed
- 0
- new
- 4
- fixes
Release by release
5.0.292nothing new or fixed in the note
- Fixed
Reduce memory and CPU usage when validating UI messages with deeply nested provider metadata.
validateUIMessagesandsafeValidateUIMessagesvalidated JSON values inproviderMetadataandcallProviderMetadatawith 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
- 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.
validateUIMessagesandsafeValidateUIMessagesreported 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 metadata is reported as a single issue.
- Fixed
- Fixed
Fix excessive CPU usage when streaming long arrays with
streamObjectarray output. Parse and validate completed elements incrementally instead of repeatedly processing the entire accumulated array on every text chunk.
- Fixed
4 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.