ai
7.0.176 · 17 Nov 2026Apache-2.048.6M / weekRepositoryHomepagenpmAtom feed
Upgrading ai From 6.0.325 to 7.0.165
164 releases in betweenevery note read
Reading releases, release notes and advisories…
- 44
- changes to make
- 0
- advisories fixed
- 163
- new
- 290
- fixes
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
- 7.0.0
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
Release by release
- 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.
- Fixed
7.0.164nothing new or fixed in the note
- New
Support native URL transcription with an optional provider capability, keeping existing file-generation contracts unchanged. Groq sends HTTP(S) audio URLs through its
urlparameter without downloading and re-uploading them, avoiding the attachment upload limit. Supplying a customdownloadfunction 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 newpingunion variant when upgrading, even when the opt-in is disabled. Typed pings do not flush partial words during stream smoothing.
- New
- New
Support a single telemetry operation for durable
WorkflowAgentruns, 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 sameOpenTelemetryIdGeneratorinstance as the tracer provider'sidGeneratorandsamplerand asnew 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 enclosinginvoke_agenttree 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.
- New
- 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
- Fixed
- 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
- New
7.0.159nothing new or fixed in the note
- New
sandbox: Add
stat,listDirectory, anddeleteFiletoExperimental_SandboxSession, and specify that relative paths in every method resolve against the directoryrunandspawnstart in - Fixed
ai: Repair partial JSON that ends with a minus sign at the start of an array
- New
154 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.