Skip to content

Releases: commander-js/extra-typings

v12.1.0

19 May 02:30
Compare
Choose a tag to compare

Changed

  • use ESLint for linting (#65)
  • format source files with Prettier (#66)

Removed

  • removed unimplemented Option.fullDescription from TypeScript definition (#70)

v12.0.1

01 Mar 03:08
679ef95
Compare
Choose a tag to compare

Changed

  • include implicit this in parameters for action handler callback (#59)

v12.0.0

03 Feb 20:44
69f0c50
Compare
Choose a tag to compare

Changed

v12.0.0-1

13 Nov 04:43
Compare
Choose a tag to compare
v12.0.0-1 Pre-release
Pre-release

Fixed

  • use prerelease Commander version for peerDependencies

v12.0.0-0

12 Nov 06:05
Compare
Choose a tag to compare
v12.0.0-0 Pre-release
Pre-release

Changed

v11.1.0

15 Oct 01:14
Compare
Choose a tag to compare

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)

v11.0.0

16 Jun 23:01
1c29b98
Compare
Choose a tag to compare

Changed

v10.0.3

03 Mar 06:39
2100da9
Compare
Choose a tag to compare

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)

v10.0.2

28 Jan 06:39
3544c26
Compare
Choose a tag to compare

Fixed

  • createOption passes through description into object constructor. (#25)

v10.0.1

17 Jan 09:10
29f5beb
Compare
Choose a tag to compare

Fixed

  • global createCommand, createArgument, and createOption now pass through arguments into object constructors. (#23)