lefthook
- 2.2.2 is the latest, published 13 October 2026.
- No known security advisory.
- 2.x: 36 releases since 20 October 2025, 8 in the last 90 days.
Releases in the last 90 days
Feed of releases and advisoriesEvery stable release, newest first. Notes are quoted as the maintainers published them.
2.2.2
13 October 2026Cleanup only current stash hash
Changelog
fix: cleanup only current stash hash
packaging: add support for android
2.2.1
8 October 2026Support php composer
Changelog
feat: support php composer
fix: generate different patch names when in a worktree
2.2.0
7 October 2026Don't write an install-time lefthook path into AI hook configs
Changelog
fix: don't write an install-time lefthook path into AI hook configs
fix: ignore trailing NUL in --files-from-stdin
fix: pass --output path to git diff as a single argument
2.1.17
5 October 2026Diff push files against the merge base with the default branch
Changelog
fix: diff push files against the merge base with the default branch
fix: don't hash submodules when checking fail_on_changes
2.1.16
1 October 2026Preserve unrelated unstaged changes on conflict
Changelog
fix: preserve unrelated unstaged changes on conflict
fix: test staging fixed files with partially staged
2.1.15
29 September 2026Propagate forced colors to hook commands via CLICOLOR_FORCE
Changelog
feat: propagate forced colors to hook commands via CLICOLOR_FORCE
fix(lfs): do not pipe stdin into post-checkout git-lfs hook
fix: quote paths in the generated hook shim
fix: remove color blending
fix: resolve push-files fallback against the remote-tracking ref
fix: sanitize slashes in remote ref when building the checkout dir name
2.1.14
14 September 20262.1.12
28 August 2026LEFTHOOK_OUTPUT precedence
Changelog
fix: LEFTHOOK_OUTPUT precedence
fix: fail the hook when staging fixed files errors
Major versions
- 2.xsince 20 October 2025 · latest 2.2.2 · 36 releases
- 1.xsince 23 June 2022 · latest 1.13.6 · 147 releases
- 0.xsince 7 November 2018 · latest 0.0.4 · 4 releases
Quality and security signals
What npm and deps.dev say about the latest release. Signals, not a verdict.
Reading npm and deps.dev…
Registry facts last checked 14 October 2026. Releases and advisories last read 14 October 2026.
Know when your own dependencies move
Inlinr tracks your coding time automatically. Switch dependency tracking on for a project and it reads that repository's manifest to show what is behind and what has been deprecated — off by default, one project at a time.