Skip to content

Upgrading commander 13 to 14

Breaking13.1.0 → 14.0.3Breaking1New3Changed4Fixed4Other8

BreakingUpgrade verdict

1 breaking change.

  • You must upgrade to Node.js version 20 or newer to use this version.
1 item needs code or config changes

Node.js requirement changed in 14.0.0: >=18 → >=20.

Breaking1
Commander 14 requires Node.js v20 or higher.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • changed: method Command.argument<T>(flags: string, description: string, fn: (value: string, previous: T) => T, defaultValue?: T): this → method Command.argument<T>(flags: string, description: string, parseArg: (value: string, previous: T) => T, defaultValue?: T): this
  • changed: method Command.help(cb?: (str: string) => string): never → method Command.help(cb: (str: string) => string): never
  • changed: method Command.outputHelp(cb?: (str: string) => string): void → method Command.outputHelp(cb: (str: string) => string): void
  • added: method Command.commandsGroup(): string
  • added: method Command.commandsGroup(heading: string): this
  • added: method Command.helpGroup(): string
  • added: method Command.helpGroup(heading: string): this
  • added: method Command.optionsGroup(): string
  • added: method Command.optionsGroup(heading: string): this
  • added: method Help.formatItemList(heading: string, items: string[], helper: Help): string[]
  • added: method Help.groupItems<T extends Command | Option>(unsortedItems: T[], visibleItems: T[], getGroup: (item: T) => string): Map<string, T[]>
  • added: method Option.helpGroup(heading: string): this
  • added: property Argument.parseArg?: <T>(value: string, previous: T) => T
  • added: property Option.helpGroupHeading?: string