Releases: commander-js/extra-typings
Releases · commander-js/extra-typings
v13.0.0
Added
- strongly type
.optsWithGlobals()
to include inferred globals (#78)
- weakly type
.getOptionValueSourceWithGlobals()
to include inferred globals (#78)
- infer narrow types for choices, so no longer need to specify as
const
(#79)
Changed
- Breaking: Typescript 5.0 or higher is required (#79)
v13.0.0-1
Added
- strongly type
.optsWithGlobals()
to include inferred globals (#78)
- weakly type
.getOptionValueSourceWithGlobals()
to include inferred globals (#78)
- infer narrow types for choices, so no longer need to specify as
const
(#79)
Changed
- Breaking: Typescript 5.0 or higher is required (#79)
v12.1.0
Changed
- use ESLint for linting (#65)
- format source files with Prettier (#66)
Removed
- removed unimplemented
Option.fullDescription
from TypeScript definition (#70)
v12.0.1
Changed
- include implicit
this
in parameters for action handler callback (#59)
v12.0.0-1
Fixed
- use prerelease Commander version for peerDependencies
v11.1.0
Added
Option
properties: envVar
, presetArg
(#48)
Argument
properties: argChoices
, defaultValue
, defaultValueDescription
(#48)
Command
properties: options
, registeredArguments
(#50)
Changed
Fixed
- 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)
v10.0.3
Added
- narrow types based on
.choices()
(#29)
Fixed
- improve Option type inferences for certain combinations of configuration (#31)
- mark
.action()
callback as allowing promises (#33)