@ai-sdk/solid
Advanced tools
Comparing version 0.0.11 to 0.0.12
# @ai-sdk/solid | ||
## 0.0.12 | ||
### Patch Changes | ||
- 3db90c3d: allow empty handleSubmit submissions for useChat | ||
- @ai-sdk/ui-utils@0.0.10 | ||
## 0.0.11 | ||
@@ -4,0 +11,0 @@ |
@@ -242,12 +242,13 @@ "use strict"; | ||
const inputValue = input(); | ||
if (!inputValue) | ||
return; | ||
append( | ||
{ | ||
const chatRequest = { | ||
messages: inputValue ? messagesRef.concat({ | ||
id: generateId()(), | ||
role: "user", | ||
content: inputValue, | ||
role: "user", | ||
createdAt: /* @__PURE__ */ new Date() | ||
}, | ||
options | ||
); | ||
}) : messagesRef, | ||
options: options.options, | ||
data: options.data | ||
}; | ||
triggerRequest(chatRequest); | ||
setInput(""); | ||
@@ -254,0 +255,0 @@ }; |
{ | ||
"name": "@ai-sdk/solid", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"license": "Apache-2.0", | ||
@@ -18,3 +18,3 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@ai-sdk/ui-utils": "0.0.9" | ||
"@ai-sdk/ui-utils": "0.0.10" | ||
}, | ||
@@ -29,3 +29,3 @@ "devDependencies": { | ||
"jsdom": "^24.0.0", | ||
"msw": "2.0.9", | ||
"msw": "2.3.1", | ||
"tsup": "^7.2.0", | ||
@@ -32,0 +32,0 @@ "typescript": "5.1.3", |
@@ -377,12 +377,18 @@ import type { | ||
const inputValue = input(); | ||
if (!inputValue) return; | ||
append( | ||
{ | ||
content: inputValue, | ||
role: 'user', | ||
createdAt: new Date(), | ||
}, | ||
options, | ||
); | ||
const chatRequest: ChatRequest = { | ||
messages: inputValue | ||
? messagesRef.concat({ | ||
id: generateId()(), | ||
role: 'user', | ||
content: inputValue, | ||
createdAt: new Date(), | ||
}) | ||
: messagesRef, | ||
options: options.options, | ||
data: options.data, | ||
}; | ||
triggerRequest(chatRequest); | ||
setInput(''); | ||
@@ -389,0 +395,0 @@ }; |
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
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
145814
2222
+ Added@ai-sdk/provider-utils@1.0.1(transitive)
+ Added@ai-sdk/ui-utils@0.0.10(transitive)
- Removed@ai-sdk/provider-utils@1.0.0(transitive)
- Removed@ai-sdk/ui-utils@0.0.9(transitive)
Updated@ai-sdk/ui-utils@0.0.10