Conversation
Users can now use inquirer v9, v10, v11, or v12. v13 is excluded because it removes the "list" prompt type. Closes #4554 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Review Summary by QodoUpgrade to Node.js v22 and replace external dependencies with native APIs
WalkthroughsDescription• Upgrade minimum Node.js version from v18 to v22 across all packages • Replace external dependencies with native Node.js built-in APIs - Replace glob and fast-glob with node:fs/promises glob - Replace minimist with node:util parseArgs - Replace fs-extra with node:fs/promises - Replace import-meta-resolve with native module resolution • Widen cz-commitlint inquirer peer dependency to support v9-v12 • Update CI matrix to Node.js [22, 24] and add ubuntu-26.04 Diagramflowchart LR
A["Node.js v18 minimum"] -->|upgrade| B["Node.js v22 minimum"]
C["External dependencies<br/>glob, minimist, fs-extra<br/>import-meta-resolve"] -->|replace| D["Native Node.js APIs<br/>node:fs, node:util<br/>module resolution"]
E["inquirer ^9.0.0"] -->|widen| F["inquirer ^9-12"]
B --> G["Updated CI matrix<br/>Node 22, 24<br/>Ubuntu 26.04"]
File Changes1. @commitlint/cli/src/cli.test.ts
|
Code Review by Qodo
1. inquirer peerDep still v9
|
| "peerDependencies": { | ||
| "commitizen": "^4.0.3", | ||
| "inquirer": "^9.0.0" | ||
| "inquirer": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0" |
There was a problem hiding this comment.
1. inquirer peerdep still v9 📎 Requirement gap ≡ Correctness
@commitlint/cz-commitlint still lists inquirer ^9.0.0 and does not include the latest supported major (v13), and its README continues to instruct installing inquirer@9, creating outdated/conflicting guidance. This violates the requirement to update peer dependency guidance away from inquirer@9 toward inquirer@latest (or equivalent).
Agent Prompt
## Issue description
`@commitlint/cz-commitlint` still references `inquirer@9` in both package metadata and docs, and the peer dependency range does not reflect the latest supported Inquirer major (v13).
## Issue Context
Compliance requires removing `inquirer@9` guidance and updating to `inquirer@latest` (or equivalent wording indicating latest supported Inquirer).
## Fix Focus Areas
- @commitlint/cz-commitlint/package.json[53-56]
- @commitlint/cz-commitlint/README.md[11-19]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
LGTM |
|
But why is CI "broken"? |
Ubuntu 26.04 is not available yet |
|
Yeah, so why is that on CI? I don't see the 26.04 entry in the workflows actually. I'm confused. |
|
Ah, switched to draft |
Fixes: #4554
Replaces: #4672