@rspack/core 1.3.15 → 1.4.0-beta.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/compiled/@swc/types/index.d.ts +18 -2
- package/compiled/@swc/types/package.json +1 -1
- package/compiled/tinypool/README.md +4 -196
- package/compiled/tinypool/dist/common-Qw-RoVFD.js +28 -0
- package/compiled/tinypool/dist/entry/process.d.ts +1 -2
- package/compiled/tinypool/dist/entry/process.js +63 -83
- package/compiled/tinypool/dist/entry/utils.d.ts +3 -1
- package/compiled/tinypool/dist/entry/utils.js +3 -9
- package/compiled/tinypool/dist/entry/worker.d.ts +1 -2
- package/compiled/tinypool/dist/entry/worker.js +66 -94
- package/compiled/tinypool/dist/index.d.ts +132 -125
- package/compiled/tinypool/dist/index.js +771 -1035
- package/compiled/tinypool/dist/utils-B--2TaWv.js +38 -0
- package/compiled/tinypool/dist/utils-De75vAgL.js +10 -0
- package/compiled/tinypool/package.json +6 -22
- package/compiled/zod/dist/types/v4/classic/schemas.d.ts +19 -14
- package/compiled/zod/dist/types/v4/core/api.d.ts +5 -4
- package/compiled/zod/dist/types/v4/core/checks.d.ts +1 -1
- package/compiled/zod/dist/types/v4/core/core.d.ts +1 -1
- package/compiled/zod/dist/types/v4/core/registries.d.ts +3 -1
- package/compiled/zod/dist/types/v4/core/schemas.d.ts +33 -39
- package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +2 -2
- package/compiled/zod/dist/types/v4/core/util.d.ts +1 -1
- package/compiled/zod/dist/types/v4/locales/index.d.ts +1 -0
- package/compiled/zod/dist/types/v4/locales/ps.d.ts +4 -0
- package/compiled/zod/dist/types/v4/mini/schemas.d.ts +77 -125
- package/compiled/zod/index.js +33 -33
- package/compiled/zod/package.json +1 -1
- package/dist/BuildInfo.d.ts +17 -0
- package/dist/FileSystem.d.ts +26 -3
- package/dist/Module.d.ts +1 -13
- package/dist/builtin-loader/swc/types.d.ts +255 -255
- package/dist/config/devServer.d.ts +10 -10
- package/dist/config/normalization.d.ts +1 -0
- package/dist/config/types.d.ts +10 -1
- package/dist/config/utils.d.ts +1 -0
- package/dist/config/zod.d.ts +1638 -1068
- package/dist/cssExtractLoader.js +5 -5
- package/dist/exports.d.ts +2 -1
- package/dist/index.js +544 -470
- package/dist/loader-runner/index.d.ts +0 -9
- package/dist/trace/index.d.ts +16 -18
- package/dist/worker.js +2 -2
- package/module.d.ts +1 -1
- package/package.json +8 -8
- package/compiled/tinypool/dist/chunk-6LX4VMOV.js +0 -31
- package/compiled/tinypool/dist/chunk-ACQHDOFQ.js +0 -12
- package/compiled/tinypool/dist/chunk-E2J7JLFN.js +0 -53
- package/compiled/tinypool/dist/chunk-UBWFVGJX.js +0 -38
package/dist/FileSystem.d.ts
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
import type { NodeFsStats, ThreadsafeNodeFS } from "@rspack/binding";
|
2
|
-
import { type
|
2
|
+
import { type InputFileSystem, type IntermediateFileSystem, type OutputFileSystem } from "./util/fs";
|
3
|
+
declare class ThreadsafeInputNodeFS implements ThreadsafeNodeFS {
|
4
|
+
writeFile: (name: string, content: Buffer) => Promise<void>;
|
5
|
+
removeFile: (name: string) => Promise<void>;
|
6
|
+
mkdir: (name: string) => Promise<void>;
|
7
|
+
mkdirp: (name: string) => Promise<string | void>;
|
8
|
+
removeDirAll: (name: string) => Promise<string | void>;
|
9
|
+
readDir: (name: string) => Promise<string[] | void>;
|
10
|
+
readFile: (name: string) => Promise<Buffer | string | void>;
|
11
|
+
stat: (name: string) => Promise<NodeFsStats | void>;
|
12
|
+
lstat: (name: string) => Promise<NodeFsStats | void>;
|
13
|
+
realpath: (name: string) => Promise<string | void>;
|
14
|
+
open: (name: string, flags: string) => Promise<number | void>;
|
15
|
+
rename: (from: string, to: string) => Promise<void>;
|
16
|
+
close: (fd: number) => Promise<void>;
|
17
|
+
write: (fd: number, content: Buffer, position: number) => Promise<number | void>;
|
18
|
+
writeAll: (fd: number, content: Buffer) => Promise<number | void>;
|
19
|
+
read: (fd: number, length: number, position: number) => Promise<Buffer | void>;
|
20
|
+
readUntil: (fd: number, code: number, position: number) => Promise<Buffer | void>;
|
21
|
+
readToEnd: (fd: number, position: number) => Promise<Buffer | void>;
|
22
|
+
constructor(fs?: InputFileSystem);
|
23
|
+
static __to_binding(fs?: InputFileSystem): ThreadsafeInputNodeFS;
|
24
|
+
static needsBinding(ifs?: false | RegExp[]): boolean;
|
25
|
+
}
|
3
26
|
declare class ThreadsafeOutputNodeFS implements ThreadsafeNodeFS {
|
4
27
|
writeFile: (name: string, content: Buffer) => Promise<void>;
|
5
28
|
removeFile: (name: string) => Promise<void>;
|
@@ -10,6 +33,7 @@ declare class ThreadsafeOutputNodeFS implements ThreadsafeNodeFS {
|
|
10
33
|
readFile: (name: string) => Promise<Buffer | string | void>;
|
11
34
|
stat: (name: string) => Promise<NodeFsStats | void>;
|
12
35
|
lstat: (name: string) => Promise<NodeFsStats | void>;
|
36
|
+
realpath: (name: string) => Promise<string | void>;
|
13
37
|
open: (name: string, flags: string) => Promise<number | void>;
|
14
38
|
rename: (from: string, to: string) => Promise<void>;
|
15
39
|
close: (fd: number) => Promise<void>;
|
@@ -20,10 +44,9 @@ declare class ThreadsafeOutputNodeFS implements ThreadsafeNodeFS {
|
|
20
44
|
readToEnd: (fd: number, position: number) => Promise<Buffer | void>;
|
21
45
|
constructor(fs?: OutputFileSystem);
|
22
46
|
static __to_binding(fs?: OutputFileSystem): ThreadsafeOutputNodeFS;
|
23
|
-
static __to_binding_stat(stat: IStats): NodeFsStats;
|
24
47
|
}
|
25
48
|
declare class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS {
|
26
49
|
constructor(fs?: IntermediateFileSystem);
|
27
50
|
static __to_binding(fs?: IntermediateFileSystem): ThreadsafeIntermediateNodeFS;
|
28
51
|
}
|
29
|
-
export { ThreadsafeOutputNodeFS, ThreadsafeIntermediateNodeFS };
|
52
|
+
export { ThreadsafeInputNodeFS, ThreadsafeOutputNodeFS, ThreadsafeIntermediateNodeFS };
|
package/dist/Module.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as binding from "@rspack/binding";
|
2
2
|
import type { Source } from "../compiled/webpack-sources";
|
3
3
|
import type { ResourceData } from "./Resolver";
|
4
|
+
import "./BuildInfo";
|
4
5
|
export type ResourceDataWithData = ResourceData & {
|
5
6
|
data?: Record<string, any>;
|
6
7
|
};
|
@@ -42,19 +43,6 @@ export declare class ContextModuleFactoryAfterResolveData {
|
|
42
43
|
private constructor();
|
43
44
|
}
|
44
45
|
export type ContextModuleFactoryAfterResolveResult = false | ContextModuleFactoryAfterResolveData;
|
45
|
-
declare const $assets: unique symbol;
|
46
|
-
declare module "@rspack/binding" {
|
47
|
-
interface Assets {
|
48
|
-
[$assets]: Record<string, Source>;
|
49
|
-
}
|
50
|
-
interface KnownBuildInfo {
|
51
|
-
assets: Record<string, Source>;
|
52
|
-
fileDependencies: Set<string>;
|
53
|
-
contextDependencies: Set<string>;
|
54
|
-
missingDependencies: Set<string>;
|
55
|
-
buildDependencies: Set<string>;
|
56
|
-
}
|
57
|
-
}
|
58
46
|
declare module "@rspack/binding" {
|
59
47
|
interface Module {
|
60
48
|
identifier(): string;
|