@rush-fs/core 0.1.0-beta.0 → 0.1.0-beta.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/README.md +33 -33
- package/README.zh-CN.md +53 -54
- package/index.js +52 -52
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<img src="https://img.shields.io/badge/Written%20in-Rust-orange?style=flat-square" alt="Written in Rust">
|
|
9
9
|
<img src="https://img.shields.io/npm/v/@rush-fs/core?style=flat-square" alt="NPM Version">
|
|
10
10
|
<img src="https://img.shields.io/npm/l/@rush-fs/core?style=flat-square" alt="License">
|
|
11
|
-
<img src="https://img.shields.io/badge/status-
|
|
11
|
+
<img src="https://img.shields.io/badge/status-beta-orange?style=flat-square" alt="Beta">
|
|
12
12
|
<a href="https://github.com/CoderSerio/rush-fs/graphs/contributors"><img src="https://img.shields.io/github/contributors/CoderSerio/rush-fs?style=flat-square" alt="Contributors"></a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
@@ -16,8 +16,6 @@
|
|
|
16
16
|
API-aligned with Node.js <code>fs</code> for painless drop-in replacement in existing projects; get multi-fold performance in heavy file operations, powered by Rust.
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
<p align="center"><strong>⚠️ Alpha:</strong> The package is currently in <strong>alpha</strong>. API and behavior may change before 0.1.0 stable.</p>
|
|
20
|
-
|
|
21
19
|
</div>
|
|
22
20
|
|
|
23
21
|
## Installation
|
|
@@ -37,7 +35,7 @@ When you install `@rush-fs/core`, the package manager should automatically insta
|
|
|
37
35
|
**Windows x64:** `pnpm add @rush-fs/rush-fs-win32-x64-msvc`
|
|
38
36
|
**Linux x64 (glibc):** `pnpm add @rush-fs/rush-fs-linux-x64-gnu`
|
|
39
37
|
|
|
40
|
-
**Migration from `rush-fs`:** The package was renamed to `@rush-fs/core`. See [CHANGELOG.md](./CHANGELOG.md#010
|
|
38
|
+
**Migration from `rush-fs`:** The package was renamed to `@rush-fs/core`. See [CHANGELOG.md](./CHANGELOG.md#010) for details.
|
|
41
39
|
|
|
42
40
|
## Usage
|
|
43
41
|
|
|
@@ -77,30 +75,30 @@ await rm('./temp', { recursive: true, force: true })
|
|
|
77
75
|
|
|
78
76
|
These are the scenarios where Rust's parallelism and zero-copy I/O make a real difference:
|
|
79
77
|
|
|
80
|
-
| Scenario
|
|
81
|
-
|
|
|
82
|
-
| `readdir` recursive (node_modules, ~30k entries)
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `
|
|
91
|
-
| `cp` tree dir ~363 nodes (4 threads) | 108.73 ms | 46.88 ms | **2.3x** |
|
|
78
|
+
| Scenario | Node.js | Rush-FS | Speedup |
|
|
79
|
+
| ----------------------------------------------------------------------- | --------- | -------- | --------- |
|
|
80
|
+
| `readdir` recursive (node_modules, ~30k entries) | 281 ms | 23 ms | **12x** |
|
|
81
|
+
| `copyFile` 4 MB | 4.67 ms | 0.09 ms | **50x** |
|
|
82
|
+
| `readFile` 4 MB utf8 | 1.86 ms | 0.92 ms | **2x** |
|
|
83
|
+
| `readFile` 64 KB utf8 | 42 µs | 18 µs | **2.4x** |
|
|
84
|
+
| `rm` 2000 files (4 threads) | 92 ms | 53 ms | **1.75x** |
|
|
85
|
+
| `access` R_OK (directory) | 4.18 µs | 1.55 µs | **2.7x** |
|
|
86
|
+
| `cp` 500-file flat dir (4 threads) | 86.45 ms | 32.88 ms | **2.6x** |
|
|
87
|
+
| `cp` tree dir ~363 nodes (4 threads) | 108.73 ms | 46.88 ms | **2.3x** |
|
|
88
|
+
| `glob` large tree (`node_modules/**/*.json`, ~30k entries) vs fast-glob | 303 ms | 30 ms | **~10x** |
|
|
92
89
|
|
|
93
90
|
### On Par with Node.js
|
|
94
91
|
|
|
95
|
-
Single-file operations have a ~0.3 µs napi bridge overhead
|
|
92
|
+
Single-file operations have a ~0.3 µs napi bridge overhead. Recursive glob on a **small tree** is on par with node-glob; on **large trees** (e.g. node_modules) Rush-FS wins (see table above).
|
|
96
93
|
|
|
97
|
-
| Scenario
|
|
98
|
-
|
|
|
99
|
-
| `stat` (single file)
|
|
100
|
-
| `readFile` small (Buffer)
|
|
101
|
-
| `writeFile` small (string)
|
|
102
|
-
| `writeFile` small (Buffer)
|
|
103
|
-
| `appendFile`
|
|
94
|
+
| Scenario | Node.js | Rush-FS | Ratio |
|
|
95
|
+
| ----------------------------------------------------- | ------- | ------- | -------------------------------------- |
|
|
96
|
+
| `stat` (single file) | 1.45 µs | 1.77 µs | 1.2x |
|
|
97
|
+
| `readFile` small (Buffer) | 8.86 µs | 9.46 µs | 1.1x |
|
|
98
|
+
| `writeFile` small (string) | 74 µs | 66 µs | 0.9x |
|
|
99
|
+
| `writeFile` small (Buffer) | 115 µs | 103 µs | 0.9x |
|
|
100
|
+
| `appendFile` | 30 µs | 27 µs | 0.9x |
|
|
101
|
+
| `glob` recursive (`**/*.rs`, small tree) vs node-glob | ~22 ms | ~40 ms | ~1.8x (node-glob faster at this scale) |
|
|
104
102
|
|
|
105
103
|
### Where Node.js Wins
|
|
106
104
|
|
|
@@ -127,7 +125,7 @@ Single-file operations (`stat`, `readFile`, `writeFile`, `chmod`, etc.) are atom
|
|
|
127
125
|
|
|
128
126
|
### Key Takeaway
|
|
129
127
|
|
|
130
|
-
**Rush-FS excels at recursive / batch filesystem operations** (readdir, glob, rm, cp) where Rust's parallel walkers deliver
|
|
128
|
+
**Rush-FS excels at recursive / batch filesystem operations** (readdir, glob, rm, cp) where Rust's parallel walkers deliver significant speedups (e.g. 12x readdir, 50x copyFile). For single-file operations it performs on par with Node.js. The napi bridge adds a fixed ~0.3 µs overhead per call, which only matters for sub-microsecond operations like `existsSync`.
|
|
131
129
|
|
|
132
130
|
**`cp` benchmark detail** (Apple Silicon, release build):
|
|
133
131
|
|
|
@@ -141,7 +139,7 @@ Optimal concurrency for `cp` is **4 threads** on Apple Silicon — beyond that,
|
|
|
141
139
|
|
|
142
140
|
## How it works
|
|
143
141
|
|
|
144
|
-
For the original Node.js,
|
|
142
|
+
For the original Node.js, **for example** on `readdir`, directory reads run serially in the native layer, and each entry is turned into a JS string on the V8 main thread, which adds GC pressure:
|
|
145
143
|
|
|
146
144
|
```mermaid
|
|
147
145
|
graph TD
|
|
@@ -166,29 +164,31 @@ graph TD
|
|
|
166
164
|
E -->|"Return Array"| G["JS Callback/Promise"]
|
|
167
165
|
```
|
|
168
166
|
|
|
169
|
-
|
|
167
|
+
With Rush-FS, **for example** on `readdir`, the hot path stays in Rust: build a `Vec<String>` (or use Rayon for **recursive** readdir), then hand one array to JS. No per-entry V8 allocation during the walk:
|
|
170
168
|
|
|
171
169
|
```mermaid
|
|
172
170
|
graph TD
|
|
173
171
|
A["JS: readdir"] -->|"N-API Call"| B("Rust Wrapper")
|
|
174
|
-
B -->|"Spawn
|
|
172
|
+
B -->|"Spawn Task"| C{"Rust (or Rayon pool if recursive)"}
|
|
175
173
|
|
|
176
174
|
subgraph "Rust 'Black Box'"
|
|
177
|
-
C -->|"
|
|
178
|
-
D -->|"
|
|
175
|
+
C -->|"Syscall: getdents"| D[OS Kernel]
|
|
176
|
+
D -->|"Return file list"| C
|
|
179
177
|
C -->|"Store as Rust Vec<String>"| H[Rust Heap]
|
|
180
|
-
H -->|"No V8
|
|
178
|
+
H -->|"No V8 yet"| H
|
|
181
179
|
end
|
|
182
180
|
|
|
183
181
|
C -->|"All Done"| I("Convert to JS")
|
|
184
182
|
|
|
185
183
|
subgraph "N-API Bridge"
|
|
186
|
-
I -->|"Batch
|
|
184
|
+
I -->|"Batch create JS array"| J[V8 Heap]
|
|
187
185
|
end
|
|
188
186
|
|
|
189
187
|
J -->|Return| K["JS Result"]
|
|
190
188
|
```
|
|
191
189
|
|
|
190
|
+
Other sources of speed in Rush-FS: **recursive `readdir`** uses [jwalk](https://github.com/Byron/jwalk) with a Rayon thread pool for parallel directory traversal; **`cp`** and **`rm`** (recursive) can use Rayon for parallel tree walk and I/O; **`glob`** runs with a configurable number of threads. Across APIs, keeping the hot path in Rust and handing a single result (or batched data) to JS avoids repeated V8/GC overhead compared to Node’s C++ binding.
|
|
191
|
+
|
|
192
192
|
## Status & Roadmap
|
|
193
193
|
|
|
194
194
|
We are rewriting `fs` APIs one by one.
|
|
@@ -446,7 +446,7 @@ We are rewriting `fs` APIs one by one.
|
|
|
446
446
|
withFileTypes?: boolean; // ✅
|
|
447
447
|
exclude?: string[]; // ✅
|
|
448
448
|
concurrency?: number; // ✨
|
|
449
|
-
gitIgnore?: boolean; // ✨
|
|
449
|
+
gitIgnore?: boolean; // ✨ default false (align with Node.js fs.globSync)
|
|
450
450
|
};
|
|
451
451
|
```
|
|
452
452
|
|
package/README.zh-CN.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<img src="https://img.shields.io/badge/Written%20in-Rust-orange?style=flat-square" alt="Written in Rust">
|
|
9
9
|
<img src="https://img.shields.io/npm/v/@rush-fs/core?style=flat-square" alt="NPM Version">
|
|
10
10
|
<img src="https://img.shields.io/npm/l/@rush-fs/core?style=flat-square" alt="License">
|
|
11
|
-
<img src="https://img.shields.io/badge/status-
|
|
11
|
+
<img src="https://img.shields.io/badge/status-beta-orange?style=flat-square" alt="Beta">
|
|
12
12
|
<a href="https://github.com/CoderSerio/rush-fs/graphs/contributors"><img src="https://img.shields.io/github/contributors/CoderSerio/rush-fs?style=flat-square" alt="Contributors"></a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
@@ -16,9 +16,6 @@
|
|
|
16
16
|
与 Node.js <code>fs</code> API 对齐,可无痛替换现有项目中的 fs;在海量文件操作场景下获得数倍于内置 fs 的性能,由 Rust 驱动。
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
<p align="center"><strong>⚠️ Alpha:</strong>当前为 <strong>alpha</strong> 版本,在 0.1.0 正式版前 API 与行为可能变更。</p>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
19
|
## 安装
|
|
23
20
|
|
|
24
21
|
```bash
|
|
@@ -36,7 +33,7 @@ pnpm add @rush-fs/core
|
|
|
36
33
|
**Windows x64:** `pnpm add @rush-fs/rush-fs-win32-x64-msvc`
|
|
37
34
|
**Linux x64 (glibc):** `pnpm add @rush-fs/rush-fs-linux-x64-gnu`
|
|
38
35
|
|
|
39
|
-
**从 `rush-fs` 迁移:**
|
|
36
|
+
**从 `rush-fs` 迁移:** 主包更名为 `@rush-fs/core`,详见 [CHANGELOG.md](./CHANGELOG.md#010)。
|
|
40
37
|
|
|
41
38
|
## 用法
|
|
42
39
|
|
|
@@ -76,30 +73,30 @@ await rm('./temp', { recursive: true, force: true })
|
|
|
76
73
|
|
|
77
74
|
这些场景中 Rust 的并行遍历和零拷贝 I/O 发挥了真正优势:
|
|
78
75
|
|
|
79
|
-
| 场景
|
|
80
|
-
|
|
|
81
|
-
| `readdir` 递归(node_modules,约 3 万条目)
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `cp` 树形目录 ~363 节点(4 线程) | 108.73 ms | 46.88 ms | **2.3x** |
|
|
76
|
+
| 场景 | Node.js | Rush-FS | 加速比 |
|
|
77
|
+
| ---------------------------------------------------------------- | --------- | -------- | --------- |
|
|
78
|
+
| `readdir` 递归(node_modules,约 3 万条目) | 281 ms | 23 ms | **12x** |
|
|
79
|
+
| `copyFile` 4 MB | 4.67 ms | 0.09 ms | **50x** |
|
|
80
|
+
| `readFile` 4 MB utf8 | 1.86 ms | 0.92 ms | **2x** |
|
|
81
|
+
| `readFile` 64 KB utf8 | 42 µs | 18 µs | **2.4x** |
|
|
82
|
+
| `rm` 2000 个文件(4 线程) | 92 ms | 53 ms | **1.75x** |
|
|
83
|
+
| `access` R_OK(目录) | 4.18 µs | 1.55 µs | **2.7x** |
|
|
84
|
+
| `cp` 500 文件平铺目录(4 线程) | 86.45 ms | 32.88 ms | **2.6x** |
|
|
85
|
+
| `cp` 树形目录 ~363 节点(4 线程) | 108.73 ms | 46.88 ms | **2.3x** |
|
|
86
|
+
| `glob` 大树(`node_modules/**/*.json`,约 3 万条目)vs fast-glob | 303 ms | 30 ms | **~10x** |
|
|
91
87
|
|
|
92
88
|
### 与 Node.js 持平的场景
|
|
93
89
|
|
|
94
|
-
单文件操作有约 0.3 µs 的 napi
|
|
90
|
+
单文件操作有约 0.3 µs 的 napi 桥接开销。递归 glob 在**小树**上与 node-glob 持平,在**大树**(如 node_modules)上 Rush-FS 明显更快(见上表)。
|
|
95
91
|
|
|
96
|
-
| 场景
|
|
97
|
-
|
|
|
98
|
-
| `stat`(单文件)
|
|
99
|
-
| `readFile` 小文件(Buffer)
|
|
100
|
-
| `writeFile` 小文件(string)
|
|
101
|
-
| `writeFile` 小文件(Buffer)
|
|
102
|
-
| `appendFile`
|
|
92
|
+
| 场景 | Node.js | Rush-FS | 比率 |
|
|
93
|
+
| ------------------------------------------ | ------- | ------- | -------------------------------- |
|
|
94
|
+
| `stat`(单文件) | 1.45 µs | 1.77 µs | 1.2x |
|
|
95
|
+
| `readFile` 小文件(Buffer) | 8.86 µs | 9.46 µs | 1.1x |
|
|
96
|
+
| `writeFile` 小文件(string) | 74 µs | 66 µs | 0.9x |
|
|
97
|
+
| `writeFile` 小文件(Buffer) | 115 µs | 103 µs | 0.9x |
|
|
98
|
+
| `appendFile` | 30 µs | 27 µs | 0.9x |
|
|
99
|
+
| `glob` 递归(`**/*.rs`,小树)vs node-glob | ~22 ms | ~40 ms | ~1.8x(此规模下 node-glob 更快) |
|
|
103
100
|
|
|
104
101
|
### Node.js 更快的场景
|
|
105
102
|
|
|
@@ -126,7 +123,7 @@ Rush-FS 在文件系统遍历类操作中使用多线程并行:
|
|
|
126
123
|
|
|
127
124
|
### 核心结论
|
|
128
125
|
|
|
129
|
-
**Rush-FS 在递归/批量文件系统操作上表现卓越**(readdir、glob、rm、cp),Rust
|
|
126
|
+
**Rush-FS 在递归/批量文件系统操作上表现卓越**(readdir、glob、rm、cp),Rust 的并行遍历器带来多倍加速(如 readdir 12x、copyFile 50x)。单文件操作与 Node.js 基本持平。napi 桥接带来固定约 0.3 µs 的每次调用开销,仅在亚微秒级操作(如 `existsSync`)中有感知。
|
|
130
127
|
|
|
131
128
|
**`cp` 基准详情**(Apple Silicon,release 构建):
|
|
132
129
|
|
|
@@ -140,54 +137,56 @@ Rush-FS 在文件系统遍历类操作中使用多线程并行:
|
|
|
140
137
|
|
|
141
138
|
## 工作原理
|
|
142
139
|
|
|
143
|
-
Node.js
|
|
140
|
+
以 **`readdir` 为例**:Node.js 在原生层串行执行目录读取,每条结果都在 V8 主线程上转成 JS 字符串,带来 GC 压力:
|
|
144
141
|
|
|
145
142
|
```mermaid
|
|
146
143
|
graph TD
|
|
147
|
-
A["JS: readdir"]
|
|
148
|
-
B
|
|
144
|
+
A["JS: readdir"] -->|调用| B("Node.js C++ 绑定")
|
|
145
|
+
B -->|提交任务| C{"Libuv 线程池"}
|
|
149
146
|
|
|
150
|
-
subgraph "
|
|
151
|
-
C -->|"
|
|
152
|
-
D -->|"
|
|
153
|
-
C -->|"
|
|
147
|
+
subgraph "原生层(串行)"
|
|
148
|
+
C -->|"系统调用: getdents"| D[系统内核]
|
|
149
|
+
D -->|"返回文件列表"| C
|
|
150
|
+
C -->|"处理路径"| C
|
|
154
151
|
end
|
|
155
152
|
|
|
156
|
-
C -->|"
|
|
153
|
+
C -->|"结果就绪"| E("V8 主线程")
|
|
157
154
|
|
|
158
|
-
subgraph "V8
|
|
159
|
-
E -->|"
|
|
160
|
-
E -->|"
|
|
161
|
-
E -->|"
|
|
162
|
-
F -->|"GC
|
|
155
|
+
subgraph "V8 交互(较重)"
|
|
156
|
+
E -->|"创建 JS 字符串 1"| F[V8 堆]
|
|
157
|
+
E -->|"字符串 2"| F
|
|
158
|
+
E -->|"字符串 N…"| F
|
|
159
|
+
F -->|"GC 压力上升"| F
|
|
163
160
|
end
|
|
164
161
|
|
|
165
|
-
E -->|"
|
|
162
|
+
E -->|"返回数组"| G["JS 回调/Promise"]
|
|
166
163
|
```
|
|
167
164
|
|
|
168
|
-
|
|
165
|
+
以 **`readdir` 为例**,Rush-FS 把热路径留在 Rust:先构建 `Vec<String>`(递归时用 Rayon 并行遍历),再一次性交给 JS,遍历过程中不逐条进 V8:
|
|
169
166
|
|
|
170
167
|
```mermaid
|
|
171
168
|
graph TD
|
|
172
|
-
A["JS: readdir"] -->|"N-API
|
|
173
|
-
B -->|"
|
|
174
|
-
|
|
175
|
-
subgraph "Rust
|
|
176
|
-
C -->|"
|
|
177
|
-
D -->|"
|
|
178
|
-
C -->|"
|
|
179
|
-
H -->|"
|
|
169
|
+
A["JS: readdir"] -->|"N-API 调用"| B("Rust 封装")
|
|
170
|
+
B -->|"派发任务"| C{"Rust(递归时为 Rayon 线程池)"}
|
|
171
|
+
|
|
172
|
+
subgraph "Rust「黑盒」"
|
|
173
|
+
C -->|"系统调用: getdents"| D[系统内核]
|
|
174
|
+
D -->|"返回文件列表"| C
|
|
175
|
+
C -->|"存入 Rust Vec<String>"| H[Rust 堆]
|
|
176
|
+
H -->|"尚未进 V8"| H
|
|
180
177
|
end
|
|
181
178
|
|
|
182
|
-
C -->|"
|
|
179
|
+
C -->|"全部完成"| I("转为 JS")
|
|
183
180
|
|
|
184
|
-
subgraph "N-API
|
|
185
|
-
I -->|"
|
|
181
|
+
subgraph "N-API 桥"
|
|
182
|
+
I -->|"批量创建 JS 数组"| J[V8 堆]
|
|
186
183
|
end
|
|
187
184
|
|
|
188
|
-
J
|
|
185
|
+
J -->|返回| K["JS 结果"]
|
|
189
186
|
```
|
|
190
187
|
|
|
188
|
+
其它提效来源:**递归 `readdir`** 使用 [jwalk](https://github.com/Byron/jwalk) + Rayon 并行遍历目录;**`cp`**、**`rm`**(递归)可通过 Rayon 并行遍历目录树并做 I/O;**`glob`** 支持多线程。整体上,热路径在 Rust、结果一次性(或批量)交给 JS,相比 Node 的 C++ binding 减少了反复进出 V8 与 GC 的开销。
|
|
189
|
+
|
|
191
190
|
## 状态与路线图
|
|
192
191
|
|
|
193
192
|
我们正在逐个重写 `fs` 的 API。
|
|
@@ -445,7 +444,7 @@ graph TD
|
|
|
445
444
|
withFileTypes?: boolean; // ✅
|
|
446
445
|
exclude?: string[]; // ✅
|
|
447
446
|
concurrency?: number; // ✨
|
|
448
|
-
gitIgnore?: boolean; // ✨
|
|
447
|
+
gitIgnore?: boolean; // ✨ 默认 false,与 Node.js fs.globSync 一致
|
|
449
448
|
};
|
|
450
449
|
```
|
|
451
450
|
|
package/index.js
CHANGED
|
@@ -77,8 +77,8 @@ function requireNative() {
|
|
|
77
77
|
try {
|
|
78
78
|
const binding = require('@rush-fs/core-android-arm64')
|
|
79
79
|
const bindingPackageVersion = require('@rush-fs/core-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
80
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
81
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
82
|
}
|
|
83
83
|
return binding
|
|
84
84
|
} catch (e) {
|
|
@@ -93,8 +93,8 @@ function requireNative() {
|
|
|
93
93
|
try {
|
|
94
94
|
const binding = require('@rush-fs/core-android-arm-eabi')
|
|
95
95
|
const bindingPackageVersion = require('@rush-fs/core-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
96
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
97
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -114,8 +114,8 @@ function requireNative() {
|
|
|
114
114
|
try {
|
|
115
115
|
const binding = require('@rush-fs/core-win32-x64-gnu')
|
|
116
116
|
const bindingPackageVersion = require('@rush-fs/core-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
117
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
118
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
119
119
|
}
|
|
120
120
|
return binding
|
|
121
121
|
} catch (e) {
|
|
@@ -130,8 +130,8 @@ function requireNative() {
|
|
|
130
130
|
try {
|
|
131
131
|
const binding = require('@rush-fs/core-win32-x64-msvc')
|
|
132
132
|
const bindingPackageVersion = require('@rush-fs/core-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
133
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
134
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -147,8 +147,8 @@ function requireNative() {
|
|
|
147
147
|
try {
|
|
148
148
|
const binding = require('@rush-fs/core-win32-ia32-msvc')
|
|
149
149
|
const bindingPackageVersion = require('@rush-fs/core-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
150
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
151
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -163,8 +163,8 @@ function requireNative() {
|
|
|
163
163
|
try {
|
|
164
164
|
const binding = require('@rush-fs/core-win32-arm64-msvc')
|
|
165
165
|
const bindingPackageVersion = require('@rush-fs/core-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
166
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
167
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -182,8 +182,8 @@ function requireNative() {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = require('@rush-fs/core-darwin-universal')
|
|
184
184
|
const bindingPackageVersion = require('@rush-fs/core-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
185
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
186
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
187
|
}
|
|
188
188
|
return binding
|
|
189
189
|
} catch (e) {
|
|
@@ -198,8 +198,8 @@ function requireNative() {
|
|
|
198
198
|
try {
|
|
199
199
|
const binding = require('@rush-fs/core-darwin-x64')
|
|
200
200
|
const bindingPackageVersion = require('@rush-fs/core-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
201
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
202
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -214,8 +214,8 @@ function requireNative() {
|
|
|
214
214
|
try {
|
|
215
215
|
const binding = require('@rush-fs/core-darwin-arm64')
|
|
216
216
|
const bindingPackageVersion = require('@rush-fs/core-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
217
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
218
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -234,8 +234,8 @@ function requireNative() {
|
|
|
234
234
|
try {
|
|
235
235
|
const binding = require('@rush-fs/core-freebsd-x64')
|
|
236
236
|
const bindingPackageVersion = require('@rush-fs/core-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
237
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
238
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
239
|
}
|
|
240
240
|
return binding
|
|
241
241
|
} catch (e) {
|
|
@@ -250,8 +250,8 @@ function requireNative() {
|
|
|
250
250
|
try {
|
|
251
251
|
const binding = require('@rush-fs/core-freebsd-arm64')
|
|
252
252
|
const bindingPackageVersion = require('@rush-fs/core-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
253
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
254
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -271,8 +271,8 @@ function requireNative() {
|
|
|
271
271
|
try {
|
|
272
272
|
const binding = require('@rush-fs/core-linux-x64-musl')
|
|
273
273
|
const bindingPackageVersion = require('@rush-fs/core-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
274
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
275
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
276
|
}
|
|
277
277
|
return binding
|
|
278
278
|
} catch (e) {
|
|
@@ -287,8 +287,8 @@ function requireNative() {
|
|
|
287
287
|
try {
|
|
288
288
|
const binding = require('@rush-fs/core-linux-x64-gnu')
|
|
289
289
|
const bindingPackageVersion = require('@rush-fs/core-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
290
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
291
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
292
|
}
|
|
293
293
|
return binding
|
|
294
294
|
} catch (e) {
|
|
@@ -305,8 +305,8 @@ function requireNative() {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = require('@rush-fs/core-linux-arm64-musl')
|
|
307
307
|
const bindingPackageVersion = require('@rush-fs/core-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
308
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
309
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
310
|
}
|
|
311
311
|
return binding
|
|
312
312
|
} catch (e) {
|
|
@@ -321,8 +321,8 @@ function requireNative() {
|
|
|
321
321
|
try {
|
|
322
322
|
const binding = require('@rush-fs/core-linux-arm64-gnu')
|
|
323
323
|
const bindingPackageVersion = require('@rush-fs/core-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
324
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
325
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
326
|
}
|
|
327
327
|
return binding
|
|
328
328
|
} catch (e) {
|
|
@@ -339,8 +339,8 @@ function requireNative() {
|
|
|
339
339
|
try {
|
|
340
340
|
const binding = require('@rush-fs/core-linux-arm-musleabihf')
|
|
341
341
|
const bindingPackageVersion = require('@rush-fs/core-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
342
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
343
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
344
|
}
|
|
345
345
|
return binding
|
|
346
346
|
} catch (e) {
|
|
@@ -355,8 +355,8 @@ function requireNative() {
|
|
|
355
355
|
try {
|
|
356
356
|
const binding = require('@rush-fs/core-linux-arm-gnueabihf')
|
|
357
357
|
const bindingPackageVersion = require('@rush-fs/core-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
358
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
359
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
360
|
}
|
|
361
361
|
return binding
|
|
362
362
|
} catch (e) {
|
|
@@ -373,8 +373,8 @@ function requireNative() {
|
|
|
373
373
|
try {
|
|
374
374
|
const binding = require('@rush-fs/core-linux-loong64-musl')
|
|
375
375
|
const bindingPackageVersion = require('@rush-fs/core-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
376
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
377
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
378
|
}
|
|
379
379
|
return binding
|
|
380
380
|
} catch (e) {
|
|
@@ -389,8 +389,8 @@ function requireNative() {
|
|
|
389
389
|
try {
|
|
390
390
|
const binding = require('@rush-fs/core-linux-loong64-gnu')
|
|
391
391
|
const bindingPackageVersion = require('@rush-fs/core-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
392
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
393
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
394
|
}
|
|
395
395
|
return binding
|
|
396
396
|
} catch (e) {
|
|
@@ -407,8 +407,8 @@ function requireNative() {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = require('@rush-fs/core-linux-riscv64-musl')
|
|
409
409
|
const bindingPackageVersion = require('@rush-fs/core-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
410
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
411
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
412
|
}
|
|
413
413
|
return binding
|
|
414
414
|
} catch (e) {
|
|
@@ -423,8 +423,8 @@ function requireNative() {
|
|
|
423
423
|
try {
|
|
424
424
|
const binding = require('@rush-fs/core-linux-riscv64-gnu')
|
|
425
425
|
const bindingPackageVersion = require('@rush-fs/core-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
426
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
427
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
428
|
}
|
|
429
429
|
return binding
|
|
430
430
|
} catch (e) {
|
|
@@ -440,8 +440,8 @@ function requireNative() {
|
|
|
440
440
|
try {
|
|
441
441
|
const binding = require('@rush-fs/core-linux-ppc64-gnu')
|
|
442
442
|
const bindingPackageVersion = require('@rush-fs/core-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
443
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
444
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -456,8 +456,8 @@ function requireNative() {
|
|
|
456
456
|
try {
|
|
457
457
|
const binding = require('@rush-fs/core-linux-s390x-gnu')
|
|
458
458
|
const bindingPackageVersion = require('@rush-fs/core-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
459
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
460
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -476,8 +476,8 @@ function requireNative() {
|
|
|
476
476
|
try {
|
|
477
477
|
const binding = require('@rush-fs/core-openharmony-arm64')
|
|
478
478
|
const bindingPackageVersion = require('@rush-fs/core-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
479
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
480
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
482
482
|
return binding
|
|
483
483
|
} catch (e) {
|
|
@@ -492,8 +492,8 @@ function requireNative() {
|
|
|
492
492
|
try {
|
|
493
493
|
const binding = require('@rush-fs/core-openharmony-x64')
|
|
494
494
|
const bindingPackageVersion = require('@rush-fs/core-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
495
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
496
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
498
498
|
return binding
|
|
499
499
|
} catch (e) {
|
|
@@ -508,8 +508,8 @@ function requireNative() {
|
|
|
508
508
|
try {
|
|
509
509
|
const binding = require('@rush-fs/core-openharmony-arm')
|
|
510
510
|
const bindingPackageVersion = require('@rush-fs/core-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '0.1.0-beta.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.
|
|
511
|
+
if (bindingPackageVersion !== '0.1.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
512
|
+
throw new Error(`Native binding package version mismatch, expected 0.1.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rush-fs/core",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.1",
|
|
4
4
|
"description": "High-performance drop-in replacement for Node.js fs module, powered by Rust",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
},
|
|
119
119
|
"packageManager": "pnpm@9.15.4",
|
|
120
120
|
"optionalDependencies": {
|
|
121
|
-
"@rush-fs/core-win32-x64-msvc": "0.1.0-beta.
|
|
122
|
-
"@rush-fs/core-darwin-x64": "0.1.0-beta.
|
|
123
|
-
"@rush-fs/core-linux-x64-gnu": "0.1.0-beta.
|
|
124
|
-
"@rush-fs/core-darwin-arm64": "0.1.0-beta.
|
|
121
|
+
"@rush-fs/core-win32-x64-msvc": "0.1.0-beta.1",
|
|
122
|
+
"@rush-fs/core-darwin-x64": "0.1.0-beta.1",
|
|
123
|
+
"@rush-fs/core-linux-x64-gnu": "0.1.0-beta.1",
|
|
124
|
+
"@rush-fs/core-darwin-arm64": "0.1.0-beta.1"
|
|
125
125
|
}
|
|
126
126
|
}
|