@morojs/engine 1.1.20 → 1.1.21

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.
Files changed (3) hide show
  1. package/README.md +3 -2
  2. package/index.d.ts +2 -2
  3. package/package.json +11 -8
package/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # @morojs/engine
2
2
 
3
3
  MoroJS's native HTTP engine: a Moro-authored C++ core with raw-V8 bindings,
4
- shipped as **prebuilt binaries per platform x Node ABI**. MIT licensed.
4
+ shipped as **prebuilt binaries per platform x Node ABI**. It serves HTTP/1.1,
5
+ HTTP/2 and WebSocket (with permessage-deflate) and terminates TLS in-process.
6
+ MIT licensed.
5
7
 
6
8
  This is the meta package. It contains only a small JavaScript loader plus the
7
9
  TypeScript types; the actual `.node` binaries are delivered by per-platform
@@ -24,7 +26,6 @@ prebuilt binary is not available:
24
26
  server: {
25
27
  engine: 'moro', // default - native engine when loadable, Node http otherwise
26
28
  // engine: 'node' - always use Node http
27
- // engine: 'uws' - opt in to uWebSockets.js
28
29
  }
29
30
  ```
30
31
 
package/index.d.ts CHANGED
@@ -447,8 +447,8 @@ export function clearStaticRoutes(serverId: number): void;
447
447
  * `/user/:id` is prefix "/user/" and suffix ""; `/files/:name.json` is
448
448
  * prefix "/files/" and suffix ".json". The segment must be non-empty and
449
449
  * contain no '/', so `/user/` and `/user/1/2` still reach onRequest. It is
450
- * written as it is on the wire, undecoded (uWS's writeParameterValue does
451
- * the same); a route that needs decoding stays a JS route. The header block
450
+ * written as it is on the wire, undecoded; a route that needs decoding
451
+ * stays a JS route. The header block
452
452
  * is materialised once, so the reply is byte-identical to
453
453
  * respond(status, headersFlat, segment). Only an exact method match
454
454
  * short-circuits; re-registering (method, prefix, suffix) replaces it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morojs/engine",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
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,17 +38,20 @@
38
38
  "provenance": true
39
39
  },
40
40
  "optionalDependencies": {
41
- "@morojs/engine-darwin-arm64": "1.1.20",
42
- "@morojs/engine-darwin-x64": "1.1.20",
43
- "@morojs/engine-linux-x64-gnu": "1.1.20",
44
- "@morojs/engine-linux-arm64-gnu": "1.1.20",
45
- "@morojs/engine-linux-x64-musl": "1.1.20",
46
- "@morojs/engine-linux-arm64-musl": "1.1.20",
47
- "@morojs/engine-win32-x64": "1.1.20"
41
+ "@morojs/engine-darwin-arm64": "1.1.21",
42
+ "@morojs/engine-darwin-x64": "1.1.21",
43
+ "@morojs/engine-linux-x64-gnu": "1.1.21",
44
+ "@morojs/engine-linux-arm64-gnu": "1.1.21",
45
+ "@morojs/engine-linux-x64-musl": "1.1.21",
46
+ "@morojs/engine-linux-arm64-musl": "1.1.21",
47
+ "@morojs/engine-win32-x64": "1.1.21"
48
48
  },
49
49
  "keywords": [
50
50
  "morojs",
51
51
  "http",
52
+ "http2",
53
+ "websocket",
54
+ "tls",
52
55
  "server",
53
56
  "native",
54
57
  "performance"