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 new file mode 100644 index 0000000..5cdd61e --- /dev/null +++ b/.changeset/v20-migration.md @@ -0,0 +1,7 @@ +--- +'@benhigham/commitlint-config': major +--- + +- 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 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 .",