Skip to content

Releases: Zhang-JiahangH/react-virtualized-diff

v0.1.5 — Diff Viewer Enhancements & Compatibility Layer

08 Apr 07:20
2860276

Choose a tag to compare

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-viewer props:
    • oldValue / newValue aliases for original / modified
    • splitView toggle for split vs unified rendering
    • showDiffOnly and extraLinesSurroundingDiff mapped to collapse behavior
  • Unified (inline) diff rendering mode
  • renderContent(line) for custom syntax highlighting (e.g. Prism, Shiki)
  • Line interaction features:
    • onLineNumberClick with stable line IDs (L-12, R-8)
    • highlightLines with range support
    • hideLineNumbers
  • 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 styles and useDarkTheme
  • Added leftTitle / rightTitle for headers
  • Added linesOffset support
  • Bumped workspace package versions from 0.1.4 to 0.1.5

release: prepare v0.1.4 with hosted demo and docs refresh

07 Apr 10:05
4c2eba4

Choose a tag to compare

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

07 Apr 05:36
09671c1

Choose a tag to compare

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-diff
    • react-diff-viewer
    • react-diff-viewer-continued
    • react-diff-view
  • Added benchmark scenarios for 1k, 10k, 50k, and 100k lines
  • 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.json
  • benchmark-results/results.md

Release workflow test

06 Apr 06:25

Choose a tag to compare

v0.1.1

add more env