@ai-sdk/svelte 5.0.187 → 5.0.188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/svelte
2
2
 
3
+ ## 5.0.188
4
+
5
+ ### Patch Changes
6
+
7
+ - ai@7.0.188
8
+
3
9
  ## 5.0.187
4
10
 
5
11
  ### Patch Changes
@@ -78,7 +78,7 @@ export class StructuredObject {
78
78
  throw new Error('The response body is empty.');
79
79
  }
80
80
  let accumulatedText = '';
81
- let latestObject = undefined;
81
+ let latestObject;
82
82
  await response.body.pipeThrough(new TextDecoderStream()).pipeTo(new WritableStream({
83
83
  write: async (chunk) => {
84
84
  if (abortController?.signal.aborted) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/svelte",
3
- "version": "5.0.187",
3
+ "version": "5.0.188",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@ai-sdk/provider-utils": "5.0.87",
38
- "ai": "7.0.187"
38
+ "ai": "7.0.188"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@ai-sdk/test-server": "2.0.4",
@@ -180,7 +180,7 @@ export class StructuredObject<
180
180
  }
181
181
 
182
182
  let accumulatedText = '';
183
- let latestObject: DeepPartial<RESULT> | undefined = undefined;
183
+ let latestObject: DeepPartial<RESULT> | undefined;
184
184
 
185
185
  await response.body.pipeThrough(new TextDecoderStream()).pipeTo(
186
186
  new WritableStream<string>({