Hunk 0.20
August 25, 2026 – August 29, 2026 · 2 releases
Hunk 0.20 adds a one-line installer with conditional checksum verification and self-updates, launches a directory of 12 community extensions, and makes line-level reviewing faster and more precise.
npm i -g hunkdiff@0.20.1Hunk 0.20 is no longer the current release. See the latest release or all install options.
Related documentation
Section titled “Related documentation”Releases in this series
Section titled “Releases in this series”0.20.1
Section titled “0.20.1”August 29, 2026
Patch Changes
Section titled “Patch Changes”- Prevent syntax-highlight cache collisions from displaying stale code after review reloads.
- Keep the theme selector responsive and its highlighted row visible during rapid keyboard navigation.
- Reject session reload inputs whose VCS
rangeorrefvalues look like command options. A caller reaching the session broker could otherwise injectgitflags such as--output=<path>through a/session-apireload request and make Hunk write diff output to an arbitrary path.
0.20.0
Section titled “0.20.0”August 25, 2026
Minor Changes
Section titled “Minor Changes”- Add a curl installer (
curl -fsSL https://hunk.dev/install.sh | sh) with checksum verification, and teachhunk updateto update curl installs. (#799) - Let extension commands inspect
ctx.selection.currentLine; TypeScript authors constructingExtensionReviewSelectionmust add its required field. (#779) - Let extension commands capture immutable snapshots of stable review files and every saved review note. (#833)
- Add
hunk updateto self-update Hunk with the package manager that installed it (npm or Homebrew), with guidance for Nix, mise, and source installs. (#788)
Patch Changes
Section titled “Patch Changes”- Keep the active code line fixed in place while an inline comment form pushes following content down. (#809)
- Keep
hunk --version,--help,daemon serve, andhunk session *off the diff-engine startup path again, and release the syntax worker when the review app exits instead of at startup. (#784) - Make
--fastoffload eligible syntax highlighting for files with 40 or more lines. (#810) - Let mouse clicks reliably select exact code lines, including blank lines, for keyboard review actions. (#840)
- Fail clearly when an OpenTUI upgrade removes the shifted-wheel scroll reset Hunk requires. (#786)
- Reduce hunk navigation latency by avoiding unnecessary diff, sidebar, and syntax-highlighting work. (#803)
- Reuse worker-highlighted diffs after the terminal cache evicts them. (#791)