Packages

ai

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

Upgrading ai From 6.0.119 to 7.0.176

372 releases in betweennotes for 371

Reading releases, release notes and advisories…

Other targets from 6.0.119Newest 6.x6.0.333
  1. 6.0.119yours
  2. 205 releases
  3. 7.0.0security
  4. 165 releases
  5. 7.0.176target
  6. 30 pre
44+
changes to make
0
advisories fixed
169+
new
333+
fixes

Counted from 371 of 372 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0
  • Breaking7.0.0

Security

  • security: Validate redirect targets in download functions to prevent SSRF bypass

    7.0.0
  • Harden download URL SSRF guard against hostname and redirect bypasses

    7.0.0
  • Harden stream text processing and middleware against prototype pollution from stream part IDs.

    7.0.0
  • Harden UI message stream processing against prototype pollution from chunk IDs.

    7.0.0
  • mcp: Prevent prototype pollution by using secureJsonParse

    7.0.0

Release by release

  1. 7.0.175 – 7.0.1762 releases, nothing new or fixed in the notes

  2. 7.0.174

    17 Nov 20262 new · 4 fixes
    • New

      ai: Support output in startBatch and parse it in getBatchResults

    • New

      Add extraction model support to provider registries, custom providers and string model ids

    • Fixed

      Fix streamText passing tools: undefined to experimental_transform factories when no tools are provided. Transforms now receive an empty tool set, matching the StreamTextTransform type.

    • 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 in providerMetadata, 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.

  3. 7.0.173

    13 Nov 20261 new · 3 fixes
    • New

      workflow: Support toolApproval in WorkflowAgent

    • 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 prepareStep results of WorkflowAgent with ToolLoopAgent. Returned instructions (or the deprecated system) replace the instructions of the step and carry forward to later steps, returned providerOptions are merged with the agent options, and returned headers are merged over the headers of the call.

  4. 7.0.172

    13 Nov 20261 fix
    • Fixed

      Require an explicit experimental_download hook for remote file URLs in experimental_extract and experimental_decide instead of silently downloading through global fetch. Callers can use createDownload({ fetch }) with a DNS-protected transport for untrusted URLs; inline file data continues to work without a hook.

  5. 7.0.171

    12 Nov 20261 new · 4 fixes
    • 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 fetch option to createDownload so core downloads can also use guarded-fetch for opt-in DNS validation on Node.js. The function returned by createDownload can now also be passed as experimental_download to generateText and streamText, and experimental_download now 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, toUIMessageStream sends "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 with convertToModelMessages then 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.

  6. 7.0.170

    11 Nov 20262 fixes
    • Fixed

      Fix excessive CPU usage when streaming long arrays with Output.array or streamObject. Parse and validate completed elements incrementally instead of repeatedly processing the entire accumulated array on every text chunk.

    • Fixed

      Cancel pending send-now operations when a later stop or dispose occurs, preventing an abandoned chat's queued messages and history from being sent through a replacement transport.

  7. 7.0.169

    10 Nov 20262 fixes
    • 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

      Keep the request options when the useChat queue sends a tool approval first, and hold the queue while an async sendAutomaticallyWhen decides

  8. 7.0.168

    10 Nov 20261 new · 1 fix
    • New

      Add experimental_queue to useChat to queue messages sent while a response is in progress

    • Fixed

      ai: Call toUIMessageStream onError once per invalid tool call

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