Releases: Zhang-JiahangH/react-virtualized-diff
Releases · Zhang-JiahangH/react-virtualized-diff
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
release: prepare v0.1.4 with hosted demo and docs refresh
This release focuses on release readiness and project discoverability.
- Added a hosted demo page
- Refreshed English and Chinese documentation
- Improved the structure of API, benchmark, and demo sections
- Bumped workspace package versions to 0.1.4
Add benchmark suite and automated performance reporting
v0.1.3
Release title
Add benchmark suite and automated performance reporting
Release notes
This release introduces a runnable benchmark suite to evaluate react-virtualized-diff against several popular diff viewer libraries across large file sizes.
What's new
- Added a benchmark app under
apps/benchmark - Added comparisons against:
react-virtualized-diffreact-diff-viewerreact-diff-viewer-continuedreact-diff-view
- Added benchmark scenarios for
1k,10k,50k, and100klines - Added collected metrics for:
- FPS
- initial render time
- memory usage in Chromium
- Added a root benchmark command:
pnpm benchmark - Added an automated benchmark runner:
scripts/run-benchmark.mjs
Improvements
- Automatically installs Playwright Chromium on first run if browser binaries are missing
- Handles per-case timeouts without failing the entire benchmark run
- Properly shuts down the benchmark dev server after execution to avoid noisy exit errors
Outputs
Benchmark results are generated to:
benchmark-results/results.jsonbenchmark-results/results.md
Release workflow test
v0.1.1 add more env