@checkstack/healthcheck-common 0.8.4 → 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 CHANGED
@@ -1,5 +1,35 @@
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
+
3
33
  ## 0.8.4
4
34
 
5
35
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/healthcheck-common",
3
- "version": "0.8.4",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -8,14 +8,14 @@
8
8
  }
9
9
  },
10
10
  "dependencies": {
11
- "@checkstack/common": "0.6.3",
12
- "@checkstack/signal-common": "0.1.7",
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.3",
18
- "@checkstack/scripts": "0.1.1"
17
+ "@checkstack/tsconfig": "0.0.4",
18
+ "@checkstack/scripts": "0.1.2"
19
19
  },
20
20
  "scripts": {
21
21
  "typecheck": "tsc --noEmit",
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
+ );