@@ -8,7 +8,26 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
8
8
<!-- markdownlint-disable MD024 -->
9
9
<!-- markdownlint-disable MD004 -->
10
10
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
12
31
13
32
### Migration Tips
14
33
@@ -387,6 +406,7 @@ to expand `-fb` to `-f -b` rather than `-f b`.
387
406
[ #1390 ] : https://github.com/tj/commander.js/pull/1390
388
407
389
408
[ 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
390
410
[ 7.0.0-1 ] : https://github.com/tj/commander.js/compare/v7.0.0-0...v7.0.0-1
391
411
[ 7.0.0-0 ] : https://github.com/tj/commander.js/compare/v6.2.0...v7.0.0-0
392
412
[ 6.2.1 ] : https://github.com/tj/commander.js/compare/v6.2.0..v6.2.1
0 commit comments