@checkstack/healthcheck-common 0.8.3 → 0.9.0
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/CHANGELOG.md +39 -0
- package/package.json +8 -5
- package/src/index.ts +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @checkstack/healthcheck-common
|
|
2
2
|
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1f191cf: Add SYSTEM_STATUS_CHANGED signal and dependency-driven notification improvements
|
|
8
|
+
|
|
9
|
+
**healthcheck-common:**
|
|
10
|
+
|
|
11
|
+
- New `SYSTEM_STATUS_CHANGED` signal that fires only on system-level health status transitions (healthy ↔ degraded ↔ unhealthy), providing a low-noise alternative to `HEALTH_CHECK_RUN_COMPLETED` for coarse-grained reactivity
|
|
12
|
+
|
|
13
|
+
**healthcheck-backend:**
|
|
14
|
+
|
|
15
|
+
- Broadcast `SYSTEM_STATUS_CHANGED` signal at both status transition code paths in the queue executor
|
|
16
|
+
|
|
17
|
+
**healthcheck-frontend:**
|
|
18
|
+
|
|
19
|
+
- Switch `SystemHealthBadge` from `HEALTH_CHECK_RUN_COMPLETED` to `SYSTEM_STATUS_CHANGED` to reduce unnecessary refetch noise
|
|
20
|
+
|
|
21
|
+
**dashboard-frontend:**
|
|
22
|
+
|
|
23
|
+
- Switch `SystemBadgeDataProvider` from `HEALTH_CHECK_RUN_COMPLETED` to `SYSTEM_STATUS_CHANGED` for more efficient badge updates
|
|
24
|
+
|
|
25
|
+
**maintenance-frontend:**
|
|
26
|
+
|
|
27
|
+
- Clarify that notification suppression toggle also applies to downstream dependency-driven notifications
|
|
28
|
+
|
|
29
|
+
**incident-frontend:**
|
|
30
|
+
|
|
31
|
+
- Clarify that notification suppression toggle also applies to downstream dependency-driven notifications
|
|
32
|
+
|
|
33
|
+
## 0.8.4
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- 67158e2: Standardize package metadata, unify AJV versions to 8.18.0, and enforce monorepo architecture rules via updated ESLint configuration. This ensures consistent package discovery and runtime dependency safety across the platform.
|
|
38
|
+
- Updated dependencies [67158e2]
|
|
39
|
+
- @checkstack/common@0.6.4
|
|
40
|
+
- @checkstack/signal-common@0.1.8
|
|
41
|
+
|
|
3
42
|
## 0.8.3
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/healthcheck-common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -8,18 +8,21 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@checkstack/common": "0.6.
|
|
12
|
-
"@checkstack/signal-common": "0.1.
|
|
11
|
+
"@checkstack/common": "0.6.4",
|
|
12
|
+
"@checkstack/signal-common": "0.1.8",
|
|
13
13
|
"zod": "^4.2.1"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"typescript": "^5.7.2",
|
|
17
|
-
"@checkstack/tsconfig": "0.0.
|
|
18
|
-
"@checkstack/scripts": "0.1.
|
|
17
|
+
"@checkstack/tsconfig": "0.0.4",
|
|
18
|
+
"@checkstack/scripts": "0.1.2"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"typecheck": "tsc --noEmit",
|
|
22
22
|
"lint": "bun run lint:code",
|
|
23
23
|
"lint:code": "eslint . --max-warnings 0"
|
|
24
|
+
},
|
|
25
|
+
"checkstack": {
|
|
26
|
+
"type": "common"
|
|
24
27
|
}
|
|
25
28
|
}
|
package/src/index.ts
CHANGED
|
@@ -61,3 +61,18 @@ export const HEALTH_CHECK_RUN_COMPLETED = createSignal(
|
|
|
61
61
|
latencyMs: z.number().optional(),
|
|
62
62
|
}),
|
|
63
63
|
);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Broadcast when a system's overall health status transitions.
|
|
67
|
+
* Only fires on actual status changes (e.g. healthy → degraded, unhealthy → healthy),
|
|
68
|
+
* NOT on every individual health check run. Use this for coarse-grained reactivity
|
|
69
|
+
* like dashboard badges and dependency map node statuses.
|
|
70
|
+
*/
|
|
71
|
+
export const SYSTEM_STATUS_CHANGED = createSignal(
|
|
72
|
+
"healthcheck.system.status-changed",
|
|
73
|
+
z.object({
|
|
74
|
+
systemId: z.string(),
|
|
75
|
+
previousStatus: z.enum(["healthy", "degraded", "unhealthy"]),
|
|
76
|
+
newStatus: z.enum(["healthy", "degraded", "unhealthy"]),
|
|
77
|
+
}),
|
|
78
|
+
);
|