All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
The version numbering does not follow semantic versioning but instead aligns with the commander
version number. The installed version of this package should match the major and minor version numbers of the installed commander package, but the patch version number is independent (following pattern used by Definitely Typed).
12.1.0 (2024-05-18)
- removed unimplemented Option.fullDescription from TypeScript definition (#70)
12.0.1 (2023-03-02)
- include implicit
this
in parameters for action handler callback #59
12.0.0 (2023-02-04)
- update
peerDependencies
to[email protected]
, which requires Node.js v18 or higher
12.0.0-1 (2023-11-13)
- use prerelease Commander version for peerDependencies
12.0.0-0 (2023-11-12)
- update
peerDependencies
to[email protected]
, which requires Node.js v18 or higher
11.1.0 (2023-10-15)
Option
properties:envVar
,presetArg
(#48)Argument
properties:argChoices
,defaultValue
,defaultValueDescription
(#48)Command
properties:options
,registeredArguments
(#50)
commands
property ofCommand
is now readonly (#48)- update
peerDependencies
to[email protected]
(#48)
- remove unused
Option.optionFlags
property (#48) - add that
Command.version()
can also be used as getter (#48) - add null return type to
Commands.executableDir()
, for when not configured (#48) - preserve option typings when adding arguments to
Command
(#49)
11.0.0 (2023-06-16)
- update
peerDependencies
to[email protected]
, which requires Node.js v16 or higher
10.0.3 (2023-03-03)
- narrow types based on
.choices()
(#29)
- improve Option type inferences for certain combinations of configuration (#31)
- mark
.action()
callback as allowing promises (#33)
10.0.2 (2023-01-27)
createOption
passes through description into object constructor. (#25)
10.0.1 (2023-01-17)
createCommand
,createArgument
, andcreateOption
pass through arguments into object constructors. (#23)
10.0.0 (2023-01-14)
- update
peerDependencies
to[email protected]
, which requires Node.js v14 or higher
9.5.0 (2023-01-07)
- update
peerDependencies
to[email protected]
9.4.1 (2022-11-01)
- added
esm.mjs
to package (#16)
9.4.0 (2022-10-28)
- type
processedArgs
- infer types from
.createOption()
- infer types from
.createArgument()
- update
peerDependencies
to[email protected]
0.3.0 (2022-09-07)
- add
CommandUnknownOpts
for when Command not strongly typed - use
CommandUnknownOpts
throughout Help, so can pass in commands which areCommand
orCommandUnknownOpts
- use
CommandUnknownOpts
withaddCommand
- type
.hook()
arguments - add inferred option names and types to
.getOptionValue()
, but allow unknown and returnunknown
- add
implied
toOptionValueSource
- switch
OptionValues
to returning unknown (goodbye another any!) - allow user defined source on get and set
0.2.0 (2022-08-23)
- a missing variadic optional command-line argument should be
[]
notundefined
- use simple array type rather than fancy non-empty tuple, like
string[]
rather than[string, ...string[]]
- infer types from
.argument()
.arguments()
.addArgument()
.command()
.option()
.addOption()
- inferred types for
.action()
- inferred types for
.opts()