canirequire

canirequireESM-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.

Latest
5.0.0 (May 3, 2024)
Module format
ESM-only
Last CommonJS version
4.1.0
ESM-only since
5.0.0 (May 3, 2024)
TypeScript types
None
Node engines
>=18
Weekly downloads
296K
License
MIT

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.

Runtimerequire("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.0

Module format by version

Derived from the type, main and exports fields of every stable release on npm (67 versions; the newest 60 shown).

VersionsFormatFirst published
5.0.0ESM-onlyMay 3, 2024
1.3.0 – 4.1.0CommonJSMar 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

Similar popularity