@rspack/binding 1.1.5 → 1.1.8
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 +10 -10
package/binding.d.ts
CHANGED
|
@@ -205,8 +205,13 @@ export declare class JsStats {
|
|
|
205
205
|
getLogging(acceptedTypes: number): Array<JsStatsLogging>
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
export declare class RawExternalItemFnCtx {
|
|
209
|
+
data(): RawExternalItemFnCtxData
|
|
210
|
+
getResolver(): JsResolver
|
|
211
|
+
}
|
|
212
|
+
|
|
208
213
|
export declare class Rspack {
|
|
209
|
-
constructor(options: RawOptions, builtinPlugins: Array<BuiltinPlugin>, registerJsTaps: RegisterJsTaps, outputFilesystem: ThreadsafeNodeFS, resolverFactoryReference: JsResolverFactory)
|
|
214
|
+
constructor(options: RawOptions, builtinPlugins: Array<BuiltinPlugin>, registerJsTaps: RegisterJsTaps, outputFilesystem: ThreadsafeNodeFS, intermediateFilesystem: ThreadsafeNodeFS, resolverFactoryReference: JsResolverFactory)
|
|
210
215
|
setNonSkippableRegisters(kinds: Array<RegisterJsTapKind>): void
|
|
211
216
|
/** Build with the given option passed to the constructor */
|
|
212
217
|
build(callback: (err: null | Error) => void): void
|
|
@@ -518,6 +523,17 @@ export interface JsChunkGroupOrigin {
|
|
|
518
523
|
request?: string
|
|
519
524
|
}
|
|
520
525
|
|
|
526
|
+
/**
|
|
527
|
+
* File clean options
|
|
528
|
+
*
|
|
529
|
+
* This matches with:
|
|
530
|
+
* - keep:
|
|
531
|
+
* - If a string, keep the files under this path
|
|
532
|
+
*/
|
|
533
|
+
export interface JsCleanOptions {
|
|
534
|
+
keep?: string
|
|
535
|
+
}
|
|
536
|
+
|
|
521
537
|
export interface JsCodegenerationResult {
|
|
522
538
|
sources: Record<string, string>
|
|
523
539
|
}
|
|
@@ -1386,7 +1402,7 @@ export interface RawExposeOptions {
|
|
|
1386
1402
|
import: Array<string>
|
|
1387
1403
|
}
|
|
1388
1404
|
|
|
1389
|
-
export interface
|
|
1405
|
+
export interface RawExternalItemFnCtxData {
|
|
1390
1406
|
request: string
|
|
1391
1407
|
context: string
|
|
1392
1408
|
dependencyType: string
|
|
@@ -1496,6 +1512,8 @@ export interface RawIncremental {
|
|
|
1496
1512
|
providedExports: boolean
|
|
1497
1513
|
dependenciesDiagnostics: boolean
|
|
1498
1514
|
buildChunkGraph: boolean
|
|
1515
|
+
moduleIds: boolean
|
|
1516
|
+
chunkIds: boolean
|
|
1499
1517
|
modulesHashes: boolean
|
|
1500
1518
|
modulesCodegen: boolean
|
|
1501
1519
|
modulesRuntimeRequirements: boolean
|
|
@@ -1744,7 +1762,7 @@ export interface RawOptions {
|
|
|
1744
1762
|
export interface RawOutputOptions {
|
|
1745
1763
|
path: string
|
|
1746
1764
|
pathinfo: boolean | "verbose"
|
|
1747
|
-
clean: boolean
|
|
1765
|
+
clean: boolean | JsCleanOptions
|
|
1748
1766
|
publicPath: "auto" | JsFilename
|
|
1749
1767
|
assetModuleFilename: JsFilename
|
|
1750
1768
|
wasmLoading: string
|
|
@@ -2008,6 +2026,7 @@ export interface RawToOptions {
|
|
|
2008
2026
|
|
|
2009
2027
|
export interface RawTrustedTypes {
|
|
2010
2028
|
policyName?: string
|
|
2029
|
+
onPolicyCreationFailure?: string
|
|
2011
2030
|
}
|
|
2012
2031
|
|
|
2013
2032
|
/**
|
|
@@ -2117,4 +2136,12 @@ export interface ThreadsafeNodeFS {
|
|
|
2117
2136
|
readFile: (name: string) => Promise<Buffer | string | void> | Buffer | string | void
|
|
2118
2137
|
stat: (name: string) => Promise<NodeFsStats | void> | NodeFsStats | void
|
|
2119
2138
|
lstat: (name: string) => Promise<NodeFsStats | void> | NodeFsStats | void
|
|
2139
|
+
open: (name: string, flags: string) => Promise<number | void> | number | void
|
|
2140
|
+
rename: (from: string, to: string) => Promise<void> | void
|
|
2141
|
+
close: (fd: number) => Promise<void> | void
|
|
2142
|
+
write: (fd: number, content: Buffer, position: number) => Promise<number | void> | number | void
|
|
2143
|
+
writeAll: (fd: number, content: Buffer) => Promise<number | void> | number | void
|
|
2144
|
+
read: (fd: number, length: number, position: number) => Promise<Buffer | void> | Buffer | void
|
|
2145
|
+
readUntil: (fd: number, code: number, position: number) => Promise<Buffer | void> | Buffer | void
|
|
2146
|
+
readToEnd: (fd: number, position: number) => Promise<Buffer | void> | Buffer | void
|
|
2120
2147
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"binaryName": "rspack"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@rspack/binding-darwin-arm64": "1.1.
|
|
28
|
-
"@rspack/binding-win32-arm64-msvc": "1.1.
|
|
29
|
-
"@rspack/binding-linux-arm64-
|
|
30
|
-
"@rspack/binding-linux-arm64-
|
|
31
|
-
"@rspack/binding-win32-ia32-msvc": "1.1.
|
|
32
|
-
"@rspack/binding-
|
|
33
|
-
"@rspack/binding-
|
|
34
|
-
"@rspack/binding-linux-x64-
|
|
35
|
-
"@rspack/binding-
|
|
27
|
+
"@rspack/binding-darwin-arm64": "1.1.8",
|
|
28
|
+
"@rspack/binding-win32-arm64-msvc": "1.1.8",
|
|
29
|
+
"@rspack/binding-linux-arm64-gnu": "1.1.8",
|
|
30
|
+
"@rspack/binding-linux-arm64-musl": "1.1.8",
|
|
31
|
+
"@rspack/binding-win32-ia32-msvc": "1.1.8",
|
|
32
|
+
"@rspack/binding-win32-x64-msvc": "1.1.8",
|
|
33
|
+
"@rspack/binding-darwin-x64": "1.1.8",
|
|
34
|
+
"@rspack/binding-linux-x64-gnu": "1.1.8",
|
|
35
|
+
"@rspack/binding-linux-x64-musl": "1.1.8"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build:debug": "node scripts/build.js",
|