@nwire/endpoint 0.7.0 → 0.7.1

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 (2) hide show
  1. package/README.md +0 -21
  2. package/package.json +5 -3
package/README.md CHANGED
@@ -12,21 +12,6 @@ Wraps any Node server (Express, Fastify, Koa, Nest, Hono, raw `http`, or a Nwire
12
12
  pnpm add @nwire/endpoint
13
13
  ```
14
14
 
15
- ## Standalone use
16
-
17
- For developers who need real graceful shutdown around an Express/Fastify/Koa/Nest app without rewriting boot code. `endpoint().serve(target).run()` accepts any server-like target.
18
-
19
- ```ts
20
- import express from "express";
21
- import { endpoint } from "@nwire/endpoint";
22
-
23
- const app = express();
24
- app.get("/hello", (_, res) => res.json({ ok: true }));
25
-
26
- await endpoint("api", { port: 3000 }).serve(app).run();
27
- // http-terminator drains keep-alive; /live + /ready on :9400; SIGTERM handled
28
- ```
29
-
30
15
  ## Within nwire-app
31
16
 
32
17
  For developers using this package as part of the Nwire stack. `endpoint().use(app).mount(api).run()` boots a Nwire `App` (plugins, providers, lifecycle events) and mounts one or more Nwire interfaces in the same managed process.
@@ -48,9 +33,3 @@ await endpoint("api", { port: 3000 }).use(app).mount(api).run();
48
33
  - `attachLifecycle({ server, shutdown, health })` — escape hatch when you already have a `Server`.
49
34
  - `defineCheck(name, check)` — declarative readiness probe; aggregated into `/ready`.
50
35
  - `RunningEndpoint` / `EndpointConfig` / `ShutdownConfig` / `HealthConfig` / `HealthCheck` — config types.
51
-
52
- ## See also
53
-
54
- - [Architecture sketch §05 — Foundation tier](../../architecture-sketch.html#packages)
55
- - Built on [`http-terminator`](https://github.com/gajus/http-terminator) + [`lightship`](https://github.com/gajus/lightship)
56
- - Sibling packages: [@nwire/container](../nwire-container), [@nwire/app](../nwire-app), [@nwire/http](../nwire-http)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nwire/endpoint",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Nwire — production process lifecycle. Wraps any Node server (Express, Fastify, Koa, Nest, Nwire interfaces) with K8s-grade graceful shutdown, http-terminator drain, and lightship readiness/liveness probes. Standalone — no framework dependency beyond @nwire/container.",
5
5
  "keywords": [
6
6
  "endpoint",
@@ -11,9 +11,11 @@
11
11
  "lifecycle",
12
12
  "nwire"
13
13
  ],
14
+ "license": "MIT",
14
15
  "files": [
15
16
  "dist",
16
- "README.md"
17
+ "README.md",
18
+ "LICENSE"
17
19
  ],
18
20
  "type": "module",
19
21
  "main": "./dist/endpoint-index.js",
@@ -30,7 +32,7 @@
30
32
  "dependencies": {
31
33
  "http-terminator": "^3.2.0",
32
34
  "lightship": "^9.0.4",
33
- "@nwire/container": "0.7.0"
35
+ "@nwire/container": "0.7.1"
34
36
  },
35
37
  "devDependencies": {
36
38
  "@types/node": "^22.19.9",