patternlab-node icon indicating copy to clipboard operation
patternlab-node copied to clipboard

refactor: updated dependency commander

Open mfranzke opened this issue 4 years ago • 0 comments

Summary of changes:

We're updating the dependency commander with this pull request.

Analysis for necessary changes is ongoing.

Changes to the package

List of all breaking changes according to the commanderpackage changelog:

8.0.0 (2021-06-25)

Changed
  • Breaking: Help method .visibleArguments() returns array of Argument (#1490)
  • Breaking: Commander 8 requires Node.js 12 or higher (#1500)
  • Breaking: CommanderError code commander.invalidOptionArgument renamed commander.invalidArgument (#1508)
  • Breaking: TypeScript declaration for .addTextHelp() callback no longer allows result of undefined, now just string (#1516)
Removed
  • Breaking: TypeScript declaration for default export of global Command object (#1520)
    • (still available as named program export)

7.0.0 (2021-01-15)

Migration Tips

Changed
  • Breaking: options are stored safely by default, not as properties on the command (#1409)
    • this especially affects accessing options on program, use program.opts()
    • revert behaviour with .storeOptionsAsProperties()
  • Breaking: action handlers are passed options and command separately (#1409)
  • Breaking: errors now displayed using process.stderr.write() instead of console.error()
Deleted
  • Breaking: .passCommandToAction() (#1409)
    • no longer needed as action handler is passed options and command
  • Breaking: "extra arguments" parameter to action handler (#1409)
    • if being used to detect excess arguments, there is now an error available by setting .allowExcessArguments(false)

mfranzke avatar Dec 29 '21 22:12 mfranzke