21.3.0 (2026-11-28)
Bug Fixes
- fix(rules): reject explicit empty scopes with scope-empty always by @azizu06 in #5150
- fix(rules): match non-ASCII breaking types by @anubhavlal07 in #5149
- fix(read): handle symlinked .git directories by @ajth-in in #5157
- fix(config-pnpm-scopes): respect workspace exclusion patterns by @yxshee in #5142
- fix(lint): preserve original spacing in commit message by @RYEmber07 in #5091
- fix(cli): read core.commentString and handle core.commentChar=auto in edit mode by @chinmayajha in #5101
- fix(rules): check subject-case when the subject starts with whitespace by @chinmayajha in https://github.com/conventional-
- fix(load): keep every local plugin instead of only the last one by @chinmayajha in #5114
- fix(is-ignored): only match merge commits on the first line by @yxshee in #5117
- fix(read): keep leading whitespace of the last commit message by @yxshee in #5121
- fix(cli): read core.commentChar from the --cwd repository in edit mode by @yxshee in #5119
- fix(rules): do not treat non-ASCII letters as scope delimiters by @yxshee in #5120
- fix(rules): improve signed-off-by compatibility with agent commits by @mzedel in #5118
- fix(resolve-extends): find presets installed with commitlint by @yxshee in #5124
- fix(parse): parse commit types in any script by @DeviousCardi in #5137
- fix(ensure): don't treat apostrophes inside words as quotes in case checks by @shivangithaker-0510 in #5140
- fix(cz-commitlint): skip the breaking body when the body must be empty by @yxshee in #5141
- fix(config-workspace-scopes): read package patterns from workspace objects by @yxshee in #5143
Features
- feat(rules): support per-type scopes in scope-enum by @elsycharles in #5126
- feat(rules): add header-breaking-change to reject BREAKING CHANGE in the header by @chinmayajha in #5104
- feat(cz-commitlint): follow references-empty in the footer prompt by @elsycharles in #5128
- feat(prompt-cli): add --config to load a custom config file by @elsycharles in #5125
- feat(ensure): ignore email trailer lines in max-line-length by @yxshee in #5160
- feat(cli,read): support filtering git log commits by path by @yxshee in #5161
CI, docs, etc.
- test(lint): cover git trailers not counting as a commit body by @compiler-segfault in #5092
- test(parse): use numeric issue refs in inline reference fixture by @escapedcat in #5094
changelog/commitlint/pull/5103 - docs(lint): pass the loaded plugins and ignores to lint in the examples by @chinmayajha in #5105
- docs: describe the plugin rule contract and fix how plugin rules are named by @chinmayajha in #5107
- docs: show how to load a local plugin from its own file by @chinmayajha in #5111
- ci: time out the stock Ubuntu job when apt hangs by @escapedcat in #5123
- docs: show how to run commitlint with the pre-commit framework by @elsycharles in #5127
- docs: show how to customize messages with a formatter by @escapedcat in #5153
- chore: let lint-staged pass when only ignored files are staged by @escapedcat in #5154
- test(config-nx-scopes): drop the unused nx dependency from fixtures by @escapedcat in #5155
New Contributors
- @RYEmber07 made their first contribution in #5091
- @compiler-segfault made their first contribution in #5092
- @chinmayajha made their first contribution in #5101
- @yxshee made their first contribution in #5117
- @elsycharles made their first contribution in #5128
- @DeviousCardi made their first contribution in #5137
- @shivangithaker-0510 made their first contribution in #5140
- @azizu06 made their first contribution in #5150
- @anubhavlal07 made their first contribution in #5149
- @ajth-in made their first contribution in #5157
Full Changelog: v21.2.4...v21.3.0