Skip to content
Myr

Add migration tips for default import

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by John Gee · parent d90c59c · Browse files · 1 file+19 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+19 added−0 removed

  • other:+19 added−0 removed

1 file+19 added−0 removed

modified:CHANGELOG.md+19 added
6 unmodified lines
78<!-- markdownlint-disable MD024 -->9<!-- markdownlint-disable MD004 -->1011## [Unreleased] (date goes here)1213### Changed1415- *Breaking:* Commander 12 requires Node.js v18 or higher1617### Removed1819- *Breaking:* removed default export of a global Command instance from CommonJS2021### Migration Tips2223If you are using the [deprecated](./docs/deprecated.md#default-import-of-global-command-object) default import of the global Command object, you need to switch to using a named import (or create a new `Command`).2425```js26// const program = require('commander');27const { program } = require('commander');28```2930## [11.0.0] (2023-06-16)3132### Fixed33
1277 unmodified lines