Skip to content

Release v5.0.1

Compare
Choose a tag to compare
@github-actions github-actions released this 20 May 20:37

BREAKING CHANGE

  • Signature of @Console decorator has been updated.
    ConsoleOptions has been replaced by CreateCommandOptions, to update from ^4.0.0 you simply have to change property name by command.
    eg: @Console({name: "myCommand"}) => @Console({command: "myCommand"})
  • Command handler signature has changed. Options are now passed to the handler. See the command handler signature for more details
  • Commander@< 7.2.0 is not any more supported. Please upgrade to latest version npm install commander@^7.2.0 or using yarn yarn add commander@^7.2.0
  • The helper formatResponse has been removed

Changed

  • Update tests
  • Remove calls to command.exitOverride() to simplify code
  • Native errors handling with commander
  • update docs
  • update dependencies
  • Update to work with commander@7.2.0

Added

  • All commands and sub commands are stored in the ConsoleService and can be found using the ConsoleService.getCommand(name: string). Name is a command path separated by dots. eg: parent.command.subcommand
  • Sub commands can now be registered on other subCommand without any args. If a parent command define options, they can be retrieved using command.parent.opts() inside the executed subCommand. This allow you to create group of command with global options based on parent options

What's Changed

New Contributors

Full Changelog: v4.0.0...v5.0.1