@rspack/core 1.4.0-beta.1 → 1.4.0-rc.0
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/README.md +1 -1
- package/dist/Module.d.ts +0 -1
- package/dist/builtin-loader/swc/pluginImport.d.ts +4 -26
- package/dist/builtin-loader/swc/types.d.ts +147 -2009
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -1
- package/dist/config/normalization.d.ts +2 -1
- package/dist/config/types.d.ts +14 -3
- package/dist/config/utils.d.ts +3 -17
- package/dist/config/zod.d.ts +682 -4538
- package/dist/exports.d.ts +2 -1
- package/dist/index.js +3707 -1144
- package/dist/util/validate.d.ts +1 -1
- package/package.json +4 -4
- package/compiled/enhanced-resolve/CachedInputFileSystem.d.ts +0 -0
- package/compiled/enhanced-resolve/CachedInputFileSystem.js +0 -664
- package/compiled/enhanced-resolve/index.d.ts +0 -1124
- package/compiled/enhanced-resolve/license +0 -20
- package/compiled/enhanced-resolve/package.json +0 -1
- package/compiled/zod/dist/types/index.d.ts +0 -3
- package/compiled/zod/dist/types/v3/ZodError.d.ts +0 -164
- package/compiled/zod/dist/types/v3/benchmarks/datetime.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/discriminatedUnion.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/index.d.ts +0 -1
- package/compiled/zod/dist/types/v3/benchmarks/ipv4.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/object.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/primitives.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/realworld.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/string.d.ts +0 -5
- package/compiled/zod/dist/types/v3/benchmarks/union.d.ts +0 -5
- package/compiled/zod/dist/types/v3/errors.d.ts +0 -5
- package/compiled/zod/dist/types/v3/external.d.ts +0 -6
- package/compiled/zod/dist/types/v3/helpers/enumUtil.d.ts +0 -8
- package/compiled/zod/dist/types/v3/helpers/errorUtil.d.ts +0 -9
- package/compiled/zod/dist/types/v3/helpers/parseUtil.d.ts +0 -78
- package/compiled/zod/dist/types/v3/helpers/partialUtil.d.ts +0 -8
- package/compiled/zod/dist/types/v3/helpers/typeAliases.d.ts +0 -2
- package/compiled/zod/dist/types/v3/helpers/util.d.ts +0 -85
- package/compiled/zod/dist/types/v3/index.d.ts +0 -4
- package/compiled/zod/dist/types/v3/locales/en.d.ts +0 -3
- package/compiled/zod/dist/types/v3/standard-schema.d.ts +0 -102
- package/compiled/zod/dist/types/v3/tests/Mocker.d.ts +0 -17
- package/compiled/zod/dist/types/v3/types.d.ts +0 -1031
- package/compiled/zod/dist/types/v4/classic/checks.d.ts +0 -1
- package/compiled/zod/dist/types/v4/classic/coerce.d.ts +0 -17
- package/compiled/zod/dist/types/v4/classic/compat.d.ts +0 -48
- package/compiled/zod/dist/types/v4/classic/errors.d.ts +0 -30
- package/compiled/zod/dist/types/v4/classic/external.d.ts +0 -13
- package/compiled/zod/dist/types/v4/classic/index.d.ts +0 -4
- package/compiled/zod/dist/types/v4/classic/iso.d.ts +0 -22
- package/compiled/zod/dist/types/v4/classic/parse.d.ts +0 -23
- package/compiled/zod/dist/types/v4/classic/schemas.d.ts +0 -624
- package/compiled/zod/dist/types/v4/core/api.d.ts +0 -274
- package/compiled/zod/dist/types/v4/core/checks.d.ts +0 -277
- package/compiled/zod/dist/types/v4/core/config.d.ts +0 -9
- package/compiled/zod/dist/types/v4/core/core.d.ts +0 -47
- package/compiled/zod/dist/types/v4/core/doc.d.ts +0 -14
- package/compiled/zod/dist/types/v4/core/errors.d.ts +0 -204
- package/compiled/zod/dist/types/v4/core/function.d.ts +0 -52
- package/compiled/zod/dist/types/v4/core/index.d.ts +0 -15
- package/compiled/zod/dist/types/v4/core/json-schema.d.ts +0 -100
- package/compiled/zod/dist/types/v4/core/parse.d.ts +0 -25
- package/compiled/zod/dist/types/v4/core/regexes.d.ts +0 -62
- package/compiled/zod/dist/types/v4/core/registries.d.ts +0 -39
- package/compiled/zod/dist/types/v4/core/schemas.d.ts +0 -1005
- package/compiled/zod/dist/types/v4/core/standard-schema.d.ts +0 -55
- package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +0 -84
- package/compiled/zod/dist/types/v4/core/util.d.ts +0 -182
- package/compiled/zod/dist/types/v4/core/versions.d.ts +0 -5
- package/compiled/zod/dist/types/v4/core/zsf.d.ts +0 -91
- package/compiled/zod/dist/types/v4/index.d.ts +0 -3
- package/compiled/zod/dist/types/v4/locales/ar.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/az.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/be.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ca.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/cs.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/de.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/en.d.ts +0 -5
- package/compiled/zod/dist/types/v4/locales/es.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/fa.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/fi.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/fr-CA.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/fr.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/he.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/hu.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/id.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/index.d.ts +0 -38
- package/compiled/zod/dist/types/v4/locales/it.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ja.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/kh.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ko.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/mk.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ms.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/nl.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/no.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ota.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/pl.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ps.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/pt.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ru.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/sl.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/sv.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ta.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/th.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/tr.d.ts +0 -5
- package/compiled/zod/dist/types/v4/locales/ua.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/ur.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/vi.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +0 -4
- package/compiled/zod/dist/types/v4/locales/zh-TW.d.ts +0 -4
- package/compiled/zod/dist/types/v4/mini/checks.d.ts +0 -1
- package/compiled/zod/dist/types/v4/mini/coerce.d.ts +0 -7
- package/compiled/zod/dist/types/v4/mini/external.d.ts +0 -11
- package/compiled/zod/dist/types/v4/mini/index.d.ts +0 -3
- package/compiled/zod/dist/types/v4/mini/iso.d.ts +0 -22
- package/compiled/zod/dist/types/v4/mini/parse.d.ts +0 -1
- package/compiled/zod/dist/types/v4/mini/schemas.d.ts +0 -350
- package/compiled/zod/index.js +0 -4513
- package/compiled/zod/license +0 -21
- package/compiled/zod/package.json +0 -1
- package/compiled/zod/v3/index.d.ts +0 -3
- package/compiled/zod/v4/core/index.d.ts +0 -1
- package/compiled/zod/v4/index.d.ts +0 -3
- package/compiled/zod/v4/locales/en.d.ts +0 -2
- package/compiled/zod/v4/locales/index.d.ts +0 -1
- package/compiled/zod/v4-mini/index.d.ts +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
export { _lt as lt, _lte as lte, _gt as gt, _gte as gte, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "zod/v4/core";
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import * as core from "zod/v4/core";
|
2
|
-
import * as schemas from "./schemas.js";
|
3
|
-
export interface ZodCoercedString<T = unknown> extends schemas._ZodString<core.$ZodStringInternals<T>> {
|
4
|
-
}
|
5
|
-
export declare function string<T = unknown>(params?: string | core.$ZodStringParams): ZodCoercedString<T>;
|
6
|
-
export interface ZodCoercedNumber<T = unknown> extends schemas._ZodNumber<core.$ZodNumberInternals<T>> {
|
7
|
-
}
|
8
|
-
export declare function number<T = unknown>(params?: string | core.$ZodNumberParams): ZodCoercedNumber<T>;
|
9
|
-
export interface ZodCoercedBoolean<T = unknown> extends schemas._ZodBoolean<core.$ZodBooleanInternals<T>> {
|
10
|
-
}
|
11
|
-
export declare function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): ZodCoercedBoolean<T>;
|
12
|
-
export interface ZodCoercedBigInt<T = unknown> extends schemas._ZodBigInt<core.$ZodBigIntInternals<T>> {
|
13
|
-
}
|
14
|
-
export declare function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): ZodCoercedBigInt<T>;
|
15
|
-
export interface ZodCoercedDate<T = unknown> extends schemas._ZodDate<core.$ZodDateInternals<T>> {
|
16
|
-
}
|
17
|
-
export declare function date<T = unknown>(params?: string | core.$ZodDateParams): ZodCoercedDate<T>;
|
@@ -1,48 +0,0 @@
|
|
1
|
-
import * as core from "zod/v4/core";
|
2
|
-
import type { ZodType } from "./schemas.js";
|
3
|
-
export type {
|
4
|
-
/** @deprecated Use `z.output<T>` instead. */
|
5
|
-
output as TypeOf,
|
6
|
-
/** @deprecated Use `z.output<T>` instead. */
|
7
|
-
output as Infer,
|
8
|
-
/** @deprecated Use `z.core.$$ZodFirstPartyTypes` instead */
|
9
|
-
$ZodTypes as ZodFirstPartySchemaTypes, } from "zod/v4/core";
|
10
|
-
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
11
|
-
export declare const ZodIssueCode: {
|
12
|
-
readonly invalid_type: "invalid_type";
|
13
|
-
readonly too_big: "too_big";
|
14
|
-
readonly too_small: "too_small";
|
15
|
-
readonly invalid_format: "invalid_format";
|
16
|
-
readonly not_multiple_of: "not_multiple_of";
|
17
|
-
readonly unrecognized_keys: "unrecognized_keys";
|
18
|
-
readonly invalid_union: "invalid_union";
|
19
|
-
readonly invalid_key: "invalid_key";
|
20
|
-
readonly invalid_element: "invalid_element";
|
21
|
-
readonly invalid_value: "invalid_value";
|
22
|
-
readonly custom: "custom";
|
23
|
-
};
|
24
|
-
/** A special constant with type `never` */
|
25
|
-
export declare const NEVER: never;
|
26
|
-
/** @deprecated Use `z.$ZodFlattenedError` */
|
27
|
-
export type inferFlattenedErrors<T extends core.$ZodType, U = string> = core.$ZodFlattenedError<core.output<T>, U>;
|
28
|
-
/** @deprecated Use `z.$ZodFormattedError` */
|
29
|
-
export type inferFormattedError<T extends core.$ZodType<any, any>, U = string> = core.$ZodFormattedError<core.output<T>, U>;
|
30
|
-
/** Use `z.$brand` instead */
|
31
|
-
export type BRAND<T extends string | number | symbol = string | number | symbol> = {
|
32
|
-
[core.$brand]: {
|
33
|
-
[k in T]: true;
|
34
|
-
};
|
35
|
-
};
|
36
|
-
export { $brand, config } from "zod/v4/core";
|
37
|
-
/** @deprecated Use `z.config(params)` instead. */
|
38
|
-
export declare function setErrorMap(map: core.$ZodErrorMap): void;
|
39
|
-
/** @deprecated Use `z.config()` instead. */
|
40
|
-
export declare function getErrorMap(): core.$ZodErrorMap<core.$ZodIssue> | undefined;
|
41
|
-
export type {
|
42
|
-
/** @deprecated Use z.ZodType (without generics) instead. */
|
43
|
-
ZodType as ZodTypeAny,
|
44
|
-
/** @deprecated Use `z.ZodType` */
|
45
|
-
ZodType as ZodSchema,
|
46
|
-
/** @deprecated Use `z.ZodType` */
|
47
|
-
ZodType as Schema, };
|
48
|
-
export type ZodRawShape = core.$ZodShape;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import * as core from "zod/v4/core";
|
2
|
-
import { $ZodError } from "zod/v4/core";
|
3
|
-
/** @deprecated Use `z.core.$ZodIssue` from `@zod/core` instead, especially if you are building a library on top of Zod. */
|
4
|
-
export type ZodIssue = core.$ZodIssue;
|
5
|
-
/** An Error-like class used to store Zod validation issues. */
|
6
|
-
export interface ZodError<T = unknown> extends $ZodError<T> {
|
7
|
-
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
8
|
-
format(): core.$ZodFormattedError<T>;
|
9
|
-
format<U>(mapper: (issue: core.$ZodIssue) => U): core.$ZodFormattedError<T, U>;
|
10
|
-
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
11
|
-
flatten(): core.$ZodFlattenedError<T>;
|
12
|
-
flatten<U>(mapper: (issue: core.$ZodIssue) => U): core.$ZodFlattenedError<T, U>;
|
13
|
-
/** @deprecated Push directly to `.issues` instead. */
|
14
|
-
addIssue(issue: core.$ZodIssue): void;
|
15
|
-
/** @deprecated Push directly to `.issues` instead. */
|
16
|
-
addIssues(issues: core.$ZodIssue[]): void;
|
17
|
-
/** @deprecated Check `err.issues.length === 0` instead. */
|
18
|
-
isEmpty: boolean;
|
19
|
-
}
|
20
|
-
export declare const ZodError: core.$constructor<ZodError>;
|
21
|
-
export declare const ZodRealError: core.$constructor<ZodError>;
|
22
|
-
export type {
|
23
|
-
/** @deprecated Use `z.core.$ZodFlattenedError` instead. */
|
24
|
-
$ZodFlattenedError as ZodFlattenedError,
|
25
|
-
/** @deprecated Use `z.core.$ZodFormattedError` instead. */
|
26
|
-
$ZodFormattedError as ZodFormattedError,
|
27
|
-
/** @deprecated Use `z.core.$ZodErrorMap` instead. */
|
28
|
-
$ZodErrorMap as ZodErrorMap, } from "zod/v4/core";
|
29
|
-
/** @deprecated Use `z.core.$ZodRawIssue` instead. */
|
30
|
-
export type IssueData = core.$ZodRawIssue;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
export * as core from "zod/v4/core";
|
2
|
-
export * from "./schemas.js";
|
3
|
-
export * from "./checks.js";
|
4
|
-
export * from "./errors.js";
|
5
|
-
export * from "./parse.js";
|
6
|
-
export * from "./compat.js";
|
7
|
-
export type { infer, output, input } from "zod/v4/core";
|
8
|
-
export { globalRegistry, type GlobalMeta, registry, config, function, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, } from "zod/v4/core";
|
9
|
-
export * as locales from "../locales/index.js";
|
10
|
-
export { ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration } from "./iso.js";
|
11
|
-
export * as iso from "./iso.js";
|
12
|
-
export type { ZodCoercedString, ZodCoercedNumber, ZodCoercedBigInt, ZodCoercedBoolean, ZodCoercedDate, } from "./coerce.js";
|
13
|
-
export * as coerce from "./coerce.js";
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import * as core from "zod/v4/core";
|
2
|
-
import * as schemas from "./schemas.js";
|
3
|
-
export interface ZodISODateTime extends schemas.ZodStringFormat {
|
4
|
-
_zod: core.$ZodISODateTimeInternals;
|
5
|
-
}
|
6
|
-
export declare const ZodISODateTime: core.$constructor<ZodISODateTime>;
|
7
|
-
export declare function datetime(params?: string | core.$ZodISODateTimeParams): ZodISODateTime;
|
8
|
-
export interface ZodISODate extends schemas.ZodStringFormat {
|
9
|
-
_zod: core.$ZodISODateInternals;
|
10
|
-
}
|
11
|
-
export declare const ZodISODate: core.$constructor<ZodISODate>;
|
12
|
-
export declare function date(params?: string | core.$ZodISODateParams): ZodISODate;
|
13
|
-
export interface ZodISOTime extends schemas.ZodStringFormat {
|
14
|
-
_zod: core.$ZodISOTimeInternals;
|
15
|
-
}
|
16
|
-
export declare const ZodISOTime: core.$constructor<ZodISOTime>;
|
17
|
-
export declare function time(params?: string | core.$ZodISOTimeParams): ZodISOTime;
|
18
|
-
export interface ZodISODuration extends schemas.ZodStringFormat {
|
19
|
-
_zod: core.$ZodISODurationInternals;
|
20
|
-
}
|
21
|
-
export declare const ZodISODuration: core.$constructor<ZodISODuration>;
|
22
|
-
export declare function duration(params?: string | core.$ZodISODurationParams): ZodISODuration;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import * as core from "zod/v4/core";
|
2
|
-
import { type ZodError } from "./errors.js";
|
3
|
-
export type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
|
4
|
-
export type ZodSafeParseSuccess<T> = {
|
5
|
-
success: true;
|
6
|
-
data: T;
|
7
|
-
error?: never;
|
8
|
-
};
|
9
|
-
export type ZodSafeParseError<T> = {
|
10
|
-
success: false;
|
11
|
-
data?: never;
|
12
|
-
error: ZodError<T>;
|
13
|
-
};
|
14
|
-
export declare const parse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {
|
15
|
-
callee?: core.util.AnyFunc;
|
16
|
-
Err?: core.$ZodErrorClass;
|
17
|
-
}) => core.output<T>;
|
18
|
-
export declare const parseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {
|
19
|
-
callee?: core.util.AnyFunc;
|
20
|
-
Err?: core.$ZodErrorClass;
|
21
|
-
}) => Promise<core.output<T>>;
|
22
|
-
export declare const safeParse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;
|
23
|
-
export declare const safeParseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;
|