@mitre/hdf-schema 2.0.0 → 3.0.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/dist/index.d.ts CHANGED
@@ -15,14 +15,14 @@ export type { HdfBaseline, BaselineRequirement } from './ts/hdf-baseline.js';
15
15
  // No export * from hdf-comparison — shared types duplicate hdf-results.
16
16
  export type {
17
17
  HdfComparison, RequirementDiff, ComparisonSummary, Source,
18
- Annotation, BaselineDiff, BaselineRef, FieldChange, MatchingConfig,
19
- ScannerConflict, SeverityBreakdown, StateCounts, PerSourceSummary,
20
- DescriptionElement, Value,
18
+ Annotation, BaselineDiff, BaselineRef, ComponentDiff, FieldChange, MatchingConfig,
19
+ PackageDiff, ScannerConflict, SeverityBreakdown, StateCounts, PerSourceSummary,
20
+ Value,
21
21
  } from './ts/hdf-comparison.js';
22
22
  export {
23
- AnnotationCategory, CapturedByType, ChangeReason, ComparisonMode,
23
+ AnnotationCategory, BaselineDiffState, ChangeReason, ComparisonMode,
24
24
  ConflictResolution, FormatVersion, MatchStrategy, Op, OriginalFormat,
25
- RequirementState, SourceRole, State, TypeEnum,
25
+ PackageDiffState, RequirementState, SourceRole, Type,
26
26
  } from './ts/hdf-comparison.js';
27
27
 
28
28
  // Re-export system types
@@ -43,12 +43,10 @@ export {
43
43
  } from './ts/hdf-plan.js';
44
44
 
45
45
  // Re-export amendments types
46
+ // No OverrideType enum — already exported by hdf-results via export *.
46
47
  export type {
47
48
  HdfAmendments, StandaloneOverride,
48
49
  } from './ts/hdf-amendments.js';
49
- export {
50
- OverrideType,
51
- } from './ts/hdf-amendments.js';
52
50
 
53
51
  // Re-export evidence-package types
54
52
  export type {
package/dist/index.js CHANGED
@@ -8,9 +8,9 @@ export * from './ts/hdf-results.js';
8
8
 
9
9
  // Re-export comparison-specific enums (runtime values not in hdf-results)
10
10
  export {
11
- AnnotationCategory, CapturedByType, ChangeReason, ComparisonMode,
11
+ AnnotationCategory, BaselineDiffState, ChangeReason, ComparisonMode,
12
12
  ConflictResolution, FormatVersion, MatchStrategy, Op, OriginalFormat,
13
- RequirementState, SourceRole, State, TypeEnum,
13
+ PackageDiffState, RequirementState, SourceRole, Type,
14
14
  } from './ts/hdf-comparison.js';
15
15
 
16
16
  // Re-export system enums (runtime values)
@@ -23,10 +23,7 @@ export {
23
23
  PlanType,
24
24
  } from './ts/hdf-plan.js';
25
25
 
26
- // Re-export amendments enums (runtime values)
27
- export {
28
- OverrideType,
29
- } from './ts/hdf-amendments.js';
26
+ // No amendments enum re-export OverrideType already from hdf-results via export *.
30
27
 
31
28
  // Re-export evidence-package enums (runtime values)
32
29
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitre/hdf-schema",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "JSON schemas and multi-language type definitions for Heimdall Data Format (HDF)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,6 +13,10 @@
13
13
  "import": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts"
15
15
  },
16
+ "./helpers": {
17
+ "import": "./dist/helpers.js",
18
+ "types": "./dist/helpers.d.ts"
19
+ },
16
20
  "./hdf-results": {
17
21
  "import": "./dist/ts/hdf-results.js",
18
22
  "types": "./dist/ts/hdf-results.d.ts"
@@ -47,6 +51,23 @@
47
51
  "dist",
48
52
  "src/schemas"
49
53
  ],
