@ai-sdk/provider-utils 5.0.27 → 5.0.29
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,17 @@
|
|
|
1
1
|
# @ai-sdk/provider-utils
|
|
2
2
|
|
|
3
|
+
## 5.0.29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b74971f: Preserve schema-valued additional properties when converting Zod 4 schemas.
|
|
8
|
+
|
|
9
|
+
## 5.0.28
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- e6087c9: fix: handle empty string tool call IDs
|
|
14
|
+
|
|
3
15
|
## 5.0.27
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1329,7 +1329,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
// src/version.ts
|
|
1332
|
-
var VERSION = true ? "5.0.
|
|
1332
|
+
var VERSION = true ? "5.0.29" : "0.0.0-test";
|
|
1333
1333
|
|
|
1334
1334
|
// src/get-from-api.ts
|
|
1335
1335
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -1734,7 +1734,8 @@ import { toJSONSchema } from "zod/v4/core";
|
|
|
1734
1734
|
// src/add-additional-properties-to-json-schema.ts
|
|
1735
1735
|
function addAdditionalPropertiesToJsonSchema(jsonSchema2) {
|
|
1736
1736
|
if (jsonSchema2.type === "object" || Array.isArray(jsonSchema2.type) && jsonSchema2.type.includes("object")) {
|
|
1737
|
-
|
|
1737
|
+
const { additionalProperties } = jsonSchema2;
|
|
1738
|
+
jsonSchema2.additionalProperties = additionalProperties != null && typeof additionalProperties !== "boolean" ? visit(additionalProperties) : false;
|
|
1738
1739
|
const { properties } = jsonSchema2;
|
|
1739
1740
|
if (properties != null) {
|
|
1740
1741
|
for (const key of Object.keys(properties)) {
|