@rspack/core 1.3.3 → 1.3.5
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/compiled/enhanced-resolve/index.d.ts +2 -1
- package/compiled/zod/index.d.ts +8 -6
- package/dist/Compilation.d.ts +3 -1
- package/dist/Module.d.ts +1 -0
- package/dist/ModuleGraph.d.ts +1 -2
- package/dist/NormalModule.d.ts +2 -2
- package/dist/exports.d.ts +2 -1
- package/dist/index.js +322 -352
- package/dist/util/hash/BatchedHash.d.ts +2 -6
- package/dist/util/hash/index.d.ts +15 -6
- package/dist/worker.js +53 -93
- package/package.json +4 -4
- package/dist/ModuleGraphConnection.d.ts +0 -12
@@ -1117,7 +1117,8 @@ declare namespace exports {
|
|
1117
1117
|
res?: string | false,
|
1118
1118
|
req?: ResolveRequest
|
1119
1119
|
) => void;
|
1120
|
-
export { CachedInputFileSystem, CloneBasenamePlugin, LogInfoPlugin,
|
1120
|
+
export { CachedInputFileSystem, CloneBasenamePlugin, LogInfoPlugin, Resolver };
|
1121
|
+
export type { ResolveOptionsOptionalFS, PnpApi, FileSystem, ResolveContext, ResolveRequest, Plugin, ResolveOptionsResolverFactoryObject_2 as ResolveOptions, ResolveFunctionAsync, ResolveFunction };
|
1121
1122
|
}
|
1122
1123
|
|
1123
1124
|
export { exports as default };
|
package/compiled/zod/index.d.ts
CHANGED
@@ -22,7 +22,7 @@ declare namespace util {
|
|
22
22
|
export const isInteger: NumberConstructor["isInteger"];
|
23
23
|
export function joinValues<T extends any[]>(array: T, separator?: string): string;
|
24
24
|
export const jsonStringifyReplacer: (_: string, value: any) => any;
|
25
|
-
export {
|
25
|
+
export {};
|
26
26
|
}
|
27
27
|
declare namespace objectUtil {
|
28
28
|
export type MergeShapes<U, V> = {
|
@@ -57,7 +57,7 @@ declare namespace objectUtil {
|
|
57
57
|
} & {
|
58
58
|
[K in keyof B]: B[K];
|
59
59
|
};
|
60
|
-
export {
|
60
|
+
export {};
|
61
61
|
}
|
62
62
|
declare const ZodParsedType: {
|
63
63
|
string: "string";
|
@@ -333,7 +333,7 @@ declare namespace enumUtil {
|
|
333
333
|
type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;
|
334
334
|
type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;
|
335
335
|
export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
|
336
|
-
export {
|
336
|
+
export {};
|
337
337
|
}
|
338
338
|
|
339
339
|
declare namespace errorUtil {
|
@@ -454,7 +454,7 @@ declare namespace StandardSchemaV1 {
|
|
454
454
|
* Infers the output type of a Standard Schema.
|
455
455
|
*/
|
456
456
|
export type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
457
|
-
export {
|
457
|
+
export {};
|
458
458
|
}
|
459
459
|
|
460
460
|
interface RefinementCtx {
|
@@ -1764,7 +1764,9 @@ type z_typeToFlattenedError<T, U = string> = typeToFlattenedError<T, U>;
|
|
1764
1764
|
type z_typecast<A, T> = typecast<A, T>;
|
1765
1765
|
import z_util = util;
|
1766
1766
|
declare namespace z {
|
1767
|
-
export {
|
1767
|
+
export { z_DIRTY as DIRTY, z_EMPTY_PATH as EMPTY_PATH, z_INVALID as INVALID, z_NEVER as NEVER, z_OK as OK, z_ParseStatus as ParseStatus, ZodType as Schema, z_ZodAny as ZodAny, z_ZodArray as ZodArray, z_ZodBigInt as ZodBigInt, z_ZodBoolean as ZodBoolean, z_ZodBranded as ZodBranded, z_ZodCatch as ZodCatch, z_ZodDate as ZodDate, z_ZodDefault as ZodDefault, z_ZodDiscriminatedUnion as ZodDiscriminatedUnion, z_ZodEffects as ZodEffects, z_ZodEnum as ZodEnum, z_ZodError as ZodError, z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind, z_ZodFunction as ZodFunction, z_ZodIntersection as ZodIntersection, z_ZodLazy as ZodLazy, z_ZodLiteral as ZodLiteral, z_ZodMap as ZodMap, z_ZodNaN as ZodNaN, z_ZodNativeEnum as ZodNativeEnum, z_ZodNever as ZodNever, z_ZodNull as ZodNull, z_ZodNullable as ZodNullable, z_ZodNumber as ZodNumber, z_ZodObject as ZodObject, z_ZodOptional as ZodOptional, z_ZodPipeline as ZodPipeline, z_ZodPromise as ZodPromise, z_ZodReadonly as ZodReadonly, z_ZodRecord as ZodRecord, ZodType as ZodSchema, z_ZodSet as ZodSet, z_ZodString as ZodString, z_ZodSymbol as ZodSymbol, ZodEffects as ZodTransformer, z_ZodTuple as ZodTuple, z_ZodType as ZodType, z_ZodUndefined as ZodUndefined, z_ZodUnion as ZodUnion, z_ZodUnknown as ZodUnknown, z_ZodVoid as ZodVoid, z_addIssueToContext as addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, z_coerce as coerce, z_custom as custom, dateType as date, z_datetimeRegex as datetimeRegex, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, z_getErrorMap as getErrorMap, z_getParsedType as getParsedType, instanceOfType as instanceof, intersectionType as intersection, z_isAborted as isAborted, z_isAsync as isAsync, z_isDirty as isDirty, z_isValid as isValid, z_late as late, lazyType as lazy, literalType as literal, z_makeIssue as makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, z_objectUtil as objectUtil, z_oboolean as oboolean, z_onumber as onumber, optionalType as optional, z_ostring as ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, z_quotelessJson as quotelessJson, recordType as record, setType as set, z_setErrorMap as setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, z_util as util, voidType as void };
|
1768
|
+
export type { z_AnyZodObject as AnyZodObject, z_AnyZodTuple as AnyZodTuple, z_ArrayCardinality as ArrayCardinality, z_ArrayKeys as ArrayKeys, z_AssertArray as AssertArray, z_AsyncParseReturnType as AsyncParseReturnType, z_BRAND as BRAND, z_CatchallInput as CatchallInput, z_CatchallOutput as CatchallOutput, z_CustomErrorParams as CustomErrorParams, z_DenormalizedError as DenormalizedError, z_Effect as Effect, z_EnumLike as EnumLike, z_EnumValues as EnumValues, z_ErrorMapCtx as ErrorMapCtx, z_FilterEnum as FilterEnum, z_Indices as Indices, z_InnerTypeOfFunction as InnerTypeOfFunction, z_InputTypeOfTuple as InputTypeOfTuple, z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest, z_IpVersion as IpVersion, z_IssueData as IssueData, z_KeySchema as KeySchema, z_ObjectPair as ObjectPair, z_OuterTypeOfFunction as OuterTypeOfFunction, z_OutputTypeOfTuple as OutputTypeOfTuple, z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest, z_ParseContext as ParseContext, z_ParseInput as ParseInput, z_ParseParams as ParseParams, z_ParsePath as ParsePath, z_ParsePathComponent as ParsePathComponent, z_ParseResult as ParseResult, z_ParseReturnType as ParseReturnType, z_PassthroughType as PassthroughType, z_PreprocessEffect as PreprocessEffect, z_Primitive as Primitive, z_ProcessedCreateParams as ProcessedCreateParams, z_RawCreateParams as RawCreateParams, z_RecordType as RecordType, z_Refinement as Refinement, z_RefinementCtx as RefinementCtx, z_RefinementEffect as RefinementEffect, z_SafeParseError as SafeParseError, z_SafeParseReturnType as SafeParseReturnType, z_SafeParseSuccess as SafeParseSuccess, z_Scalars as Scalars, z_SomeZodObject as SomeZodObject, z_StringValidation as StringValidation, z_SuperRefinement as SuperRefinement, z_SyncParseReturnType as SyncParseReturnType, z_TransformEffect as TransformEffect, z_TypeOf as TypeOf, z_UnknownKeysParam as UnknownKeysParam, z_Values as Values, z_Writeable as Writeable, z_ZodAnyDef as ZodAnyDef, z_ZodArrayDef as ZodArrayDef, z_ZodBigIntCheck as ZodBigIntCheck, z_ZodBigIntDef as ZodBigIntDef, z_ZodBooleanDef as ZodBooleanDef, z_ZodBrandedDef as ZodBrandedDef, z_ZodCatchDef as ZodCatchDef, z_ZodCustomIssue as ZodCustomIssue, z_ZodDateCheck as ZodDateCheck, z_ZodDateDef as ZodDateDef, z_ZodDefaultDef as ZodDefaultDef, z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef, z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption, z_ZodEffectsDef as ZodEffectsDef, z_ZodEnumDef as ZodEnumDef, z_ZodErrorMap as ZodErrorMap, z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes, z_ZodFormattedError as ZodFormattedError, z_ZodFunctionDef as ZodFunctionDef, z_ZodIntersectionDef as ZodIntersectionDef, z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue, z_ZodInvalidDateIssue as ZodInvalidDateIssue, z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue, z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue, z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue, z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue, z_ZodInvalidStringIssue as ZodInvalidStringIssue, z_ZodInvalidTypeIssue as ZodInvalidTypeIssue, z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue, z_ZodInvalidUnionIssue as ZodInvalidUnionIssue, z_ZodIssue as ZodIssue, z_ZodIssueBase as ZodIssueBase, z_ZodIssueCode as ZodIssueCode, z_ZodIssueOptionalMessage as ZodIssueOptionalMessage, z_ZodLazyDef as ZodLazyDef, z_ZodLiteralDef as ZodLiteralDef, z_ZodMapDef as ZodMapDef, z_ZodNaNDef as ZodNaNDef, z_ZodNativeEnumDef as ZodNativeEnumDef, z_ZodNeverDef as ZodNeverDef, z_ZodNonEmptyArray as ZodNonEmptyArray, z_ZodNotFiniteIssue as ZodNotFiniteIssue, z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue, z_ZodNullDef as ZodNullDef, z_ZodNullableDef as ZodNullableDef, z_ZodNullableType as ZodNullableType, z_ZodNumberCheck as ZodNumberCheck, z_ZodNumberDef as ZodNumberDef, z_ZodObjectDef as ZodObjectDef, z_ZodOptionalDef as ZodOptionalDef, z_ZodOptionalType as ZodOptionalType, z_ZodParsedType as ZodParsedType, z_ZodPipelineDef as ZodPipelineDef, z_ZodPromiseDef as ZodPromiseDef, z_ZodRawShape as ZodRawShape, z_ZodReadonlyDef as ZodReadonlyDef, z_ZodRecordDef as ZodRecordDef, z_ZodSetDef as ZodSetDef, z_ZodStringCheck as ZodStringCheck, z_ZodStringDef as ZodStringDef, z_ZodSymbolDef as ZodSymbolDef, z_ZodTooBigIssue as ZodTooBigIssue, z_ZodTooSmallIssue as ZodTooSmallIssue, z_ZodTupleDef as ZodTupleDef, z_ZodTupleItems as ZodTupleItems, z_ZodTypeAny as ZodTypeAny, z_ZodTypeDef as ZodTypeDef, z_ZodUndefinedDef as ZodUndefinedDef, z_ZodUnionDef as ZodUnionDef, z_ZodUnionOptions as ZodUnionOptions, z_ZodUnknownDef as ZodUnknownDef, z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue, z_ZodVoidDef as ZodVoidDef, z_arrayOutputType as arrayOutputType, z_baseObjectInputType as baseObjectInputType, z_baseObjectOutputType as baseObjectOutputType, z_deoptional as deoptional, TypeOf as infer, z_inferFlattenedErrors as inferFlattenedErrors, z_inferFormattedError as inferFormattedError, z_input as input, z_mergeTypes as mergeTypes, z_noUnrecognized as noUnrecognized, z_objectInputType as objectInputType, z_objectOutputType as objectOutputType, z_output as output, z_typeToFlattenedError as typeToFlattenedError, z_typecast as typecast };
|
1768
1769
|
}
|
1769
1770
|
|
1770
|
-
export {
|
1771
|
+
export { BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, ZodType as Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodType as ZodSchema, ZodSet, ZodString, ZodSymbol, ZodEffects as ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectUtil, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };
|
1772
|
+
export type { AnyZodObject, AnyZodTuple, ArrayCardinality, ArrayKeys, AssertArray, AsyncParseReturnType, CatchallInput, CatchallOutput, CustomErrorParams, DenormalizedError, Effect, EnumLike, EnumValues, ErrorMapCtx, FilterEnum, Indices, InnerTypeOfFunction, InputTypeOfTuple, InputTypeOfTupleWithRest, IpVersion, IssueData, KeySchema, ObjectPair, OuterTypeOfFunction, OutputTypeOfTuple, OutputTypeOfTupleWithRest, ParseContext, ParseInput, ParseParams, ParsePath, ParsePathComponent, ParseResult, ParseReturnType, PassthroughType, PreprocessEffect, Primitive, ProcessedCreateParams, RawCreateParams, RecordType, Refinement, RefinementCtx, RefinementEffect, SafeParseError, SafeParseReturnType, SafeParseSuccess, Scalars, SomeZodObject, StringValidation, SuperRefinement, SyncParseReturnType, TransformEffect, TypeOf, UnknownKeysParam, Values, Writeable, ZodAnyDef, ZodArrayDef, ZodBigIntCheck, ZodBigIntDef, ZodBooleanDef, ZodBrandedDef, ZodCatchDef, ZodCustomIssue, ZodDateCheck, ZodDateDef, ZodDefaultDef, ZodDiscriminatedUnionDef, ZodDiscriminatedUnionOption, ZodEffectsDef, ZodEnumDef, ZodErrorMap, ZodFirstPartySchemaTypes, ZodFormattedError, ZodFunctionDef, ZodIntersectionDef, ZodInvalidArgumentsIssue, ZodInvalidDateIssue, ZodInvalidEnumValueIssue, ZodInvalidIntersectionTypesIssue, ZodInvalidLiteralIssue, ZodInvalidReturnTypeIssue, ZodInvalidStringIssue, ZodInvalidTypeIssue, ZodInvalidUnionDiscriminatorIssue, ZodInvalidUnionIssue, ZodIssue, ZodIssueBase, ZodIssueOptionalMessage, ZodLazyDef, ZodLiteralDef, ZodMapDef, ZodNaNDef, ZodNativeEnumDef, ZodNeverDef, ZodNonEmptyArray, ZodNotFiniteIssue, ZodNotMultipleOfIssue, ZodNullDef, ZodNullableDef, ZodNullableType, ZodNumberCheck, ZodNumberDef, ZodObjectDef, ZodOptionalDef, ZodOptionalType, ZodPipelineDef, ZodPromiseDef, ZodRawShape, ZodReadonlyDef, ZodRecordDef, ZodSetDef, ZodStringCheck, ZodStringDef, ZodSymbolDef, ZodTooBigIssue, ZodTooSmallIssue, ZodTupleDef, ZodTupleItems, ZodTypeAny, ZodTypeDef, ZodUndefinedDef, ZodUnionDef, ZodUnionOptions, ZodUnknownDef, ZodUnrecognizedKeysIssue, ZodVoidDef, arrayOutputType, baseObjectInputType, baseObjectOutputType, deoptional, TypeOf as infer, inferFlattenedErrors, inferFormattedError, input, mergeTypes, noUnrecognized, objectInputType, objectOutputType, output, typeToFlattenedError, typecast };
|
package/dist/Compilation.d.ts
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
|
-
import
|
10
|
+
import * as binding from "@rspack/binding";
|
11
11
|
import { type AssetInfo, type Dependency, type ExternalObject, type JsCompilation, type JsRuntimeModule } from "@rspack/binding";
|
12
12
|
export type { AssetInfo } from "@rspack/binding";
|
13
13
|
import * as liteTapable from "@rspack/lite-tapable";
|
@@ -20,6 +20,7 @@ import type { ContextModuleFactory } from "./ContextModuleFactory";
|
|
20
20
|
import { Entrypoint } from "./Entrypoint";
|
21
21
|
import type { CodeGenerationResult, Module } from "./Module";
|
22
22
|
import ModuleGraph from "./ModuleGraph";
|
23
|
+
import type { NormalModuleCompilationHooks } from "./NormalModule";
|
23
24
|
import type { NormalModuleFactory } from "./NormalModuleFactory";
|
24
25
|
import type { ResolverFactory } from "./ResolverFactory";
|
25
26
|
import { type RspackError } from "./RspackError";
|
@@ -205,6 +206,7 @@ export declare class Compilation {
|
|
205
206
|
createSnapshot(): null;
|
206
207
|
};
|
207
208
|
needAdditionalPass: boolean;
|
209
|
+
[binding.COMPILATION_HOOKS_MAP_SYMBOL]: WeakMap<Compilation, NormalModuleCompilationHooks>;
|
208
210
|
constructor(compiler: Compiler, inner: JsCompilation);
|
209
211
|
get hash(): Readonly<string | null>;
|
210
212
|
get fullHash(): Readonly<string | null>;
|
package/dist/Module.d.ts
CHANGED
@@ -44,6 +44,7 @@ export declare class ContextModuleFactoryAfterResolveData {
|
|
44
44
|
export type ContextModuleFactoryAfterResolveResult = false | ContextModuleFactoryAfterResolveData;
|
45
45
|
declare module "@rspack/binding" {
|
46
46
|
interface Module {
|
47
|
+
identifier(): string;
|
47
48
|
originalSource(): Source | null;
|
48
49
|
emitFile(filename: string, source: Source, assetInfo?: AssetInfo): void;
|
49
50
|
}
|
package/dist/ModuleGraph.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
import type { Dependency, JsModuleGraph } from "@rspack/binding";
|
1
|
+
import type { Dependency, JsModuleGraph, ModuleGraphConnection } from "@rspack/binding";
|
2
2
|
import { ExportsInfo } from "./ExportsInfo";
|
3
3
|
import type { Module } from "./Module";
|
4
|
-
import { ModuleGraphConnection } from "./ModuleGraphConnection";
|
5
4
|
export default class ModuleGraph {
|
6
5
|
#private;
|
7
6
|
static __from_binding(binding: JsModuleGraph): ModuleGraph;
|
package/dist/NormalModule.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as liteTapable from "@rspack/lite-tapable";
|
2
|
-
import {
|
2
|
+
import type { Compilation } from "./Compilation";
|
3
3
|
import type { Module } from "./Module";
|
4
4
|
import type { LoaderContext } from "./config";
|
5
|
-
interface NormalModuleCompilationHooks {
|
5
|
+
export interface NormalModuleCompilationHooks {
|
6
6
|
loader: liteTapable.SyncHook<[LoaderContext, Module]>;
|
7
7
|
readResourceForScheme: any;
|
8
8
|
readResource: liteTapable.HookMap<liteTapable.AsyncSeriesBailHook<[LoaderContext], string | Buffer>>;
|
package/dist/exports.d.ts
CHANGED
@@ -10,8 +10,9 @@ import { RspackOptionsApply } from "./rspackOptionsApply";
|
|
10
10
|
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
11
11
|
export type { Chunk } from "./Chunk";
|
12
12
|
export type { ChunkGroup } from "./ChunkGroup";
|
13
|
-
export type {
|
13
|
+
export type { ResolveData, ResourceDataWithData } from "./Module";
|
14
14
|
export { MultiStats } from "./MultiStats";
|
15
|
+
export { Module } from "./Module";
|
15
16
|
export { NormalModule } from "./NormalModule";
|
16
17
|
export { ContextModule } from "./ContextModule";
|
17
18
|
export { ConcatenatedModule } from "./ConcatenatedModule";
|