Comparing version 3.2.32 to 3.2.33
{ | ||
"name": "ai", | ||
"version": "3.2.32", | ||
"version": "3.2.33", | ||
"description": "The AI Toolkit for TypeScript", | ||
"license": "Apache-2.0", | ||
@@ -62,7 +63,7 @@ "sideEffects": false, | ||
"@ai-sdk/provider-utils": "1.0.2", | ||
"@ai-sdk/react": "0.0.25", | ||
"@ai-sdk/solid": "0.0.18", | ||
"@ai-sdk/svelte": "0.0.19", | ||
"@ai-sdk/ui-utils": "0.0.16", | ||
"@ai-sdk/vue": "0.0.20", | ||
"@ai-sdk/react": "0.0.26", | ||
"@ai-sdk/solid": "0.0.19", | ||
"@ai-sdk/svelte": "0.0.20", | ||
"@ai-sdk/ui-utils": "0.0.17", | ||
"@ai-sdk/vue": "0.0.21", | ||
"@opentelemetry/api": "1.9.0", | ||
@@ -69,0 +70,0 @@ "eventsource-parser": "1.1.2", |
@@ -32,3 +32,3 @@ import { Message, CreateMessage, ChatRequestOptions, JSONValue, UseChatOptions, RequestOptions, UseCompletionOptions, AssistantStatus, UseAssistantOptions } from '@ai-sdk/ui-utils'; | ||
*/ | ||
setMessages: (messages: Message[]) => void; | ||
setMessages: (messages: Message[] | ((messages: Message[]) => Message[])) => void; | ||
/** The current value of the input */ | ||
@@ -35,0 +35,0 @@ input: Writable<string>; |
@@ -760,4 +760,7 @@ "use strict"; | ||
}; | ||
const setMessages = (messages2) => { | ||
mutate(messages2); | ||
const setMessages = (messagesArg) => { | ||
if (typeof messagesArg === "function") { | ||
messagesArg = messagesArg((0, import_store.get)(messages)); | ||
} | ||
mutate(messagesArg); | ||
}; | ||
@@ -764,0 +767,0 @@ const input = (0, import_store.writable)(initialInput); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1581997
18973
+ Added@ai-sdk/react@0.0.26(transitive)
+ Added@ai-sdk/solid@0.0.19(transitive)
+ Added@ai-sdk/svelte@0.0.20(transitive)
+ Added@ai-sdk/ui-utils@0.0.17(transitive)
+ Added@ai-sdk/vue@0.0.21(transitive)
- Removed@ai-sdk/react@0.0.25(transitive)
- Removed@ai-sdk/solid@0.0.18(transitive)
- Removed@ai-sdk/svelte@0.0.19(transitive)
- Removed@ai-sdk/ui-utils@0.0.16(transitive)
- Removed@ai-sdk/vue@0.0.20(transitive)
Updated@ai-sdk/react@0.0.26
Updated@ai-sdk/solid@0.0.19
Updated@ai-sdk/svelte@0.0.20
Updated@ai-sdk/ui-utils@0.0.17
Updated@ai-sdk/vue@0.0.21