Release v5.0.1
BREAKING CHANGE
- Signature of
@Consoledecorator has been updated.
ConsoleOptions has been replaced by CreateCommandOptions, to update from ^4.0.0 you simply have to change propertynamebycommand.
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.0or using yarnyarn 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
- fix typo by @n0mer in #214
- add missing comma by @n0mer in #215
- Fix typos in readme by @marojeee in #227
- Bump @types/node from 14.11.8 to 14.14.11 by @dependabot in #259
- Update readme. Add app.close() before process.exit(). by @muhdfaiz in #276
- Update README. Add await for app.close() by @Dador in #283
- Bump node-notifier from 8.0.0 to 8.0.1 by @dependabot in #263
- Bump highlight.js from 10.2.1 to 10.4.1 by @dependabot in #255
- Bump @typescript-eslint/parser from 4.4.1 to 4.15.2 by @dependabot in #289
- v5.0.0 by @Rmannn in #304
New Contributors
- @n0mer made their first contribution in #214
- @marojeee made their first contribution in #227
- @muhdfaiz made their first contribution in #276
- @Dador made their first contribution in #283
Full Changelog: v4.0.0...v5.0.1