@checkstack/common 0.5.0 → 0.6.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,19 @@
1
1
  # @checkstack/common
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - db1f56f: Add ephemeral field stripping to reduce database storage for health checks
8
+
9
+ - Added `x-ephemeral` metadata flag to `HealthResultMeta` for marking fields that should not be persisted
10
+ - All health result factory functions (`healthResultString`, `healthResultNumber`, `healthResultBoolean`, `healthResultArray`, `healthResultJSONPath`) now accept `x-ephemeral`
11
+ - Added `stripEphemeralFields()` utility to remove ephemeral fields before database storage
12
+ - Integrated ephemeral field stripping into `queue-executor.ts` for all collector results
13
+ - HTTP Request collector now explicitly marks `body` as ephemeral
14
+
15
+ This significantly reduces database storage for health checks with large response bodies, while still allowing assertions to run against the full response at execution time.
16
+
3
17
  ## 0.5.0
4
18
 
5
19
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/common",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -35,4 +35,9 @@ export interface HealthResultMeta {
35
35
  "x-chart-unit"?: string;
36
36
  /** Whether this field supports JSONPath assertions */
37
37
  "x-jsonpath"?: boolean;
38
+ /**
39
+ * Whether this field is ephemeral (used for assertions but not persisted).
40
+ * Ephemeral fields are stripped before storing results in the database.
41
+ */
42
+ "x-ephemeral"?: boolean;
38
43
  }