@bastani/atomic-natives 0.9.88 → 0.9.89-alpha.2
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/CHANGELOG.md +20 -0
- package/native/atomic_natives.darwin-arm64.node +0 -0
- package/native/atomic_natives.darwin-x64.node +0 -0
- package/native/atomic_natives.linux-arm64-gnu.node +0 -0
- package/native/atomic_natives.linux-arm64-musl.node +0 -0
- package/native/atomic_natives.linux-x64-gnu.node +0 -0
- package/native/atomic_natives.linux-x64-musl.node +0 -0
- package/native/atomic_natives.win32-arm64-msvc.node +0 -0
- package/native/atomic_natives.win32-x64-msvc.node +0 -0
- package/native/index.d.ts +109 -5
- package/native/index.js +63 -54
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.89-alpha.2] - 2026-11-18
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- On a busy Windows machine, a supervised command that ran to completion, such as a Git command of a named worktree, no longer fails with `Windows stdin worker stop was not confirmed` when its input thread has not run yet by the time the command's processes have all ended. Nothing reads that input any more, so the thread ends on its own; a command with processes still running fails as before ([#5202](https://github.com/bastani-inc/atomic/issues/5202))
|
|
10
|
+
|
|
11
|
+
## [0.9.89-alpha.1] - 2026-11-18
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `tryAdvisoryLockAsync` and `renameNoReplaceAsync`: the advisory lock and the non-replacing rename on a worker thread, without blocking the JavaScript event loop
|
|
16
|
+
- Added `pendingStdinInput()`: how much input waits unread on standard input, as bytes on Unix and as input events for a Windows console, or `null` where the operating system cannot say without waiting, such as for a Windows pipe ([#5241](https://github.com/bastani-inc/atomic/issues/5241))
|
|
17
|
+
- Added `windowsDirectorySecurity(path)`: on Windows, reads a file or directory's owner SID, its DACL in SDDL form and the SID of each allow and deny entry, along with the current user's SID, without starting a process. It returns `null` where the descriptor cannot be read, and on other platforms. `windowsDirectorySecurityAsync(path)` reads a directory's security descriptor on a native worker without blocking the caller ([#5324](https://github.com/bastani-inc/atomic/issues/5324)).
|
|
18
|
+
- Added `trySharedAdvisoryLock(path, waitMs)`: takes a shared operating-system advisory lock on `path` (`flock` on Unix, `LockFileEx` on Windows), waiting up to `waitMs` while an exclusive holder keeps it, and returns an `AdvisoryLock` or `null`. Both `tryAdvisoryLock` and `trySharedAdvisoryLock` reopen `path` when the file was unlinked while acquiring the lock, and treat a delete-pending file on Windows as contention until `waitMs` expires. Permanent access errors still throw, and repeated path replacement does not extend the wait ([#5317](https://github.com/bastani-inc/atomic/issues/5317)).
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- On Windows, `tryAdvisoryLock`, `tryAdvisoryLockAsync` and `trySharedAdvisoryLock` no longer throw `Access is denied` when another process removes the lock file while they open or lock it. A refusal that the removal explains is retried, a bounded number of times in a row, before it counts as a real permission error ([#5317](https://github.com/bastani-inc/atomic/issues/5317)).
|
|
23
|
+
- On Windows, `TaskSupervisor` no longer reports a command that ran to completion as failed with `Windows stdin worker stop was not confirmed` when its input thread, on a loaded or briefly stalled machine, closed the command's stdin just after the cleanup grace or ended later than it. A stop the thread reported counts as confirmed; one it never reports still fails the cleanup ([#5340](https://github.com/bastani-inc/atomic/pull/5340))
|
|
24
|
+
|
|
5
25
|
## [0.9.88] - 2026-11-16
|
|
6
26
|
|
|
7
27
|
### Added
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/native/index.d.ts
CHANGED
|
@@ -10,14 +10,41 @@
|
|
|
10
10
|
export declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-wasip1' | undefined
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* An exclusive advisory lock this process holds on an open file (#5193), released by
|
|
14
|
-
* when the object is collected, or by the kernel when this process dies.
|
|
13
|
+
* An exclusive or shared advisory lock this process holds on an open file (#5193, #5317), released by
|
|
14
|
+
* {@link AdvisoryLock.release}, when the object is collected, or by the kernel when this process dies.
|
|
15
15
|
*/
|
|
16
16
|
export declare class AdvisoryLock {
|
|
17
17
|
/** Releases the lock and closes its file; releasing it again does nothing. */
|
|
18
18
|
release(): void
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/** A process the host started with [`start_host_process`]. */
|
|
22
|
+
export declare class HostProcess {
|
|
23
|
+
get pid(): number
|
|
24
|
+
/**
|
|
25
|
+
* Queues `chunk` for the process's standard input. False once input can no longer be written: it was ended, or
|
|
26
|
+
* the process's output thread finished.
|
|
27
|
+
*/
|
|
28
|
+
write(chunk: Buffer): boolean
|
|
29
|
+
/** Closes standard input once everything queued was written. */
|
|
30
|
+
end(): void
|
|
31
|
+
/**
|
|
32
|
+
* Sends `signal` to the process, or to its process group when `group` is true. False once the process was
|
|
33
|
+
* reaped, after its output ended and its exit was reported, as its ID may name another process by then, or when
|
|
34
|
+
* the signal could not be sent.
|
|
35
|
+
*/
|
|
36
|
+
kill(signal: number, group: boolean): boolean
|
|
37
|
+
/** Keeps the host's event loop alive until the process has ended, which is the default. */
|
|
38
|
+
ref(): void
|
|
39
|
+
/**
|
|
40
|
+
* Says the host has handled the process's `close`, after which it never signals it again: the process is reaped
|
|
41
|
+
* once it has exited and this was called, or the handle was dropped.
|
|
42
|
+
*/
|
|
43
|
+
release(): void
|
|
44
|
+
/** Lets the host's event loop end while the process runs. */
|
|
45
|
+
unref(): void
|
|
46
|
+
}
|
|
47
|
+
|
|
21
48
|
export declare class HostSession {}
|
|
22
49
|
|
|
23
50
|
export declare class OwnerLease {}
|
|
@@ -506,6 +533,31 @@ export type HostObservation =
|
|
|
506
533
|
| { kind: 'background'; reason: string }
|
|
507
534
|
| { kind: 'none'; reason: string }
|
|
508
535
|
|
|
536
|
+
export interface HostProcessEvent {
|
|
537
|
+
kind: HostProcessEventKind
|
|
538
|
+
data?: Buffer
|
|
539
|
+
code?: number
|
|
540
|
+
signal?: number
|
|
541
|
+
errno?: string
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export type HostProcessEventKind = 'stdout' | 'stdout-end' | 'stderr' | 'stderr-end' | 'exit' | 'stdin-error'
|
|
545
|
+
|
|
546
|
+
export interface HostProcessOptions {
|
|
547
|
+
/** The program: a path, or a name looked up on the `PATH` of `env`. */
|
|
548
|
+
file: string
|
|
549
|
+
args: Array<string>
|
|
550
|
+
cwd?: string
|
|
551
|
+
/** The complete environment of the process. */
|
|
552
|
+
env: Record<string, string>
|
|
553
|
+
/** Which of standard input, output and error are pipes; the others are `/dev/null`. */
|
|
554
|
+
pipeStdin: boolean
|
|
555
|
+
pipeStdout: boolean
|
|
556
|
+
pipeStderr: boolean
|
|
557
|
+
/** Starts the process in a session of its own, as Node's `detached` does. */
|
|
558
|
+
detached: boolean
|
|
559
|
+
}
|
|
560
|
+
|
|
509
561
|
export type InputData =
|
|
510
562
|
| { kind: 'bytes'; bytes: Buffer }
|
|
511
563
|
| { kind: 'eof' }
|
|
@@ -667,6 +719,13 @@ export interface OwnerSnapshot {
|
|
|
667
719
|
cursor: Cursor
|
|
668
720
|
}
|
|
669
721
|
|
|
722
|
+
/**
|
|
723
|
+
* How much input waits unread on this process's standard input: bytes on Unix, input events for a Windows console.
|
|
724
|
+
* `null` where the OS cannot say without waiting: for a Windows pipe, whose peek waits behind a read already pending
|
|
725
|
+
* on it, and for a closed handle.
|
|
726
|
+
*/
|
|
727
|
+
export declare function pendingStdinInput(): number | null
|
|
728
|
+
|
|
670
729
|
/**
|
|
671
730
|
* When running process `pid` was created, as the decimal count of 100-nanosecond intervals since 1601-01-01 UTC (the
|
|
672
731
|
* Windows process creation time), or `null` where that cannot be read: on other platforms, for a process that is gone
|
|
@@ -706,6 +765,12 @@ export interface PtyStartOptions {
|
|
|
706
765
|
*/
|
|
707
766
|
export declare function renameNoReplace(from: string, to: string): boolean
|
|
708
767
|
|
|
768
|
+
/**
|
|
769
|
+
* Asynchronous form of {@link renameNoReplace}: renames `from` to `to` without replacing an existing destination on a
|
|
770
|
+
* worker thread without blocking the JavaScript event loop.
|
|
771
|
+
*/
|
|
772
|
+
export declare function renameNoReplaceAsync(from: string, to: string): Promise<boolean>
|
|
773
|
+
|
|
709
774
|
export interface ReportReceipt {
|
|
710
775
|
reportId: string
|
|
711
776
|
cursor: Cursor
|
|
@@ -774,6 +839,13 @@ export interface SettlementReceipt {
|
|
|
774
839
|
completionId: string
|
|
775
840
|
}
|
|
776
841
|
|
|
842
|
+
/**
|
|
843
|
+
* Starts `options.file`, delivering its output, its end and its exit to `on_event` in the order they happened. A
|
|
844
|
+
* failure to start it throws with the errno name (`ENOENT`, `EACCES`, ...) as the error's code. Off Linux it always
|
|
845
|
+
* refuses with `ENOSYS`.
|
|
846
|
+
*/
|
|
847
|
+
export declare function startHostProcess(options: HostProcessOptions, onEvent: (event: HostProcessEvent) => void): HostProcess
|
|
848
|
+
|
|
777
849
|
export interface SubscriptionDrain {
|
|
778
850
|
reset: boolean
|
|
779
851
|
snapshot?: OwnerSnapshot
|
|
@@ -843,14 +915,46 @@ export type TaskResult =
|
|
|
843
915
|
export type TerminationCause = 'abort' | 'interrupt' | 'fail-fast-skip' | 'parent-shutdown'
|
|
844
916
|
|
|
845
917
|
/**
|
|
846
|
-
* Takes the exclusive advisory lock of the file at `path` (#5193): `flock` on Unix, `LockFileEx` on Windows.
|
|
847
|
-
* file is created when missing
|
|
848
|
-
* `null` while another holder keeps it
|
|
918
|
+
* Takes the exclusive advisory lock of the file at `path` (#5193, #5317): `flock` on Unix, `LockFileEx` on Windows.
|
|
919
|
+
* The file is created when missing, reopened if unlinked while acquiring the lock, and never truncated or removed.
|
|
920
|
+
* Tried at once, then again until `waitMs` has passed; `null` while another holder keeps it, a delete-pending file
|
|
921
|
+
* remains at `path` on Windows, or repeated path replacement exhausts `waitMs`. Throws when the file cannot be opened
|
|
922
|
+
* or locked.
|
|
849
923
|
*/
|
|
850
924
|
export declare function tryAdvisoryLock(path: string, waitMs: number): AdvisoryLock | null
|
|
851
925
|
|
|
926
|
+
/**
|
|
927
|
+
* Asynchronous form of {@link tryAdvisoryLock}: acquires the exclusive advisory lock on a worker thread without
|
|
928
|
+
* blocking the JavaScript event loop.
|
|
929
|
+
*/
|
|
930
|
+
export declare function tryAdvisoryLockAsync(path: string, waitMs: number): Promise<AdvisoryLock | null>
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Takes a shared advisory lock on the file at `path` (#5317): `flock` on Unix, `LockFileEx` on Windows. The file is
|
|
934
|
+
* created when missing, reopened if unlinked while acquiring the lock, and never truncated or removed. Tried at once,
|
|
935
|
+
* then again until `waitMs` has passed; `null` while an exclusive holder keeps it, a delete-pending file remains at
|
|
936
|
+
* `path` on Windows, or repeated path replacement exhausts `waitMs`. Throws when the file cannot be opened or locked.
|
|
937
|
+
*/
|
|
938
|
+
export declare function trySharedAdvisoryLock(path: string, waitMs: number): AdvisoryLock | null
|
|
939
|
+
|
|
852
940
|
export type WaitOutcome =
|
|
853
941
|
| { kind: 'settled'; taskId: string; result: TaskResult }
|
|
854
942
|
| { kind: 'yielded'; taskId: string; waitId: string; reason: YieldReason }
|
|
855
943
|
|
|
944
|
+
export interface WindowsAccessRule {
|
|
945
|
+
allow: boolean
|
|
946
|
+
sid: string
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
export declare function windowsDirectorySecurity(path: string): WindowsDirectorySecurity | null
|
|
950
|
+
|
|
951
|
+
export interface WindowsDirectorySecurity {
|
|
952
|
+
currentSid: string
|
|
953
|
+
ownerSid: string
|
|
954
|
+
dacl: string
|
|
955
|
+
accessRules: Array<WindowsAccessRule>
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
export declare function windowsDirectorySecurityAsync(path: string): Promise<WindowsDirectorySecurity | undefined | null>
|
|
959
|
+
|
|
856
960
|
export type YieldReason = 'explicit' | 'default-background' | 'elapsed' | 'intercom-coordination' | 'input-needed'
|
package/native/index.js
CHANGED
|
@@ -94,8 +94,8 @@ function requireNative() {
|
|
|
94
94
|
try {
|
|
95
95
|
const binding = require('@bastani/atomic-natives-android-arm64')
|
|
96
96
|
const bindingPackageVersion = require('@bastani/atomic-natives-android-arm64/package.json').version
|
|
97
|
-
if (bindingPackageVersion !== '0.9.
|
|
98
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
97
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
98
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
99
99
|
}
|
|
100
100
|
return binding
|
|
101
101
|
} catch (e) {
|
|
@@ -110,8 +110,8 @@ function requireNative() {
|
|
|
110
110
|
try {
|
|
111
111
|
const binding = require('@bastani/atomic-natives-android-arm-eabi')
|
|
112
112
|
const bindingPackageVersion = require('@bastani/atomic-natives-android-arm-eabi/package.json').version
|
|
113
|
-
if (bindingPackageVersion !== '0.9.
|
|
114
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
113
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
114
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
115
115
|
}
|
|
116
116
|
return binding
|
|
117
117
|
} catch (e) {
|
|
@@ -131,8 +131,8 @@ function requireNative() {
|
|
|
131
131
|
try {
|
|
132
132
|
const binding = require('@bastani/atomic-natives-win32-x64-gnu')
|
|
133
133
|
const bindingPackageVersion = require('@bastani/atomic-natives-win32-x64-gnu/package.json').version
|
|
134
|
-
if (bindingPackageVersion !== '0.9.
|
|
135
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
134
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
135
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
136
136
|
}
|
|
137
137
|
return binding
|
|
138
138
|
} catch (e) {
|
|
@@ -147,8 +147,8 @@ function requireNative() {
|
|
|
147
147
|
try {
|
|
148
148
|
const binding = require('@bastani/atomic-natives-win32-x64-msvc')
|
|
149
149
|
const bindingPackageVersion = require('@bastani/atomic-natives-win32-x64-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '0.9.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
150
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && 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.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -164,8 +164,8 @@ function requireNative() {
|
|
|
164
164
|
try {
|
|
165
165
|
const binding = require('@bastani/atomic-natives-win32-ia32-msvc')
|
|
166
166
|
const bindingPackageVersion = require('@bastani/atomic-natives-win32-ia32-msvc/package.json').version
|
|
167
|
-
if (bindingPackageVersion !== '0.9.
|
|
168
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
167
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
168
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
169
169
|
}
|
|
170
170
|
return binding
|
|
171
171
|
} catch (e) {
|
|
@@ -180,8 +180,8 @@ function requireNative() {
|
|
|
180
180
|
try {
|
|
181
181
|
const binding = require('@bastani/atomic-natives-win32-arm64-msvc')
|
|
182
182
|
const bindingPackageVersion = require('@bastani/atomic-natives-win32-arm64-msvc/package.json').version
|
|
183
|
-
if (bindingPackageVersion !== '0.9.
|
|
184
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
183
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
184
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
185
185
|
}
|
|
186
186
|
return binding
|
|
187
187
|
} catch (e) {
|
|
@@ -199,8 +199,8 @@ function requireNative() {
|
|
|
199
199
|
try {
|
|
200
200
|
const binding = require('@bastani/atomic-natives-darwin-universal')
|
|
201
201
|
const bindingPackageVersion = require('@bastani/atomic-natives-darwin-universal/package.json').version
|
|
202
|
-
if (bindingPackageVersion !== '0.9.
|
|
203
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
202
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
203
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
204
204
|
}
|
|
205
205
|
return binding
|
|
206
206
|
} catch (e) {
|
|
@@ -215,8 +215,8 @@ function requireNative() {
|
|
|
215
215
|
try {
|
|
216
216
|
const binding = require('@bastani/atomic-natives-darwin-x64')
|
|
217
217
|
const bindingPackageVersion = require('@bastani/atomic-natives-darwin-x64/package.json').version
|
|
218
|
-
if (bindingPackageVersion !== '0.9.
|
|
219
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
218
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
219
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
220
220
|
}
|
|
221
221
|
return binding
|
|
222
222
|
} catch (e) {
|
|
@@ -231,8 +231,8 @@ function requireNative() {
|
|
|
231
231
|
try {
|
|
232
232
|
const binding = require('@bastani/atomic-natives-darwin-arm64')
|
|
233
233
|
const bindingPackageVersion = require('@bastani/atomic-natives-darwin-arm64/package.json').version
|
|
234
|
-
if (bindingPackageVersion !== '0.9.
|
|
235
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
234
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
235
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
236
236
|
}
|
|
237
237
|
return binding
|
|
238
238
|
} catch (e) {
|
|
@@ -251,8 +251,8 @@ function requireNative() {
|
|
|
251
251
|
try {
|
|
252
252
|
const binding = require('@bastani/atomic-natives-freebsd-x64')
|
|
253
253
|
const bindingPackageVersion = require('@bastani/atomic-natives-freebsd-x64/package.json').version
|
|
254
|
-
if (bindingPackageVersion !== '0.9.
|
|
255
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
254
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
255
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
256
256
|
}
|
|
257
257
|
return binding
|
|
258
258
|
} catch (e) {
|
|
@@ -267,8 +267,8 @@ function requireNative() {
|
|
|
267
267
|
try {
|
|
268
268
|
const binding = require('@bastani/atomic-natives-freebsd-arm64')
|
|
269
269
|
const bindingPackageVersion = require('@bastani/atomic-natives-freebsd-arm64/package.json').version
|
|
270
|
-
if (bindingPackageVersion !== '0.9.
|
|
271
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
270
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
271
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
272
272
|
}
|
|
273
273
|
return binding
|
|
274
274
|
} catch (e) {
|
|
@@ -283,8 +283,8 @@ function requireNative() {
|
|
|
283
283
|
try {
|
|
284
284
|
const binding = require('@bastani/atomic-natives-freebsd-ppc64')
|
|
285
285
|
const bindingPackageVersion = require('@bastani/atomic-natives-freebsd-ppc64/package.json').version
|
|
286
|
-
if (bindingPackageVersion !== '0.9.
|
|
287
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
286
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
287
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
288
288
|
}
|
|
289
289
|
return binding
|
|
290
290
|
} catch (e) {
|
|
@@ -304,8 +304,8 @@ function requireNative() {
|
|
|
304
304
|
try {
|
|
305
305
|
const binding = require('@bastani/atomic-natives-linux-x64-musl')
|
|
306
306
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-x64-musl/package.json').version
|
|
307
|
-
if (bindingPackageVersion !== '0.9.
|
|
308
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
307
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
308
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
309
309
|
}
|
|
310
310
|
return binding
|
|
311
311
|
} catch (e) {
|
|
@@ -320,8 +320,8 @@ function requireNative() {
|
|
|
320
320
|
try {
|
|
321
321
|
const binding = require('@bastani/atomic-natives-linux-x64-gnu')
|
|
322
322
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-x64-gnu/package.json').version
|
|
323
|
-
if (bindingPackageVersion !== '0.9.
|
|
324
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
323
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
324
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
325
325
|
}
|
|
326
326
|
return binding
|
|
327
327
|
} catch (e) {
|
|
@@ -338,8 +338,8 @@ function requireNative() {
|
|
|
338
338
|
try {
|
|
339
339
|
const binding = require('@bastani/atomic-natives-linux-arm64-musl')
|
|
340
340
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-arm64-musl/package.json').version
|
|
341
|
-
if (bindingPackageVersion !== '0.9.
|
|
342
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
341
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
342
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
343
343
|
}
|
|
344
344
|
return binding
|
|
345
345
|
} catch (e) {
|
|
@@ -354,8 +354,8 @@ function requireNative() {
|
|
|
354
354
|
try {
|
|
355
355
|
const binding = require('@bastani/atomic-natives-linux-arm64-gnu')
|
|
356
356
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-arm64-gnu/package.json').version
|
|
357
|
-
if (bindingPackageVersion !== '0.9.
|
|
358
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
357
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
358
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
359
359
|
}
|
|
360
360
|
return binding
|
|
361
361
|
} catch (e) {
|
|
@@ -372,8 +372,8 @@ function requireNative() {
|
|
|
372
372
|
try {
|
|
373
373
|
const binding = require('@bastani/atomic-natives-linux-arm-musleabihf')
|
|
374
374
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-arm-musleabihf/package.json').version
|
|
375
|
-
if (bindingPackageVersion !== '0.9.
|
|
376
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
375
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
376
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
377
377
|
}
|
|
378
378
|
return binding
|
|
379
379
|
} catch (e) {
|
|
@@ -388,8 +388,8 @@ function requireNative() {
|
|
|
388
388
|
try {
|
|
389
389
|
const binding = require('@bastani/atomic-natives-linux-arm-gnueabihf')
|
|
390
390
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-arm-gnueabihf/package.json').version
|
|
391
|
-
if (bindingPackageVersion !== '0.9.
|
|
392
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
391
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
392
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
393
393
|
}
|
|
394
394
|
return binding
|
|
395
395
|
} catch (e) {
|
|
@@ -406,8 +406,8 @@ function requireNative() {
|
|
|
406
406
|
try {
|
|
407
407
|
const binding = require('@bastani/atomic-natives-linux-loong64-musl')
|
|
408
408
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-loong64-musl/package.json').version
|
|
409
|
-
if (bindingPackageVersion !== '0.9.
|
|
410
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
409
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
410
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
411
411
|
}
|
|
412
412
|
return binding
|
|
413
413
|
} catch (e) {
|
|
@@ -422,8 +422,8 @@ function requireNative() {
|
|
|
422
422
|
try {
|
|
423
423
|
const binding = require('@bastani/atomic-natives-linux-loong64-gnu')
|
|
424
424
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-loong64-gnu/package.json').version
|
|
425
|
-
if (bindingPackageVersion !== '0.9.
|
|
426
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
425
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
426
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
427
427
|
}
|
|
428
428
|
return binding
|
|
429
429
|
} catch (e) {
|
|
@@ -440,8 +440,8 @@ function requireNative() {
|
|
|
440
440
|
try {
|
|
441
441
|
const binding = require('@bastani/atomic-natives-linux-riscv64-musl')
|
|
442
442
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-riscv64-musl/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '0.9.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
443
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && 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.9.89-alpha.2 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('@bastani/atomic-natives-linux-riscv64-gnu')
|
|
458
458
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-riscv64-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '0.9.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
459
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && 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.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -473,8 +473,8 @@ function requireNative() {
|
|
|
473
473
|
try {
|
|
474
474
|
const binding = require('@bastani/atomic-natives-linux-ppc64-gnu')
|
|
475
475
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-ppc64-gnu/package.json').version
|
|
476
|
-
if (bindingPackageVersion !== '0.9.
|
|
477
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
476
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
477
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
478
478
|
}
|
|
479
479
|
return binding
|
|
480
480
|
} catch (e) {
|
|
@@ -489,8 +489,8 @@ function requireNative() {
|
|
|
489
489
|
try {
|
|
490
490
|
const binding = require('@bastani/atomic-natives-linux-s390x-gnu')
|
|
491
491
|
const bindingPackageVersion = require('@bastani/atomic-natives-linux-s390x-gnu/package.json').version
|
|
492
|
-
if (bindingPackageVersion !== '0.9.
|
|
493
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
492
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
493
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
494
494
|
}
|
|
495
495
|
return binding
|
|
496
496
|
} catch (e) {
|
|
@@ -509,8 +509,8 @@ function requireNative() {
|
|
|
509
509
|
try {
|
|
510
510
|
const binding = require('@bastani/atomic-natives-openharmony-arm64')
|
|
511
511
|
const bindingPackageVersion = require('@bastani/atomic-natives-openharmony-arm64/package.json').version
|
|
512
|
-
if (bindingPackageVersion !== '0.9.
|
|
513
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
512
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
513
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
514
514
|
}
|
|
515
515
|
return binding
|
|
516
516
|
} catch (e) {
|
|
@@ -525,8 +525,8 @@ function requireNative() {
|
|
|
525
525
|
try {
|
|
526
526
|
const binding = require('@bastani/atomic-natives-openharmony-x64')
|
|
527
527
|
const bindingPackageVersion = require('@bastani/atomic-natives-openharmony-x64/package.json').version
|
|
528
|
-
if (bindingPackageVersion !== '0.9.
|
|
529
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
528
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
529
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
530
530
|
}
|
|
531
531
|
return binding
|
|
532
532
|
} catch (e) {
|
|
@@ -541,8 +541,8 @@ function requireNative() {
|
|
|
541
541
|
try {
|
|
542
542
|
const binding = require('@bastani/atomic-natives-openharmony-arm')
|
|
543
543
|
const bindingPackageVersion = require('@bastani/atomic-natives-openharmony-arm/package.json').version
|
|
544
|
-
if (bindingPackageVersion !== '0.9.
|
|
545
|
-
throw new Error(`Native binding package version mismatch, expected 0.9.
|
|
544
|
+
if (bindingPackageVersion !== '0.9.89-alpha.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
545
|
+
throw new Error(`Native binding package version mismatch, expected 0.9.89-alpha.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
546
546
|
}
|
|
547
547
|
return binding
|
|
548
548
|
} catch (e) {
|
|
@@ -836,6 +836,7 @@ function __napiStampBindingTarget(exportsObject, target) {
|
|
|
836
836
|
module.exports.__napiBindingTarget = __napiStampBindingTarget(nativeBinding, __napiLoadedBindingTarget)
|
|
837
837
|
module.exports = nativeBinding
|
|
838
838
|
module.exports.AdvisoryLock = nativeBinding.AdvisoryLock
|
|
839
|
+
module.exports.HostProcess = nativeBinding.HostProcess
|
|
839
840
|
module.exports.HostSession = nativeBinding.HostSession
|
|
840
841
|
module.exports.OwnerLease = nativeBinding.OwnerLease
|
|
841
842
|
module.exports.ProcessTreeContainment = nativeBinding.ProcessTreeContainment
|
|
@@ -862,12 +863,20 @@ module.exports.glob = nativeBinding.glob
|
|
|
862
863
|
module.exports.grep = nativeBinding.grep
|
|
863
864
|
module.exports.GrepOutputMode = nativeBinding.GrepOutputMode
|
|
864
865
|
module.exports.hasMatch = nativeBinding.hasMatch
|
|
866
|
+
module.exports.HostProcessEventKind = nativeBinding.HostProcessEventKind
|
|
865
867
|
module.exports.invalidateFsScanCache = nativeBinding.invalidateFsScanCache
|
|
866
868
|
module.exports.killSupervisedProcessTrees = nativeBinding.killSupervisedProcessTrees
|
|
867
869
|
module.exports.OwnerCloseCause = nativeBinding.OwnerCloseCause
|
|
870
|
+
module.exports.pendingStdinInput = nativeBinding.pendingStdinInput
|
|
868
871
|
module.exports.processCreationTime = nativeBinding.processCreationTime
|
|
869
872
|
module.exports.renameNoReplace = nativeBinding.renameNoReplace
|
|
873
|
+
module.exports.renameNoReplaceAsync = nativeBinding.renameNoReplaceAsync
|
|
870
874
|
module.exports.search = nativeBinding.search
|
|
875
|
+
module.exports.startHostProcess = nativeBinding.startHostProcess
|
|
871
876
|
module.exports.TerminationCause = nativeBinding.TerminationCause
|
|
872
877
|
module.exports.tryAdvisoryLock = nativeBinding.tryAdvisoryLock
|
|
878
|
+
module.exports.tryAdvisoryLockAsync = nativeBinding.tryAdvisoryLockAsync
|
|
879
|
+
module.exports.trySharedAdvisoryLock = nativeBinding.trySharedAdvisoryLock
|
|
880
|
+
module.exports.windowsDirectorySecurity = nativeBinding.windowsDirectorySecurity
|
|
881
|
+
module.exports.windowsDirectorySecurityAsync = nativeBinding.windowsDirectorySecurityAsync
|
|
873
882
|
module.exports.YieldReason = nativeBinding.YieldReason
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic-natives",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.89-alpha.2",
|
|
4
4
|
"description": "Native Rust bindings for Atomic via N-API",
|
|
5
5
|
"homepage": "https://github.com/bastani-inc/atomic",
|
|
6
6
|
"author": "Bastani",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
61
|
"optionalDependencies": {
|
|
62
|
-
"@bastani/atomic-natives-win32-x64-msvc": "0.9.
|
|
63
|
-
"@bastani/atomic-natives-darwin-x64": "0.9.
|
|
64
|
-
"@bastani/atomic-natives-linux-x64-gnu": "0.9.
|
|
65
|
-
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.
|
|
66
|
-
"@bastani/atomic-natives-darwin-arm64": "0.9.
|
|
67
|
-
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.
|
|
68
|
-
"@bastani/atomic-natives-linux-x64-musl": "0.9.
|
|
69
|
-
"@bastani/atomic-natives-linux-arm64-musl": "0.9.
|
|
62
|
+
"@bastani/atomic-natives-win32-x64-msvc": "0.9.89-alpha.2",
|
|
63
|
+
"@bastani/atomic-natives-darwin-x64": "0.9.89-alpha.2",
|
|
64
|
+
"@bastani/atomic-natives-linux-x64-gnu": "0.9.89-alpha.2",
|
|
65
|
+
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.89-alpha.2",
|
|
66
|
+
"@bastani/atomic-natives-darwin-arm64": "0.9.89-alpha.2",
|
|
67
|
+
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.89-alpha.2",
|
|
68
|
+
"@bastani/atomic-natives-linux-x64-musl": "0.9.89-alpha.2",
|
|
69
|
+
"@bastani/atomic-natives-linux-arm64-musl": "0.9.89-alpha.2"
|
|
70
70
|
}
|
|
71
71
|
}
|