@rspack/binding 1.3.7 → 1.3.9
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 +30 -3
- package/package.json +11 -11
package/binding.d.ts
CHANGED
|
@@ -351,8 +351,6 @@ export declare class JsResolverFactory {
|
|
|
351
351
|
|
|
352
352
|
export declare class JsStats {
|
|
353
353
|
toJson(jsOptions: JsStatsOptions): JsStatsCompilation
|
|
354
|
-
hasWarnings(): boolean
|
|
355
|
-
hasErrors(): boolean
|
|
356
354
|
getLogging(acceptedTypes: number): Array<JsStatsLogging>
|
|
357
355
|
}
|
|
358
356
|
|
|
@@ -500,6 +498,7 @@ export interface JsAdditionalTreeRuntimeRequirementsResult {
|
|
|
500
498
|
export interface JsAfterEmitData {
|
|
501
499
|
outputName: string
|
|
502
500
|
compilationId: number
|
|
501
|
+
uid?: number
|
|
503
502
|
}
|
|
504
503
|
|
|
505
504
|
export interface JsAfterResolveData {
|
|
@@ -519,6 +518,7 @@ export interface JsAfterTemplateExecutionData {
|
|
|
519
518
|
bodyTags: Array<JsHtmlPluginTag>
|
|
520
519
|
outputName: string
|
|
521
520
|
compilationId: number
|
|
521
|
+
uid?: number
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
export interface JsAlterAssetTagGroupsData {
|
|
@@ -527,6 +527,7 @@ export interface JsAlterAssetTagGroupsData {
|
|
|
527
527
|
publicPath: string
|
|
528
528
|
outputName: string
|
|
529
529
|
compilationId: number
|
|
530
|
+
uid?: number
|
|
530
531
|
}
|
|
531
532
|
|
|
532
533
|
export interface JsAlterAssetTagsData {
|
|
@@ -534,6 +535,7 @@ export interface JsAlterAssetTagsData {
|
|
|
534
535
|
outputName: string
|
|
535
536
|
publicPath: string
|
|
536
537
|
compilationId: number
|
|
538
|
+
uid?: number
|
|
537
539
|
}
|
|
538
540
|
|
|
539
541
|
export interface JsAsset {
|
|
@@ -561,12 +563,14 @@ export interface JsBeforeAssetTagGenerationData {
|
|
|
561
563
|
assets: JsHtmlPluginAssets
|
|
562
564
|
outputName: string
|
|
563
565
|
compilationId: number
|
|
566
|
+
uid?: number
|
|
564
567
|
}
|
|
565
568
|
|
|
566
569
|
export interface JsBeforeEmitData {
|
|
567
570
|
html: string
|
|
568
571
|
outputName: string
|
|
569
572
|
compilationId: number
|
|
573
|
+
uid?: number
|
|
570
574
|
}
|
|
571
575
|
|
|
572
576
|
export interface JsBeforeResolveArgs {
|
|
@@ -607,6 +611,7 @@ export interface JsChunkAssetArgs {
|
|
|
607
611
|
export interface JsChunkGroupOrigin {
|
|
608
612
|
module?: Module | undefined
|
|
609
613
|
request?: string
|
|
614
|
+
loc?: string | JsRealDependencyLocation
|
|
610
615
|
}
|
|
611
616
|
|
|
612
617
|
export interface JsChunkOptionNameCtx {
|
|
@@ -623,7 +628,7 @@ export interface JsChunkOptionNameCtx {
|
|
|
623
628
|
* - If a string, keep the files under this path
|
|
624
629
|
*/
|
|
625
630
|
export interface JsCleanOptions {
|
|
626
|
-
keep?: string
|
|
631
|
+
keep?: string | RegExp | ((path: string) => boolean)
|
|
627
632
|
}
|
|
628
633
|
|
|
629
634
|
export interface JsCodegenerationResult {
|
|
@@ -883,6 +888,11 @@ export interface JsPathDataChunkLike {
|
|
|
883
888
|
id?: string
|
|
884
889
|
}
|
|
885
890
|
|
|
891
|
+
export interface JsRealDependencyLocation {
|
|
892
|
+
start: JsSourcePosition
|
|
893
|
+
end?: JsSourcePosition
|
|
894
|
+
}
|
|
895
|
+
|
|
886
896
|
export interface JsResolveArgs {
|
|
887
897
|
request: string
|
|
888
898
|
context: string
|
|
@@ -1106,6 +1116,11 @@ export interface JsRuntimeRequirementInTreeResult {
|
|
|
1106
1116
|
allRuntimeRequirements: JsRuntimeGlobals
|
|
1107
1117
|
}
|
|
1108
1118
|
|
|
1119
|
+
export interface JsSourcePosition {
|
|
1120
|
+
line: number
|
|
1121
|
+
column: number
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1109
1124
|
export interface JsStatsAsset {
|
|
1110
1125
|
type: string
|
|
1111
1126
|
name: string
|
|
@@ -1347,6 +1362,7 @@ export interface JsStatsSize {
|
|
|
1347
1362
|
|
|
1348
1363
|
export interface JsStatsWarning {
|
|
1349
1364
|
moduleDescriptor?: JsModuleDescriptor
|
|
1365
|
+
name?: string
|
|
1350
1366
|
message: string
|
|
1351
1367
|
chunkName?: string
|
|
1352
1368
|
chunkEntry?: boolean
|
|
@@ -1398,6 +1414,8 @@ export interface KnownAssetInfo {
|
|
|
1398
1414
|
isOverSizeLimit?: boolean
|
|
1399
1415
|
}
|
|
1400
1416
|
|
|
1417
|
+
export declare function minify(source: string, options: string): Promise<TransformOutput>
|
|
1418
|
+
|
|
1401
1419
|
export interface NodeFsStats {
|
|
1402
1420
|
isFile: boolean
|
|
1403
1421
|
isDirectory: boolean
|
|
@@ -1825,6 +1843,7 @@ export interface RawHtmlRspackPluginOptions {
|
|
|
1825
1843
|
meta?: Record<string, Record<string, string>>
|
|
1826
1844
|
hash?: boolean
|
|
1827
1845
|
base?: RawHtmlRspackPluginBaseOptions
|
|
1846
|
+
uid?: number
|
|
1828
1847
|
}
|
|
1829
1848
|
|
|
1830
1849
|
export interface RawHttpExternalsRspackPluginOptions {
|
|
@@ -1847,6 +1866,7 @@ export interface RawIgnorePluginOptions {
|
|
|
1847
1866
|
}
|
|
1848
1867
|
|
|
1849
1868
|
export interface RawIncremental {
|
|
1869
|
+
silent: boolean
|
|
1850
1870
|
make: boolean
|
|
1851
1871
|
inferAsyncModules: boolean
|
|
1852
1872
|
providedExports: boolean
|
|
@@ -2557,3 +2577,10 @@ export interface ThreadsafeNodeFS {
|
|
|
2557
2577
|
readUntil: (fd: number, code: number, position: number) => Promise<Buffer | void>
|
|
2558
2578
|
readToEnd: (fd: number, position: number) => Promise<Buffer | void>
|
|
2559
2579
|
}
|
|
2580
|
+
|
|
2581
|
+
export declare function transform(source: string, options: string): Promise<TransformOutput>
|
|
2582
|
+
|
|
2583
|
+
export interface TransformOutput {
|
|
2584
|
+
code: string
|
|
2585
|
+
map?: string
|
|
2586
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@napi-rs/cli": "3.0.0-alpha.78",
|
|
21
21
|
"@napi-rs/wasm-runtime": "^0.2.9",
|
|
22
22
|
"emnapi": "^1.4.3",
|
|
23
|
-
"typescript": "^5.
|
|
23
|
+
"typescript": "^5.8.3",
|
|
24
24
|
"@emnapi/core": "^1.4.3"
|
|
25
25
|
},
|
|
26
26
|
"napi": {
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@rspack/binding-darwin-arm64": "1.3.
|
|
52
|
-
"@rspack/binding-linux-arm64-gnu": "1.3.
|
|
53
|
-
"@rspack/binding-win32-arm64-msvc": "1.3.
|
|
54
|
-
"@rspack/binding-
|
|
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.9",
|
|
52
|
+
"@rspack/binding-linux-arm64-gnu": "1.3.9",
|
|
53
|
+
"@rspack/binding-win32-arm64-msvc": "1.3.9",
|
|
54
|
+
"@rspack/binding-linux-arm64-musl": "1.3.9",
|
|
55
|
+
"@rspack/binding-win32-ia32-msvc": "1.3.9",
|
|
56
|
+
"@rspack/binding-darwin-x64": "1.3.9",
|
|
57
|
+
"@rspack/binding-win32-x64-msvc": "1.3.9",
|
|
58
|
+
"@rspack/binding-linux-x64-musl": "1.3.9",
|
|
59
|
+
"@rspack/binding-linux-x64-gnu": "1.3.9"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build:dev": "node scripts/build.js",
|