Skip to content
Myr

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

3 files+23 added−3 removed

modified:CHANGELOG.md+21 added-1 removed
6 unmodified lines
78<!-- markdownlint-disable MD024 -->9<!-- markdownlint-disable MD004 -->1011## [Unreleased] (date goes here)11## [7.0.0-2] (2020-12-14)1213### Changed1415- *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 separately1920### Added2122- *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()`2425### Deleted2627- *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 default3132### Migration Tips3334The 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 lines
405[#1387]: https://github.com/tj/commander.js/pull/1387406[#1390]: https://github.com/tj/commander.js/pull/1390407408[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.0
10 unmodified lines
modified: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 lines
modified:package.json+1 added-1 removed