v0.1.5 — Diff Viewer Enhancements & Compatibility Layer
v0.1.5
Summary
This release improves compatibility, flexibility, and customization of the diff viewer, including support for react-diff-viewer-style props, unified diff mode, and enhanced line interactions.
Added
- Compatibility layer for
react-diff-viewerprops:oldValue/newValuealiases fororiginal/modifiedsplitViewtoggle for split vs unified renderingshowDiffOnlyandextraLinesSurroundingDiffmapped to collapse behavior
- Unified (inline) diff rendering mode
renderContent(line)for custom syntax highlighting (e.g. Prism, Shiki)- Line interaction features:
onLineNumberClickwith stable line IDs (L-12,R-8)highlightLineswith range supporthideLineNumbers
- Custom code fold message via
codeFoldMessageRenderer - Imperative method
resetCodeBlocks()
Changed
- Improved inline diff visualization with word-level highlights and
disableWordDiff - Expanded diff strategies via
compareMethod(CHARS,WORDS,WORDS_WITH_SPACE,LINES,TRIMMED_LINES,SENTENCES,CSS) - Enhanced styling and theming via
stylesanduseDarkTheme - Added
leftTitle/rightTitlefor headers - Added
linesOffsetsupport - Bumped workspace package versions from
0.1.4to0.1.5