@ai-sdk/react
Advanced tools
Comparing version 0.0.13 to 0.0.14
# @ai-sdk/react | ||
## 0.0.14 | ||
### Patch Changes | ||
- 9b50003d: fix (ai/react): useObject stop & isLoading reset at end of stream | ||
- 1894f811: feat (ai/ui): allow JSONValue as data in useChat handleSubmit | ||
- Updated dependencies [1894f811] | ||
- @ai-sdk/ui-utils@0.0.9 | ||
## 0.0.13 | ||
@@ -4,0 +13,0 @@ |
@@ -129,3 +129,3 @@ import { Message, CreateMessage, AssistantStatus, UseAssistantOptions, ChatRequestOptions, JSONValue, UseChatOptions, RequestOptions, UseCompletionOptions, DeepPartial, FetchFunction } from '@ai-sdk/ui-utils'; | ||
messages: Message[]; | ||
requestData?: Record<string, string>; | ||
requestData?: JSONValue; | ||
requestBody?: object; | ||
@@ -132,0 +132,0 @@ }) => JSONValue; |
@@ -763,2 +763,6 @@ "use strict"; | ||
} | ||
}, | ||
close() { | ||
setIsLoading(false); | ||
abortControllerRef.current = null; | ||
} | ||
@@ -770,5 +774,2 @@ }) | ||
setError(error2); | ||
} finally { | ||
setIsLoading(false); | ||
abortControllerRef.current = null; | ||
} | ||
@@ -775,0 +776,0 @@ }; |
{ | ||
"name": "@ai-sdk/react", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"license": "Apache-2.0", | ||
@@ -19,3 +19,3 @@ "sideEffects": false, | ||
"@ai-sdk/provider-utils": "1.0.0", | ||
"@ai-sdk/ui-utils": "0.0.8", | ||
"@ai-sdk/ui-utils": "0.0.9", | ||
"swr": "2.2.0" | ||
@@ -22,0 +22,0 @@ }, |
@@ -94,3 +94,3 @@ import type { | ||
messages: Message[]; | ||
requestData?: Record<string, string>; | ||
requestData?: JSONValue; | ||
requestBody?: object; | ||
@@ -224,3 +224,3 @@ }) => JSONValue) | ||
messages: Message[]; | ||
requestData?: Record<string, string>; | ||
requestData?: JSONValue; | ||
requestBody?: object; | ||
@@ -227,0 +227,0 @@ }) => JSONValue; |
@@ -151,2 +151,7 @@ import { | ||
}, | ||
close() { | ||
setIsLoading(false); | ||
abortControllerRef.current = null; | ||
}, | ||
}), | ||
@@ -158,5 +163,2 @@ ); | ||
setError(error); | ||
} finally { | ||
setIsLoading(false); | ||
abortControllerRef.current = null; | ||
} | ||
@@ -163,0 +165,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
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
232188
3769
+ Added@ai-sdk/ui-utils@0.0.9(transitive)
- Removed@ai-sdk/ui-utils@0.0.8(transitive)
Updated@ai-sdk/ui-utils@0.0.9