@morojs/engine 1.1.6 → 1.1.7
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 +5 -1
- package/index.d.ts +10 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -78,7 +78,11 @@ once per process by a feature check and a self-test, and anywhere it is
|
|
|
78
78
|
unavailable (kernels before 6.1, gVisor, containers under Docker's default
|
|
79
79
|
seccomp profile, which blocks `io_uring_setup`) the engine silently stays on
|
|
80
80
|
libuv. Neither transport changes a byte on the wire. `probe().transport`
|
|
81
|
-
reports which one is live
|
|
81
|
+
reports which one is live, `probe().transportReason` why, and
|
|
82
|
+
`probe().transportMode` which io_uring ring mode is running: `defer-taskrun`
|
|
83
|
+
(completions run as one batch inside the engine's own `io_uring_enter`, woken
|
|
84
|
+
through a registered eventfd) or `coop-taskrun` (the 1.1.6 mode, also
|
|
85
|
+
selectable with `MORO_ENGINE_URING_TASKRUN=coop`).
|
|
82
86
|
|
|
83
87
|
## License
|
|
84
88
|
|
package/index.d.ts
CHANGED
|
@@ -30,6 +30,11 @@ export interface EngineCapabilities {
|
|
|
30
30
|
/** prepareResponse() / releaseTemplates() / respondPrepared() /
|
|
31
31
|
* respondPreparedEmpty() / writeHeadPrepared() / endWith() are available. */
|
|
32
32
|
responseTemplates: boolean;
|
|
33
|
+
/** Every callback into JS (onRequest, onRequestBatch, onAborted, onWritable,
|
|
34
|
+
* the WebSocket callbacks) runs inside a Node callback scope, so
|
|
35
|
+
* process.nextTick callbacks and microtasks queued during dispatch run
|
|
36
|
+
* when the callback returns, as they do after Node's own I/O callbacks. */
|
|
37
|
+
callbackScope: boolean;
|
|
33
38
|
/** onAborted / onWritable are delivered on a later loop turn - never
|
|
34
39
|
* re-entrantly from inside respond()/writeHead()/write()/end(). close()
|
|
35
40
|
* still delivers pending onAborted calls before it returns. False only
|
|
@@ -90,6 +95,11 @@ export interface EngineProbeResult {
|
|
|
90
95
|
transport?: 'uv' | 'uring';
|
|
91
96
|
/** Why the transport is not io_uring ('ok' when it is). */
|
|
92
97
|
transportReason?: string;
|
|
98
|
+
/** 'uv', or the io_uring ring mode in use: 'defer-taskrun' (completions run
|
|
99
|
+
* as one batch inside the engine's own io_uring_enter, woken through a
|
|
100
|
+
* registered eventfd) or 'coop-taskrun' (the 1.1.6 mode). The probe tries
|
|
101
|
+
* defer first; MORO_ENGINE_URING_TASKRUN=coop|defer pins one. */
|
|
102
|
+
transportMode?: 'uv' | 'defer-taskrun' | 'coop-taskrun';
|
|
93
103
|
/** Per-thread fast/slow hit counters per hot entry point - present only when
|
|
94
104
|
* MORO_ENGINE_FASTCALL_STATS=1 was set when the addon loaded (test/CI proof
|
|
95
105
|
* that the fast path is taken). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morojs/engine",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "MoroJS native HTTP engine - Moro-authored C++ core with per-platform prebuilt binaries and automatic Node.js fallback in MoroJS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "CM Ventures Inc.",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"provenance": true
|
|
39
39
|
},
|
|
40
40
|
"optionalDependencies": {
|
|
41
|
-
"@morojs/engine-darwin-arm64": "1.1.
|
|
42
|
-
"@morojs/engine-darwin-x64": "1.1.
|
|
43
|
-
"@morojs/engine-linux-x64-gnu": "1.1.
|
|
44
|
-
"@morojs/engine-linux-arm64-gnu": "1.1.
|
|
45
|
-
"@morojs/engine-linux-x64-musl": "1.1.
|
|
46
|
-
"@morojs/engine-linux-arm64-musl": "1.1.
|
|
47
|
-
"@morojs/engine-win32-x64": "1.1.
|
|
41
|
+
"@morojs/engine-darwin-arm64": "1.1.7",
|
|
42
|
+
"@morojs/engine-darwin-x64": "1.1.7",
|
|
43
|
+
"@morojs/engine-linux-x64-gnu": "1.1.7",
|
|
44
|
+
"@morojs/engine-linux-arm64-gnu": "1.1.7",
|
|
45
|
+
"@morojs/engine-linux-x64-musl": "1.1.7",
|
|
46
|
+
"@morojs/engine-linux-arm64-musl": "1.1.7",
|
|
47
|
+
"@morojs/engine-win32-x64": "1.1.7"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"morojs",
|