@orkestrel/server 0.0.16 → 0.0.18
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 +4 -4
- package/dist/src/server/index.cjs +477 -393
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +583 -415
- package/dist/src/server/index.d.ts +583 -415
- package/dist/src/server/index.js +468 -384
- package/dist/src/server/index.js.map +1 -1
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -16,8 +16,8 @@ npm install @orkestrel/server
|
|
|
16
16
|
|
|
17
17
|
## Requirements
|
|
18
18
|
|
|
19
|
-
- Node.js >=
|
|
20
|
-
- ESM
|
|
19
|
+
- Node.js >= 22.12.0, matching the `engines` field in `package.json`
|
|
20
|
+
- ESM and CommonJS builds
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
23
23
|
|
|
@@ -58,14 +58,14 @@ composed onion terminates in the dispatcher, so there is no second plumbing
|
|
|
58
58
|
layer between the middleware seam and the router. The package also exports
|
|
59
59
|
`HTTPError` and its subclasses, the `compose` middleware primitive,
|
|
60
60
|
cookie/token/body helpers, `Negotiator` for content negotiation, and
|
|
61
|
-
`
|
|
61
|
+
`createStream` for Server-Sent Events.
|
|
62
62
|
|
|
63
63
|
## Guide
|
|
64
64
|
|
|
65
65
|
For the full surface — the middleware seam, `HTTPError` vocabulary, shared
|
|
66
66
|
substrate (cookies, tokens, negotiation, ETag/Range, security headers, SSE,
|
|
67
67
|
body pipeline), and the `Server` lifecycle entity — see
|
|
68
|
-
[`guides/
|
|
68
|
+
[`guides/server.md`](guides/server.md).
|
|
69
69
|
|
|
70
70
|
## Package
|
|
71
71
|
|