Packages

ai

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

Upgrading ai From 5.0.286 to 7.0.165

488 releases in betweennotes for 487

Reading releases, release notes and advisories…

Other targets from 5.0.286Newest 5.x5.0.292Latest7.0.176
  1. 5.0.286yours
  2. 6 releases
  3. 6.0.0major
  4. 115 releases
  5. 6.0.116security
  6. 208 releases
  7. 7.0.0security
  8. 155 releases
  9. 7.0.165target
  10. 60 pre
46+
changes to make
0
advisories fixed
254+
new
385+
fixes

Counted from 487 of 488 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
  • Add URL validation to downloadBlob and download to prevent blind SSRF attacks. Private/internal IP addresses, localhost, and non-HTTP protocols are now rejected before fetching.

    6.0.116

Release by release

  1. 7.0.165

    7 Nov 20262 fixes
    • Fixed

      Remove transcription word timings from telemetry when recordOutputs is false

    • Fixed

      Sanitize provider request URLs before text generation results reach telemetry integrations and tracing subscribers, preventing endpoint credentials from being exposed.

  2. 7.0.164nothing new or fixed in the note

  3. 7.0.163

    5 Nov 20264 new · 9 fixes
    • New

      Support native URL transcription with an optional provider capability, keeping existing file-generation contracts unchanged. Groq sends HTTP(S) audio URLs through its url parameter without downloading and re-uploading them, avoiding the attachment upload limit. Supplying a custom download function retains local download behavior.

    • New

      ai: Support provider-owned realtime transports

    • New

      Expose optional transcription word timings separately from segments and accept shared timestampGranularities. Explicit provider timing settings take precedence. OpenAI now sends timestamp_granularities only with verbose_json and warns when a requested timing is unavailable or excluded.

    • New

      Add typed streaming heartbeat parts. Anthropic emits them only with includePings: true (disabled by default), without requiring raw chunks. Core forwards pings through stream retries without storing them as generated content or sending them to UI message streams. Consumers with exhaustive stream-part switches must handle the new ping union variant when upgrading, even when the opt-in is disabled. Typed pings do not flush partial words during stream smoothing.

  4. 7.0.162

    3 Nov 20261 new · 1 fix
    • New

      Support a single telemetry operation for durable WorkflowAgent runs, including the prompt, final output, steps, and tools. Events recorded in the workflow are reported on completion or suspension with their original timestamps. For OpenTelemetry, pass the same OpenTelemetryIdGenerator instance as the tracer provider's idGenerator and sampler and as new OpenTelemetry({ durable }). This explicit bridge carries parent trace context and sampling across steps, reports model spans live with provider requests nested beneath them, and reconstructs the enclosing invoke_agent tree when the run completes. Without the bridge, existing live per-model tracing is preserved. Add typed experimental durable context hooks for telemetry integrations; remove reliance on process-global ID-generator detection.

    • Fixed

      Restore server-defined tool metadata, dynamic status, and title when validating tool approval continuations so approval policies receive the same tool definition fields as new model calls.

  5. 7.0.161

    2 Nov 20263 fixes
    • Fixed

      ai: Support cross-realm Uint8Array and ArrayBuffer in DefaultGeneratedFile

    • Fixed

      ai: Handle cross-realm Uint8Array and ArrayBuffer in data-content and file-part-data

    • Fixed

      ai: Support cross-realm binary buffers and circular structures in cloneModelMessages

  6. 7.0.160

    2 Nov 20261 new · 2 fixes
    • New

      Add steering.queue() to send a message once the current task is done

    • Fixed

      ai: Clarify inverted smoothStream prefix error message

    • Fixed

      ai: Validate streamed data parts against dataPartSchemas

  7. 7.0.159nothing new or fixed in the note

  8. 7.0.158

    30 Oct 20261 new · 1 fix
    • New

      sandbox: Add stat, listDirectory, and deleteFile to Experimental_SandboxSession, and specify that relative paths in every method resolve against the directory run and spawn start in

    • Fixed

      ai: Repair partial JSON that ends with a minus sign at the start of an array

1 other line we could not sort, mostly version bumps
  • Revert "feat(ai): expose token usage in useChat onFinish callback#11871

    6.0.41

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