@rspack/binding 1.3.2 → 1.3.4
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/binding.d.ts +14 -15
- package/package.json +12 -12
package/binding.d.ts
CHANGED
|
@@ -10,7 +10,10 @@ export type RawLazyCompilationTest = RegExp | ((module: Module) => boolean);
|
|
|
10
10
|
|
|
11
11
|
export type AssetInfo = KnownAssetInfo & Record<string, any>;
|
|
12
12
|
|
|
13
|
+
export const MODULE_IDENTIFIER_SYMBOL: unique symbol;
|
|
14
|
+
|
|
13
15
|
export interface Module {
|
|
16
|
+
[MODULE_IDENTIFIER_SYMBOL]: string;
|
|
14
17
|
readonly type: string;
|
|
15
18
|
get context(): string | undefined;
|
|
16
19
|
get layer(): string | undefined;
|
|
@@ -66,7 +69,6 @@ export declare class AsyncDependenciesBlock {
|
|
|
66
69
|
export declare class ConcatenatedModule {
|
|
67
70
|
get modules(): Module[]
|
|
68
71
|
_originalSource(): JsCompatSource | undefined
|
|
69
|
-
identifier(): string
|
|
70
72
|
nameForCondition(): string | undefined
|
|
71
73
|
get blocks(): AsyncDependenciesBlock[]
|
|
72
74
|
get dependencies(): Dependency[]
|
|
@@ -77,7 +79,6 @@ export declare class ConcatenatedModule {
|
|
|
77
79
|
|
|
78
80
|
export declare class ContextModule {
|
|
79
81
|
_originalSource(): JsCompatSource | undefined
|
|
80
|
-
identifier(): string
|
|
81
82
|
nameForCondition(): string | undefined
|
|
82
83
|
get blocks(): AsyncDependenciesBlock[]
|
|
83
84
|
get dependencies(): Dependency[]
|
|
@@ -133,7 +134,6 @@ export declare class ExternalModule {
|
|
|
133
134
|
get userRequest(): string
|
|
134
135
|
set userRequest(val: string)
|
|
135
136
|
_originalSource(): JsCompatSource | undefined
|
|
136
|
-
identifier(): string
|
|
137
137
|
nameForCondition(): string | undefined
|
|
138
138
|
get blocks(): AsyncDependenciesBlock[]
|
|
139
139
|
get dependencies(): Dependency[]
|
|
@@ -319,22 +319,15 @@ export declare class JsModuleGraph {
|
|
|
319
319
|
getUsedExports(module: Module, runtime: string | string[]): boolean | Array<string> | null
|
|
320
320
|
getIssuer(module: Module): Module | null
|
|
321
321
|
getExportsInfo(module: Module): JsExportsInfo
|
|
322
|
-
getConnection(dependency: Dependency):
|
|
323
|
-
getOutgoingConnections(module: Module):
|
|
324
|
-
getOutgoingConnectionsInOrder(module: Module):
|
|
325
|
-
getIncomingConnections(module: Module):
|
|
322
|
+
getConnection(dependency: Dependency): ModuleGraphConnection | null
|
|
323
|
+
getOutgoingConnections(module: Module): ModuleGraphConnection[]
|
|
324
|
+
getOutgoingConnectionsInOrder(module: Module): ModuleGraphConnection[]
|
|
325
|
+
getIncomingConnections(module: Module): ModuleGraphConnection[]
|
|
326
326
|
getParentModule(dependency: Dependency): Module | null
|
|
327
327
|
getParentBlockIndex(dependency: Dependency): number
|
|
328
328
|
isAsync(module: Module): boolean
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
export declare class JsModuleGraphConnection {
|
|
332
|
-
get dependency(): Dependency
|
|
333
|
-
get module(): Module | null
|
|
334
|
-
get resolvedModule(): Module | null
|
|
335
|
-
get originModule(): Module | null
|
|
336
|
-
}
|
|
337
|
-
|
|
338
331
|
export declare class JsResolver {
|
|
339
332
|
resolveSync(path: string, request: string): JsResourceData | false
|
|
340
333
|
withOptions(raw?: RawResolveOptionsWithDependencyType | undefined | null): JsResolver
|
|
@@ -354,7 +347,6 @@ export declare class JsStats {
|
|
|
354
347
|
|
|
355
348
|
export declare class Module {
|
|
356
349
|
_originalSource(): JsCompatSource | undefined
|
|
357
|
-
identifier(): string
|
|
358
350
|
nameForCondition(): string | undefined
|
|
359
351
|
get blocks(): AsyncDependenciesBlock[]
|
|
360
352
|
get dependencies(): Dependency[]
|
|
@@ -363,6 +355,13 @@ export declare class Module {
|
|
|
363
355
|
_emitFile(filename: string, source: JsCompatSource, jsAssetInfo?: AssetInfo | undefined | null): void
|
|
364
356
|
}
|
|
365
357
|
|
|
358
|
+
export declare class ModuleGraphConnection {
|
|
359
|
+
get dependency(): Dependency
|
|
360
|
+
get module(): Module | null
|
|
361
|
+
get resolvedModule(): Module | null
|
|
362
|
+
get originModule(): Module | null
|
|
363
|
+
}
|
|
364
|
+
|
|
366
365
|
|
|
367
366
|
export declare class RawExternalItemFnCtx {
|
|
368
367
|
data(): RawExternalItemFnCtxData
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@napi-rs/cli": "3.0.0-alpha.76",
|
|
21
21
|
"@napi-rs/wasm-runtime": "^0.2.7",
|
|
22
|
-
"emnapi": "^1.
|
|
22
|
+
"emnapi": "^1.4.0",
|
|
23
23
|
"typescript": "^5.7.3",
|
|
24
|
-
"@emnapi/core": "^1.
|
|
24
|
+
"@emnapi/core": "^1.4.0"
|
|
25
25
|
},
|
|
26
26
|
"napi": {
|
|
27
27
|
"binaryName": "rspack",
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@rspack/binding-darwin-arm64": "1.3.
|
|
52
|
-
"@rspack/binding-win32-arm64-msvc": "1.3.
|
|
53
|
-
"@rspack/binding-linux-arm64-musl": "1.3.
|
|
54
|
-
"@rspack/binding-linux-arm64-gnu": "1.3.
|
|
55
|
-
"@rspack/binding-
|
|
56
|
-
"@rspack/binding-
|
|
57
|
-
"@rspack/binding-win32-x64-msvc": "1.3.
|
|
58
|
-
"@rspack/binding-linux-x64-
|
|
59
|
-
"@rspack/binding-linux-x64-
|
|
51
|
+
"@rspack/binding-darwin-arm64": "1.3.4",
|
|
52
|
+
"@rspack/binding-win32-arm64-msvc": "1.3.4",
|
|
53
|
+
"@rspack/binding-linux-arm64-musl": "1.3.4",
|
|
54
|
+
"@rspack/binding-linux-arm64-gnu": "1.3.4",
|
|
55
|
+
"@rspack/binding-darwin-x64": "1.3.4",
|
|
56
|
+
"@rspack/binding-win32-ia32-msvc": "1.3.4",
|
|
57
|
+
"@rspack/binding-win32-x64-msvc": "1.3.4",
|
|
58
|
+
"@rspack/binding-linux-x64-gnu": "1.3.4",
|
|
59
|
+
"@rspack/binding-linux-x64-musl": "1.3.4"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build:dev": "node scripts/build.js",
|