lifecycleion 0.0.11 → 0.0.12
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 +3 -1
- package/dist/lib/lifecycle-manager/index.cjs +5 -7
- package/dist/lib/lifecycle-manager/index.cjs.map +1 -1
- package/dist/lib/lifecycle-manager/index.d.cts +2 -8
- package/dist/lib/lifecycle-manager/index.d.ts +2 -8
- package/dist/lib/lifecycle-manager/index.js +5 -7
- package/dist/lib/lifecycle-manager/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Lifecycleion v0.0.
|
|
1
|
+
# Lifecycleion v0.0.12
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/lifecycleion)
|
|
4
4
|
|
|
@@ -85,6 +85,8 @@ manager.registerComponent(new MyComponent('my-component'));
|
|
|
85
85
|
await manager.startAllComponents();
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
+
Tip: listen for `lifecycle-manager:shutdown-completed` when you want one place to react to shutdown results from manual stops, signals like `SIGINT` / `SIGTERM`, or logger-exit hooks. If `timedOut` is `true`, the payload reflects the result when the manager stopped waiting.
|
|
89
|
+
|
|
88
90
|
## Available Libraries
|
|
89
91
|
|
|
90
92
|
Each library has comprehensive documentation in the [docs](./docs) folder. Click on any library name in the table below to view detailed usage examples, API references, and best practices.
|
|
@@ -4160,13 +4160,6 @@ var LifecycleManager = class extends EventEmitterProtected {
|
|
|
4160
4160
|
durationMS
|
|
4161
4161
|
}
|
|
4162
4162
|
});
|
|
4163
|
-
this.lifecycleEvents.lifecycleManagerShutdownCompleted({
|
|
4164
|
-
durationMS,
|
|
4165
|
-
stoppedComponents,
|
|
4166
|
-
stalledComponents,
|
|
4167
|
-
method,
|
|
4168
|
-
duringStartup: isDuringStartup
|
|
4169
|
-
});
|
|
4170
4163
|
const result = {
|
|
4171
4164
|
success: isSuccess,
|
|
4172
4165
|
stoppedComponents,
|
|
@@ -4179,6 +4172,11 @@ var LifecycleManager = class extends EventEmitterProtected {
|
|
|
4179
4172
|
} : {}
|
|
4180
4173
|
};
|
|
4181
4174
|
this.lastShutdownResult = result;
|
|
4175
|
+
this.lifecycleEvents.lifecycleManagerShutdownCompleted({
|
|
4176
|
+
...result,
|
|
4177
|
+
method,
|
|
4178
|
+
duringStartup: isDuringStartup
|
|
4179
|
+
});
|
|
4182
4180
|
return result;
|
|
4183
4181
|
} finally {
|
|
4184
4182
|
if (timeoutHandle) {
|