@rspack/binding 2.1.0-rc.0 → 2.1.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/napi-binding.d.ts +13 -3
- package/package.json +16 -12
package/napi-binding.d.ts
CHANGED
|
@@ -464,7 +464,7 @@ export declare class ModuleGraphConnection {
|
|
|
464
464
|
|
|
465
465
|
export declare class NativeWatcher {
|
|
466
466
|
constructor(options: NativeWatcherOptions)
|
|
467
|
-
watch(files: [Array<string>, Array<string>], directories: [Array<string>, Array<string>], missing: [Array<string>, Array<string>], startTime: bigint, callback: (err: Error | null, result: NativeWatchResult) => void, callbackUndelayed: (
|
|
467
|
+
watch(files: [Array<string>, Array<string>], directories: [Array<string>, Array<string>], missing: [Array<string>, Array<string>], startTime: bigint, callback: (err: Error | null, result: NativeWatchResult) => void, callbackUndelayed: (event: NativeWatchUndelayedEvent) => void): void
|
|
468
468
|
triggerEvent(kind: 'change' | 'remove' | 'create', path: string): void
|
|
469
469
|
/**
|
|
470
470
|
* # Safety
|
|
@@ -1797,6 +1797,16 @@ export interface NativeWatcherOptions {
|
|
|
1797
1797
|
ignored?: string | string[] | RegExp
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
|
+
/**
|
|
1801
|
+
* A single, undelayed file system event delivered to the `callbackUndelayed`
|
|
1802
|
+
* callback. Passed as one object so napi-rs delivers it as a single JS
|
|
1803
|
+
* argument unambiguously (a tuple would arrive as an array).
|
|
1804
|
+
*/
|
|
1805
|
+
export interface NativeWatchUndelayedEvent {
|
|
1806
|
+
kind: string
|
|
1807
|
+
path: string
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1800
1810
|
export interface NodeFsStats {
|
|
1801
1811
|
isFile: boolean
|
|
1802
1812
|
isDirectory: boolean
|
|
@@ -1916,6 +1926,8 @@ export interface RawCacheOptionsMemory {
|
|
|
1916
1926
|
export interface RawCacheOptionsPersistent {
|
|
1917
1927
|
buildDependencies?: Array<string>
|
|
1918
1928
|
version?: string
|
|
1929
|
+
maxAge: number
|
|
1930
|
+
maxVersions: number
|
|
1919
1931
|
snapshot?: RawSnapshotOptions
|
|
1920
1932
|
storage?: RawStorageOptions
|
|
1921
1933
|
portable?: boolean
|
|
@@ -3086,8 +3098,6 @@ export interface RawStatsOptions {
|
|
|
3086
3098
|
export interface RawStorageOptions {
|
|
3087
3099
|
type: "filesystem"
|
|
3088
3100
|
directory: string
|
|
3089
|
-
maxAge: number
|
|
3090
|
-
maxGenerations: number
|
|
3091
3101
|
}
|
|
3092
3102
|
|
|
3093
3103
|
export interface RawSubresourceIntegrityPluginOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/binding",
|
|
3
|
-
"version": "2.1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Node binding for rspack",
|
|
6
6
|
"main": "binding.js",
|
|
@@ -44,7 +44,9 @@
|
|
|
44
44
|
"aarch64-unknown-linux-gnu",
|
|
45
45
|
"aarch64-apple-darwin",
|
|
46
46
|
"aarch64-unknown-linux-musl",
|
|
47
|
-
"aarch64-pc-windows-msvc"
|
|
47
|
+
"aarch64-pc-windows-msvc",
|
|
48
|
+
"riscv64gc-unknown-linux-gnu",
|
|
49
|
+
"riscv64gc-unknown-linux-musl"
|
|
48
50
|
],
|
|
49
51
|
"wasm": {
|
|
50
52
|
"initialMemory": 16384,
|
|
@@ -57,16 +59,18 @@
|
|
|
57
59
|
}
|
|
58
60
|
},
|
|
59
61
|
"optionalDependencies": {
|
|
60
|
-
"@rspack/binding-darwin-arm64": "2.1.0
|
|
61
|
-
"@rspack/binding-win32-arm64-msvc": "2.1.0
|
|
62
|
-
"@rspack/binding-linux-arm64-gnu": "2.1.0
|
|
63
|
-
"@rspack/binding-linux-arm64-musl": "2.1.0
|
|
64
|
-
"@rspack/binding-win32-ia32-msvc": "2.1.0
|
|
65
|
-
"@rspack/binding-
|
|
66
|
-
"@rspack/binding-
|
|
67
|
-
"@rspack/binding-
|
|
68
|
-
"@rspack/binding-
|
|
69
|
-
"@rspack/binding-linux-x64-
|
|
62
|
+
"@rspack/binding-darwin-arm64": "2.1.0",
|
|
63
|
+
"@rspack/binding-win32-arm64-msvc": "2.1.0",
|
|
64
|
+
"@rspack/binding-linux-arm64-gnu": "2.1.0",
|
|
65
|
+
"@rspack/binding-linux-arm64-musl": "2.1.0",
|
|
66
|
+
"@rspack/binding-win32-ia32-msvc": "2.1.0",
|
|
67
|
+
"@rspack/binding-linux-riscv64-musl": "2.1.0",
|
|
68
|
+
"@rspack/binding-linux-riscv64-gnu": "2.1.0",
|
|
69
|
+
"@rspack/binding-wasm32-wasi": "2.1.0",
|
|
70
|
+
"@rspack/binding-darwin-x64": "2.1.0",
|
|
71
|
+
"@rspack/binding-linux-x64-gnu": "2.1.0",
|
|
72
|
+
"@rspack/binding-win32-x64-msvc": "2.1.0",
|
|
73
|
+
"@rspack/binding-linux-x64-musl": "2.1.0"
|
|
70
74
|
},
|
|
71
75
|
"scripts": {
|
|
72
76
|
"build:dev": "node scripts/build.js",
|