---
title: "lefthook 2.1.12 Breaking Changes on npm | Since.dev"
description: "What each lefthook release removed, renamed or changed: 19 breaking changes in 11 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/lefthook
last_updated: 2026-12-04
---

# lefthook breaking changes

lefthook 2.1.12 (August 28, 2026) is its newest release with breaking changes. The first: Hook now fails when staging files fixed by the hook errors in lefthook 2.1.12. Every breaking API change we have recorded in lefthook on npm: 19 breaking changes in 11 versions. Below, its 11 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.3.1`, released December 4, 2026. [Source repository](https://github.com/evilmartians/lefthook)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [1.0.0](#v-1-0-0) to [2.1.12](#v-2-1-12): 8 breaking changes in 2 versions.
- From [0.2.0](#v-0-2-0) to [2.1.12](#v-2-1-12): 18 breaking changes in 10 versions.

## lefthook 2.1.12 breaking changes

lefthook 2.1.12, released August 28, 2026: 1 breaking change.

- **Behavior changed**  

If staging the files a hook fixed errors, the hook now fails instead of passing. Check hooks that previously succeeded silently on staging errors. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v2.1.12)

## lefthook 2.0.0 breaking changes

lefthook 2.0.0, released October 20, 2025: 7 breaking changes.

- **Removed**  

Several previously deprecated command-line options have been removed; scripts using them must stop passing them. [github.com](https://github.com/evilmartians/lefthook/commit/32a6a397682d0177c048c47488fa95ea725326da)
- **Removed** `exclude`  

The exclude option no longer accepts regular expressions, so configurations relying on regexp patterns must be rewritten. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v2.0.0)
- **Removed** `skip_output`  

The deprecated skip_output option has been removed, so configurations that set it no longer have any effect or are rejected. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v2.0.0)
- **Renamed** `--jobs`  

Use --job instead of --jobs in command-line invocations. [github.com](https://github.com/evilmartians/lefthook/commit/32a6a397682d0177c048c47488fa95ea725326da)
- **Renamed** `--tags`  

Use --tag instead of --tags in command-line invocations. [github.com](https://github.com/evilmartians/lefthook/commit/32a6a397682d0177c048c47488fa95ea725326da)
- **Behavior changed**  

On Windows, commands are now executed with sh instead of the previous executor, so commands that depended on the old behavior may act differently. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v2.0.0)
- **Behavior changed**  

The command-line interface was rebuilt on another framework, which changes CLI behavior and help output that existing scripts may depend on. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v2.0.0)

## lefthook 1.0.0 breaking changes

lefthook 1.0.0, released June 23, 2022: 2 breaking changes.

- **Removed** `aggressive`  

The deprecated aggressive option is no longer on install and now belongs to the uninstall command. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v1.0.0)
- **Behavior changed**  

The code was rewritten and behavior might have changed from v0.8.0; report any problems. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v1.0.0)

## lefthook 0.8.0 breaking changes

lefthook 0.8.0, released June 23, 2022: 2 breaking changes.

- **Removed**  

Release builds for 32-bit architectures were stopped. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v0.8.0)
- **Behavior changed**  

Filename globs now match case-insensitively, which can change which files are selected. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v0.8.0)

## lefthook 0.6.6 breaking changes

lefthook 0.6.6, released June 23, 2022: 1 breaking change.

- **Behavior changed**  

Commands are now executed with eval instead of exec and the shell has TTY enabled. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v0.6.6)

## lefthook 0.6.3 breaking changes

lefthook 0.6.3, released June 23, 2022: 1 breaking change.

- **Removed** `prepare-commit-msg`  

The prepare-commit-msg hook is removed from execution. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v0.6.3)

## Older versions

5 older versions.

### lefthook 0.4.0 breaking changes

lefthook 0.4.0, released June 23, 2022: 1 breaking change.

- **Behavior changed**  

Scripts now need an explicit config entry to run. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v0.4.0)

### lefthook 0.3.3 breaking changes

lefthook 0.3.3, released June 23, 2022: 1 breaking change.

- **Behavior changed**  

Colorized output depends on whether a TTY is attached. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v0.3.3)

### lefthook 0.3.1 breaking changes

lefthook 0.3.1, released June 23, 2022: 1 breaking change.

- **Behavior changed**  

The command line no longer checks for git before running. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v0.3.1)

### lefthook 0.3.0 breaking changes

lefthook 0.3.0, released June 23, 2022: 1 breaking change.

- **Renamed** `hookah`  

The package and its commands were renamed from hookah to lefthook. Update names used in code and scripts. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v0.3.0)

### lefthook 0.2.0 breaking changes

lefthook 0.2.0, released June 23, 2022: 1 breaking change.

- **Default changed**  

Source directories are now used by default. Check your config if you relied on the previous default. [github.com](https://github.com/evilmartians/lefthook/releases/tag/v0.2.0)

## Related packages

- [lefthook-openbsd-x64](https://since.dev/packages/npm/lefthook-openbsd-x64.md)
- [lefthook-freebsd-arm64](https://since.dev/packages/npm/lefthook-freebsd-arm64.md)
- [lefthook-linux-arm64](https://since.dev/packages/npm/lefthook-linux-arm64.md)
- [lefthook](https://since.dev/packages/gem/lefthook.md):  on RubyGems

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
