@ai-sdk/provider-utils 3.0.9 → 3.1.0-beta.1
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 +17 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -11
- package/dist/index.mjs.map +1 -1
- package/dist/test/index.d.mts +1 -71
- package/dist/test/index.d.ts +1 -71
- package/dist/test/index.js +1 -174
- package/dist/test/index.js.map +1 -1
- package/dist/test/index.mjs +1 -172
- package/dist/test/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# @ai-sdk/provider-utils
|
2
2
|
|
3
|
+
## 3.1.0-beta.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- cbb1d35: Update for provider-util changeset after change in PR #8588
|
8
|
+
|
9
|
+
## 3.1.0-beta.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- 78928cb: release: start 5.1 beta
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- Updated dependencies [78928cb]
|
18
|
+
- @ai-sdk/provider@2.1.0-beta.0
|
19
|
+
|
3
20
|
## 3.0.9
|
4
21
|
|
5
22
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { JSONParseError, TypeValidationError, JSONValue, APICallError, LanguageModelV2Prompt, JSONSchema7, SharedV2ProviderOptions, LanguageModelV2ToolResultOutput, LanguageModelV2ToolResultPart } from '@ai-sdk/provider';
|
2
2
|
import * as z4 from 'zod/v4';
|
3
3
|
import { ZodType, z } from 'zod/v4';
|
4
4
|
import * as z3 from 'zod/v3';
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { JSONParseError, TypeValidationError, JSONValue, APICallError, LanguageModelV2Prompt, JSONSchema7, SharedV2ProviderOptions, LanguageModelV2ToolResultOutput, LanguageModelV2ToolResultPart } from '@ai-sdk/provider';
|
2
2
|
import * as z4 from 'zod/v4';
|
3
3
|
import { ZodType, z } from 'zod/v4';
|
4
4
|
import * as z3 from 'zod/v3';
|
package/dist/index.js
CHANGED
@@ -284,7 +284,7 @@ function handleFetchError({
|
|
284
284
|
}
|
285
285
|
|
286
286
|
// src/version.ts
|
287
|
-
var VERSION = true ? "3.0.
|
287
|
+
var VERSION = true ? "3.1.0-beta.1" : "0.0.0-test";
|
288
288
|
|
289
289
|
// src/get-from-api.ts
|
290
290
|
var getOriginalFetch = () => globalThis.fetch;
|
@@ -1072,8 +1072,7 @@ var z4 = __toESM(require("zod/v4"));
|
|
1072
1072
|
var getRelativePath = (pathA, pathB) => {
|
1073
1073
|
let i = 0;
|
1074
1074
|
for (; i < pathA.length && i < pathB.length; i++) {
|
1075
|
-
if (pathA[i] !== pathB[i])
|
1076
|
-
break;
|
1075
|
+
if (pathA[i] !== pathB[i]) break;
|
1077
1076
|
}
|
1078
1077
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
1079
1078
|
};
|
@@ -1151,8 +1150,7 @@ function parseBigintDef(def) {
|
|
1151
1150
|
type: "integer",
|
1152
1151
|
format: "int64"
|
1153
1152
|
};
|
1154
|
-
if (!def.checks)
|
1155
|
-
return res;
|
1153
|
+
if (!def.checks) return res;
|
1156
1154
|
for (const check of def.checks) {
|
1157
1155
|
switch (check.kind) {
|
1158
1156
|
case "min":
|
@@ -1257,8 +1255,7 @@ function parseEnumDef(def) {
|
|
1257
1255
|
|
1258
1256
|
// src/zod-to-json-schema/parsers/intersection.ts
|
1259
1257
|
var isJsonSchema7AllOfType = (type) => {
|
1260
|
-
if ("type" in type && type.type === "string")
|
1261
|
-
return false;
|
1258
|
+
if ("type" in type && type.type === "string") return false;
|
1262
1259
|
return "allOf" in type;
|
1263
1260
|
};
|
1264
1261
|
function parseIntersectionDef(def, refs) {
|
@@ -1762,8 +1759,7 @@ function parseUnionDef(def, refs) {
|
|
1762
1759
|
case "bigint":
|
1763
1760
|
return [...acc, "integer"];
|
1764
1761
|
case "object":
|
1765
|
-
if (x._def.value === null)
|
1766
|
-
return [...acc, "null"];
|
1762
|
+
if (x._def.value === null) return [...acc, "null"];
|
1767
1763
|
case "symbol":
|
1768
1764
|
case "undefined":
|
1769
1765
|
case "function":
|
@@ -1835,8 +1831,7 @@ function parseNumberDef(def) {
|
|
1835
1831
|
const res = {
|
1836
1832
|
type: "number"
|
1837
1833
|
};
|
1838
|
-
if (!def.checks)
|
1839
|
-
return res;
|
1834
|
+
if (!def.checks) return res;
|
1840
1835
|
for (const check of def.checks) {
|
1841
1836
|
switch (check.kind) {
|
1842
1837
|
case "int":
|