feat(smartexit): Add silent logging option, structured shutdown logs, and killAll return stats

This commit is contained in:
2025-12-15 16:58:01 +00:00
parent 4ce60859e4
commit bb2831ec0f
4 changed files with 100 additions and 36 deletions

View File

@@ -1,5 +1,14 @@
# Changelog
## 2025-12-15 - 1.1.0 - feat(smartexit)
Add silent logging option, structured shutdown logs, and killAll return stats
- Introduce ISmartExitOptions with a silent flag to disable console logging
- Add internal log() helper and use a [smartexit] prefix for shutdown/error messages
- killAll() now returns Promise<{ processesKilled, cleanupFunctionsRan }> and tallies processes and cleanup functions run
- Constructor accepts options (backwards compatible) to configure behavior
- Documentation (readme.hints.md) updated with usage and example output
## 2025-12-15 - 1.0.24 - fix(deps)
bump dependencies, update tests and docs, adjust tsconfig and npm release config