@rspack/binding 1.3.0-beta.1 → 1.3.1
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 +26 -13
- package/package.json +10 -10
package/binding.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ export type JsFilename =
|
|
|
6
6
|
| string
|
|
7
7
|
| ((pathData: JsPathData, assetInfo?: AssetInfo) => string);
|
|
8
8
|
|
|
9
|
-
export type LocalJsFilename = JsFilename;
|
|
10
|
-
|
|
11
9
|
export type RawLazyCompilationTest = RegExp | ((module: Module) => boolean);
|
|
12
10
|
|
|
13
11
|
export type AssetInfo = KnownAssetInfo & Record<string, any>;
|
|
@@ -24,7 +22,7 @@ export interface Module {
|
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
interface NormalModuleConstructor {
|
|
27
|
-
new
|
|
25
|
+
new(): NormalModule;
|
|
28
26
|
readonly prototype: NormalModule;
|
|
29
27
|
}
|
|
30
28
|
|
|
@@ -226,10 +224,10 @@ export declare class JsCompilation {
|
|
|
226
224
|
getErrors(): Array<JsRspackError>
|
|
227
225
|
getWarnings(): Array<JsRspackError>
|
|
228
226
|
getStats(): JsStats
|
|
229
|
-
getAssetPath(filename:
|
|
230
|
-
getAssetPathWithInfo(filename:
|
|
231
|
-
getPath(filename:
|
|
232
|
-
getPathWithInfo(filename:
|
|
227
|
+
getAssetPath(filename: JsFilename, data: JsPathData): string
|
|
228
|
+
getAssetPathWithInfo(filename: JsFilename, data: JsPathData): PathWithInfo
|
|
229
|
+
getPath(filename: JsFilename, data: JsPathData): string
|
|
230
|
+
getPathWithInfo(filename: JsFilename, data: JsPathData): PathWithInfo
|
|
233
231
|
addFileDependencies(deps: Array<string>): void
|
|
234
232
|
addContextDependencies(deps: Array<string>): void
|
|
235
233
|
addMissingDependencies(deps: Array<string>): void
|
|
@@ -458,7 +456,8 @@ export declare enum BuiltinPluginName {
|
|
|
458
456
|
CircularDependencyRspackPlugin = 'CircularDependencyRspackPlugin',
|
|
459
457
|
JsLoaderRspackPlugin = 'JsLoaderRspackPlugin',
|
|
460
458
|
LazyCompilationPlugin = 'LazyCompilationPlugin',
|
|
461
|
-
ModuleInfoHeaderPlugin = 'ModuleInfoHeaderPlugin'
|
|
459
|
+
ModuleInfoHeaderPlugin = 'ModuleInfoHeaderPlugin',
|
|
460
|
+
HttpUriPlugin = 'HttpUriPlugin'
|
|
462
461
|
}
|
|
463
462
|
|
|
464
463
|
export declare function cleanupGlobalTrace(): void
|
|
@@ -753,6 +752,12 @@ export interface JsHtmlPluginTag {
|
|
|
753
752
|
asset?: string
|
|
754
753
|
}
|
|
755
754
|
|
|
755
|
+
export interface JsHttpResponseRaw {
|
|
756
|
+
status: number
|
|
757
|
+
headers: Record<string, string>
|
|
758
|
+
body: Buffer
|
|
759
|
+
}
|
|
760
|
+
|
|
756
761
|
export interface JsLibIdentOptions {
|
|
757
762
|
context: string
|
|
758
763
|
}
|
|
@@ -1447,7 +1452,7 @@ export interface RawAssetResourceGeneratorOptions {
|
|
|
1447
1452
|
}
|
|
1448
1453
|
|
|
1449
1454
|
export interface RawBannerPluginOptions {
|
|
1450
|
-
banner: string | ((
|
|
1455
|
+
banner: string | ((args: { hash: string, chunk: JsChunk, filename: string }) => string)
|
|
1451
1456
|
entryOnly?: boolean
|
|
1452
1457
|
footer?: boolean
|
|
1453
1458
|
raw?: boolean
|
|
@@ -1815,6 +1820,14 @@ export interface RawHttpExternalsRspackPluginOptions {
|
|
|
1815
1820
|
webAsync: boolean
|
|
1816
1821
|
}
|
|
1817
1822
|
|
|
1823
|
+
export interface RawHttpUriPluginOptions {
|
|
1824
|
+
allowedUris: (string | RegExp)[]
|
|
1825
|
+
lockfileLocation?: string
|
|
1826
|
+
cacheLocation?: string
|
|
1827
|
+
upgrade: boolean
|
|
1828
|
+
httpClient: (url: string, headers: Record<string, string>) => Promise<JsHttpResponseRaw>
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1818
1831
|
export interface RawIgnorePluginOptions {
|
|
1819
1832
|
resourceRegExp?: RegExp
|
|
1820
1833
|
contextRegExp?: RegExp
|
|
@@ -2196,8 +2209,8 @@ export interface RawResolveOptions {
|
|
|
2196
2209
|
mainFiles?: Array<string>
|
|
2197
2210
|
mainFields?: Array<string>
|
|
2198
2211
|
conditionNames?: Array<string>
|
|
2199
|
-
alias?: Array<RawAliasOptionItem>
|
|
2200
|
-
fallback?: Array<RawAliasOptionItem>
|
|
2212
|
+
alias?: Array<RawAliasOptionItem> | false
|
|
2213
|
+
fallback?: Array<RawAliasOptionItem> | false
|
|
2201
2214
|
symlinks?: boolean
|
|
2202
2215
|
tsconfig?: RawResolveTsconfigOptions
|
|
2203
2216
|
modules?: Array<string>
|
|
@@ -2221,8 +2234,8 @@ export interface RawResolveOptionsWithDependencyType {
|
|
|
2221
2234
|
mainFiles?: Array<string>
|
|
2222
2235
|
mainFields?: Array<string>
|
|
2223
2236
|
conditionNames?: Array<string>
|
|
2224
|
-
alias?: Array<RawAliasOptionItem>
|
|
2225
|
-
fallback?: Array<RawAliasOptionItem>
|
|
2237
|
+
alias?: Array<RawAliasOptionItem> | false
|
|
2238
|
+
fallback?: Array<RawAliasOptionItem> | false
|
|
2226
2239
|
symlinks?: boolean
|
|
2227
2240
|
tsconfig?: RawResolveTsconfigOptions
|
|
2228
2241
|
modules?: Array<string>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -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-
|
|
54
|
-
"@rspack/binding-linux-arm64-gnu": "1.3.
|
|
55
|
-
"@rspack/binding-
|
|
56
|
-
"@rspack/binding-
|
|
57
|
-
"@rspack/binding-
|
|
58
|
-
"@rspack/binding-linux-x64-gnu": "1.3.
|
|
59
|
-
"@rspack/binding-linux-x64-musl": "1.3.
|
|
51
|
+
"@rspack/binding-darwin-arm64": "1.3.1",
|
|
52
|
+
"@rspack/binding-win32-arm64-msvc": "1.3.1",
|
|
53
|
+
"@rspack/binding-win32-ia32-msvc": "1.3.1",
|
|
54
|
+
"@rspack/binding-linux-arm64-gnu": "1.3.1",
|
|
55
|
+
"@rspack/binding-linux-arm64-musl": "1.3.1",
|
|
56
|
+
"@rspack/binding-darwin-x64": "1.3.1",
|
|
57
|
+
"@rspack/binding-win32-x64-msvc": "1.3.1",
|
|
58
|
+
"@rspack/binding-linux-x64-gnu": "1.3.1",
|
|
59
|
+
"@rspack/binding-linux-x64-musl": "1.3.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build:dev": "node scripts/build.js",
|