@checkstack/healthcheck-jenkins-backend 0.2.0 → 0.2.2
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 +27 -0
- package/package.json +1 -1
- package/src/strategy.ts +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @checkstack/healthcheck-jenkins-backend
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @checkstack/backend-api@0.3.1
|
|
8
|
+
|
|
9
|
+
## 0.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f533141: Enforce health result factory function usage via branded types
|
|
14
|
+
|
|
15
|
+
- Added `healthResultSchema()` builder that enforces the use of factory functions at compile-time
|
|
16
|
+
- Added `healthResultArray()` factory for array fields (e.g., DNS resolved values)
|
|
17
|
+
- Added branded `HealthResultField<T>` type to mark schemas created by factory functions
|
|
18
|
+
- Consolidated `ChartType` and `HealthResultMeta` into `@checkstack/common` as single source of truth
|
|
19
|
+
- Updated all 12 health check strategies and 11 collectors to use `healthResultSchema()`
|
|
20
|
+
- Using raw `z.number()` etc. inside `healthResultSchema()` now causes a TypeScript error
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [9faec1f]
|
|
23
|
+
- Updated dependencies [827b286]
|
|
24
|
+
- Updated dependencies [f533141]
|
|
25
|
+
- Updated dependencies [aa4a8ab]
|
|
26
|
+
- @checkstack/backend-api@0.3.0
|
|
27
|
+
- @checkstack/common@0.2.0
|
|
28
|
+
- @checkstack/healthcheck-common@0.3.0
|
|
29
|
+
|
|
3
30
|
## 0.2.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/package.json
CHANGED
package/src/strategy.ts
CHANGED
|
@@ -10,6 +10,8 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
healthResultNumber,
|
|
12
12
|
healthResultString,
|
|
13
|
+
healthResultBoolean,
|
|
14
|
+
healthResultSchema,
|
|
13
15
|
} from "@checkstack/healthcheck-common";
|
|
14
16
|
import type {
|
|
15
17
|
JenkinsTransportClient,
|
|
@@ -46,8 +48,8 @@ export const jenkinsConfigSchema = z.object({
|
|
|
46
48
|
export type JenkinsConfig = z.infer<typeof jenkinsConfigSchema>;
|
|
47
49
|
|
|
48
50
|
/** Per-run result metadata */
|
|
49
|
-
const jenkinsResultSchema =
|
|
50
|
-
connected:
|
|
51
|
+
const jenkinsResultSchema = healthResultSchema({
|
|
52
|
+
connected: healthResultBoolean({
|
|
51
53
|
"x-chart-type": "boolean",
|
|
52
54
|
"x-chart-label": "Connected",
|
|
53
55
|
}),
|
|
@@ -65,7 +67,7 @@ const jenkinsResultSchema = z.object({
|
|
|
65
67
|
type JenkinsResult = z.infer<typeof jenkinsResultSchema>;
|
|
66
68
|
|
|
67
69
|
/** Aggregated metadata for buckets */
|
|
68
|
-
const jenkinsAggregatedSchema =
|
|
70
|
+
const jenkinsAggregatedSchema = healthResultSchema({
|
|
69
71
|
successRate: healthResultNumber({
|
|
70
72
|
"x-chart-type": "gauge",
|
|
71
73
|
"x-chart-label": "Success Rate",
|