@checkstack/healthcheck-http-backend 0.0.2 → 0.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @checkstack/healthcheck-http-backend
2
2
 
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - cb82e4d: Improved `counter` and `pie` auto-chart types to show frequency distributions instead of just the latest value. Both chart types now count occurrences of each unique value across all runs/buckets, making them more intuitive for visualizing data like HTTP status codes.
8
+
9
+ Changed HTTP health check chart annotations: `statusCode` now uses `pie` chart (distribution view), `contentType` now uses `counter` chart (frequency count).
10
+
11
+ Fixed scrollbar hopping when health check signals update the accordion content. All charts now update silently without layout shift or loading state flicker.
12
+
13
+ Refactored health check visualization architecture:
14
+
15
+ - `HealthCheckStatusTimeline` and `HealthCheckLatencyChart` now accept `HealthCheckDiagramSlotContext` directly, handling data transformation internally
16
+ - `HealthCheckDiagram` refactored to accept context from parent, ensuring all visualizations share the same data source and update together on signals
17
+ - `HealthCheckSystemOverview` simplified to use `useHealthCheckData` hook for consolidated data fetching with automatic signal-driven refresh
18
+
19
+ Added `silentRefetch()` method to `usePagination` hook for background data refreshes without showing loading indicators.
20
+
21
+ Fixed `useSignal` hook to use a ref pattern internally, preventing stale closure issues. Callbacks now always access the latest values without requiring manual memoization or refs in consumer components.
22
+
23
+ Added signal handling to `useHealthCheckData` hook for automatic chart refresh when health check runs complete.
24
+
25
+ - Updated dependencies [cb82e4d]
26
+ - @checkstack/healthcheck-common@0.0.3
27
+
3
28
  ## 0.0.2
4
29
 
5
30
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/healthcheck-http-backend",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
package/src/strategy.ts CHANGED
@@ -132,11 +132,11 @@ export type HttpHealthCheckConfig = z.infer<typeof httpHealthCheckConfigSchema>;
132
132
  /** Per-run result metadata */
133
133
  const httpResultMetadataSchema = z.object({
134
134
  statusCode: healthResultNumber({
135
- "x-chart-type": "counter",
135
+ "x-chart-type": "pie",
136
136
  "x-chart-label": "Status Code",
137
137
  }).optional(),
138
138
  contentType: healthResultString({
139
- "x-chart-type": "text",
139
+ "x-chart-type": "counter",
140
140
  "x-chart-label": "Content Type",
141
141
  }).optional(),
142
142
  failedAssertion: httpAssertionSchema.optional(),
@@ -151,7 +151,7 @@ export type HttpResultMetadata = z.infer<typeof httpResultMetadataSchema>;
151
151
  /** Aggregated metadata for buckets */
152
152
  const httpAggregatedMetadataSchema = z.object({
153
153
  statusCodeCounts: z.record(z.string(), z.number()).meta({
154
- "x-chart-type": "bar",
154
+ "x-chart-type": "pie",
155
155
  "x-chart-label": "Status Code Distribution",
156
156
  }),
157
157
  errorCount: healthResultNumber({