Prepare for release
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 5fd6e88 · Browse files · 3 files·+23 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
3 files+23 added−3 removed
- other:+23 added−3 removed
Provenance
- Commit
4b43f66- Tree
985b51f- Author
John Gee <john@ruru.gen.nz>- Committer
John Gee <john@ruru.gen.nz>- Parent
5fd6e88
3 files changed+23 added−3 removed
modified:CHANGELOG.md+21 added-1 removed
6 unmodified lines7 8 <!-- markdownlint-disable MD024 -->9 <!-- markdownlint-disable MD004 -->10 11-## [Unreleased] (date goes here)11+## [7.0.0-2] (2020-12-14)12 13+### Changed14+15+- *Breaking:* options are stored safely by default, not as properties on the command16+ - this especially affects accessing options on program, use `program.opts()`17+ - revert behaviour with `.storeOptionsAsProperties()`18+- *Breaking:* action handlers are passed options and command separately19+20+### Added21+22+- *Breaking:* error message if there are too many command-arguments on command line for the action handler23+ - if should be allowed then declare extra arguments, or use `.allowExcessArguments()`24+25+### Deleted26+27+- *Breaking:* `.passCommandToAction()`28+ - no longer needed as action handler is passed options and command29+- *Breaking:* "extra arguments" parameter to action handler30+ - if being used to detect excess arguments, there is now an error displayed by default31+32 ### Migration Tips33 34 The biggest change is the parsed option values. Previously the options were stored by default as properties on the command object, and now the options are stored separately.35 369 unmodified lines405 [#1387]: https://github.com/tj/commander.js/pull/1387406 [#1390]: https://github.com/tj/commander.js/pull/1390407 408 [Unreleased]: https://github.com/tj/commander.js/compare/master...develop409+[7.0.0-1]: https://github.com/tj/commander.js/compare/v7.0.0-1...v7.0.0-2410 [7.0.0-1]: https://github.com/tj/commander.js/compare/v7.0.0-0...v7.0.0-1411 [7.0.0-0]: https://github.com/tj/commander.js/compare/v6.2.0...v7.0.0-0412 [6.2.1]: https://github.com/tj/commander.js/compare/v6.2.0..v6.2.1413 [6.2.0]: https://github.com/tj/commander.js/compare/v6.1.0..v6.2.010 unmodified linesmodified:package-lock.json+1 added-1 removed
1 {2 "name": "commander",3- "version": "7.0.0-1",3+ "version": "7.0.0-2",4 "lockfileVersion": 1,5 "requires": true,6 "dependencies": {7 "@babel/code-frame": {6549 unmodified linesmodified:package.json+1 added-1 removed
1233456751 unmodified lines{ "name": "commander", "version": "7.0.0-1", "version": "7.0.0-2", "description": "the complete solution for node.js command-line programs", "keywords": [ "commander", "command",51 unmodified lines