@ai-sdk/react
Advanced tools
Comparing version 0.0.53 to 0.0.54
@@ -890,3 +890,4 @@ "use strict"; | ||
} | ||
setError(error2); | ||
setIsLoading(false); | ||
setError(error2 instanceof Error ? error2 : new Error(String(error2))); | ||
} | ||
@@ -893,0 +894,0 @@ }; |
# @ai-sdk/react | ||
## 0.0.54 | ||
### Patch Changes | ||
- 4ab883f: fix (ai/react): useObject error handling | ||
## 0.0.53 | ||
@@ -4,0 +10,0 @@ |
@@ -271,3 +271,3 @@ import { Message, CreateMessage, AssistantStatus, UseAssistantOptions, ChatRequestOptions, JSONValue, UseChatOptions, RequestOptions, UseCompletionOptions, Schema, DeepPartial } from '@ai-sdk/ui-utils'; | ||
*/ | ||
error: undefined | unknown; | ||
error: Error | undefined; | ||
/** | ||
@@ -274,0 +274,0 @@ * Flag that indicates whether an API request is in progress. |
@@ -890,3 +890,4 @@ "use strict"; | ||
} | ||
setError(error2); | ||
setIsLoading(false); | ||
setError(error2 instanceof Error ? error2 : new Error(String(error2))); | ||
} | ||
@@ -893,0 +894,0 @@ }; |
{ | ||
"name": "@ai-sdk/react", | ||
"version": "0.0.53", | ||
"version": "0.0.54", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
232806
2979
6