Skip to content

Commit 4b43f66

Browse files
committed
Prepare for release
1 parent 5fd6e88 commit 4b43f66

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,26 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
<!-- markdownlint-disable MD024 -->
99
<!-- markdownlint-disable MD004 -->
1010

11-
## [Unreleased] (date goes here)
11+
## [7.0.0-2] (2020-12-14)
12+
13+
### Changed
14+
15+
- *Breaking:* options are stored safely by default, not as properties on the command
16+
- this especially affects accessing options on program, use `program.opts()`
17+
- revert behaviour with `.storeOptionsAsProperties()`
18+
- *Breaking:* action handlers are passed options and command separately
19+
20+
### Added
21+
22+
- *Breaking:* error message if there are too many command-arguments on command line for the action handler
23+
- if should be allowed then declare extra arguments, or use `.allowExcessArguments()`
24+
25+
### Deleted
26+
27+
- *Breaking:* `.passCommandToAction()`
28+
- no longer needed as action handler is passed options and command
29+
- *Breaking:* "extra arguments" parameter to action handler
30+
- if being used to detect excess arguments, there is now an error displayed by default
1231

1332
### Migration Tips
1433

@@ -387,6 +406,7 @@ to expand `-fb` to `-f -b` rather than `-f b`.
387406
[#1390]: https://github.com/tj/commander.js/pull/1390
388407

389408
[Unreleased]: https://github.com/tj/commander.js/compare/master...develop
409+
[7.0.0-1]: https://github.com/tj/commander.js/compare/v7.0.0-1...v7.0.0-2
390410
[7.0.0-1]: https://github.com/tj/commander.js/compare/v7.0.0-0...v7.0.0-1
391411
[7.0.0-0]: https://github.com/tj/commander.js/compare/v6.2.0...v7.0.0-0
392412
[6.2.1]: https://github.com/tj/commander.js/compare/v6.2.0..v6.2.1

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commander",
3-
"version": "7.0.0-1",
3+
"version": "7.0.0-2",
44
"description": "the complete solution for node.js command-line programs",
55
"keywords": [
66
"commander",

0 commit comments

Comments
 (0)