Skip to content

v1.4.0

Choose a tag to compare

@sitefinitysteve sitefinitysteve released this 09 Mar 02:31
· 20 commits to main since this release

Added

  • similarity-threshold prop for DiffHtml — when text similarity falls below the threshold, renders a clean full replacement (old text deleted, new text added) instead of garbled word-level diff
  • computeTextSimilarity utility using Dice coefficient via diffWords
  • Test suite with Vitest covering all 6 component types and similarity utility (45 tests)
  • ESLint 9 + Husky pre-commit hook (lint + test)
  • CHANGELOG.md
  • Demo section showing similarity threshold with side-by-side comparison
  • Playground threshold slider for DiffHtml

Changed

  • DiffHtml template now supports conditional full-replacement rendering