Releases: cacjs/cac
Releases · cacjs/cac
v7.0.0
🚨 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:
--- 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
- 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 #135 (d0636)
🐞 Bug Fixes
- Check default commands - by @domdomegg in #152 (28ddf)
View changes on GitHub
v7.0.0-beta.1
⚠️ Breaking Changes
- Drop support for Node.js < 20.19.0.
- Remove CJS build. Please use ESM imports, or upgrade to Node.js > 20.19.0 to continue using
require. - Rename
cli.on()and related methods tocli.addEventListener()to follow the EventTarget API.
🚀 Features
- Drop support for Node.js < 20.19.0, remove CJS build, and update dependencies - by @sxzz (bdbd7)
- Release on JSR - by @sxzz (21f55)