@luckystack/server 0.7.4 → 0.7.6
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/CHANGELOG.md +8 -0
- package/CLAUDE.md +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/docs/create-server.md +2 -2
- package/package.json +10 -10
package/docs/create-server.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Create Server (`createLuckyStackServer` + `bootstrapLuckyStack`)
|
|
2
2
|
|
|
3
|
-
> Deep specs. Bron: `packages/server/src/createServer.ts`, `packages/server/src/bootstrap.ts`, `packages/server/src/verifyBootstrap.ts`, `packages/server/src/hookPayloads.ts`, `packages/server/src/types.ts`. Bijgewerkt: 2026-07-
|
|
3
|
+
> Deep specs. Bron: `packages/server/src/createServer.ts`, `packages/server/src/bootstrap.ts`, `packages/server/src/verifyBootstrap.ts`, `packages/server/src/hookPayloads.ts`, `packages/server/src/types.ts`. Bijgewerkt: 2026-07-22.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@ Boot order (effective for both entries):
|
|
|
20
20
|
5. In dev mode (`enableDevTools !== false` and `NODE_ENV !== 'production'`): `initConsolelog()` + dynamic-import `@luckystack/devkit` -> `initializeAll()` + `setupWatchers()`. Initialization status is shared with API/sync dispatchers and `/readyz`; a fatal devkit error keeps all three fail-closed with 503. Install `SIGINT` / `SIGTERM` handlers that force-exit.
|
|
21
21
|
6. `writeBootUuid()` writes a fresh boot UUID to Redis so `/_health` becomes truthful and the router can detect rolling restarts.
|
|
22
22
|
7. Construct `http.createServer(handleHttpRequest)` and `loadSocket(httpServer, { maxHttpBufferSize })`.
|
|
23
|
-
8. Return `{ httpServer, ioServer, listen }`. The HTTP server has NOT started listening yet; the
|
|
23
|
+
8. Return `{ httpServer, ioServer, listen }`. The HTTP server has NOT started listening yet; after `listen()` binds successfully it starts a non-overlapping boot-UUID heartbeat at one third of the configured TTL. `stop()` / `close()` cancels that heartbeat before graceful shutdown.
|
|
24
24
|
|
|
25
25
|
## API Reference
|
|
26
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luckystack/server",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -57,19 +57,19 @@
|
|
|
57
57
|
"test": "vitest run"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@luckystack/api": "^0.7.
|
|
61
|
-
"@luckystack/core": "^0.7.
|
|
60
|
+
"@luckystack/api": "^0.7.6",
|
|
61
|
+
"@luckystack/core": "^0.7.6"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@prisma/client": "^6.19.0",
|
|
65
65
|
"socket.io": "^4.8.0",
|
|
66
|
-
"@luckystack/devkit": "^0.7.
|
|
67
|
-
"@luckystack/docs-ui": "^0.7.
|
|
68
|
-
"@luckystack/email": "^0.7.
|
|
69
|
-
"@luckystack/error-tracking": "^0.7.
|
|
70
|
-
"@luckystack/login": "^0.7.
|
|
71
|
-
"@luckystack/presence": "^0.7.
|
|
72
|
-
"@luckystack/sync": "^0.7.
|
|
66
|
+
"@luckystack/devkit": "^0.7.6",
|
|
67
|
+
"@luckystack/docs-ui": "^0.7.6",
|
|
68
|
+
"@luckystack/email": "^0.7.6",
|
|
69
|
+
"@luckystack/error-tracking": "^0.7.6",
|
|
70
|
+
"@luckystack/login": "^0.7.6",
|
|
71
|
+
"@luckystack/presence": "^0.7.6",
|
|
72
|
+
"@luckystack/sync": "^0.7.6"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|
|
75
75
|
"@prisma/client": {
|