What’s New

commitlint

Developer Tools

Lints commit messages against conventional-commit rules, as a CLI or hook.

Latest v21.2.1 · by conventional-changelogWebsiteconventional-changelog/commitlint

Changelog

v21.2.1

21.2.0 (2026-06-30)

Features
  • resolve-extends: resolve pure-ESM presets (conventional-changelog v7/v9/v10) (#4859) (fdb566f)
Chore, doc, etc.
New Contributors

Full Changelog: https://github.com/conventional-changelog/commitlint/compare/v21.2.0...v21.2.1

v21.1.0

21.1.0 (2026-06-23)

Bug Fixes
Features
Docs, chore, etc.
New Contributors

Full Changelog: https://github.com/conventional-changelog/commitlint/compare/v21.0.2...v21.1.0

v21.0.2

21.0.2 (2026-05-29)
Bug Fixes
Chore/CI
New Contributors

Full Changelog: https://github.com/conventional-changelog/commitlint/compare/v21.0.1...v21.0.2

v21.0.1

21.0.1 (2026-05-12)
Bug Fixes
CI
New Contributors

Full Changelog: https://github.com/conventional-changelog/commitlint/compare/v21.0.0...v21.0.1

v21.0.0

Heads-up: --legacy-output is a transitional escape hatch. It will be removed in a future major release. Plan to migrate your parsers / snapshots to the new format during the v21 lifecycle.

21.0.0 (2026-05-08)
Breaking
  • chore!: minimum node version v22 by @escapedcat in #4679
  • feat!: show input from a new line by @knocte in #4727 (adds --legacy-output flag)
Fixes
  • fix: widen cz-commitlint inquirer peer dep to support v9–v12 by @escapedcat in #4682 — closes #4554
Internals (Node 22 cleanup)
  • chore: replace dependencies with Node 22 built-ins by @escapedcat in #4681 — drops glob, fast-glob, import-meta-resolve, minimist, fs-extra
  • refactor: replace read-pkg with native fs.readFile + JSON.parse by @escapedcat in #4742
  • chore: update dependency yargs to v18 by @escapedcat in #4686
  • chore: remove cross-env, move env vars to vitest config by @escapedcat in #4684
Dependency updates
  • chore: update dependency @types/node to v22.19.17 by @renovate[bot] in #4739
  • chore: update dependency @swc/core to v1.15.33 by @renovate[bot] in #4743

Full Changelog: https://github.com/conventional-changelog/commitlint/compare/v20.5.3...v21.0.0

v20.5.3

20.5.3 (2026-04-30)
Refactor
Docs
New Contributors

Full Changelog: https://github.com/conventional-changelog/commitlint/compare/v20.5.2...v20.5.3

v20.5.2

20.5.2 (2026-04-25)

Just minor dep updates before the next breaking change

Chore & Docs
New Contributors

Full Changelog: https://github.com/conventional-changelog/commitlint/compare/v20.5.1...v20.5.2

v20.5.1

20.5.1 (2026-03-31)
Bug Fixes
Reverts
Core & co

Full Changelog: https://github.com/conventional-changelog/commitlint/compare/v20.5.0...v20.5.1

v20.5.0

20.5.0 (2026-03-15)

Bug Fixes
Features
New Contributors

Full Changelog: https://github.com/conventional-changelog/commitlint/compare/v20.4.4...v20.5.0

Discussion