ai 6.0.328 → 6.0.330
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 +14 -0
- package/dist/index.js +308 -167
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +204 -60
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/02-foundations/02-providers-and-models.mdx +1 -0
- package/docs/07-reference/02-ai-sdk-ui/32-prune-messages.mdx +9 -0
- package/package.json +4 -3
- package/src/generate-object/output-strategy.ts +8 -0
- package/src/generate-object/stream-object.ts +22 -0
- package/src/generate-text/output.ts +21 -25
- package/src/generate-text/stream-text.ts +23 -0
- package/src/util/array-output-stream.ts +161 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# ai
|
|
2
2
|
|
|
3
|
+
## 6.0.330
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1b19ee5: Fix excessive CPU usage when streaming long arrays with `Output.array` or `streamObject`. Parse and validate completed elements incrementally instead of repeatedly processing the entire accumulated array on every text chunk.
|
|
8
|
+
|
|
9
|
+
## 6.0.329
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [56c41d5]
|
|
14
|
+
- Updated dependencies [2d7f444]
|
|
15
|
+
- @ai-sdk/gateway@3.0.235
|
|
16
|
+
|
|
3
17
|
## 6.0.328
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|