@oyinlola141/lattice-lifecycle 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +26 -7
  2. package/package.json +17 -5
package/README.md CHANGED
@@ -1,19 +1,38 @@
1
- # @latticejs/lifecycle
1
+ # @oyinlola141/lattice-lifecycle
2
2
 
3
- Application and component lifecycle orchestration — state machine, dependency ordering, graceful shutdown, rollback, and signals.
3
+ Application and component lifecycle orchestration with state machine, dependency ordering, graceful shutdown, rollback, and signals.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @latticejs/lifecycle
8
+ npm install @oyinlola141/lattice-lifecycle
9
9
  ```
10
10
 
11
- ## Usage
11
+ ## Quick Start
12
12
 
13
13
  ```typescript
14
- import {} from /* add usage here */ "@latticejs/lifecycle";
14
+ import { createLifecycleManager } from "@oyinlola141/lattice-lifecycle";
15
+
16
+ const manager = createLifecycleManager({
17
+ components: [database, server, worker],
18
+ });
19
+
20
+ await manager.start();
21
+ await manager.stop();
15
22
  ```
16
23
 
17
- ## License
24
+ ## Features
25
+
26
+ - State machine for lifecycle phases
27
+ - Dependency ordering between components
28
+ - Graceful shutdown with timeouts
29
+ - Rollback on startup failure
30
+ - Signal handling
31
+ - Lifecycle hooks and events
32
+
33
+ ## Use Cases
18
34
 
19
- MIT
35
+ - Coordinating service startup and shutdown
36
+ - Managing component lifecycles
37
+ - Handling process signals
38
+ - Zero-downtime deployments
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oyinlola141/lattice-lifecycle",
3
- "version": "0.1.2",
4
- "description": "Application and component lifecycle orchestration — state machine, dependency ordering, graceful shutdown, rollback, and signals.",
3
+ "version": "0.1.3",
4
+ "description": "Application and component lifecycle orchestration with state machine, dependency ordering, graceful shutdown, rollback, and signals.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -17,11 +17,11 @@
17
17
  "dist"
18
18
  ],
19
19
  "dependencies": {
20
- "@oyinlola141/lattice-errors": "0.1.2",
21
- "@oyinlola141/lattice-constants": "0.1.2"
20
+ "@oyinlola141/lattice-errors": "0.1.3",
21
+ "@oyinlola141/lattice-constants": "0.1.3"
22
22
  },
23
23
  "devDependencies": {
24
- "@types/node": "^26.4.0",
24
+ "@types/node": "^26.4.1",
25
25
  "typescript": "^7.0.2",
26
26
  "vitest": "^4.1.11"
27
27
  },
@@ -31,6 +31,18 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
+ "keywords": [
35
+ "lattice",
36
+ "lifecycle",
37
+ "state-machine",
38
+ "startup",
39
+ "shutdown"
40
+ ],
41
+ "homepage": "https://github.com/oyinlola-tech/lattice#readme",
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "https://github.com/oyinlola-tech/lattice"
45
+ },
34
46
  "scripts": {
35
47
  "build": "tsc -p tsconfig.json",
36
48
  "typecheck": "tsc -p tsconfig.json --noEmit",