54
+ "scripts": {
55
+ "build": "pnpm run clean && pnpm run build:schemas && pnpm run build:types && pnpm run build:index",
56
+ "build:schemas": "node --import tsx src/bundle-schemas.ts",
57
+ "build:types": "node --import tsx src/generate-types.ts",
58
+ "build:index": "node --import tsx src/create-index.ts",
59
+ "watch:schemas": "nodemon --watch src/schemas --ext json --exec 'tsx src/bundle-schemas.ts'",
60
+ "serve:schemas": "npx http-server dist/schemas -p 8081 --cors",
61
+ "dev:viewer": "pnpm run build:schemas && concurrently \"pnpm run watch:schemas\" \"pnpm run serve:schemas\"",
62
+ "clean": "rimraf dist",
63
+ "test": "pnpm run test:ts",
64
+ "test:ts": "vitest run",
65
+ "test:go": "echo 'No Go tests in hdf-schema'",
66
+ "test:watch": "vitest",
67
+ "test:coverage": "vitest run --coverage",
68
+ "lint": "eslint src test",
69
+ "lint:fix": "eslint src test --fix"
70
+ },
50
71
  "repository": {
51
72
  "type": "git",
52
73
  "url": "https://github.com/mitre/hdf-libs.git",
@@ -77,22 +98,5 @@
77
98
  "inspec",
78
99
  "stig",
79
100
  "compliance"
80
- ],
81
- "scripts": {
82
- "build": "pnpm run clean && pnpm run build:schemas && pnpm run build:types && pnpm run build:index",
83
- "build:schemas": "node --import tsx src/bundle-schemas.ts",
84
- "build:types": "node --import tsx src/generate-types.ts",
85
- "build:index": "node --import tsx src/create-index.ts",
86
- "watch:schemas": "nodemon --watch src/schemas --ext json --exec 'tsx src/bundle-schemas.ts'",
87
- "serve:schemas": "npx http-server dist/schemas -p 8081 --cors",
88
- "dev:viewer": "pnpm run build:schemas && concurrently \"pnpm run watch:schemas\" \"pnpm run serve:schemas\"",
89
- "clean": "rimraf dist",
90
- "test": "pnpm run test:ts",
91
- "test:ts": "vitest run",
92
- "test:go": "echo 'No Go tests in hdf-schema'",
93
- "test:watch": "vitest",
94
- "test:coverage": "vitest run --coverage",
95
- "lint": "eslint src test",
96
- "lint:fix": "eslint src test --fix"
97
- }
98
- }
101
+ ]
102
+ }
package/LICENSE.md DELETED
@@ -1,55 +0,0 @@
1
- # License
2
-
3
- Copyright © 2025 The MITRE Corporation.
4
-
5
- Approved for Public Release; Distribution Unlimited. Case Number 18-3678.
6
-
7
- Licensed under the Apache License, Version 2.0 (the "License"); you may
8
- not use this file except in compliance with the License. You may obtain a
9
- copy of the License at
10
-
11
- http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- Unless required by applicable law or agreed to in writing, software
14
- distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
- WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
- License for the specific language governing permissions and limitations
17
- under the License.
18
-
19
- ## Redistribution Terms
20
-
21
- Redistribution and use in source and binary forms, with or without
22
- modification, are permitted provided that the following conditions are
23
- met:
24
-
25
- - Redistributions of source code must retain the above copyright/digital
26
- rights legend, this list of conditions and the following Notice.
27
- - Redistributions in binary form must reproduce the above
28
- copyright/digital rights legend, this list of conditions and the
29
- following Notice in the documentation and/or other materials provided
30
- with the distribution.
31
- - Neither the name of The MITRE Corporation nor the names of its contributors
32
- may be used to endorse or promote products derived from this software
33
- without specific prior written permission.
34
-
35
- ## Notice
36
-
37
- The MITRE Corporation grants permission to reproduce, distribute, modify, and
38
- otherwise use this software to the extent permitted by the licensed terms
39
- provided in the LICENSE file included with this project.
40
-
41
- This software was produced by The MITRE Corporation for the U.S. Government
42
- under contract. As such the U.S. Government has certain use and data
43
- rights in this software. No use other than those granted to the U.S.
44
- Government, or to those acting on behalf of the U.S. Government, under
45
- these contract arrangements is authorized without the express written
46
- permission of The MITRE Corporation.
47
-
48
- Some files in this codebase were generated by generative AI, under the
49
- direction and review of The MITRE Corporation employees, for the purpose of
50
- development efficiency. All AI-generated code functionality was validated
51
- by standard quality and assurance testing.
52
-
53
- For further information, please contact The MITRE Corporation,
54
- Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539,
55
- (703) 983-6000.