ai 5.0.0-alpha.1 → 5.0.0-alpha.2
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 +9 -0
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# ai
|
2
2
|
|
3
|
+
## 5.0.0-alpha.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 82aa95d: fix (ai): merge data ui stream parts correctly
|
8
|
+
- Updated dependencies [26535e0]
|
9
|
+
- @ai-sdk/provider@2.0.0-alpha.2
|
10
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.2
|
11
|
+
|
3
12
|
## 5.0.0-alpha.1
|
4
13
|
|
5
14
|
### Major Changes
|
package/dist/index.js
CHANGED
@@ -1292,14 +1292,7 @@ function processUIMessageStream({
|
|
1292
1292
|
(partArg) => part.type === partArg.type && part.id === partArg.id
|
1293
1293
|
) : void 0;
|
1294
1294
|
if (existingPart != null) {
|
1295
|
-
|
1296
|
-
existingPart.value = mergeObjects(
|
1297
|
-
existingPart.data,
|
1298
|
-
part.data
|
1299
|
-
);
|
1300
|
-
} else {
|
1301
|
-
existingPart.data = part.data;
|
1302
|
-
}
|
1295
|
+
existingPart.data = isObject(existingPart.data) && isObject(part.data) ? mergeObjects(existingPart.data, part.data) : part.data;
|
1303
1296
|
} else {
|
1304
1297
|
state.message.parts.push(part);
|
1305
1298
|
}
|