@orkestrel/server 0.0.28 → 0.0.30
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 +7 -4
- package/dist/src/server/index.cjs +748 -324
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +611 -213
- package/dist/src/server/index.d.ts +611 -213
- package/dist/src/server/index.js +738 -326
- package/dist/src/server/index.js.map +1 -1
- package/package.json +15 -14
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> A typed HTTP server for the `@orkestrel` line: a node-bound `Server` lifecycle entity
|
|
4
4
|
> that composes a middleware onion around a consumed `@orkestrel/router` dispatcher,
|
|
5
|
-
> beside the `HTTPError` vocabulary and a shared substrate for cookies,
|
|
5
|
+
> beside the `HTTPError` vocabulary and a shared substrate for cookies, HMAC-signed
|
|
6
6
|
> tokens, content negotiation, ETag and Range, security headers, Server-Sent Events,
|
|
7
7
|
> and the body pipeline.
|
|
8
8
|
|
|
@@ -20,7 +20,7 @@ npm install @orkestrel/server
|
|
|
20
20
|
|
|
21
21
|
## Requirements
|
|
22
22
|
|
|
23
|
-
- Node.js >= 22.
|
|
23
|
+
- Node.js >= 22.18.0, the `engines.node` floor in `package.json`; 0.0.28 declared >= 22.12.0
|
|
24
24
|
- ESM and CommonJS builds
|
|
25
25
|
|
|
26
26
|
## Usage
|
|
@@ -61,7 +61,8 @@ A route handler reads `context.state` exactly as middleware wrote it — the
|
|
|
61
61
|
composed onion terminates in the dispatcher, so there is no second plumbing
|
|
62
62
|
layer between the middleware seam and the router. The package also exports
|
|
63
63
|
`HTTPError` and its subclasses, the `compose` middleware primitive,
|
|
64
|
-
cookie/token/body helpers, `
|
|
64
|
+
cookie/token/body helpers, `createSigner` for the signer every signed cookie
|
|
65
|
+
and token helper takes, `Negotiator` for content negotiation, and
|
|
65
66
|
`createStream` for Server-Sent Events.
|
|
66
67
|
|
|
67
68
|
## Guide
|
|
@@ -73,7 +74,9 @@ body pipeline), and the `Server` lifecycle entity — see
|
|
|
73
74
|
|
|
74
75
|
## Package
|
|
75
76
|
|
|
76
|
-
Published as
|
|
77
|
+
Published as one entry point, `.`, per the `exports` field in `package.json`:
|
|
78
|
+
import `createServer` and every other export from `@orkestrel/server`. The
|
|
79
|
+
package has no `./server` subpath, in 0.0.29 as in 0.0.28.
|
|
77
80
|
|
|
78
81
|
## License
|
|
79
82
|
|