@nocobase/plugin-ai 2.0.0-alpha.60 → 2.0.0-alpha.62
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/dist/externalVersion.js +11 -11
- package/dist/node_modules/@langchain/anthropic/package.json +1 -1
- package/dist/node_modules/@langchain/core/package.json +1 -1
- package/dist/node_modules/@langchain/deepseek/package.json +1 -1
- package/dist/node_modules/@langchain/google-genai/package.json +1 -1
- package/dist/node_modules/@langchain/ollama/index.cjs +2 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/Options.js +1 -0
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/Refs.js +1 -0
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/index.js +1 -0
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +5 -11
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +16 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +2 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +2 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +3 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +10 -4
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +1 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +3 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +8 -7
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +0 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +3 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +3 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +41 -42
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +24 -3
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/Options.js +1 -0
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/Refs.js +1 -0
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/index.js +1 -0
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parseDef.js +4 -10
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +16 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +2 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +3 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +10 -4
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +1 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +3 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +3 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +0 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +3 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +3 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/selectParser.js +5 -6
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +24 -3
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/Options.d.ts +2 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +4 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +5 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +1 -0
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/index.d.ts +1 -0
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +5 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +4 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +4 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +4 -2
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +1 -1
- package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/package.json +7 -8
- package/dist/node_modules/@langchain/ollama/package.json +1 -1
- package/dist/node_modules/@langchain/openai/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/node_modules/zod-to-json-schema/package.json +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ZodOptional } from "zod";
|
|
2
1
|
import { parseDef } from "../parseDef.js";
|
|
3
2
|
export function parseObjectDef(def, refs) {
|
|
4
3
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
@@ -15,7 +14,7 @@ export function parseObjectDef(def, refs) {
|
|
|
15
14
|
}
|
|
16
15
|
let propOptional = safeIsOptional(propDef);
|
|
17
16
|
if (propOptional && forceOptionalIntoNullable) {
|
|
18
|
-
if (propDef
|
|
17
|
+
if (propDef._def.typeName === "ZodOptional") {
|
|
19
18
|
propDef = propDef._def.innerType;
|
|
20
19
|
}
|
|
21
20
|
if (!propDef.isNullable()) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { parseDef } from "../parseDef.js";
|
|
2
|
+
import { parseAnyDef } from "./any.js";
|
|
2
3
|
export const parseOptionalDef = (def, refs) => {
|
|
3
4
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
4
5
|
return parseDef(def.innerType._def, refs);
|
|
@@ -11,10 +12,10 @@ export const parseOptionalDef = (def, refs) => {
|
|
|
11
12
|
? {
|
|
12
13
|
anyOf: [
|
|
13
14
|
{
|
|
14
|
-
not:
|
|
15
|
+
not: parseAnyDef(refs),
|
|
15
16
|
},
|
|
16
17
|
innerSchema,
|
|
17
18
|
],
|
|
18
19
|
}
|
|
19
|
-
:
|
|
20
|
+
: parseAnyDef(refs);
|
|
20
21
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ZodFirstPartyTypeKind, } from "zod";
|
|
1
|
+
import { ZodFirstPartyTypeKind, } from "zod/v3";
|
|
2
2
|
import { parseDef } from "../parseDef.js";
|
|
3
3
|
import { parseStringDef } from "./string.js";
|
|
4
4
|
import { parseBrandedDef } from "./branded.js";
|
|
5
|
+
import { parseAnyDef } from "./any.js";
|
|
5
6
|
export function parseRecordDef(def, refs) {
|
|
6
7
|
if (refs.target === "openAi") {
|
|
7
8
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -16,7 +17,7 @@ export function parseRecordDef(def, refs) {
|
|
|
16
17
|
[key]: parseDef(def.valueType._def, {
|
|
17
18
|
...refs,
|
|
18
19
|
currentPath: [...refs.currentPath, "properties", key],
|
|
19
|
-
}) ??
|
|
20
|
+
}) ?? parseAnyDef(refs),
|
|
20
21
|
}), {}),
|
|
21
22
|
additionalProperties: refs.rejectedAdditionalProperties,
|
|
22
23
|
};
|
package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/esm/selectParser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZodFirstPartyTypeKind } from "zod";
|
|
1
|
+
import { ZodFirstPartyTypeKind } from "zod/v3";
|
|
2
2
|
import { parseAnyDef } from "./parsers/any.js";
|
|
3
3
|
import { parseArrayDef } from "./parsers/array.js";
|
|
4
4
|
import { parseBigintDef } from "./parsers/bigint.js";
|
|
@@ -44,7 +44,7 @@ export const selectParser = (def, typeName, refs) => {
|
|
|
44
44
|
case ZodFirstPartyTypeKind.ZodDate:
|
|
45
45
|
return parseDateDef(def, refs);
|
|
46
46
|
case ZodFirstPartyTypeKind.ZodUndefined:
|
|
47
|
-
return parseUndefinedDef();
|
|
47
|
+
return parseUndefinedDef(refs);
|
|
48
48
|
case ZodFirstPartyTypeKind.ZodNull:
|
|
49
49
|
return parseNullDef(refs);
|
|
50
50
|
case ZodFirstPartyTypeKind.ZodArray:
|
|
@@ -78,13 +78,13 @@ export const selectParser = (def, typeName, refs) => {
|
|
|
78
78
|
return parsePromiseDef(def, refs);
|
|
79
79
|
case ZodFirstPartyTypeKind.ZodNaN:
|
|
80
80
|
case ZodFirstPartyTypeKind.ZodNever:
|
|
81
|
-
return parseNeverDef();
|
|
81
|
+
return parseNeverDef(refs);
|
|
82
82
|
case ZodFirstPartyTypeKind.ZodEffects:
|
|
83
83
|
return parseEffectsDef(def, refs);
|
|
84
84
|
case ZodFirstPartyTypeKind.ZodAny:
|
|
85
|
-
return parseAnyDef();
|
|
85
|
+
return parseAnyDef(refs);
|
|
86
86
|
case ZodFirstPartyTypeKind.ZodUnknown:
|
|
87
|
-
return parseUnknownDef();
|
|
87
|
+
return parseUnknownDef(refs);
|
|
88
88
|
case ZodFirstPartyTypeKind.ZodDefault:
|
|
89
89
|
return parseDefaultDef(def, refs);
|
|
90
90
|
case ZodFirstPartyTypeKind.ZodBranded:
|
|
@@ -100,7 +100,6 @@ export const selectParser = (def, typeName, refs) => {
|
|
|
100
100
|
case ZodFirstPartyTypeKind.ZodSymbol:
|
|
101
101
|
return undefined;
|
|
102
102
|
default:
|
|
103
|
-
/* c8 ignore next */
|
|
104
103
|
return ((_) => undefined)(typeName);
|
|
105
104
|
}
|
|
106
105
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { parseDef } from "./parseDef.js";
|
|
2
2
|
import { getRefs } from "./Refs.js";
|
|
3
|
+
import { parseAnyDef } from "./parsers/any.js";
|
|
3
4
|
const zodToJsonSchema = (schema, options) => {
|
|
4
5
|
const refs = getRefs(options);
|
|
5
|
-
|
|
6
|
+
let definitions = typeof options === "object" && options.definitions
|
|
6
7
|
? Object.entries(options.definitions).reduce((acc, [name, schema]) => ({
|
|
7
8
|
...acc,
|
|
8
9
|
[name]: parseDef(schema._def, {
|
|
9
10
|
...refs,
|
|
10
11
|
currentPath: [...refs.basePath, refs.definitionPath, name],
|
|
11
|
-
}, true) ??
|
|
12
|
+
}, true) ?? parseAnyDef(refs),
|
|
12
13
|
}), {})
|
|
13
14
|
: undefined;
|
|
14
15
|
const name = typeof options === "string"
|
|
@@ -21,7 +22,7 @@ const zodToJsonSchema = (schema, options) => {
|
|
|
21
22
|
: {
|
|
22
23
|
...refs,
|
|
23
24
|
currentPath: [...refs.basePath, refs.definitionPath, name],
|
|
24
|
-
}, false) ??
|
|
25
|
+
}, false) ?? parseAnyDef(refs);
|
|
25
26
|
const title = typeof options === "object" &&
|
|
26
27
|
options.name !== undefined &&
|
|
27
28
|
options.nameStrategy === "title"
|
|
@@ -30,6 +31,26 @@ const zodToJsonSchema = (schema, options) => {
|
|
|
30
31
|
if (title !== undefined) {
|
|
31
32
|
main.title = title;
|
|
32
33
|
}
|
|
34
|
+
if (refs.flags.hasReferencedOpenAiAnyType) {
|
|
35
|
+
if (!definitions) {
|
|
36
|
+
definitions = {};
|
|
37
|
+
}
|
|
38
|
+
if (!definitions[refs.openAiAnyTypeName]) {
|
|
39
|
+
definitions[refs.openAiAnyTypeName] = {
|
|
40
|
+
// Skipping "object" as no properties can be defined and additionalProperties must be "false"
|
|
41
|
+
type: ["string", "number", "integer", "boolean", "array", "null"],
|
|
42
|
+
items: {
|
|
43
|
+
$ref: refs.$refStrategy === "relative"
|
|
44
|
+
? "1"
|
|
45
|
+
: [
|
|
46
|
+
...refs.basePath,
|
|
47
|
+
refs.definitionPath,
|
|
48
|
+
refs.openAiAnyTypeName,
|
|
49
|
+
].join("/"),
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
33
54
|
const combined = name === undefined
|
|
34
55
|
? definitions
|
|
35
56
|
? {
|
package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/Options.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZodSchema, ZodTypeDef } from "zod";
|
|
1
|
+
import { ZodSchema, ZodTypeDef } from "zod/v3";
|
|
2
2
|
import { Refs, Seen } from "./Refs";
|
|
3
3
|
import { JsonSchema7Type } from "./parseTypes";
|
|
4
4
|
export type Targets = "jsonSchema7" | "jsonSchema2019-09" | "openApi3" | "openAi";
|
|
@@ -31,6 +31,7 @@ export type Options<Target extends Targets = "jsonSchema7"> = {
|
|
|
31
31
|
nameStrategy: "ref" | "title";
|
|
32
32
|
override?: OverrideCallback;
|
|
33
33
|
postProcess?: PostProcessCallback;
|
|
34
|
+
openAiAnyTypeName: string;
|
|
34
35
|
};
|
|
35
36
|
export declare const defaultOptions: Options;
|
|
36
37
|
export declare const getDefaultOptions: <Target extends Targets>(options: string | Partial<Options<Target>> | undefined) => Options<Target>;
|
package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/Refs.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { ZodTypeDef } from "zod";
|
|
1
|
+
import { ZodTypeDef } from "zod/v3";
|
|
2
2
|
import { Options, Targets } from "./Options.js";
|
|
3
3
|
import { JsonSchema7Type } from "./parseTypes.js";
|
|
4
4
|
export type Refs = {
|
|
5
5
|
seen: Map<ZodTypeDef, Seen>;
|
|
6
6
|
currentPath: string[];
|
|
7
7
|
propertyPath: string[] | undefined;
|
|
8
|
+
flags: {
|
|
9
|
+
hasReferencedOpenAiAnyType: boolean;
|
|
10
|
+
};
|
|
8
11
|
} & Options<Targets>;
|
|
9
12
|
export type Seen = {
|
|
10
13
|
def: ZodTypeDef;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { JsonSchema7TypeUnion } from "./parseTypes.js";
|
|
2
2
|
import { Refs } from "./Refs.js";
|
|
3
|
-
export type ErrorMessages<T extends JsonSchema7TypeUnion
|
|
3
|
+
export type ErrorMessages<T extends JsonSchema7TypeUnion | {
|
|
4
|
+
format: string;
|
|
5
|
+
} | {
|
|
6
|
+
pattern: string;
|
|
7
|
+
}, OmitProperties extends string = ""> = Partial<Omit<{
|
|
4
8
|
[key in keyof T]: string;
|
|
5
9
|
}, OmitProperties | "type" | "errorMessages">>;
|
|
6
10
|
export declare function addErrorMessage<T extends {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getRelativePath: (pathA: string[], pathB: string[]) => string;
|
package/dist/node_modules/@langchain/ollama/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZodTypeDef } from "zod";
|
|
1
|
+
import { ZodTypeDef } from "zod/v3";
|
|
2
2
|
import { Refs } from "./Refs.js";
|
|
3
3
|
import { JsonSchema7Type } from "./parseTypes.js";
|
|
4
4
|
export declare function parseDef(def: ZodTypeDef, refs: Refs, forceResolution?: boolean): JsonSchema7Type | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZodEffectsDef } from "zod";
|
|
1
|
+
import { ZodEffectsDef } from "zod/v3";
|
|
2
2
|
import { JsonSchema7Type } from "../parseTypes.js";
|
|
3
3
|
import { Refs } from "../Refs.js";
|
|
4
4
|
export declare function parseEffectsDef(_def: ZodEffectsDef, refs: Refs): JsonSchema7Type | undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { Refs } from "../Refs.js";
|
|
2
|
+
import { JsonSchema7AnyType } from "./any.js";
|
|
1
3
|
export type JsonSchema7NeverType = {
|
|
2
|
-
not:
|
|
4
|
+
not: JsonSchema7AnyType;
|
|
3
5
|
};
|
|
4
|
-
export declare function parseNeverDef(): JsonSchema7NeverType;
|
|
6
|
+
export declare function parseNeverDef(refs: Refs): JsonSchema7NeverType | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZodOptionalDef } from "zod";
|
|
1
|
+
import { ZodOptionalDef } from "zod/v3";
|
|
2
2
|
import { JsonSchema7Type } from "../parseTypes.js";
|
|
3
3
|
import { Refs } from "../Refs.js";
|
|
4
4
|
export declare const parseOptionalDef: (def: ZodOptionalDef, refs: Refs) => JsonSchema7Type | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZodPromiseDef } from "zod";
|
|
1
|
+
import { ZodPromiseDef } from "zod/v3";
|
|
2
2
|
import { JsonSchema7Type } from "../parseTypes.js";
|
|
3
3
|
import { Refs } from "../Refs.js";
|
|
4
4
|
export declare function parsePromiseDef(def: ZodPromiseDef, refs: Refs): JsonSchema7Type | undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { Refs } from "../Refs.js";
|
|
2
|
+
import { JsonSchema7AnyType } from "./any.js";
|
|
1
3
|
export type JsonSchema7UndefinedType = {
|
|
2
|
-
not:
|
|
4
|
+
not: JsonSchema7AnyType;
|
|
3
5
|
};
|
|
4
|
-
export declare function parseUndefinedDef(): JsonSchema7UndefinedType;
|
|
6
|
+
export declare function parseUndefinedDef(refs: Refs): JsonSchema7UndefinedType;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Refs } from "../Refs";
|
|
2
|
+
import { JsonSchema7AnyType } from "./any.js";
|
|
3
|
+
export type JsonSchema7UnknownType = JsonSchema7AnyType;
|
|
4
|
+
export declare function parseUnknownDef(refs: Refs): JsonSchema7UnknownType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ZodSchema } from "zod";
|
|
1
|
+
import { ZodSchema } from "zod/v3";
|
|
2
2
|
import { Options, Targets } from "./Options.js";
|
|
3
3
|
import { JsonSchema7Type } from "./parseTypes.js";
|
|
4
4
|
declare const zodToJsonSchema: <Target extends Targets = "jsonSchema7">(schema: ZodSchema<any>, options?: string | Partial<Options<Target>> | undefined) => (Target extends "jsonSchema7" ? JsonSchema7Type : object) & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zod-to-json-schema",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.1",
|
|
4
4
|
"description": "Converts Zod schemas to Json Schemas",
|
|
5
5
|
"types": "./dist/types/index.d.ts",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build:test": "npm --prefix ./dist-test test",
|
|
19
|
+
"build:test": "npm --prefix ./dist-test-v3 test && npm --prefix ./dist-test-v4 test",
|
|
20
20
|
"build:types": "tsc -p tsconfig.types.json",
|
|
21
21
|
"build:cjs": "tsc -p tsconfig.cjs.json && tsx postcjs.ts",
|
|
22
22
|
"build:esm": "tsc -p tsconfig.esm.json && tsx postesm.ts",
|
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
"test": "tsx test/index.ts",
|
|
28
28
|
"gen": "tsx createIndex.ts"
|
|
29
29
|
},
|
|
30
|
-
"c8": {
|
|
31
|
-
"exclude": ["createIndex.ts", "postcjs.ts", "postesm.ts", "test"]
|
|
32
|
-
},
|
|
33
30
|
"keywords": ["zod", "json", "schema", "open", "api", "conversion"],
|
|
34
31
|
"author": "Stefan Terdell",
|
|
35
32
|
"contributors": [
|
|
@@ -53,7 +50,9 @@
|
|
|
53
50
|
"Isaiah Marc Sanchez (https://github.com/imsanchez)",
|
|
54
51
|
"Mitchell Merry (https://github.com/mitchell-merry)",
|
|
55
52
|
"Enzo Monjardín (https://github.com/enzomonjardin)",
|
|
56
|
-
"Víctor Hernández (https://github.com/NanezX)"
|
|
53
|
+
"Víctor Hernández (https://github.com/NanezX)",
|
|
54
|
+
"Faïz Hernawan Abdillah (https://github.com/Abdillah)",
|
|
55
|
+
"Felix Mosheev (https://github.com/felixmosh)"
|
|
57
56
|
],
|
|
58
57
|
"repository": {
|
|
59
58
|
"type": "git",
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
},
|
|
62
61
|
"license": "ISC",
|
|
63
62
|
"peerDependencies": {
|
|
64
|
-
"zod": "^3.
|
|
63
|
+
"zod": "^3.25 || ^4"
|
|
65
64
|
},
|
|
66
65
|
"devDependencies": {
|
|
67
66
|
"@types/json-schema": "^7.0.9",
|
|
@@ -74,6 +73,6 @@
|
|
|
74
73
|
"rimraf": "^3.0.2",
|
|
75
74
|
"tsx": "^4.19.0",
|
|
76
75
|
"typescript": "^5.1.3",
|
|
77
|
-
"zod": "^3.
|
|
76
|
+
"zod": "^3.25 || ^4"
|
|
78
77
|
}
|
|
79
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@langchain/ollama","version":"0.1.6","description":"Ollama integration for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-ollama/","scripts":{"build":"yarn turbo:command build:internal --filter=@langchain/ollama","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","lint:dpdm":"dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"yarn lint:eslint && yarn lint:dpdm","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","clean":"rm -rf .turbo dist/","prepack":"yarn build","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"author":"LangChain","license":"MIT","dependencies":{"ollama":"^0.5.12","uuid":"^10.0.0","zod":"^3.24.1","zod-to-json-schema":"^3.24.1"},"peerDependencies":{"@langchain/core":">=0.2.21 <0.4.0"},"devDependencies":{"@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/scripts":">=0.1.0 <0.2.0","@langchain/standard-tests":"0.0.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","@tsconfig/recommended":"^1.0.3","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","dotenv":"^16.3.1","dpdm":"^3.12.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.27.5","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^17.6.0","rollup":"^4.5.2","ts-jest":"^29.1.0","typescript":"<5.2.0"},"publishConfig":{"access":"public"},"exports":{".":{"types":{"import":"./index.d.ts","require":"./index.d.cts","default":"./index.d.ts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"files":["dist/","index.cjs","index.js","index.d.ts","index.d.cts"],"_lastModified":"
|
|
1
|
+
{"name":"@langchain/ollama","version":"0.1.6","description":"Ollama integration for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-ollama/","scripts":{"build":"yarn turbo:command build:internal --filter=@langchain/ollama","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","lint:dpdm":"dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"yarn lint:eslint && yarn lint:dpdm","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","clean":"rm -rf .turbo dist/","prepack":"yarn build","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"author":"LangChain","license":"MIT","dependencies":{"ollama":"^0.5.12","uuid":"^10.0.0","zod":"^3.24.1","zod-to-json-schema":"^3.24.1"},"peerDependencies":{"@langchain/core":">=0.2.21 <0.4.0"},"devDependencies":{"@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/scripts":">=0.1.0 <0.2.0","@langchain/standard-tests":"0.0.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","@tsconfig/recommended":"^1.0.3","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","dotenv":"^16.3.1","dpdm":"^3.12.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.27.5","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^17.6.0","rollup":"^4.5.2","ts-jest":"^29.1.0","typescript":"<5.2.0"},"publishConfig":{"access":"public"},"exports":{".":{"types":{"import":"./index.d.ts","require":"./index.d.cts","default":"./index.d.ts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"files":["dist/","index.cjs","index.js","index.d.ts","index.d.cts"],"_lastModified":"2026-01-05T12:18:45.245Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@langchain/openai","version":"0.6.13","description":"OpenAI integrations for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-openai/","scripts":{"build":"yarn turbo:command build:internal --filter=@langchain/openai","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","lint:dpdm":"dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"yarn lint:eslint && yarn lint:dpdm","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","clean":"rm -rf .turbo dist/","prepack":"yarn build","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard:unit":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard":"yarn test:standard:unit && yarn test:standard:int","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"author":"LangChain","license":"MIT","dependencies":{"js-tiktoken":"^1.0.12","openai":"5.12.2","zod":"^3.25.32"},"peerDependencies":{"@langchain/core":">=0.3.68 <0.4.0"},"devDependencies":{"@azure/identity":"^4.2.1","@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/scripts":">=0.1.0 <0.2.0","@langchain/standard-tests":"0.0.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","dpdm":"^3.14.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.31.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^18.1.2","rimraf":"^5.0.1","ts-jest":"^29.1.0","typescript":"~5.8.3"},"publishConfig":{"access":"public"},"keywords":["llm","ai","gpt3","chain","prompt","prompt engineering","chatgpt","machine learning","ml","openai","embeddings","vectorstores"],"exports":{".":{"types":{"import":"./index.d.ts","require":"./index.d.cts","default":"./index.d.ts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"files":["dist/","index.cjs","index.js","index.d.ts","index.d.cts"],"_lastModified":"
|
|
1
|
+
{"name":"@langchain/openai","version":"0.6.13","description":"OpenAI integrations for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git@github.com:langchain-ai/langchainjs.git"},"homepage":"https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-openai/","scripts":{"build":"yarn turbo:command build:internal --filter=@langchain/openai","build:internal":"yarn lc_build --create-entrypoints --pre --tree-shaking","lint:eslint":"NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/","lint:dpdm":"dpdm --skip-dynamic-imports circular --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint":"yarn lint:eslint && yarn lint:dpdm","lint:fix":"yarn lint:eslint --fix && yarn lint:dpdm","clean":"rm -rf .turbo dist/","prepack":"yarn build","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard:unit":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","test:standard":"yarn test:standard:unit && yarn test:standard:int","format":"prettier --config .prettierrc --write \"src\"","format:check":"prettier --config .prettierrc --check \"src\""},"author":"LangChain","license":"MIT","dependencies":{"js-tiktoken":"^1.0.12","openai":"5.12.2","zod":"^3.25.32"},"peerDependencies":{"@langchain/core":">=0.3.68 <0.4.0"},"devDependencies":{"@azure/identity":"^4.2.1","@jest/globals":"^29.5.0","@langchain/core":"workspace:*","@langchain/scripts":">=0.1.0 <0.2.0","@langchain/standard-tests":"0.0.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","dpdm":"^3.14.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.31.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^18.1.2","rimraf":"^5.0.1","ts-jest":"^29.1.0","typescript":"~5.8.3"},"publishConfig":{"access":"public"},"keywords":["llm","ai","gpt3","chain","prompt","prompt engineering","chatgpt","machine learning","ml","openai","embeddings","vectorstores"],"exports":{".":{"types":{"import":"./index.d.ts","require":"./index.d.cts","default":"./index.d.ts"},"import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"files":["dist/","index.cjs","index.js","index.d.ts","index.d.cts"],"_lastModified":"2026-01-05T12:18:34.509Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"
|
|
1
|
+
{"name":"nodejs-snowflake","collaborators":["Utkarsh Srivastava <utkarsh@sagacious.dev>"],"description":"Generate time sortable 64 bits unique ids for distributed systems (inspired from twitter snowflake)","version":"2.0.1","license":"Apache 2.0","repository":{"type":"git","url":"https://github.com/utkarsh-pro/nodejs-snowflake.git"},"files":["nodejs_snowflake_bg.wasm","nodejs_snowflake.js","nodejs_snowflake.d.ts"],"main":"nodejs_snowflake.js","types":"nodejs_snowflake.d.ts","_lastModified":"2026-01-05T12:18:27.146Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"zod","version":"3.25.67","type":"module","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","files":["dist","v3","v4","v4-mini"],"funding":"https://github.com/sponsors/colinhacks","homepage":"https://zod.dev","keywords":["typescript","schema","validation","type","inference"],"license":"MIT","sideEffects":false,"main":"./dist/cjs/index.js","types":"./dist/types/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"},"require":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/cjs/index.js"}},"./v3":{"import":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"},"require":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/cjs/index.js"}},"./v4":{"import":{"@zod/source":"./src/v4/index.ts","types":"./dist/types/v4/index.d.ts","default":"./dist/esm/v4/index.js"},"require":{"@zod/source":"./src/v4/index.ts","types":"./dist/types/v4/index.d.ts","default":"./dist/cjs/v4/index.js"}},"./v4-mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./dist/types/v4/mini/index.d.ts","import":"./dist/esm/v4/mini/index.js","require":"./dist/cjs/v4/mini/index.js"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./dist/types/v4/mini/index.d.ts","import":"./dist/esm/v4/mini/index.js","require":"./dist/cjs/v4/mini/index.js"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./dist/types/v4/core/index.d.ts","import":"./dist/esm/v4/core/index.js","require":"./dist/cjs/v4/core/index.js"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./dist/types/v4/locales/index.d.ts","import":"./dist/esm/v4/locales/index.js","require":"./dist/cjs/v4/locales/index.js"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./dist/types/v4/locales/*","import":"./dist/esm/v4/locales/*","require":"./dist/cjs/v4/locales/*"},"./package.json":"./package.json"},"tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"sourceDialects":["@zod/source"],"exclude":["./src/**/*.test.ts"]},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"rm -rf dist","build":"tsx ./build.mts","postbuild":"pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","bump:beta":"pnpm version \"v$(pnpm pkg get version | jq -r)-beta.$(date +%Y%m%dT%H%M%S)\"","pub:beta":"pnpm bump:beta && pnpm publish --tag next --publish-branch v4 --no-git-checks --dry-run"},"_lastModified":"
|
|
1
|
+
{"name":"zod","version":"3.25.67","type":"module","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","files":["dist","v3","v4","v4-mini"],"funding":"https://github.com/sponsors/colinhacks","homepage":"https://zod.dev","keywords":["typescript","schema","validation","type","inference"],"license":"MIT","sideEffects":false,"main":"./dist/cjs/index.js","types":"./dist/types/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"},"require":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/cjs/index.js"}},"./v3":{"import":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"},"require":{"@zod/source":"./src/index.ts","types":"./dist/types/index.d.ts","default":"./dist/cjs/index.js"}},"./v4":{"import":{"@zod/source":"./src/v4/index.ts","types":"./dist/types/v4/index.d.ts","default":"./dist/esm/v4/index.js"},"require":{"@zod/source":"./src/v4/index.ts","types":"./dist/types/v4/index.d.ts","default":"./dist/cjs/v4/index.js"}},"./v4-mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./dist/types/v4/mini/index.d.ts","import":"./dist/esm/v4/mini/index.js","require":"./dist/cjs/v4/mini/index.js"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./dist/types/v4/mini/index.d.ts","import":"./dist/esm/v4/mini/index.js","require":"./dist/cjs/v4/mini/index.js"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./dist/types/v4/core/index.d.ts","import":"./dist/esm/v4/core/index.js","require":"./dist/cjs/v4/core/index.js"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./dist/types/v4/locales/index.d.ts","import":"./dist/esm/v4/locales/index.js","require":"./dist/cjs/v4/locales/index.js"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./dist/types/v4/locales/*","import":"./dist/esm/v4/locales/*","require":"./dist/cjs/v4/locales/*"},"./package.json":"./package.json"},"tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"sourceDialects":["@zod/source"],"exclude":["./src/**/*.test.ts"]},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"rm -rf dist","build":"tsx ./build.mts","postbuild":"pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","bump:beta":"pnpm version \"v$(pnpm pkg get version | jq -r)-beta.$(date +%Y%m%dT%H%M%S)\"","pub:beta":"pnpm bump:beta && pnpm publish --tag next --publish-branch v4 --no-git-checks --dry-run"},"_lastModified":"2026-01-05T12:18:46.021Z"}
|