@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.
Files changed (49) hide show
  1. package/compiled/@swc/types/index.d.ts +18 -2
  2. package/compiled/@swc/types/package.json +1 -1
  3. package/compiled/tinypool/README.md +4 -196
  4. package/compiled/tinypool/dist/common-Qw-RoVFD.js +28 -0
  5. package/compiled/tinypool/dist/entry/process.d.ts +1 -2
  6. package/compiled/tinypool/dist/entry/process.js +63 -83
  7. package/compiled/tinypool/dist/entry/utils.d.ts +3 -1
  8. package/compiled/tinypool/dist/entry/utils.js +3 -9
  9. package/compiled/tinypool/dist/entry/worker.d.ts +1 -2
  10. package/compiled/tinypool/dist/entry/worker.js +66 -94
  11. package/compiled/tinypool/dist/index.d.ts +132 -125
  12. package/compiled/tinypool/dist/index.js +771 -1035
  13. package/compiled/tinypool/dist/utils-B--2TaWv.js +38 -0
  14. package/compiled/tinypool/dist/utils-De75vAgL.js +10 -0
  15. package/compiled/tinypool/package.json +6 -22
  16. package/compiled/zod/dist/types/v4/classic/schemas.d.ts +19 -14
  17. package/compiled/zod/dist/types/v4/core/api.d.ts +5 -4
  18. package/compiled/zod/dist/types/v4/core/checks.d.ts +1 -1
  19. package/compiled/zod/dist/types/v4/core/core.d.ts +1 -1
  20. package/compiled/zod/dist/types/v4/core/registries.d.ts +3 -1
  21. package/compiled/zod/dist/types/v4/core/schemas.d.ts +33 -39
  22. package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +2 -2
  23. package/compiled/zod/dist/types/v4/core/util.d.ts +1 -1
  24. package/compiled/zod/dist/types/v4/locales/index.d.ts +1 -0
  25. package/compiled/zod/dist/types/v4/locales/ps.d.ts +4 -0
  26. package/compiled/zod/dist/types/v4/mini/schemas.d.ts +77 -125
  27. package/compiled/zod/index.js +33 -33
  28. package/compiled/zod/package.json +1 -1
  29. package/dist/BuildInfo.d.ts +17 -0
  30. package/dist/FileSystem.d.ts +26 -3
  31. package/dist/Module.d.ts +1 -13
  32. package/dist/builtin-loader/swc/types.d.ts +255 -255
  33. package/dist/config/devServer.d.ts +10 -10
  34. package/dist/config/normalization.d.ts +1 -0
  35. package/dist/config/types.d.ts +10 -1
  36. package/dist/config/utils.d.ts +1 -0
  37. package/dist/config/zod.d.ts +1638 -1068
  38. package/dist/cssExtractLoader.js +5 -5
  39. package/dist/exports.d.ts +2 -1
  40. package/dist/index.js +544 -470
  41. package/dist/loader-runner/index.d.ts +0 -9
  42. package/dist/trace/index.d.ts +16 -18
  43. package/dist/worker.js +2 -2
  44. package/module.d.ts +1 -1
  45. package/package.json +8 -8
  46. package/compiled/tinypool/dist/chunk-6LX4VMOV.js +0 -31
  47. package/compiled/tinypool/dist/chunk-ACQHDOFQ.js +0 -12
  48. package/compiled/tinypool/dist/chunk-E2J7JLFN.js +0 -53
  49. package/compiled/tinypool/dist/chunk-UBWFVGJX.js +0 -38
@@ -1,5 +1,28 @@
1
1
  import type { NodeFsStats, ThreadsafeNodeFS } from "@rspack/binding";
2
- import { type IStats, type IntermediateFileSystem, type OutputFileSystem } from "./util/fs";
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;