fix(deps): update dependency ai to v6 [security]#17
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
fix(deps): update dependency ai to v6 [security]#17renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
Comment |
14319b6 to
7a2abc5
Compare
a935a57 to
c41afcd
Compare
66b29d4 to
0726482
Compare
0726482 to
73d8ffc
Compare
73d8ffc to
89ee48d
Compare
89ee48d to
232ff70
Compare
232ff70 to
cb19e59
Compare
cb19e59 to
27a75e2
Compare
27a75e2 to
90f43b0
Compare
90f43b0 to
ddf8c75
Compare
ddf8c75 to
4236dca
Compare
4236dca to
2bbfc71
Compare
2bbfc71 to
db235d0
Compare
db235d0 to
d21c8fe
Compare
d21c8fe to
55ac031
Compare
55ac031 to
c4b57c7
Compare
c4b57c7 to
52e313f
Compare
52e313f to
339ea40
Compare
339ea40 to
20a61e3
Compare
20a61e3 to
4dfa1a5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.3.16→^6.0.0GitHub Vulnerability Alerts
CVE-2025-48985
A vulnerability in Vercel’s AI SDK has been fixed in versions 5.0.52, 5.1.0-beta.9, and 6.0.0-beta. This issue may have allowed users to bypass filetype whitelists when uploading files. All users are encouraged to upgrade.
Release Notes
vercel/ai (ai)
v6.0.116Compare Source
Patch Changes
ad4cfc2: Add URL validation todownloadBlobanddownloadto prevent blind SSRF attacks. Private/internal IP addresses, localhost, and non-HTTP protocols are now rejected before fetching.ad4cfc2]v6.0.115Compare Source
Patch Changes
824b295]v6.0.114Compare Source
Patch Changes
2291047: fix(ai): fix missing support for image thought signatures (e.g. for Gemini image models)v6.0.113Compare Source
Patch Changes
70d3980: fix(ai): use errorMode 'text' in approval continuation to preserve tool error messagesv6.0.112Compare Source
Patch Changes
db3d4ca]v6.0.111Compare Source
Patch Changes
2129c82: feat(ai): register global telemetry integrationsv6.0.110Compare Source
Patch Changes
1b01ec1]8df8e11]v6.0.109Compare Source
Patch Changes
10bec50]v6.0.108Compare Source
Patch Changes
2a4f512: feat(ai): add telemetry interface and registryv6.0.107Compare Source
Patch Changes
08336f1]v6.0.106Compare Source
Patch Changes
29e9f4d]v6.0.105Compare Source
Patch Changes
58bc42d]v6.0.104Compare Source
Patch Changes
1330f2f]v6.0.103Compare Source
Patch Changes
ba63bc2]v6.0.102Compare Source
Patch Changes
45f0a7f]v6.0.101Compare Source
Patch Changes
5230482: fix(ai): Don't create duplicate tool parts when models call non-existent toolsv6.0.100Compare Source
Patch Changes
b7fba77: feat(ai): add event notifiers to core functionsv6.0.99Compare Source
Patch Changes
e8172b6]v6.0.98Compare Source
Patch Changes
0c9395b]v6.0.97Compare Source
Patch Changes
ebfdad1: feat(ai): experimental callbacks in ToolLoopAgentv6.0.96Compare Source
Patch Changes
30c9de6: feat(ai): experimental callbacks for streamTextv6.0.95Compare Source
Patch Changes
73b7e09]v6.0.94Compare Source
Patch Changes
363fa44]v6.0.93Compare Source
Patch Changes
d3769ec: feat(ai): add experimental callbacks in generateTextv6.0.92Compare Source
Patch Changes
765b013]v6.0.91Compare Source
Patch Changes
a433cd3]v6.0.90Compare Source
Patch Changes
98e83ab: FixuseChatstatus briefly flashing tosubmittedon page load whenresume: trueis set and there is no active stream to resume. ThereconnectToStreamcheck is now performed before setting status tosubmitted, so status staysreadywhen the server responds with 204 (no active stream).v6.0.89Compare Source
Patch Changes
5f693c8]v6.0.88Compare Source
Patch Changes
2a1c664]v6.0.87Compare Source
Patch Changes
6bbd05b]v6.0.86Compare Source
Patch Changes
f75f18c]v6.0.85Compare Source
Patch Changes
e858654]v6.0.84Compare Source
Patch Changes
4024a3a: security: prevent unbounded memory growth in download functionsThe
download()anddownloadBlob()functions now enforce a default 2 GiB size limit when downloading from user-provided URLs. Downloads that exceed this limit are aborted with aDownloadErrorinstead of consuming unbounded memory and crashing the process. TheabortSignalparameter is now passed through tofetch()in all download call sites.Added
downloadoption totranscribe()andexperimental_generateVideo()for providing a custom download function. Use the newcreateDownload({ maxBytes })factory to configure download size limits.Updated dependencies [
4024a3a]v6.0.83Compare Source
Patch Changes
b424e50]v6.0.82Compare Source
Patch Changes
1819bc1]v6.0.81Compare Source
Patch Changes
ee4beee: feat(ai): add onStepFinish callback to createUIMessageStreamv6.0.80Compare Source
Patch Changes
99fbed8]v6.0.79Compare Source
Patch Changes
a2208a2]v6.0.78Compare Source
Patch Changes
59fcf30: fix(ai): make experimental_context required in ToolLoopAgentOnFinishCallbackThis fixes a type inconsistency where
ToolLoopAgentOnFinishCallbackhadexperimental_contextas optional whileStreamTextOnFinishCallbackandGenerateTextOnFinishCallbackhad it as required. SinceToolLoopAgentdelegates tostreamText/generateText, and both always passexperimental_contextwhen invoking the callback, the types should match.v6.0.77Compare Source
Patch Changes
eea5d30]v6.0.76Compare Source
Patch Changes
70028ab]v6.0.75Compare Source
Patch Changes
7168375: feat (ai, provider): default global provider video model resolution7168375]v6.0.74Compare Source
Patch Changes
471009b: fix(ai): pass reasoning text in telemetryv6.0.73Patch Changes
9892c58]v6.0.72Patch Changes
8e2eaac]v6.0.71Compare Source
Patch Changes
4867635]v6.0.70Compare Source
Patch Changes
ae30443]v6.0.69Compare Source
Patch Changes
d659305: fix(ai): auto-populateoriginalMessagesincreateAgentUIStreamv6.0.68Compare Source
Patch Changes
8bf2660: chore(ai): exportDefaultGeneratedFilev6.0.67Compare Source
Patch Changes
53f6731: feat (ai, provider): experimental generate video support53f6731]v6.0.66Compare Source
Patch Changes
96936e5]v6.0.65Compare Source
Patch Changes
1a74972]v6.0.64Compare Source
Patch Changes
ce9daa3: Fixed 'reasoning part reasoning-0 not found' error by ensuring 'reasoning-start' event is emitted for empty thinking blocks (eg. )v6.0.63Patch Changes
be95579: fix(ui): respectPromise<false>when returned bysendAutomaticallyWhenv6.0.62Patch Changes
2810850: fix(ai): improve type validation error messages with field paths and entity identifiers2810850]v6.0.61Patch Changes
1524271]v6.0.60Patch Changes
5fc42fa: feat(ai): add experimental retention settingv6.0.59Patch Changes
0acff64]v6.0.58Patch Changes
a8be296]v6.0.57Patch Changes
65865d8: Fix handling of error results in deferrable toolsv6.0.56Patch Changes
15a78c7]v6.0.55Patch Changes
43a74df: chore(ai): add skill to READMEv6.0.54Patch Changes
2f8ac87: docs(ai): fix incorrect and outdated jsdocv6.0.53Patch Changes
7ee3f10: chore: updated docsv6.0.52Patch Changes
462ad00]v6.0.51Patch Changes
ea0feb5: fix(ai): clean up step timeout when error occurs in streamTextv6.0.50Compare Source
Patch Changes
cbf1704]v6.0.49Patch Changes
ded661b: feat(ai): add onStepFinish to agent.generate and agent.streamv6.0.48Patch Changes
4de5a1d: chore: excluded tests from src folder in npm package4de5a1d]v6.0.47Patch Changes
2b8369d]v6.0.46v6.0.45Patch Changes
c60fdd8]v6.0.44Compare Source
Patch Changes
7af4eb4]v6.0.43Compare Source
Patch Changes
2dc9bfa: fix(ai): handle provider-executed tools and tool-approval-response in validationproviderExecuted: true(deferred results)v6.0.42Compare Source
Patch Changes
66d78d5]v6.0.41Compare Source
Patch Changes
84b6e6d: Revert "feat(ai): expose token usage in useChat onFinish callback#11871v6.0.40Compare Source
Patch Changes
ab57783: Add usage information to onFinish callback in useChatv6.0.39Compare Source
Patch Changes
4e28ba0: fix(ai): propagate providerMetadata during input-streaming stateProvider-executed tools (like MCP tools) need to send metadata during the streaming phase, but the implementation only set
callProviderMetadatawhenpart.state === "input-available". This fix removes the overly-restrictive state check and addscallProviderMetadatato the input-streaming state types and schemas.v6.0.38Compare Source
Patch Changes
5c090e7]v6.0.37Compare Source
Patch Changes
b5dab9b: fix(ai): maintain OpenTelemetry context across async generator yieldsFixes an issue where OpenTelemetry context was lost at async generator yield boundaries, causing nested ToolLoopAgent spans to escape to the parent agent's level in observability platforms.
The fix ensures that when
recordSpanis used with async generators (e.g., in tool execution), the active context is explicitly maintained usingcontext.with(), preventing span hierarchy corruption in nested agent scenarios.Closes #11720
v6.0.36Compare Source
Patch Changes
46f46e4: fix(provider-utils): improve tool type inference when usinginputExampleswith Zod schemas that use.optional().default()or.refine().46f46e4]v6.0.35Compare Source
Patch Changes
d7e7f1f: Add descriptive error messages for malformed UIMessageStream chunks.v6.0.34Compare Source
Patch Changes
1b11dcb: chore(ai): include sources in npm package1b11dcb]v6.0.33Compare Source
Patch Changes
0ca078c: fix(ai): pass providerMetadata in smooth stream to preserve thinking tagv6.0.32Compare Source
Patch Changes
ec24401: chore(ai): include docs in npm packagev6.0.31Compare Source
Patch Changes
92b339b]v6.0.30Compare Source
Patch Changes
34d1c8a]v6.0.29Compare Source
Patch Changes
fdce123: docs: update README with usage example for @ai-sdk/anthropicv6.0.28Compare Source
Patch Changes
d4486d2: fix(ai): do not cleanup AsyncIterableStream twicev6.0.27Compare Source
Patch Changes
891a60a]v6.0.26Compare Source
Patch Changes
40d4997: feat(ai): add middleware for extracting JSONv6.0.25Compare Source
Patch Changes
b64f256: AddelementStreamtostreamTextfor streaming individual array elements when usingoutput: Output.array().v6.0.24Compare Source
Patch Changes
4f236c8: feat(ai): per-chunk timeouts for streamTextv6.0.23Compare Source
Patch Changes
a4c680a: feat(ai): per-step timeouts for generateText and streamText8c6f067: feat(ai): support Intl.Segmenter in smoothStreamv6.0.22Compare Source
Patch Changes
f0d29de: chore(ai): remove _internal.currentDate from streamTextv6.0.21Compare Source
Patch Changes
9667780: fix(ai): preserverawInputinsafeValidateUIMessagesforoutput-errortool partsFixes #11406
v6.0.20Compare Source
Patch Changes
f748c46: Updated Unified Provider Architecture section in README to describe AI Gateway as the default.v6.0.19Compare Source
Patch Changes
2696fd2]v6.0.18Compare Source
Patch Changes
d6ec0e2: chore(ai): remove _internal.currentDate from generateTextv6.0.17Compare Source
Patch Changes
af0955e: streamText should throw timeout error with proper cause when it times outv6.0.16Compare Source
Patch Changes
81adf59: feat(ai): introduce timeout configuration objectv6.0.15Compare Source
Patch Changes
3a73fb3: Include abort reason in stream chunks and document the new fieldv6.0.14Compare Source
Patch Changes
3f9453f: feat(ai): add timeout option to generateText, streamText, and Agentv6.0.13Compare Source
Patch Changes
e2c445d: feat(ai): smoothStream reasoning supportv6.0.12Compare Source
Patch Changes
d937c8f: Add Image model middleware support viawrapImageModelandImageModelV3Middleware.d937c8f]v6.0.11Compare Source
Patch Changes
8ec1984]v6.0.10Compare Source
Patch Changes
ae26f95: Add missing.catch()handler toexecuteToolCallpromise inrunToolsTransformationto prevent potential stream hang when the promise rejects.v6.0.9Compare Source
Patch Changes
4e90233: feat(ui): add DirectChatTransportv6.0.8Compare Source
Patch Changes
0b429d4]v6.0.7Compare Source
Patch Changes
74c0157]v6.0.6Compare Source
Patch Changes
7ee2d12]v6.0.5Compare Source
Patch Changes
863d34f: fix: trigger release to update@latest863d34f]v6.0.4Compare Source
Patch Changes
1dad057]v6.0.3Compare Source
Patch Changes
29264a3: feat: add MCP tool approval29264a3]v6.0.2Compare Source
Patch Changes
129ff26: fix(ai): skip tool input validation insafeValidateUIMessageswhenoutput-errorstate has undefined inputFixes #11392
Updated dependencies [
c0c8a0e]v6.0.1Compare Source
Patch Changes
387980f]v6.0.0Compare Source
Major Changes
dee8b05: ai SDK 6 betaMinor Changes
78928cb: release: start 5.1 betaPatch Changes
0c3b58b: fix(provider): add specificationVersion to ProviderV358920e0: fix(ai): do not drop custom headers in HttpChatTransporta7da2b6: feat(agent): change output generics0adc679: feat(provider): shared spec v350b70d6: feat(anthropic): add programmatic tool calling2d28066: chore(agent): limit agent call parametersfca786b: feat(agent): configurable call options046aa3b: feat(provider): speech model v3 spece1f6e8e: feat(ai): add Output.json()8d9e8ad: chore(provider): remove generics from EmbeddingModelV3Before
After
b67d224: Fixes an issue whereproviderMetadataandproviderExecutedwere lost when tool input validation failedab6f01a: Improve ai gateway error message when api key is not present9388ff1: feat(ui): add isDataUIPart helperdce03c4: feat: tool input examples2625a04: feat(openai); update spec for mcp approval37c58a0: This release introduceswrapEmbeddingModel, a new helper that brings embedding model customization capabilities similar towrapLanguageModel.4e2b04d: fix(gateway): throw error with user-friendly message in non-production environments ifAI_GATEWAY_API_KEYis not configuredab1087b: feat(ai):chat.addToolResult()is nowchat.addToolOutput()bb10a89: fix(ai): mcp errors to be jsonrpc 2.0 compliant457f1c6: feat(ai): onFinish callback for generateText95f65c2: chore: use import * from zod/v4754df61: fix(ai): correct type field in arrayOutputStrategy from 'enum' to 'array'58920e0: refactor: consolidate header normalization across packages, remove duplicates, preserve custom headers954c356: feat(openai): allow custom names for provider-defined tools7fdd89d: feat(agent): export AgentCallParameters and AgentStreamParameters typeseca63f3: feat(ai): add OAuth for MCP clients + refactor to new packageThis change replaces
with
90e5bdd: chore(ai): restructure agent files42cf7ed: fix(agent): use tool.toModelOutput when available544d4e8: chore(specification): rename v3 provider defined tool to provider tool4812235: fix(ai): add missing export forLoadSettingError7f2c9b6: fix(ui): do not submit automatically when server return with error614599a: chore(ai): deprecate generateObject and streamObject0c4822d: feat:EmbeddingModelV3e062079: chore(agent): move Agent.respond into createAgentStreamResponse function2b49dae: feat(agent): support UIMessageStreamOptions in createAgentStreamResponseee651d7:https://v6.ai-sdk.dev->https://ai-sdk.dev5a4e732: ExportparseJsonEventStreamanduiMessageChunkSchemafrom "ai" packagef733285: fix(ai): only parse experimental_output in generateText when finishReason is stop9b83947: feat(ai): add convertDataPart option to convertToModelMessagesAdd optional convertDataPart callback for converting custom data parts (URLs, code files, etc.) to text or file parts that models can process. Fully type-safe using existing UIMessage generics.
7eca093: fix(ai): updateuiMessageChunkSchemato satisfy theUIMessageChunktype077aea3: feat(ai): stable structured output on generateText, streamText, and ToolLoopAgent9f20c87: chore: updated README521c537: feat(ai): Tool.needsApproval can be a function7169511: feat(agent): support context in onFinish callbacke8109d3: feat: tool execution approval03849b0: move DelayedPromise into provider utilsed329cb: feat:Provider-V322ef5c6: feat(ai): Output.text() is default output mode9ba4324: feat(ai): support SystemModelMessage[] in system and instructions properties3bd2689: feat: extended token usage293a6b7: Added a title to the tools7c3c216: fixed docs and exported NoSpeechGeneratedErrorc62ecf0: feat(ai): add support for v2 specs in transcription and speech modelsd1bdadb: Added experimental_rerank support703459a: feat: tool execution approval for dynamic tools3071620: fix header loss when statusText is undefined in writeHead7e4649f: fix(core): Fix image download behavior when the initial model is swapped out during prepareStep48454ab: fix(ai): handle backpressure inwriteToServerResponsee06b663: feat(agent): support experimental stream transforms83e5744: feat: support async Tool.toModelOutput8c98371: Extend addToolResult to support error resultsb1405bf: feat(ai): send context into streamText / generateText onFinish callbacksa5e152d: fix(ai): back version support for V2 providersaa0515c: feat(ai): move Agent to stablef6f0c5a: chore: remove zod from ui packages3ed5519: chore: rename ToolCallOptions to ToolExecutionOptionseb8d1cb: fix not catching of empty arrays in validateUIMessagee7d9b00: feat(agent): add optional name property to agentd5b25ee: feat(ai): add Output.array()d7bae86: feat(ai): add Output.choice()8dac895: feat:LanguageModelV3a755db5: feat(ai): improve warnings with provider and model id1c2a4c1: fix(ai): remove outdated jsdoc param descriptions686103c: chore(ai): export ContentPart type0d6c0d8: chore(ai): remove deprecated CodeMessage type and related types and functions9b8d17e: fix(agent): move provider options toConfiguration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.