@rspack-debug/core 1.3.14 → 1.4.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/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/webpack-sources/index.js +112 -132
- package/compiled/webpack-sources/package.json +1 -1
- package/compiled/webpack-sources/types.d.ts +8 -6
- package/dist/BuildInfo.d.ts +17 -0
- package/dist/FileSystem.d.ts +26 -3
- package/dist/Module.d.ts +1 -14
- package/dist/MultiCompiler.d.ts +4 -1
- package/dist/MultiWatching.d.ts +1 -0
- package/dist/Resolver.d.ts +2 -1
- package/dist/builtin-loader/swc/collectTypeScriptInfo.d.ts +8 -0
- package/dist/builtin-loader/swc/index.d.ts +2 -0
- package/dist/builtin-loader/swc/pluginImport.d.ts +1 -36
- package/dist/builtin-loader/swc/types.d.ts +163 -2000
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +4 -2
- package/dist/builtin-plugin/RslibPlugin.d.ts +11 -0
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -1
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +3 -3
- package/dist/config/devServer.d.ts +10 -10
- package/dist/config/normalization.d.ts +4 -1
- package/dist/config/types.d.ts +31 -4
- package/dist/config/utils.d.ts +3 -16
- package/dist/config/zod.d.ts +689 -3924
- package/dist/cssExtractLoader.js +5 -5
- package/dist/exports.d.ts +9 -3
- package/dist/index.js +4751 -2034
- package/dist/loader-runner/index.d.ts +0 -9
- package/dist/swc.d.ts +2 -0
- package/dist/trace/index.d.ts +16 -18
- package/dist/util/validate.d.ts +3 -3
- package/dist/worker.js +2 -2
- package/module.d.ts +1 -1
- package/package.json +11 -11
- 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/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/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 -619
- package/compiled/zod/dist/types/v4/core/api.d.ts +0 -273
- 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 -37
- package/compiled/zod/dist/types/v4/core/schemas.d.ts +0 -1011
- 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 -37
- 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/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 -398
- 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,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The following code is modified based on
|
|
3
|
-
* https://github.com/webpack/loader-runner
|
|
4
|
-
*
|
|
5
|
-
* MIT Licensed
|
|
6
|
-
* Author Tobias Koppers @sokra
|
|
7
|
-
* Copyright (c) JS Foundation and other contributors
|
|
8
|
-
* https://github.com/webpack/loader-runner/blob/main/LICENSE
|
|
9
|
-
*/
|
|
10
1
|
import { type JsLoaderContext, type JsLoaderItem } from "@rspack/binding";
|
|
11
2
|
import type { Compiler } from "../Compiler";
|
|
12
3
|
export declare class LoaderObject {
|
package/dist/swc.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ import type { TransformOutput } from "@rspack/binding";
|
|
|
2
2
|
import type { JsMinifyOptions, Options as TransformOptions } from "../compiled/@swc/types";
|
|
3
3
|
export type { TransformOutput, TransformOptions, JsMinifyOptions };
|
|
4
4
|
export declare function minify(source: string, options?: JsMinifyOptions): Promise<TransformOutput>;
|
|
5
|
+
export declare function minifySync(source: string, options?: JsMinifyOptions): TransformOutput;
|
|
5
6
|
export declare function transform(source: string, options?: TransformOptions): Promise<TransformOutput>;
|
|
7
|
+
export declare function transformSync(source: string, options?: TransformOptions): TransformOutput;
|
package/dist/trace/index.d.ts
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
export interface ChromeEvent {
|
|
2
2
|
name: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
trackName?: string;
|
|
4
|
+
ph: "b" | "e" | "X" | "P";
|
|
5
|
+
processName?: string;
|
|
6
|
+
categories?: string[];
|
|
7
|
+
uuid: number;
|
|
8
|
+
ts: bigint;
|
|
9
9
|
args?: {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
};
|
|
12
|
-
id2?: {
|
|
13
|
-
local?: string;
|
|
14
|
-
global?: string;
|
|
15
|
-
};
|
|
16
12
|
}
|
|
13
|
+
type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
14
|
+
type PartialChromeEvent = MakeOptional<ChromeEvent, "ts" | "ph">;
|
|
17
15
|
export declare class JavaScriptTracer {
|
|
18
|
-
static startTime:
|
|
16
|
+
static startTime: bigint;
|
|
19
17
|
static events: ChromeEvent[];
|
|
20
18
|
static layer: string;
|
|
21
19
|
static output: string;
|
|
22
20
|
static session: import("node:inspector").Session;
|
|
23
|
-
static counter
|
|
21
|
+
private static counter;
|
|
24
22
|
static initJavaScriptTrace(layer: string, output: string): Promise<void>;
|
|
23
|
+
static uuid(): number;
|
|
25
24
|
static initCpuProfiler(): void;
|
|
26
25
|
/**
|
|
27
26
|
*
|
|
@@ -29,14 +28,13 @@ export declare class JavaScriptTracer {
|
|
|
29
28
|
* @returns
|
|
30
29
|
*/
|
|
31
30
|
static cleanupJavaScriptTrace(): Promise<void>;
|
|
32
|
-
static getTs():
|
|
31
|
+
static getTs(): bigint;
|
|
33
32
|
static getCommonEv(): {
|
|
34
|
-
|
|
35
|
-
pid: number;
|
|
36
|
-
ts: number;
|
|
33
|
+
ts: bigint;
|
|
37
34
|
cat: string;
|
|
38
35
|
};
|
|
39
36
|
static pushEvent(event: ChromeEvent): void;
|
|
40
|
-
static startAsync(events:
|
|
41
|
-
static endAsync(events:
|
|
37
|
+
static startAsync(events: PartialChromeEvent): void;
|
|
38
|
+
static endAsync(events: PartialChromeEvent): void;
|
|
42
39
|
}
|
|
40
|
+
export {};
|
package/dist/util/validate.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { z } from "
|
|
1
|
+
import type { z } from "zod/v4";
|
|
2
2
|
export declare class ValidationError extends Error {
|
|
3
3
|
constructor(message: string);
|
|
4
4
|
}
|
|
5
|
-
export declare function validate<T extends z.ZodType>(opts: any,
|
|
5
|
+
export declare function validate<T extends z.ZodType>(opts: any, createSchema: () => T, options?: {
|
|
6
6
|
output?: boolean;
|
|
7
7
|
strategy?: "strict" | "loose-unrecognized-keys" | "loose-silent" | "loose";
|
|
8
8
|
}): string | null;
|
|
9
|
-
export declare function isValidate<T extends z.ZodType>(opts: any,
|
|
9
|
+
export declare function isValidate<T extends z.ZodType>(opts: any, createSchema: () => T): boolean;
|
package/dist/worker.js
CHANGED
|
@@ -186,7 +186,7 @@ var __webpack_modules__ = {
|
|
|
186
186
|
let external_node_crypto_namespaceObject = require("node:crypto");
|
|
187
187
|
var _computedKey, external_node_crypto_default = __webpack_require__.n(external_node_crypto_namespaceObject);
|
|
188
188
|
_computedKey = __webpack_require__("node:util").inspect.custom;
|
|
189
|
-
let
|
|
189
|
+
let lib_WebpackError = class extends Error {
|
|
190
190
|
loc;
|
|
191
191
|
file;
|
|
192
192
|
chunk;
|
|
@@ -207,7 +207,7 @@ var __webpack_modules__ = {
|
|
|
207
207
|
this.message = match?.[1] ? createMessage(match[1]) : createMessage();
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
class AbstractMethodError extends
|
|
210
|
+
class AbstractMethodError extends lib_WebpackError {
|
|
211
211
|
constructor(){
|
|
212
212
|
super(new Message().message), this.name = "AbstractMethodError";
|
|
213
213
|
}
|
package/module.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-debug/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -37,27 +37,27 @@
|
|
|
37
37
|
"directory": "packages/rspack"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@rslib/core": "0.
|
|
41
|
-
"@swc/core": "1.
|
|
42
|
-
"@swc/types": "0.1.
|
|
40
|
+
"@rslib/core": "0.10.0",
|
|
41
|
+
"@swc/core": "1.12.0",
|
|
42
|
+
"@swc/types": "0.1.22",
|
|
43
43
|
"@types/graceful-fs": "4.1.9",
|
|
44
44
|
"@types/watchpack": "^2.4.4",
|
|
45
45
|
"browserslist-load-config": "^1.0.0",
|
|
46
46
|
"enhanced-resolve": "5.18.1",
|
|
47
47
|
"graceful-fs": "^4.2.11",
|
|
48
48
|
"prebundle": "^1.3.3",
|
|
49
|
-
"tinypool": "^1.0
|
|
50
|
-
"tsx": "^4.
|
|
49
|
+
"tinypool": "^1.1.0",
|
|
50
|
+
"tsx": "^4.20.3",
|
|
51
51
|
"typescript": "^5.8.3",
|
|
52
52
|
"watchpack": "^2.4.4",
|
|
53
|
-
"webpack-sources": "3.3.
|
|
54
|
-
"zod": "^3.25.
|
|
55
|
-
"zod-validation-error": "3.
|
|
53
|
+
"webpack-sources": "3.3.2",
|
|
54
|
+
"zod": "^3.25.58",
|
|
55
|
+
"zod-validation-error": "3.5.2"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@module-federation/runtime-tools": "0.
|
|
58
|
+
"@module-federation/runtime-tools": "0.15.0",
|
|
59
59
|
"@rspack/lite-tapable": "1.0.1",
|
|
60
|
-
"@rspack/binding": "npm:@rspack-debug/binding@1.
|
|
60
|
+
"@rspack/binding": "npm:@rspack-debug/binding@1.4.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@swc/helpers": ">=0.5.1"
|
|
File without changes
|