Skip to content
Myr

Update CHANGELOG for 12.0.0 (#2066)

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

authored by John Gee · committed by GitHub · parent 0e0fedb · Browse files · 1 file+31 added−3 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+31 added−3 removed

  • other:+31 added−3 removed

1 file+31 added−3 removed

modified:CHANGELOG.md+31 added-3 removed
6 unmodified lines
78<!-- markdownlint-disable MD024 -->9<!-- markdownlint-disable MD004 -->1011## [Unreleased] (date goes here)11## [12.0.0] (date goes here)1213### Fixed1415- *Breaking:* use non-zero exit code when spawned executable subcommand terminates due to a signal ([#2023])16- *Breaking:* check `passThroughOptions` constraints when using `.addCommand` and throw if parent command does not have `.enablePositionalOptions()` enabled ([#1937])1718### Changed1915- *Breaking:* Commander 12 requires Node.js v18 or higher20- *Breaking:* Commander 12 requires Node.js v18 or higher ([#2027])21- *Breaking:* throw an error if add an option with a flag which is already in use ([#2055])22- *Breaking:* throw an error if add a command with name or alias which is already in use ([#2059])23- *Breaking:* throw error when calling `.storeOptionsAsProperties()` after setting an option value ([#1928])24- replace non-standard JSDoc of `@api private` with documented `@private` ([#1949])2526### Removed2719- *Breaking:* removed default export of a global Command instance from CommonJS28- *Breaking:* removed default export of a global Command instance from CommonJS (use the named `program` export instead) ([#2017])2930### Migration Tips3132**global program**3334If 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`).3536```js37// const program = require('commander');38const { program } = require('commander');39```4041**option and command clashes**4243A couple of configuration problems now throw an error, which will pick up issues in existing programs:4445- adding an option which uses the same flag as a previous option46- adding a command which uses the same name or alias as a previous command4748## [11.1.0] (2023-10-13)4950### Fixed51
1172 unmodified lines
1224[#1864]: https://github.com/tj/commander.js/pull/18641225[#1874]: https://github.com/tj/commander.js/pull/18741226[#1886]: https://github.com/tj/commander.js/pull/18861227[#1896]: https://github.com/tj/commander.js/pull/18961228[#1928]: https://github.com/tj/commander.js/pull/19281229[#1930]: https://github.com/tj/commander.js/pull/19301230[#1937]: https://github.com/tj/commander.js/pull/19371231[#1949]: https://github.com/tj/commander.js/pull/19491232[#1965]: https://github.com/tj/commander.js/pull/19651233[#1969]: https://github.com/tj/commander.js/pull/19691234[#1982]: https://github.com/tj/commander.js/pull/19821235[#1983]: https://github.com/tj/commander.js/pull/19831236[#2010]: https://github.com/tj/commander.js/pull/20101237[#2017]: https://github.com/tj/commander.js/pull/20171238[#2019]: https://github.com/tj/commander.js/pull/20191239[#2023]: https://github.com/tj/commander.js/pull/20231240[#2027]: https://github.com/tj/commander.js/pull/20271241[#2055]: https://github.com/tj/commander.js/pull/20551242[#2059]: https://github.com/tj/commander.js/pull/205912431244<!-- Referenced in 5.x -->1245[#1]: https://github.com/tj/commander.js/issues/11246[#432]: https://github.com/tj/commander.js/issues/432
71 unmodified lines
1318[#1026]: https://github.com/tj/commander.js/pull/10261319[#1028]: https://github.com/tj/commander.js/pull/102813201321[Unreleased]: https://github.com/tj/commander.js/compare/master...develop1322[12.0.0]: https://github.com/tj/commander.js/compare/v11.1.0...v12.0.01323[11.1.0]: https://github.com/tj/commander.js/compare/v11.0.0...v11.1.01324[11.0.0]: https://github.com/tj/commander.js/compare/v10.0.1...v11.0.01325[10.0.1]: https://github.com/tj/commander.js/compare/v10.0.0...v10.0.11326[10.0.0]: https://github.com/tj/commander.js/compare/v9.5.0...v10.0.0
44 unmodified lines