canirequire › ESM-only › conventional-changelog-cli
Is conventional-changelog-cli ESM-only? Can you require() it?
Generate a changelog from git metadata.
Last verified Sep 9, 2026 against conventional-changelog-cli@5.0.0. JSON
ESM-only ESM-only since 5.0.0 — last CommonJS version is 4.1.0
conventional-changelog-cli dropped its CommonJS build in 5.0.0 (May 2024). The last version you can require() on every Node.js version, including 18 and older, is 4.1.0, published Sep 8, 2023.
require("conventional-changelog-cli") failed in our probe on Node.js 20+ as well. See the runtime matrix below for the exact error.
Deprecated: This package is no longer maintained. Please use the conventional-changelog package instead.
Does conventional-changelog-cli@5.0.0 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("conventional-changelog-cli") from a CommonJS file and import "conventional-changelog-cli" from an ES module.
| Runtime | require("conventional-changelog-cli") | import "conventional-changelog-cli" |
|---|---|---|
| Node.js 18 | ✗ failsMODULE_NOT_FOUND | ✗ failsERR_MODULE_NOT_FOUND |
| Node.js 20 | ✗ failsMODULE_NOT_FOUND | ✗ failsERR_MODULE_NOT_FOUND |
| Node.js 22 | ✗ failsMODULE_NOT_FOUND | ✗ failsERR_MODULE_NOT_FOUND |
| Node.js 24 | ✗ failsMODULE_NOT_FOUND | ✗ failsERR_MODULE_NOT_FOUND |
| Node.js 26 | ✗ failsMODULE_NOT_FOUND | ✗ failsERR_MODULE_NOT_FOUND |
| Bun 1.4 | ✗ failserror: Cannot find package 'conventional-changelog-cli' from '/Users/boat/Projects/top-seo/data/probe-work/conventional-changelog-cli/req.cjs' | ✗ failserror: Cannot find package 'conventional-changelog-cli' from '/Users/boat/Projects/top-seo/data/probe-work/conventional-changelog-cli/imp.mjs' |
How to import conventional-changelog-cli
ES modules (import)
import conventionalChangelogCli from "conventional-changelog-cli";CommonJS (require)
// Node.js 20.19+ / 22.12+ / newer (package has no top-level await):
const conventionalChangelogCli = require("conventional-changelog-cli");
// Any Node.js version:
const conventionalChangelogCli = await import("conventional-changelog-cli");
// Or pin the last CommonJS release:
// npm install conventional-changelog-cli@4.1.0Module format by version
Derived from the type, main and exports fields of every stable release on npm (67 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 5.0.0 | ESM-only | May 3, 2024 |
| 1.3.0 – 4.1.0 | CommonJS | Mar 11, 2017 |
Frequently asked
Is conventional-changelog-cli ESM-only?
conventional-changelog-cli@5.0.0 is ESM-only. conventional-changelog-cli dropped its CommonJS build in 5.0.0 (May 2024). The last version you can require() on every Node.js version, including 18 and older, is 4.1.0, published Sep 8, 2023.
Which version of conventional-changelog-cli still supports CommonJS / require()?
4.1.0 is the last version of conventional-changelog-cli with a CommonJS build. Install it with "npm install conventional-changelog-cli@4.1.0". Every version from 5.0.0 on is ESM-only.
How do I use conventional-changelog-cli from a CommonJS file?
Use a dynamic import: const mod = await import("conventional-changelog-cli"). On Node.js 20.19+, 22.12+ and newer, a plain require("conventional-changelog-cli") also works for ESM packages that do not use top-level await. Alternatively pin conventional-changelog-cli@4.1.0.
Does conventional-changelog-cli work in Bun?
Importing conventional-changelog-cli failed in Bun 1.4 on Sep 9, 2026: error: Cannot find package 'conventional-changelog-cli' from '/Users/boat/Projects/top-seo/data/probe-work/conventional-changelog-cli/imp.mjs'
Does conventional-changelog-cli ship TypeScript types?
No. conventional-changelog-cli ships no type declarations and there is no @types package for it.
Links
Other esm-only packages
- ansi-styles 7.0.0last CJS
5.2.0 - strip-ansi 7.2.0last CJS
6.0.1 - commander 15.0.0last CJS
14.0.3 - supports-color 11.0.0last CJS
8.1.1 - chalk 6.0.0last CJS
4.1.2 - tslib 2.8.1last CJS
2.5.2 - string-width 8.2.2last CJS
4.2.3 - ansi-regex 6.3.0last CJS
5.0.1
Similar popularity
- gulp-uglify 3.0.2CommonJS
- gulp-babel 8.1.0CommonJS
- flow-bin 0.331.0CommonJS
- grunt-contrib-clean 2.0.1CommonJS
- typechain 8.3.2CommonJS
- ember-source 7.2.0ESM-only
- gulp-plumber 1.2.1CommonJS
- vue-class-component 7.2.6CommonJS