@rspack/core 1.3.10 → 1.3.12
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/watchpack/index.js +56 -18
- package/compiled/watchpack/package.json +1 -1
- package/compiled/webpack-sources/index.js +1539 -339
- package/compiled/webpack-sources/package.json +1 -1
- package/compiled/webpack-sources/types.d.ts +320 -0
- package/compiled/zod/dist/types/index.d.ts +3 -0
- package/compiled/zod/{lib → dist/types/v3}/ZodError.d.ts +7 -7
- package/compiled/zod/{lib → dist/types/v3}/errors.d.ts +2 -2
- package/compiled/zod/dist/types/v3/external.d.ts +6 -0
- package/compiled/zod/{lib → dist/types/v3}/helpers/errorUtil.d.ts +1 -1
- package/compiled/zod/{lib → dist/types/v3}/helpers/parseUtil.d.ts +4 -4
- package/compiled/zod/{lib → dist/types/v3}/helpers/partialUtil.d.ts +1 -1
- package/compiled/zod/{lib → dist/types/v3}/helpers/util.d.ts +12 -9
- package/compiled/zod/dist/types/v3/index.d.ts +4 -0
- package/compiled/zod/{lib → dist/types/v3}/locales/en.d.ts +1 -1
- package/compiled/zod/{lib/__tests__ → dist/types/v3/tests}/Mocker.d.ts +6 -6
- package/compiled/zod/{lib → dist/types/v3}/types.d.ts +118 -149
- package/compiled/zod/dist/types/v4/classic/checks.d.ts +1 -0
- package/compiled/zod/dist/types/v4/classic/coerce.d.ts +17 -0
- package/compiled/zod/dist/types/v4/classic/compat.d.ts +48 -0
- package/compiled/zod/dist/types/v4/classic/errors.d.ts +30 -0
- package/compiled/zod/dist/types/v4/classic/external.d.ts +8 -0
- package/compiled/zod/dist/types/v4/classic/index.d.ts +4 -0
- package/compiled/zod/dist/types/v4/classic/iso.d.ts +22 -0
- package/compiled/zod/dist/types/v4/classic/parse.d.ts +23 -0
- package/compiled/zod/dist/types/v4/classic/schemas.d.ts +657 -0
- package/compiled/zod/dist/types/v4/core/api.d.ts +273 -0
- package/compiled/zod/dist/types/v4/core/checks.d.ts +277 -0
- package/compiled/zod/dist/types/v4/core/config.d.ts +9 -0
- package/compiled/zod/dist/types/v4/core/core.d.ts +43 -0
- package/compiled/zod/dist/types/v4/core/doc.d.ts +14 -0
- package/compiled/zod/dist/types/v4/core/errors.d.ts +205 -0
- package/compiled/zod/dist/types/v4/core/function.d.ts +47 -0
- package/compiled/zod/dist/types/v4/core/index.d.ts +15 -0
- package/compiled/zod/dist/types/v4/core/json-schema.d.ts +100 -0
- package/compiled/zod/dist/types/v4/core/parse.d.ts +25 -0
- package/compiled/zod/dist/types/v4/core/regexes.d.ts +62 -0
- package/compiled/zod/dist/types/v4/core/registries.d.ts +32 -0
- package/compiled/zod/dist/types/v4/core/schemas.d.ts +983 -0
- package/compiled/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
- package/compiled/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
- package/compiled/zod/dist/types/v4/core/util.d.ts +186 -0
- package/compiled/zod/dist/types/v4/core/versions.d.ts +5 -0
- package/compiled/zod/dist/types/v4/core/zsf.d.ts +91 -0
- package/compiled/zod/dist/types/v4/index.d.ts +3 -0
- package/compiled/zod/dist/types/v4/locales/ar.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/az.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/be.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ca.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/cs.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/de.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/en.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/es.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fa.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fi.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/fr.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/frCA.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/he.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/hu.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/id.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/index.d.ts +34 -0
- package/compiled/zod/dist/types/v4/locales/it.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ja.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ko.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/mk.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ms.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/no.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ota.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/pl.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/pt.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ru.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/sl.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ta.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/th.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/tr.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ua.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/ur.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/vi.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/zh-CN.d.ts +7 -0
- package/compiled/zod/dist/types/v4/locales/zh-tw.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/checks.d.ts +1 -0
- package/compiled/zod/dist/types/v4/mini/coerce.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/external.d.ts +7 -0
- package/compiled/zod/dist/types/v4/mini/index.d.ts +3 -0
- package/compiled/zod/dist/types/v4/mini/iso.d.ts +22 -0
- package/compiled/zod/dist/types/v4/mini/parse.d.ts +1 -0
- package/compiled/zod/dist/types/v4/mini/schemas.d.ts +407 -0
- package/compiled/zod/index.js +555 -602
- package/compiled/zod/license +1 -1
- package/compiled/zod/package.json +1 -1
- package/compiled/zod/v3/index.d.ts +1 -0
- package/compiled/zod/v4/core/index.d.ts +1 -0
- package/compiled/zod/v4/index.d.ts +1 -0
- package/compiled/zod/v4/locales/en.d.ts +2 -0
- package/compiled/zod/v4/locales/index.d.ts +1 -0
- package/compiled/zod/v4-mini/index.d.ts +1 -0
- package/dist/Compilation.d.ts +7 -7
- package/dist/Compiler.d.ts +1 -1
- package/dist/Diagnostics.d.ts +7 -0
- package/dist/Module.d.ts +9 -0
- package/dist/RspackError.d.ts +3 -0
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -3
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +19 -0
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -3
- package/dist/builtin-plugin/RstestPlugin.d.ts +11 -0
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +4 -4
- package/dist/builtin-plugin/index.d.ts +2 -0
- package/dist/config/zod.d.ts +6 -6
- package/dist/exports.d.ts +3 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +392 -232
- package/dist/node/NodeWatchFileSystem.d.ts +2 -2
- package/dist/trace/index.d.ts +9 -3
- package/dist/trace/traceHookPlugin.d.ts +5 -0
- package/dist/worker.js +1 -1
- package/package.json +8 -9
- package/compiled/webpack-sources/index.d.ts +0 -130
- package/compiled/zod/index.d.ts +0 -2
- package/compiled/zod/lib/external.d.ts +0 -6
- package/compiled/zod/lib/index.d.ts +0 -4
- package/dist/setupEnv.d.ts +0 -1
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/datetime.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/discriminatedUnion.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/index.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/ipv4.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/object.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/primitives.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/realworld.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/string.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/benchmarks/union.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/helpers/enumUtil.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/helpers/typeAliases.d.ts +0 -0
- /package/compiled/zod/{lib → dist/types/v3}/standard-schema.d.ts +0 -0
@@ -7,12 +7,12 @@
|
|
7
7
|
* Copyright (c) JS Foundation and other contributors
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
9
9
|
*/
|
10
|
-
import Watchpack from "../../compiled/watchpack";
|
10
|
+
import type Watchpack from "../../compiled/watchpack";
|
11
11
|
import type { FileSystemInfoEntry, InputFileSystem, WatchFileSystem, Watcher } from "../util/fs";
|
12
12
|
export default class NodeWatchFileSystem implements WatchFileSystem {
|
13
13
|
inputFileSystem: InputFileSystem;
|
14
14
|
watcherOptions: Watchpack.WatchOptions;
|
15
|
-
watcher
|
15
|
+
watcher?: Watchpack;
|
16
16
|
constructor(inputFileSystem: InputFileSystem);
|
17
17
|
watch(files: Iterable<string>, directories: Iterable<string>, missing: Iterable<string>, startTime: number, options: Watchpack.WatchOptions, callback: (error: Error | null, fileTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, contextTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">, changedFiles: Set<string>, removedFiles: Set<string>) => void, callbackUndelayed: (fileName: string, changeTime: number) => void): Watcher;
|
18
18
|
}
|
package/dist/trace/index.d.ts
CHANGED
@@ -3,9 +3,9 @@ export interface ChromeEvent {
|
|
3
3
|
ph?: string;
|
4
4
|
cat?: string;
|
5
5
|
ts?: number;
|
6
|
-
pid?: number;
|
7
|
-
tid?: number;
|
8
|
-
id?: number;
|
6
|
+
pid?: number | string;
|
7
|
+
tid?: number | string;
|
8
|
+
id?: number | string;
|
9
9
|
args?: {
|
10
10
|
[key: string]: any;
|
11
11
|
};
|
@@ -20,8 +20,14 @@ export declare class JavaScriptTracer {
|
|
20
20
|
static layer: string;
|
21
21
|
static output: string;
|
22
22
|
static session: import("node:inspector").Session;
|
23
|
+
static counter: number;
|
23
24
|
static initJavaScriptTrace(layer: string, output: string): Promise<void>;
|
24
25
|
static initCpuProfiler(): void;
|
26
|
+
/**
|
27
|
+
*
|
28
|
+
* @param isEnd true means we are at the end of tracing,and can append ']' to close the json
|
29
|
+
* @returns
|
30
|
+
*/
|
25
31
|
static cleanupJavaScriptTrace(): Promise<void>;
|
26
32
|
static getTs(): number;
|
27
33
|
static getCommonEv(): {
|
package/dist/worker.js
CHANGED
@@ -853,7 +853,7 @@ for(var __webpack_i__ in (()=>{
|
|
853
853
|
await loadLoaderAsync(currentLoaderObject);
|
854
854
|
let fn = currentLoaderObject.normal;
|
855
855
|
currentLoaderObject.normalExecuted = !0, fn && (args1 = args, !(raw = !!currentLoaderObject.raw) && args1[0] instanceof Uint8Array ? args1[0] = function(buf) {
|
856
|
-
let str = decoder.decode(buf);
|
856
|
+
let str = decoder.decode(buf.buffer instanceof SharedArrayBuffer ? Buffer.from(buf) : buf);
|
857
857
|
return 0xfeff === str.charCodeAt(0) ? str.slice(1) : str;
|
858
858
|
}(args1[0]) : raw && "string" == typeof args1[0] && (args1[0] = Buffer.from(args1[0], "utf-8")), raw && args1[0] instanceof Uint8Array && !Buffer.isBuffer(args1[0]) && (args1[0] = Buffer.from(args1[0].buffer)), args = await utils_runSyncOrAsync(fn, loaderContext, args) || []);
|
859
859
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspack/core",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.12",
|
4
4
|
"webpackVersion": "5.75.0",
|
5
5
|
"license": "MIT",
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
@@ -39,27 +39,26 @@
|
|
39
39
|
"devDependencies": {
|
40
40
|
"@swc/core": "1.11.24",
|
41
41
|
"@swc/types": "0.1.21",
|
42
|
-
"@rslib/core": "0.
|
42
|
+
"@rslib/core": "0.8.0",
|
43
43
|
"@types/graceful-fs": "4.1.9",
|
44
44
|
"@types/watchpack": "^2.4.4",
|
45
|
-
"@types/webpack-sources": "3.2.3",
|
46
45
|
"browserslist": "^4.24.5",
|
47
46
|
"enhanced-resolve": "5.18.1",
|
48
47
|
"graceful-fs": "^4.2.11",
|
49
48
|
"prebundle": "^1.3.3",
|
50
49
|
"tsx": "^4.19.4",
|
51
50
|
"typescript": "^5.8.3",
|
52
|
-
"watchpack": "^2.4.
|
53
|
-
"webpack-sources": "3.
|
54
|
-
"zod": "^3.
|
51
|
+
"watchpack": "^2.4.3",
|
52
|
+
"webpack-sources": "3.3.0",
|
53
|
+
"zod": "^3.25.28",
|
55
54
|
"zod-validation-error": "3.4.1",
|
56
55
|
"tinypool": "^1.0.2"
|
57
56
|
},
|
58
57
|
"dependencies": {
|
59
|
-
"@module-federation/runtime-tools": "0.
|
58
|
+
"@module-federation/runtime-tools": "0.14.0",
|
60
59
|
"@rspack/lite-tapable": "1.0.1",
|
61
|
-
"caniuse-lite": "^1.0.
|
62
|
-
"@rspack/binding": "1.3.
|
60
|
+
"caniuse-lite": "^1.0.30001718",
|
61
|
+
"@rspack/binding": "1.3.12"
|
63
62
|
},
|
64
63
|
"peerDependencies": {
|
65
64
|
"@swc/helpers": ">=0.5.1"
|
@@ -1,130 +0,0 @@
|
|
1
|
-
declare class Hash {
|
2
|
-
constructor();
|
3
|
-
|
4
|
-
/**
|
5
|
-
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
|
6
|
-
*/
|
7
|
-
update(data: string | Buffer, inputEncoding?: string): Hash;
|
8
|
-
|
9
|
-
/**
|
10
|
-
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
|
11
|
-
*/
|
12
|
-
digest(encoding?: string): string | Buffer;
|
13
|
-
}
|
14
|
-
|
15
|
-
export type MapOptions = { columns?: boolean; module?: boolean };
|
16
|
-
|
17
|
-
export type RawSourceMap = {
|
18
|
-
version: number;
|
19
|
-
sources: string[];
|
20
|
-
names: string[];
|
21
|
-
sourceRoot?: string;
|
22
|
-
sourcesContent?: string[];
|
23
|
-
mappings: string;
|
24
|
-
file: string;
|
25
|
-
};
|
26
|
-
|
27
|
-
export abstract class Source {
|
28
|
-
size(): number;
|
29
|
-
|
30
|
-
map(options?: MapOptions): RawSourceMap | null;
|
31
|
-
|
32
|
-
sourceAndMap(options?: MapOptions): {
|
33
|
-
source: string | Buffer;
|
34
|
-
map: Object;
|
35
|
-
};
|
36
|
-
|
37
|
-
updateHash(hash: Hash): void;
|
38
|
-
|
39
|
-
source(): string | Buffer;
|
40
|
-
|
41
|
-
buffer(): Buffer;
|
42
|
-
}
|
43
|
-
|
44
|
-
export class RawSource extends Source {
|
45
|
-
constructor(source: string | Buffer, convertToString?: boolean);
|
46
|
-
|
47
|
-
isBuffer(): boolean;
|
48
|
-
}
|
49
|
-
|
50
|
-
export class OriginalSource extends Source {
|
51
|
-
constructor(source: string | Buffer, name: string);
|
52
|
-
|
53
|
-
getName(): string;
|
54
|
-
}
|
55
|
-
|
56
|
-
export class ReplaceSource extends Source {
|
57
|
-
constructor(source: Source, name?: string);
|
58
|
-
|
59
|
-
replace(start: number, end: number, newValue: string, name?: string): void;
|
60
|
-
insert(pos: number, newValue: string, name?: string): void;
|
61
|
-
|
62
|
-
getName(): string;
|
63
|
-
original(): string;
|
64
|
-
getReplacements(): {
|
65
|
-
start: number;
|
66
|
-
end: number;
|
67
|
-
content: string;
|
68
|
-
insertIndex: number;
|
69
|
-
name: string;
|
70
|
-
}[];
|
71
|
-
}
|
72
|
-
|
73
|
-
export class SourceMapSource extends Source {
|
74
|
-
constructor(
|
75
|
-
source: string | Buffer,
|
76
|
-
name: string,
|
77
|
-
sourceMap: Object | string | Buffer,
|
78
|
-
originalSource?: string | Buffer,
|
79
|
-
innerSourceMap?: Object | string | Buffer,
|
80
|
-
removeOriginalSource?: boolean
|
81
|
-
);
|
82
|
-
|
83
|
-
getArgsAsBuffers(): [
|
84
|
-
Buffer,
|
85
|
-
string,
|
86
|
-
Buffer,
|
87
|
-
Buffer | undefined,
|
88
|
-
Buffer | undefined,
|
89
|
-
boolean
|
90
|
-
];
|
91
|
-
}
|
92
|
-
|
93
|
-
export class ConcatSource extends Source {
|
94
|
-
constructor(...args: (string | Source)[]);
|
95
|
-
|
96
|
-
getChildren(): Source[];
|
97
|
-
|
98
|
-
add(item: string | Source): void;
|
99
|
-
addAllSkipOptimizing(items: Source[]): void;
|
100
|
-
}
|
101
|
-
|
102
|
-
export class PrefixSource extends Source {
|
103
|
-
constructor(prefix: string, source: string | Source);
|
104
|
-
|
105
|
-
original(): Source;
|
106
|
-
getPrefix(): string;
|
107
|
-
}
|
108
|
-
|
109
|
-
export class CachedSource extends Source {
|
110
|
-
constructor(source: Source);
|
111
|
-
constructor(source: Source | (() => Source), cachedData?: any);
|
112
|
-
|
113
|
-
original(): Source;
|
114
|
-
originalLazy(): Source | (() => Source);
|
115
|
-
getCachedData(): any;
|
116
|
-
}
|
117
|
-
|
118
|
-
export class SizeOnlySource extends Source {
|
119
|
-
constructor(size: number);
|
120
|
-
}
|
121
|
-
|
122
|
-
interface SourceLike {
|
123
|
-
source(): string | Buffer;
|
124
|
-
}
|
125
|
-
|
126
|
-
export class CompatSource extends Source {
|
127
|
-
constructor(sourceLike: SourceLike);
|
128
|
-
|
129
|
-
static from(sourceLike: SourceLike): Source;
|
130
|
-
}
|
package/compiled/zod/index.d.ts
DELETED
package/dist/setupEnv.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|