Releases: Zhang-JiahangH/react-virtualized-diff
v0.1.6 — Launch Simplified View with SimpleDiffViewer
Release Notes — 0.1.6
English
0.1.6 — Simplified View Official Release
This release introduces the new Simplified View track, focused on delivering a lighter and easier default experience through SimpleDiffViewer, so teams can quickly adopt common diff scenarios.
✨ Highlights
- Added a minimal API tiering path: use
SimpleDiffViewerfirst for most baseline diff display needs. - Kept
DiffViewer(plus theAdvancedDiffVieweralias) for advanced customization scenarios. - Improved docs and examples to clarify the recommended path from “simple onboarding” to “advanced extensibility.”
✅ Why this release
If your goal is to ship a stable diff view quickly, you can now start directly with Simplified View.
If you need complex interactions, styling, or rendering control, you can still smoothly upgrade to the advanced API.
🔄 Compatibility
This update is primarily about API tiering and does not break existing advanced usage.
You can migrate to SimpleDiffViewer incrementally as needed.
中文
0.1.6 — Simplified View 正式发布
本次版本发布了新的 Simplified View 路线,核心是提供更轻量、默认更易用的 SimpleDiffViewer 体验,帮助团队快速接入常见 diff 场景。
✨ Highlights
- 新增最小化 API 分层思路:优先使用
SimpleDiffViewer,满足大多数基础差异展示需求。 - 保留
DiffViewer(以及AdvancedDiffViewer别名)用于高级定制场景。 - 强化文档与示例,明确从“简单接入”到“高级扩展”的推荐路径。
✅ Why this release
如果你的场景是“先快速上线一个稳定的 diff 视图”,现在可以直接采用 Simplified View。
如果你需要复杂交互、样式与渲染控制,仍然可以平滑升级到高级 API。
🔄 Compatibility
本次更新以分层能力为主,不影响已有高级用法;可按需逐步迁移到 SimpleDiffViewer。
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