@andrew_l/graceful 0.2.18 → 0.2.20
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 +8 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Graceful Shutdown Toolkit
|
|
2
2
|
|
|
3
|
-

|
|
3
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
+
![license][license-src]
|
|
6
5
|
|
|
7
6
|
This package helps gracefully shut down applications by managing dependencies during the shutdown process. It ensures that important cleanup tasks, such as closing database connections or stopping services, are completed before the application exits.
|
|
8
7
|
|
|
@@ -35,3 +34,9 @@ onShutdown('http-server', async () => {
|
|
|
35
34
|
1. **Clean Shutdown:** Ensures your application cleans up resources like database connections, open files, or server instances before exiting.
|
|
36
35
|
2. **Orderly Cleanup:** Allows you to manage dependencies during shutdown, ensuring each resource is shut down in the proper order.
|
|
37
36
|
3. **Customizable:** Offers flexibility to define custom shutdown behavior for any part of your application.
|
|
37
|
+
|
|
38
|
+
<!-- Badges -->
|
|
39
|
+
|
|
40
|
+
[npm-version-src]: https://img.shields.io/npm/v/@andrew_l/graceful?style=flat
|
|
41
|
+
[npm-version-href]: https://npmjs.com/package/@andrew_l/graceful
|
|
42
|
+
[license-src]: https://img.shields.io/npm/l/@andrew_l/graceful?style=flat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andrew_l/graceful",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.20",
|
|
4
4
|
"description": "Utility to manage application shutdown.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"vitest": "^2.1.3"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@andrew_l/toolkit": "0.2.
|
|
34
|
+
"@andrew_l/toolkit": "0.2.20"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "unbuild",
|