ai 6.0.0-beta.156 → 6.0.0-beta.159

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,31 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.0-beta.159
4
+
5
+ ### Patch Changes
6
+
7
+ - 3071620: fix header loss when statusText is undefined in writeHead
8
+ - Updated dependencies [870297d]
9
+ - @ai-sdk/gateway@2.0.0-beta.85
10
+
11
+ ## 6.0.0-beta.158
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [366f50b]
16
+ - @ai-sdk/provider@3.0.0-beta.27
17
+ - @ai-sdk/gateway@2.0.0-beta.84
18
+ - @ai-sdk/provider-utils@4.0.0-beta.53
19
+
20
+ ## 6.0.0-beta.157
21
+
22
+ ### Patch Changes
23
+
24
+ - 763d04a: feat: Standard JSON Schema support
25
+ - Updated dependencies [763d04a]
26
+ - @ai-sdk/provider-utils@4.0.0-beta.52
27
+ - @ai-sdk/gateway@2.0.0-beta.83
28
+
3
29
  ## 6.0.0-beta.156
4
30
 
5
31
  ### Patch Changes
package/dist/index.js CHANGED
@@ -964,7 +964,7 @@ function detectMediaType({
964
964
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
965
965
 
966
966
  // src/version.ts
967
- var VERSION = true ? "6.0.0-beta.156" : "0.0.0-test";
967
+ var VERSION = true ? "6.0.0-beta.159" : "0.0.0-test";
968
968
 
969
969
  // src/util/download/download.ts
970
970
  var download = async ({ url }) => {
@@ -4137,7 +4137,12 @@ function writeToServerResponse({
4137
4137
  headers,
4138
4138
  stream
4139
4139
  }) {
4140
- response.writeHead(status != null ? status : 200, statusText, headers);
4140
+ const statusCode = status != null ? status : 200;
4141
+ if (statusText !== void 0) {
4142
+ response.writeHead(statusCode, statusText, headers);
4143
+ } else {
4144
+ response.writeHead(statusCode, headers);
4145
+ }
4141
4146
  const reader = stream.getReader();
4142
4147
  const read = async () => {
4143
4148
  try {