Skip to content

Commit 3fb1b39

Browse files
chore(deps): update dependency zod to ^3.24.1 (#9169)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent c5e3e52 commit 3fb1b39

File tree

3 files changed

+63
-22
lines changed

3 files changed

+63
-22
lines changed

packages/rspack/etc/core.api.md

Lines changed: 54 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,11 +1872,11 @@ namespace errorUtil {
18721872
message?: string;
18731873
};
18741874
const // (undocumented)
1875-
errToObj: (message?: ErrMessage | undefined) => {
1875+
errToObj: (message?: ErrMessage) => {
18761876
message?: string | undefined;
18771877
};
18781878
const // (undocumented)
1879-
toString: (message?: ErrMessage | undefined) => string | undefined;
1879+
toString: (message?: ErrMessage) => string | undefined;
18801880
}
18811881

18821882
// @public (undocumented)
@@ -10236,6 +10236,43 @@ class SplitChunksPlugin extends RspackBuiltinPlugin {
1023610236
raw(compiler: Compiler): BuiltinPlugin;
1023710237
}
1023810238

10239+
// @public
10240+
type StandardSchemaV1<Input = unknown, Output = Input> = {
10241+
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
10242+
};
10243+
10244+
// @public (undocumented)
10245+
namespace StandardSchemaV1 {
10246+
interface FailureResult {
10247+
readonly issues: ReadonlyArray<Issue>;
10248+
}
10249+
type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
10250+
type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
10251+
interface Issue {
10252+
readonly message: string;
10253+
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
10254+
}
10255+
interface PathSegment {
10256+
readonly key: PropertyKey;
10257+
}
10258+
interface Props<Input = unknown, Output = Input> {
10259+
readonly types?: Types<Input, Output> | undefined;
10260+
readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
10261+
readonly vendor: string;
10262+
readonly version: 1;
10263+
}
10264+
type Result<Output> = SuccessResult<Output> | FailureResult;
10265+
interface SuccessResult<Output> {
10266+
readonly issues?: undefined;
10267+
readonly value: Output;
10268+
}
10269+
interface Types<Input = unknown, Output = Input> {
10270+
readonly input: Input;
10271+
readonly output: Output;
10272+
}
10273+
{ };
10274+
}
10275+
1023910276
// @public (undocumented)
1024010277
type Stat = {
1024110278
(path: PathLike, callback: StatsCallback): void;
@@ -10503,7 +10540,7 @@ type StringCallback = (err: NodeJS.ErrnoException | null, data?: string) => void
1050310540
type StringOrBufferCallback = (err: NodeJS.ErrnoException | null, data?: string | Buffer) => void;
1050410541

1050510542
// @public (undocumented)
10506-
type StringValidation = "email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "base64" | {
10543+
type StringValidation = "email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "cidr" | "base64" | "jwt" | "base64url" | {
1050710544
includes: string;
1050810545
position?: number;
1050910546
} | {
@@ -11699,7 +11736,7 @@ interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1169911736
// @public (undocumented)
1170011737
class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<Output, ZodEffectsDef<T>, Input> {
1170111738
// (undocumented)
11702-
static create: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"], input<I>>;
11739+
static create: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"]>;
1170311740
// (undocumented)
1170411741
static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
1170511742
// (undocumented)
@@ -12029,25 +12066,25 @@ interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1202912066

1203012067
// @public (undocumented)
1203112068
const ZodParsedType: {
12032-
function: "function";
12033-
number: "number";
1203412069
string: "string";
12070+
number: "number";
12071+
bigint: "bigint";
12072+
boolean: "boolean";
12073+
symbol: "symbol";
12074+
undefined: "undefined";
12075+
object: "object";
12076+
function: "function";
12077+
map: "map";
1203512078
nan: "nan";
1203612079
integer: "integer";
1203712080
float: "float";
12038-
boolean: "boolean";
1203912081
date: "date";
12040-
bigint: "bigint";
12041-
symbol: "symbol";
12042-
undefined: "undefined";
1204312082
null: "null";
1204412083
array: "array";
12045-
object: "object";
1204612084
unknown: "unknown";
1204712085
promise: "promise";
1204812086
void: "void";
1204912087
never: "never";
12050-
map: "map";
1205112088
set: "set";
1205212089
};
1205312090

@@ -12147,6 +12184,10 @@ interface ZodTooSmallIssue extends ZodIssueBase {
1214712184

1214812185
// @public (undocumented)
1214912186
abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {
12187+
// (undocumented)
12188+
"~standard": StandardSchemaV1.Props<Input, Output>;
12189+
// (undocumented)
12190+
"~validate"(data: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>>;
1215012191
constructor(def: Def);
1215112192
// (undocumented)
1215212193
and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T>;
@@ -12226,7 +12267,7 @@ abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input
1222612267
safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
1222712268
// (undocumented)
1222812269
safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
12229-
spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;
12270+
spa: (data: unknown, params?: Partial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>>;
1223012271
// (undocumented)
1223112272
superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input>;
1223212273
// (undocumented)

packages/rspack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"watchpack": "^2.4.0",
6969
"webpack-dev-server": "5.0.4",
7070
"webpack-sources": "3.2.3",
71-
"zod": "^3.23.8",
71+
"zod": "^3.24.1",
7272
"zod-validation-error": "3.4.0"
7373
},
7474
"dependencies": {

pnpm-lock.yaml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)