Packages

ai

7.0.176 · 17 Nov 2026Apache-2.048.6M / weekRepositoryHomepagenpmAtom feed

Upgrading ai From 5.0.289 to 5.0.292

3 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 5.0.289Latest7.0.176
0
changes to make
0
advisories fixed
0
new
3
fixes

Release by release

  1. 5.0.292nothing new or fixed in the note

  2. 5.0.291

    17 Nov 20261 fix
    • Fixed

      Reduce memory and CPU usage when validating UI messages with deeply nested provider metadata. validateUIMessages and safeValidateUIMessages validated JSON values in providerMetadata and callProviderMetadata with 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.

  3. 5.0.290

    13 Nov 20262 fixes
    • Fixed

      Keep failed tool call error text consistent with the model's message history by default. Set redactToolErrors: true to replace it with the result of onError.

    • Fixed

      Prevent excessive memory and CPU usage when validating malformed UI messages. validateUIMessages and safeValidateUIMessages 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 metadata is reported as a single issue.

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