Packages

cac

7.1.1 · 20 Nov 2026MIT73.1M / weekRepositoryHomepagenpmAtom feed

Upgrading cac From 3.0.4 to 7.1.0

103 releases in betweennotes for 65

Reading releases, release notes and advisories…

Other targets from 3.0.4Latest7.1.1
5.0.0, 4.0.0 have no release note on GitHub or in the repository's changelog, so their breaking changes are missing from the counts below.
  1. 3.0.4yours
  2. 4.0.0major
  3. 20 releases
  4. 5.0.0major
  5. 16 releases
  6. 6.0.0major
  7. 61 releases
  8. 7.0.0major
  9. 7.0.1security
  10. 7.1.0target
  11. 1 pre
13+
changes to make
0
advisories fixed
11+
new
56+
fixes

Counted from 65 of 103 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

  • Prevent prototype pollution via dotted option names

    7.0.1

Release by release

  1. 7.1.0

    11 Oct 20262 fixes
    • Fixed

      Read process.argv lazily

    • Fixed

      parse: Leave an omitted array option absent

  2. 7.0.1

    Security fix8 Oct 2026
    • Security

      Prevent prototype pollution via dotted option names

  3. 7.0.0

    Migration needed27 Feb 20263 new · 1 fix
    • 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 supports require() for ES modules natively.

    • Breaking

      Rename event listener methods to follow the EventTarget API. cli.on() and related methods have been renamed to cli.addEventListener(). Update your code accordingly:

    • Breaking

      Drop support for Node.js < 20.19.0, remove CJS build, and update dependencies

  4. 6.7.14

    29 Aug 20221 fix
    • Fixed

      Fix typescript issue and fix wrong export field (fix #143)

  5. 6.7.13

    29 Aug 20221 fix
    • Fixed

      Compat with NodeNext moduleResolution

  6. 6.7.12

    12 Nov 20211 fix
    • Fixed

      Make cac work on Deno 1.16

  7. 6.7.11

    12 Oct 20211 fix
    • Fixed

      Default exports.require should be pointed to index-compat.js

  8. 6.7.10

    Migration needed12 Oct 2021
    • Breaking

      Remove module.exports statement from esm build

1 other line we could not sort, mostly version bumps
  • Revert "fix: only output version message for root command"

    6.7.5

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.