@veridtools/dmn-diff-highlight
0.1.1
Patch Changes
- 16f4e67: Add
namefield toModifiedChangeand themodifiedDiffToken. The semantic renderer now shows the element's human-readable name in the modified heading (~ decision "Loan Approval" (d1) modified) instead of repeating the id.
0.1.0
Minor Changes
bcaec6d: feat: initial release of @veridtools/dmn-diff-highlight
Syntax highlighting library for
@veridtools/dmn-diffoutput. Accepts rendered diff text in any of the four formats and returns annotated HTML with semanticdmn-dh-*CSS classes.highlightDiff(text, options?)— auto-detects format, returns HTML stringhighlightResult(result, options?)— renders aDiffResultas semantic HTMLmountDiff(element, text, options?)— convenience DOM helperdetectFormatre-exported from@veridtools/dmn-diff- React component
DiffHighlightwith memoized rendering viauseMemo - Format-faithful output: rows input → rows HTML, JSON input → syntax-highlighted JSON
- Default Catppuccin-inspired dark/light CSS theme via custom properties (
style.css) - 120 tests across utils, renderers, tokenizers, and the public API
