@zukhruf/shutdown 0.8.42 → 0.8.44
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 +13 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -159,6 +159,19 @@ export class Shutdown implements Disposable {
|
|
|
159
159
|
| `'exit'` after a crash | `process.exitCode \|\|= 1`: exit code 1, unless the program set a failure code |
|
|
160
160
|
| `[Symbol.dispose]()` | With no stop request: `process.off()` for each listener of the package, `'exit'` too, then `abort()`. After a stop request: nothing |
|
|
161
161
|
|
|
162
|
+
## Documentation
|
|
163
|
+
|
|
164
|
+
**Recipes**
|
|
165
|
+
|
|
166
|
+
1. [Stop an HTTP server at a termination signal](./docs/recipes/stop-an-http-server-at-a-termination-signal.md)
|
|
167
|
+
2. [Stop the work at a termination signal or at a failure of the program](./docs/recipes/stop-the-work-when-the-program-fails-too.md)
|
|
168
|
+
|
|
169
|
+
**Decisions**
|
|
170
|
+
|
|
171
|
+
- [ADR 0001](./docs/adr/0001-the-process-dies-by-its-termination-signal-after-the-cleanup.md): the process dies by its termination signal after the cleanup.
|
|
172
|
+
- [ADR 0002](./docs/adr/0002-only-the-first-stop-request-starts-a-shutdown.md): only the first stop request starts a shutdown.
|
|
173
|
+
- [ADR 0003](./docs/adr/0003-a-crash-starts-a-shutdown.md): a crash starts a shutdown.
|
|
174
|
+
|
|
162
175
|
## Who uses each part
|
|
163
176
|
|
|
164
177
|
The consumers below come from the search of 2026-11-02. None of them dies by the termination signal today. The package itself is backlog mutex #3579.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zukhruf/shutdown",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.44",
|
|
4
4
|
"description": "A graceful shutdown for a Node.js program: SIGINT, SIGTERM, SIGHUP and crashes abort one AbortSignal, the program runs its cleanup, and then the process dies by the termination signal, so a shell, Docker or Kubernetes sees an interrupted process.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@zukhruf/docker": "^0.8.
|
|
45
|
+
"@zukhruf/docker": "^0.8.44"
|
|
46
46
|
}
|
|
47
47
|
}
|