cac
7.1.1 · 20 Nov 2026MIT73.1M / weekRepositoryHomepagenpmAtom feed
7.1.1 is the newest release of 7.x.
In short
3 breaking1 removed3 new1 fixed
- Breaking
Drop Node.js < 20.19.0 support. Node.js 20.19.0 is now the minimum required version.
- Breaking
Remove CJS build. CAC is now ESM-only. If you rely on
require(), either migrate to ESM imports or upgrade to Node.js ≥ 20.19.0, which supportsrequire()for ES modules natively. - Breaking
Rename event listener methods to follow the
EventTargetAPI.cli.on()and related methods have been renamed tocli.addEventListener(). Update your code accordingly: - Removed
Drop support for Node.js < 20.19.0, remove CJS build, and update dependencies
Release note
Breaking Changes
- Breaking
Drop Node.js < 20.19.0 support. Node.js 20.19.0 is now the minimum required version.
- Breaking
Remove CJS build. CAC is now ESM-only. If you rely on
require(), either migrate to ESM imports or upgrade to Node.js ≥ 20.19.0, which supportsrequire()for ES modules natively. - Breaking
Rename event listener methods to follow the
EventTargetAPI.cli.on()and related methods have been renamed tocli.addEventListener(). Update your code accordingly:
--- cli.on('command:*', () => { ... })
+++ cli.addEventListener('command:*', () => { ... })Notes for Deno Users
Please use the JSR package instead: @cac/cac
import cac from 'jsr:@cac/cac'
Features
- Removed
Drop support for Node.js < 20.19.0, remove CJS build, and update dependencies
Release on JSR
Support on browsers
Throw error on unused args
Bug Fixes
Check default commands
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.