| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-02-27 | 1.7 kB | |
| v7.0.0 source code.tar.gz | 2026-02-27 | 73.4 kB | |
| v7.0.0 source code.zip | 2026-02-27 | 84.0 kB | |
| Totals: 3 Items | 159.1 kB | 1 | |
🚨 Breaking Changes
- Drop Node.js < 20.19.0 support. Node.js 20.19.0 is now the minimum required version.
- 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. -
Rename event listener methods to follow the
EventTargetAPI.cli.on()and related methods have been renamed tocli.addEventListener(). Update your code accordingly::::diff --- cli.on('command:', () => { ... }) +++ cli.addEventListener('command:', () => { ... })
Notes for Deno Users
Please use the JSR package instead: @cac/cac
:::ts
import cac from 'jsr:@cac/cac'
🚀 Features
- Drop support for Node.js < 20.19.0, remove CJS build, and update dependencies - by @sxzz (bdbd7)
- Release on JSR - by @sxzz (21f55)
- Support on browsers - by @sxzz (b943c)
- Throw error on unused args - by @sapphi-red in https://github.com/cacjs/cac/issues/135 (d0636)
🐞 Bug Fixes
- Check default commands - by @domdomegg in https://github.com/cacjs/cac/issues/152 (28ddf)