ai
7.0.176 · 17 Nov 2026Apache-2.048.6M / weekRepositoryHomepagenpmAtom feed
Upgrading ai From 7.0.139 to 7.0.179
39 releases in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 26
- new
- 52
- fixes
Before you upgrade
Tick each one off as you go- Deprecated7.0.157
Release by release
- New
gateway: Support Live models over WebSocket
- New
- New
Add telemetry, runtime context and lifecycle callbacks to
experimental_extract - Fixed
generateTextandstreamTextpassed the messages array thatprepareStepreturned to tools and tool approval functions as it was. WhenprepareStepreturned the same array for several steps or calls, tool approval functions could not tell the tool calls of one model response from the tool calls of another. The messages array of every step is now created for that step, so the messages thatprepareStepreturns are copied. - Fixed
ai: Forward the
preliminaryflag on provider-executed tool results instreamText, so preliminary results (e.g. OpenAI image generation previews) are no longer recorded as final tool results in step content and response messages - Fixed
Redact file urls from download errors sent to telemetry
- Fixed
ai: Build the
ai,ai/internal, andai/testentrypoints together so their types stay compatible with each other - Fixed
With
experimental_toolApprovalSecretconfigured,generateTextandstreamTextsigned the approval request of a tool call that the tool approval policy had denied automatically. A client that controls the message history could send that request back with an approved response and have the denied tool call executed. Approval requests of automatically denied tool calls are no longer signed, so such a response is rejected withAI_InvalidToolApprovalSignatureError.
- New
- New
Add an interrupt option to steering so a steer can cancel a model call that has not produced output yet
- New
ai: Ship the AI SDK skill in the package at
skills/ai-sdkfor pnpm agent skills
- New
7.0.175 – 7.0.1762 releases, nothing new or fixed in the notes
- New
ai: Support
outputinstartBatchand parse it ingetBatchResults - New
Add extraction model support to provider registries, custom providers and string model ids
- Fixed
Fix
streamTextpassingtools: undefinedtoexperimental_transformfactories when notoolsare provided. Transforms now receive an empty tool set, matching theStreamTextTransformtype. - Fixed
Fix locked stream errors when telemetry subscribers or integrations replace a model stream whose request or response metadata requires credential redaction.
- Fixed
Prevent excessive memory and CPU usage when validating UI messages with deeply nested provider or tool metadata.
validateUIMessages,safeValidateUIMessages, and the agent UI stream helpers validated JSON values inproviderMetadata,callProviderMetadata,resultProviderMetadata,toolMetadata, and citation metadata with a recursive union schema that needed several times the memory of the value, so a valid request could exhaust the memory of a worker before the model was called. These values are now validated in a single pass and are no longer copied, except to remove__proto__keys. - Fixed
Centralize empty extraction value normalization in
experimental_extract, preserving missing-value behavior while removing duplicated conversion from extraction providers.
- New
- New
workflow: Support
toolApprovalinWorkflowAgent - Fixed
Prevent in-place schema validation or input refinement from changing approved tool arguments during approval replay.
- Fixed
workflow: Log provider warnings in
WorkflowAgent - Fixed
workflow: Align the
prepareStepresults ofWorkflowAgentwithToolLoopAgent. Returnedinstructions(or the deprecatedsystem) replace the instructions of the step and carry forward to later steps, returnedproviderOptionsare merged with the agent options, and returnedheadersare merged over the headers of the call.
- New
- Fixed
Require an explicit
experimental_downloadhook for remote file URLs inexperimental_extractandexperimental_decideinstead of silently downloading through global fetch. Callers can usecreateDownload({ fetch })with a DNS-protected transport for untrusted URLs; inline file data continues to work without a hook.
- Fixed
- New
Add experimental extract api and extraction model spec
- 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
Forward the provider's configured fetch transport when downloading file inputs. Add a
fetchoption tocreateDownloadso core downloads can also useguarded-fetchfor opt-in DNS validation on Node.js. The function returned bycreateDownloadcan now also be passed asexperimental_downloadtogenerateTextandstreamText, andexperimental_downloadnow also handles generated file URLs returned by the model, so one hook covers all core downloads. Document that the default URL checks do not resolve DNS and recommend the guarded transport or network egress controls for untrusted URLs. - Fixed
Warn when a UI message stream sends a tool error text that differs from the text the model received and then sends reasoning from a later step. By default,
toUIMessageStreamsends "An error occurred." to the client for a failed tool call, while the model receives the full error text during a multi-step call. Converting the stored UI messages back withconvertToModelMessagesthen changes the tool result, and models that bind reasoning to the preceding messages (for example Anthropic models with preserved thinking) reject the request. The request still fails after this change; the warning and the updated documentation explain the cause and the available options. - Fixed
Send the error text of failed tool calls to the client as the model received it.
- New
40 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.