cac
7.1.1 · 20 Nov 2026MIT73.1M / weekRepositoryHomepagenpmAtom feed
Upgrading cac From 4.2.0 to 7.1.1
100 releases in betweennotes for 66
Reading releases, release notes and advisories…
- 13+
- changes to make
- 0
- advisories fixed
- 11+
- new
- 56+
- fixes
Counted from 66 of 100 release notes, and the breaking changes of 1 pre-release on the way to a major. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking6.7.10
- Breaking6.3.10
- Breaking6.1.2
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
Security
- 7.1.1
Prevent prototype pollution via inherited parse results
- 7.0.1
Prevent prototype pollution via dotted option names
Release by release
- Security
Prevent prototype pollution via inherited parse results
- Security
- Fixed
Read
process.argvlazily - Fixed
parse: Leave an omitted array option absent
- Fixed
- Security
Prevent prototype pollution via dotted option names
- Security
- 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: - Breaking
Drop support for Node.js < 20.19.0, remove CJS build, and update dependencies
- Breaking
- Fixed
Compat with NodeNext moduleResolution
- Fixed
- Fixed
Make cac work on Deno 1.16
- Fixed
- Fixed
Default exports.require should be pointed to index-compat.js
- Fixed
1 other line we could not sort, mostly version bumps
- 6.7.5
Revert "fix: only output version message for root command"
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.