
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@mitre/hdf-diff
Advanced tools
Structured comparison of HDF evaluation results — tracks what changed, why, and by how much
Structured comparison of HDF evaluation results — tracks what changed, why, and by how much.
Compares two HDF results documents and produces a structured diff showing:
Output formats: JSON, Markdown, CSV, terminal (ANSI-colored).
| Package | Relationship |
|---|---|
| hdf-schema | Provides the HDFResults types that hdf-diff consumes |
| hdf-validators | Used to validate comparison output against the HDF comparison schema |
| hdf-cli | hdf diff command wraps this library for CLI use |
| hdf-parsers | Not used — hdf-diff operates on typed structs, not raw JSON |
npm install @mitre/hdf-diff
import { diffHdf, render } from '@mitre/hdf-diff';
// Compare two evaluation results
const comparison = diffHdf(oldResults, newResults);
// Render as markdown
const md = render(comparison, { format: 'markdown', detail: 'full' });
// Render as JSON
const json = render(comparison, { format: 'json' });
// Check exit codes for CI
import { computeExitCode, EXIT_IDENTICAL } from '@mitre/hdf-diff';
const code = computeExitCode(comparison);
if (code !== EXIT_IDENTICAL) process.exit(code);
hdf-diff supports multiple strategies for matching requirements across evaluations:
import { diffHdf, createFuzzyTitleStrategy } from '@mitre/hdf-diff';
const comparison = diffHdf(oldResults, newResults, {
matchStrategy: createFuzzyTitleStrategy(0.8), // 80% similarity threshold
});
import { diffSboms } from '@mitre/hdf-diff';
const sbomDiff = diffSboms(oldSbom, newSbom);
// Shows packages added, removed, updated, or unchanged
hdf diff old-results.json new-results.json
hdf diff old-results.json new-results.json --format markdown
hdf diff old-results.json new-results.json --json
hdf diff --sbom old-sbom.json new-sbom.json
Apache-2.0 © MITRE Corporation
FAQs
Structured comparison of HDF evaluation results — tracks what changed, why, and by how much
The npm package @mitre/hdf-diff receives a total of 29 weekly downloads. As such, @mitre/hdf-diff popularity was classified as not popular.
We found that @mitre/hdf-diff demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.