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
Provenance
- Commit
c6820a5- Tree
aff4b39- Author
John Gee <john@ruru.gen.nz>- Committer
GitHub <noreply@github.com>- Parent
0e0fedb
1 file changed+31 added−3 removed
modified:CHANGELOG.md+31 added-3 removed
6 unmodified lines7 8 <!-- markdownlint-disable MD024 -->9 <!-- markdownlint-disable MD004 -->10 11-## [Unreleased] (date goes here)11+## [12.0.0] (date goes here)12 13+### Fixed14+15+- *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])17+18 ### Changed19 15-- *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])25 26 ### Removed27 19-- *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])29 30 ### Migration Tips31 32+**global program**33+34 If 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`).35 36 ```js37 // const program = require('commander');38 const { program } = require('commander');39 ```40+41+**option and command clashes**42+43+A couple of configuration problems now throw an error, which will pick up issues in existing programs:44+45+- 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 command47+48 ## [11.1.0] (2023-10-13)49 50 ### Fixed51 1172 unmodified lines1224 [#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/20591243 1244 <!-- Referenced in 5.x -->1245 [#1]: https://github.com/tj/commander.js/issues/11246 [#432]: https://github.com/tj/commander.js/issues/43271 unmodified lines1318 [#1026]: https://github.com/tj/commander.js/pull/10261319 [#1028]: https://github.com/tj/commander.js/pull/10281320 1321 [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.044 unmodified lines