@mitre/hdf-schema 3.6.0-rc.3 → 3.6.0-rc.5

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/README.md CHANGED
@@ -189,6 +189,15 @@ All schemas use **JSON Schema draft/2020-12**.
189
189
  Interactive schema reference documentation is published at:
190
190
  **<https://mitre.github.io/hdf-libs/schemas/>**
191
191
 
192
+ ### What's new in v3.6.0
193
+
194
+ - **No structural schema changes.** Every document type and primitive is structurally identical to v3.5.x: no fields, enum values, or constraints were added, removed, renamed, or tightened. v3.5.x documents validate unchanged under v3.6.0, and documents produced under v3.6.0 validate against the v3.5.x schemas.
195
+ - **`previousChecksum` semantics stated precisely** (description-only, on `Standalone_Override`, `Status_Override`, and the POA&M element) — each amendment's checksum is recorded by the *next* one, so an in-place edit is detectable only for an amendment that has a later one chained to it. The chain is not tamper-proof: the final amendment, the document envelope, deleted trailing amendments, and a wholesale recompute are outside what it can detect; use `signature` for non-repudiation. The field is omitted (not `null`) on the first amendment. This is the contract `hdf amend verify` enforces.
196
+ - **Schema descriptions reflowed into paragraphs** and the source files pretty-printed one value per line. Cosmetic in the source, but the bundled `dist/schemas/` descriptions now carry paragraph breaks, which IDE tooltips render.
197
+ - **`computeEffectiveStatus` helper delegates to the canonical status ladder** in `@mitre/hdf-utilities`. **Behavior change** for `@mitre/hdf-schema/helpers` consumers: the helper no longer returns a pre-set `effectiveStatus` verbatim, and it now applies the governing non-expired `statusOverrides` entry and the error roll-up ahead of the impact-0 `notApplicable` short-circuit, matching the CLI and converters.
198
+ - **`@mitre/hdf-schema/testhdf` sub-path export** — test-only builders (`req`, `baseline`, `doc`, `results`, `baselineDoc`, `override`, `amendments`, `system`, `plan`, `evidencePackage`, `changeEvent`, `comparison`, and friends) that construct schema-valid documents for downstream test suites, with a Go counterpart at `github.com/mitre/hdf-libs/hdf-schema/testhdf/go`.
199
+ - **Compatibility.** Fully compatible in both directions at the schema level. The only behavior change is in the `computeEffectiveStatus` helper above.
200
+
192
201
  ### What's new in v3.5.0
193
202
 
194
203
  - **`hdf-requirement-change-event` document type** — a new schema for the continuous-monitoring change-event stream (ADR-0005): per-requirement events (`new`/`absent`/`updated`/`fixed`/`regressed`) with a full after-state, thin before-state, and per-key sequence, chained for deterministic replay from a seed. Produced by `hdf events derive`.
package/dist/helpers.d.ts CHANGED
@@ -124,8 +124,8 @@ export function createCvss(
124
124
  ): Cvss;
125
125
 
126
126
  export function severityToImpact(severity: null): null;
127
- export function severityToImpact(severity: string): number;
128
- export function severityToImpact(severity: string | null): number | null;
127
+ export function severityToImpact(severity: string | undefined): number;
128
+ export function severityToImpact(severity: string | null | undefined): number | null;
129
129
 
130
130
  export function impactToSeverity(impact: null): null;
131
131
  export function impactToSeverity(impact: number): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitre/hdf-schema",
3
- "version": "3.6.0-rc.3",
3
+ "version": "3.6.0-rc.5",
4
4
  "description": "JSON schemas and multi-language type definitions for Heimdall Data Format (HDF)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -65,7 +65,7 @@
65
65
  "dependencies": {
66
66
  "ajv": "^8.17.0",
67
67
  "ajv-formats": "^3.0.0",
68
- "@mitre/hdf-utilities": "^3.6.0-rc.3"
68
+ "@mitre/hdf-utilities": "^3.6.0-rc.5"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@hyperjump/json-schema": "^1.17.2",