@depup/ai 6.0.149-depup.0 → 6.0.152-depup.0

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,26 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.152
4
+
5
+ ### Patch Changes
6
+
7
+ - d42076d: Add AI Gateway hint to provider READMEs
8
+
9
+ ## 6.0.151
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [ec18852]
14
+ - @ai-sdk/gateway@3.0.93
15
+
16
+ ## 6.0.150
17
+
18
+ ### Patch Changes
19
+
20
+ - 1003609: fix(ai): skip stringifying text when streaming partial text
21
+ - Updated dependencies [9de7d7b]
22
+ - @ai-sdk/gateway@3.0.92
23
+
3
24
  ## 6.0.149
4
25
 
5
26
  ### Patch Changes
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/ai
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [ai](https://www.npmjs.com/package/ai) @ 6.0.149 |
17
- | Processed | 2026-04-06 |
16
+ | Original | [ai](https://www.npmjs.com/package/ai) @ 6.0.152 |
17
+ | Processed | 2026-04-08 |
18
18
  | Smoke test | failed |
19
19
  | Deps updated | 1 |
20
20
 
package/changes.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "to": "^1.9.1"
6
6
  }
7
7
  },
8
- "timestamp": "2026-04-06T20:17:45.915Z",
8
+ "timestamp": "2026-04-08T00:40:09.951Z",
9
9
  "totalUpdated": 1
10
10
  }
package/dist/index.js CHANGED
@@ -1231,7 +1231,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
1231
1231
  var import_provider_utils4 = require("@ai-sdk/provider-utils");
1232
1232
 
1233
1233
  // src/version.ts
1234
- var VERSION = true ? "6.0.149" : "0.0.0-test";
1234
+ var VERSION = true ? "6.0.152" : "0.0.0-test";
1235
1235
 
1236
1236
  // src/util/download/download.ts
1237
1237
  var download = async ({
@@ -6539,7 +6539,7 @@ function createOutputTransformStream(output) {
6539
6539
  let text2 = "";
6540
6540
  let textChunk = "";
6541
6541
  let textProviderMetadata = void 0;
6542
- let lastPublishedJson = "";
6542
+ let lastPublishedValue = "";
6543
6543
  function publishTextChunk({
6544
6544
  controller,
6545
6545
  partialOutput = void 0
@@ -6587,10 +6587,10 @@ function createOutputTransformStream(output) {
6587
6587
  textProviderMetadata = (_a21 = chunk.providerMetadata) != null ? _a21 : textProviderMetadata;
6588
6588
  const result = await output.parsePartialOutput({ text: text2 });
6589
6589
  if (result !== void 0) {
6590
- const currentJson = JSON.stringify(result.partial);
6591
- if (currentJson !== lastPublishedJson) {
6590
+ const currentValue = typeof result.partial === "string" ? result.partial : JSON.stringify(result.partial);
6591
+ if (currentValue !== lastPublishedValue) {
6592
6592
  publishTextChunk({ controller, partialOutput: result.partial });
6593
- lastPublishedJson = currentJson;
6593
+ lastPublishedValue = currentValue;
6594
6594
  }
6595
6595
  }
6596
6596
  }