github so-fancy/diff-so-fancy v1.4.12

5 hours ago

New Features

  • sem integration: First-class integration with the sem tool to show contextual commit info.
  • 24-bit color support: Replaced color logic with a new color() function supporting 24-bit colors
  • Human-readable dates: Date: lines now show a friendly human time

Bug Fixes

  • Plain diff coloring: Plain (diff -u) input is now correctly colorized when stripLeadingSymbols is off.
  • Manual coloring: Smarter detection of when to enable manual coloring mode, and a fix so it works on short diffs.
  • Patch-mode line mismatch: Fixed line counts on added/deleted files in --patch mode.
  • Large diff chunks: Diff chunks are split on commit and remaining lines are preserved when chunks are too large.

Security

  • Output sanitization: Basic sanitization is now applied before writing anything to the screen, to avoid echoing control/escape sequences.

Encoding & Rendering

  • UTF-8 everywhere: STDIN/STDOUT forced to UTF-8. It's 2026, and everything is UTF-8 now.
  • Smarter box drawing: Ruler/box drawing is now content-aware.

CI / Build / Dependencies

  • CI now dynamically syncs package.json version before npm publish.
  • Bumped actions/checkout from 6 -> 7.

Documentation

  • README updates, spelling fixes, and a corrected link to the sem project.

New Contributors

Full Changelog: v1.4.10...v1.4.12

Don't miss a new diff-so-fancy release

NewReleases is sending notifications on new releases.