@ai-sdk/svelte 5.0.186 → 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,23 @@
|
|
|
1
1
|
# @ai-sdk/svelte
|
|
2
2
|
|
|
3
|
+
## 5.0.188
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ai@7.0.188
|
|
8
|
+
|
|
9
|
+
## 5.0.187
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [db4d3bd]
|
|
14
|
+
- Updated dependencies [8246e9a]
|
|
15
|
+
- Updated dependencies [f958ef0]
|
|
16
|
+
- Updated dependencies [317a048]
|
|
17
|
+
- Updated dependencies [a13a1da]
|
|
18
|
+
- ai@7.0.187
|
|
19
|
+
- @ai-sdk/provider-utils@5.0.87
|
|
20
|
+
|
|
3
21
|
## 5.0.186
|
|
4
22
|
|
|
5
23
|
### 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
|
|
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.
|
|
3
|
+
"version": "5.0.188",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"svelte": "^5.31.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
38
|
-
"ai": "7.0.
|
|
37
|
+
"@ai-sdk/provider-utils": "5.0.87",
|
|
38
|
+
"ai": "7.0.188"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@ai-sdk/test-server": "2.0.4",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"publint": "^0.3.21",
|
|
50
50
|
"svelte": "^5.55.7",
|
|
51
51
|
"svelte-check": "^4.4.8",
|
|
52
|
-
"typescript": "6.0.
|
|
52
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
53
53
|
"vite": "^7.3.7",
|
|
54
54
|
"vitest": "^4.1.11",
|
|
55
55
|
"zod": "4.6.7"
|
|
@@ -77,6 +77,9 @@
|
|
|
77
77
|
"type-check": "svelte-check --tsconfig ./tsconfig.json",
|
|
78
78
|
"type-check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
|
79
79
|
"test": "vitest --run",
|
|
80
|
+
"test:node22": "node ../../tools/with-node.mjs 22 pnpm test",
|
|
81
|
+
"test:node24": "node ../../tools/with-node.mjs 24 pnpm test",
|
|
82
|
+
"test:node26": "node ../../tools/with-node.mjs 26 pnpm test",
|
|
80
83
|
"test:update": "vitest --run -u",
|
|
81
84
|
"test:watch": "vitest",
|
|
82
85
|
"clean": "del-cli dist"
|
|
@@ -180,7 +180,7 @@ export class StructuredObject<
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
let accumulatedText = '';
|
|
183
|
-
let latestObject: DeepPartial<RESULT> | undefined
|
|
183
|
+
let latestObject: DeepPartial<RESULT> | undefined;
|
|
184
184
|
|
|
185
185
|
await response.body.pipeThrough(new TextDecoderStream()).pipeTo(
|
|
186
186
|
new WritableStream<string>({
|