From c5527984861980f355c9b94352d7432e1630aeae Mon Sep 17 00:00:00 2001 From: Kael Date: Wed, 11 Mar 2026 06:54:46 +0000 Subject: [PATCH 1/2] chore: add changeset for commitlint v20 migration and peer dep bump --- .changeset/v20-migration.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/v20-migration.md diff --git a/.changeset/v20-migration.md b/.changeset/v20-migration.md new file mode 100644 index 0000000..3239b40 --- /dev/null +++ b/.changeset/v20-migration.md @@ -0,0 +1,7 @@ +--- +'@benhigham/commitlint-config': minor +--- + +- Bump `@commitlint/config-conventional` and `@commitlint/format` from v19 to v20 +- Bump `@commitlint/cli` peer dependency from `>=19.0.0` to `>=20.0.0` +- Update all dependencies to latest versions From 4494d77ae2e4f48c3aa34dcca7917c00436bb15f Mon Sep 17 00:00:00 2001 From: Ben Higham Date: Wed, 11 Mar 2026 18:31:12 +1100 Subject: [PATCH 2/2] docs: fix stale docs, correct changeset severity, and bump pnpm - Remove stale Atom changelog reference from README - Update README requirements to commitlint 20.x+ and Node.js 22+ - Promote v20-migration changeset from minor to major (peer dep bump is breaking) - Correct Node 20 EOL date from October to April 2026 - Remove false precision on commitlint parser upgrade version - Relax engines constraint from >=22.15.0 to >=22 - Bump packageManager to pnpm@10.32.1 --- .changeset/drop-node-18-20.md | 4 ++-- .changeset/remove-atom-parser-preset.md | 2 +- .changeset/v20-migration.md | 2 +- README.md | 6 +++--- package.json | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.changeset/drop-node-18-20.md b/.changeset/drop-node-18-20.md index a6e5d8b..52588a1 100644 --- a/.changeset/drop-node-18-20.md +++ b/.changeset/drop-node-18-20.md @@ -2,5 +2,5 @@ '@benhigham/commitlint-config': major --- -- Drop support for Node.js 18 and 20 — minimum version is now 22.15.0 -- Node 18 reached EOL April 2025; Node 20 EOLs October 2026 +- Drop support for Node.js 18 and 20 — minimum version is now 22 +- Node 18 reached EOL April 2025; Node 20 EOLs April 2026 diff --git a/.changeset/remove-atom-parser-preset.md b/.changeset/remove-atom-parser-preset.md index a8a5131..f2abafc 100644 --- a/.changeset/remove-atom-parser-preset.md +++ b/.changeset/remove-atom-parser-preset.md @@ -9,7 +9,7 @@ parser to match Atom-style headers (`:emoji: description`), not conventional commits. This was a latent bug that had no visible effect in commitlint v19 due to fallback behaviour in the old parser. -In commitlint v20.4.0, `conventional-commits-parser` was upgraded from +In commitlint v20, `conventional-commits-parser` was upgraded from v5 to v6 (which uses a new `CommitParser` class with no fallback). The atom preset's header pattern never matches conventional commit messages, causing `type` and `subject` to always be empty — breaking all linting. diff --git a/.changeset/v20-migration.md b/.changeset/v20-migration.md index 3239b40..5cdd61e 100644 --- a/.changeset/v20-migration.md +++ b/.changeset/v20-migration.md @@ -1,5 +1,5 @@ --- -'@benhigham/commitlint-config': minor +'@benhigham/commitlint-config': major --- - Bump `@commitlint/config-conventional` and `@commitlint/format` from v19 to v20 diff --git a/README.md b/README.md index f2a532b..f2a4f46 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ My personal [commitlint](https://commitlint.js.org) configuration based on the [ - Based on `@commitlint/config-conventional` - Provides consistent, structured commit messages -- Integrates with Atom-style changelogs +- Uses `@commitlint/format` for formatted output - Pre-configured formatting rules ## Installation @@ -91,8 +91,8 @@ This configuration enforces the [Conventional Commits](https://www.conventionalc ## Requirements -- Node.js 22.15.x or higher -- [commitlint](https://commitlint.js.org) 19.x +- Node.js 22 or higher +- [commitlint](https://commitlint.js.org) 20.x or higher ## License diff --git a/package.json b/package.json index 77cb9cc..fbd0de6 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,9 @@ "exports": "./src/index.js", "sideEffects": false, "engines": { - "node": ">=22.15.0" + "node": ">=22" }, - "packageManager": "pnpm@10.15.0", + "packageManager": "pnpm@10.32.1", "scripts": { "format": "prettier --write .", "format:check": "prettier --check .",