canirequire › ESM-only › @release-it/conventional-changelog
Is @release-it/conventional-changelog ESM-only? Can you require() it?
Conventional changelog plugin for release-it
Last verified Sep 9, 2026 against @release-it/conventional-changelog@12.0.0. JSON
ESM-only ESM-only since 5.0.0 — last CommonJS version is 4.3.0
@release-it/conventional-changelog dropped its CommonJS build in 5.0.0 (April 2022). The last version you can require() on every Node.js version, including 18 and older, is 4.3.0, published Apr 15, 2022.
On Node.js 20.19+, 22.12+ and every newer release, require("@release-it/conventional-changelog") works anyway: Node can load synchronous ES modules through require(). Verified on Node 22, 24, 26. Node.js 18 and older still fail with ERR_REQUIRE_ESM.
@release-it/conventional-changelog@12.0.0 declares engines "^22.21.0 || >=24.0.0", so Node.js 18, 20 are outside its supported range regardless of module format.
Does @release-it/conventional-changelog@12.0.0 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("@release-it/conventional-changelog") from a CommonJS file and import "@release-it/conventional-changelog" from an ES module.
| Runtime | require("@release-it/conventional-changelog") | import "@release-it/conventional-changelog" |
|---|---|---|
| Node.js 18 | ✗ failsERR_REQUIRE_ESM | ✗ failsSyntaxError |
| Node.js 20 | ✓ works | ✓ works |
| Node.js 22 | ✓ works | ✓ works |
| Node.js 24 | ✓ works | ✓ works |
| Node.js 26 | ✓ works | ✓ works |
| Bun 1.4 | ✓ works | ✓ works |
How to import @release-it/conventional-changelog
ES modules (import)
import conventionalChangelog from "@release-it/conventional-changelog";CommonJS (require)
// Node.js 20.19+ / 22.12+ / newer (package has no top-level await):
const conventionalChangelog = require("@release-it/conventional-changelog");
// Any Node.js version:
const conventionalChangelog = await import("@release-it/conventional-changelog");
// Or pin the last CommonJS release:
// npm install @release-it/conventional-changelog@4.3.0Module format by version
Derived from the type, main and exports fields of every stable release on npm (47 versions; the newest 47 shown).
| Versions | Format | First published |
|---|---|---|
| 5.0.0 – 12.0.0 | ESM-only | Apr 30, 2022 |
| 1.0.0 – 4.3.0 | CommonJS | May 1, 2019 |
Frequently asked
Is @release-it/conventional-changelog ESM-only?
@release-it/conventional-changelog@12.0.0 is ESM-only. @release-it/conventional-changelog dropped its CommonJS build in 5.0.0 (April 2022). The last version you can require() on every Node.js version, including 18 and older, is 4.3.0, published Apr 15, 2022.
Which version of @release-it/conventional-changelog still supports CommonJS / require()?
4.3.0 is the last version of @release-it/conventional-changelog with a CommonJS build. Install it with "npm install @release-it/conventional-changelog@4.3.0". Every version from 5.0.0 on is ESM-only.
How do I use @release-it/conventional-changelog from a CommonJS file?
Use a dynamic import: const mod = await import("@release-it/conventional-changelog"). On Node.js 20.19+, 22.12+ and newer, a plain require("@release-it/conventional-changelog") also works for ESM packages that do not use top-level await. Alternatively pin @release-it/conventional-changelog@4.3.0.
Does @release-it/conventional-changelog work in Bun?
Yes. import "@release-it/conventional-changelog" loaded successfully in Bun 1.4 on Sep 9, 2026.
Does @release-it/conventional-changelog ship TypeScript types?
No. @release-it/conventional-changelog 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
- @ant-design/web3-icons 1.16.0Dual
- @alifd/next 1.27.34CommonJS
- @angular/http 7.2.16CommonJS
- @alifd/babel-preset-next 2.0.0-betaCommonJS
- @vue/eslint-config-standard 9.0.1ESM-only
- @storybook/addon-info 5.3.21CommonJS
- @vue/cli-plugin-unit-jest 5.0.9CommonJS
- @nomiclabs/hardhat-ethers 2.2.3CommonJS