Skip to content

fix(deps): update dependencies (major)#364

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/major-dependencies
Open

fix(deps): update dependencies (major)#364
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/major-dependencies

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jan 15, 2023

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
commander 9.4.115.0.0 age confidence
typescript (source) 4.8.46.0.3 age confidence

Release Notes

tj/commander.js (commander)

v15.0.0

Compare Source

Commander 15 is ESM only. This is expected to be seamless for ESM consumers, but some CommonJS consumers may hit issues with tooling requiring configuration for ESM-only dependencies. See Migration Tips below.

The release of Commander 15 moves Commander 14 into maintenance. Commander 14 will get security updates for
12 months (to May 2027). For more info see Release Policy.

Added
  • show excess command-arguments in error message ([#​2384])
Fixed
  • Breaking: only lone --no-* option sets default option value to true, default not implicitly set when define both positive and negative option in either order ([#​2405])
  • update example to use compatible character for MINGW64 ([#​2475])
Changed
  • Breaking: migrated Commander implementation from CommonJS to ESM ([#​2464])
  • Breaking: Commander 15 requires Node.js v22.12.0 or higher (for require(esm)).
  • dev: switch tests from Jest to node:test test runner ([#​2463])
Deleted
  • Breaking: removed deprecated export of commander/esm.mjs ([#​2464])
Migration Tips

Commander 15 is ESM only, but this does not mean you need to migrate to ESM to use it. Importing ESM from CommonJS is
supported by Node.js, and Bun, and Deno. Hopefully it Just Works for you! However, you may be using a different runtime or
some other part of your setup that may not yet natively support importing ESM from CommonJS, such as your testing framework
or bundler.

If you have problems using Commander 15 in your environment, one option is stay on Commander 14 for now. Commander 14 will
get security updates until May 2027 and things will hopefully improve for your setup in the meantime.

v14.0.3

Compare Source

Added
Changes
  • old major versions now supported for 12 months instead of just previous major version, to give predictable end-of-life date ([#​2462])
  • clarify typing for deprecated callback parameter to .outputHelp() ([#​2427])
  • simple readability improvements to README ([#​2465])

v14.0.2

Compare Source

Changed
  • improve negative number auto-detection test ([#​2428])
  • update (dev) dependencies

v14.0.1

Compare Source

Fixed
  • broken markdown link in README ([#​2369])
Changed
  • improve code readability by using optional chaining ([#​2394])
  • use more idiomatic code with object spread instead of Object.assign() ([#​2395])
  • improve code readability using string.endsWith() instead of string.slice() ([#​2396])
  • refactor .parseOptions() to process args array in-place ([#​2409])
  • change private variadic support routines from ._concatValue() to ._collectValue() (change code from array.concat() to array.push()) ([#​2410])
  • update (dev) dependencies

v14.0.0

Compare Source

Added
  • support for groups of options and commands in the help using low-level .helpGroup() on Option and Command, and higher-level .optionsGroup() and .commandsGroup() which can be used in chaining way to specify group title for following options/commands ([#​2328])
  • support for unescaped negative numbers as option-arguments and command-arguments ([#​2339])
  • TypeScript: add parseArg property to Argument class ([#​2359])
Fixed
  • remove bogus leading space in help when option has default value but not a description ([#​2348])
  • .configureOutput() now makes copy of settings instead of modifying in-place, fixing side-effects ([#​2350])
Changed
  • Breaking: Commander 14 requires Node.js v20 or higher
  • internal refactor of Help class adding .formatItemList() and .groupItems() methods ([#​2328])

v13.1.0

Compare Source

Added
  • support a pair of long option flags to allow a memorable shortened flag, like .option('--ws, --workspace') ([#​2312])

v13.0.0

Compare Source

Added
  • support multiple calls to .parse() with default settings ([#​2299])
  • add .saveStateBeforeParse() and .restoreStateBeforeParse() for use by subclasses ([#​2299])
  • style routines like styleTitle() to add color to help using .configureHelp() or Help subclass ([#​2251])
  • color related support in .configureOutput() for getOutHasColors(), getErrHasColors(), and stripColor() ([#​2251])
  • Help property for minWidthToWrap ([#​2251])
  • Help methods for displayWidth(), boxWrap(), preformatted() et al ([#​2251])
Changed
  • Breaking: excess command-arguments cause an error by default, see migration tips ([#​2223])
  • Breaking: throw during Option construction for unsupported option flags, like multiple characters after single - ([#​2270])
    • note: support for dual long option flags added in Commander 13.1
  • Breaking: throw on multiple calls to .parse() if storeOptionsAsProperties: true ([#​2299])
  • TypeScript: include implicit this in parameters for action handler callback ([#​2197])
Deleted
  • Breaking: Help.wrap() refactored into formatItem() and boxWrap() ([#​2251])
Migration Tips

Excess command-arguments

It is now an error for the user to specify more command-arguments than are expected. (allowExcessArguments is now false by default.)

Old code:

program.option('-p, --port <number>', 'port number');
program.action((options) => {
  console.log(program.args);
});

Now shows an error:

$ node example.js a b c
error: too many arguments. Expected 0 arguments but got 3.

You can declare the expected arguments. The help will then be more accurate too. Note that declaring
new arguments will change what is passed to the action handler.

program.option('-p, --port <number>', 'port number');
program.argument('[args...]', 'remote command and arguments'); // expecting zero or more arguments
program.action((args, options) => {
  console.log(args);
});

Or you could suppress the error, useful for minimising changes in legacy code.

program.option('-p, --port', 'port number');
program.allowExcessArguments();
program.action((options) => {
  console.log(program.args);
});

Stricter option flag parsing

Commander now throws an error for option flag combinations that are not supported.
In particular, a short flag with multiple characters is now an error.

program.option('-ws, --workspace'); // throws error

A short option has a single character:

program.option('-w, --workspace');

Or from Commander 13.1 you can have an extra long flag instead of a short flag to allow a more memorable shortcut for the full name:

program.option('--ws, --workspace');

v12.1.0

Compare Source

Added
  • auto-detect special node flags node --eval and node --print when call .parse() with no arguments ([#​2164])
Changed
  • prefix require of Node.js core modules with node: ([#​2170])
  • format source files with Prettier ([#​2180])
  • switch from StandardJS to directly calling ESLint for linting ([#​2153])
  • extend security support for previous major version of Commander ([#​2150])
Removed
  • removed unimplemented Option.fullDescription from TypeScript definition ([#​2191])

v12.0.0

Compare Source

Added
  • .addHelpOption() as another way of configuring built-in help option ([#​2006])
  • .helpCommand() for configuring built-in help command ([#​2087])
Fixed
  • Breaking: use non-zero exit code when spawned executable subcommand terminates due to a signal ([#​2023])
  • Breaking: check passThroughOptions constraints when using .addCommand and throw if parent command does not have .enablePositionalOptions() enabled ([#​1937])
Changed
  • Breaking: Commander 12 requires Node.js v18 or higher ([#​2027])
  • Breaking: throw an error if add an option with a flag which is already in use ([#​2055])
  • Breaking: throw an error if add a command with name or alias which is already in use ([#​2059])
  • Breaking: throw error when calling .storeOptionsAsProperties() after setting an option value ([#​1928])
  • replace non-standard JSDoc of @api private with documented @private ([#​1949])
  • .addHelpCommand() now takes a Command (passing string or boolean still works as before but deprecated) ([#​2087])
  • refactor internal implementation of built-in help option ([#​2006])
  • refactor internal implementation of built-in help command ([#​2087])
Deprecated
  • .addHelpCommand() passing string or boolean (use .helpCommand() or pass a Command) ([#​2087])
Removed
  • Breaking: removed default export of a global Command instance from CommonJS (use the named program export instead) ([#​2017])
Migration Tips

global program

If you are using the deprecated default import of the global Command object, you need to switch to using a named import (or create a new Command).

// const program = require('commander');
const { program } = require('commander');

option and command clashes

A couple of configuration problems now throw an error, which will pick up issues in existing programs:

  • adding an option which uses the same flag as a previous option
  • adding a command which uses the same name or alias as a previous command

v11.1.0

Compare Source

Fixed
  • TypeScript: update OptionValueSource to allow any string, to match supported use of custom sources ([#​1983])
  • TypeScript: add that Command.version() can also be used as getter ([#​1982])
  • TypeScript: add null return type to Commands.executableDir(), for when not configured ([#​1965])
  • subcommands with an executable handler and only a short help flag are now handled correctly by the parent's help command ([#​1930])
Added
  • registeredArguments property on Command with the array of defined Argument (like Command.options for Option) ([#​2010])
  • TypeScript declarations for Option properties: envVar, presetArg ([#​2019])
  • TypeScript declarations for Argument properties: argChoices, defaultValue, defaultValueDescription ([#​2019])
  • example file which shows how to configure help to display any custom usage in the list of subcommands ([#​1896])
Changed
  • (developer) refactor TypeScript configs for multiple use-cases, and enable checks in JavaScript files in supporting editors ([#​1969])
Deprecated
  • Command._args was private anyway, but now available as registeredArguments ([#​2010])

v11.0.0

Compare Source

Fixed
  • help command works when help option is disabled ([#​1864])
Changed
  • leading and trailing spaces are now ignored by the .arguments() method ([#​1874])
  • refine "types" exports for ESM to follow TypeScript guidelines ([#​1886])
  • Breaking: Commander 11 requires Node.js v16 or higher

v10.0.1

Compare Source

Added
Fixed
  • remove unused Option.optionFlags property from TypeScript definition ([#​1844])
Changed
  • assume boolean option intended if caller passes string instead of hash to .implies() ([#​1854])

v10.0.0

Compare Source

Added
  • wrap command description in help ([#​1804])
Changed
  • Breaking: Commander 10 requires Node.js v14 or higher

v9.5.0

Compare Source

Added
  • .getOptionValueSourceWithGlobals() ([#​1832])
  • showGlobalOptions for .configureHelp{} and Help ([#​1828])
microsoft/TypeScript (typescript)

v6.0.3

Compare Source

v6.0.2

Compare Source

v5.9.3: TypeScript 5.9.3

Compare Source

Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.

For release notes, check out the release announcement

Downloads are available on:

v5.9.2: TypeScript 5.9

Compare Source

Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.

For release notes, check out the release announcement

Downloads are available on:

v5.8.3: TypeScript 5.8.3

Compare Source

Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.

For release notes, check out the release announcement.

Downloads are available on:

v5.8.2: TypeScript 5.8

Compare Source

For release notes, check out the release announcement.

Downloads are available on:

v5.7.3: TypeScript 5.7.3

Compare Source

For release notes, check out the release announcement.

Downloads are available on npm

v5.7.2: TypeScript 5.7

Compare Source

For release notes, check out the release announcement.

Downloads are available on:

v5.6.3: TypeScript 5.6.3

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.6.2: TypeScript 5.6

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.5.4: TypeScript 5.5.4

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.5.3: TypeScript 5.5.3

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.5.2: TypeScript 5.5

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.4.5: TypeScript 5.4.5

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.4.4: TypeScript 5.4.4

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.4.3: TypeScript 5.4.3

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.4.2: TypeScript 5.4

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.3.3: TypeScript 5.3.3

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.3.2: TypeScript 5.3

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.2.2: TypeScript 5.2

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.1.6: TypeScript 5.1.6

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on npm

v5.1.5: TypeScript 5.1.5

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.1.3: TypeScript 5.1.3

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.0.4: TypeScript 5.0.4

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.0.3: TypeScript 5.0.3

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v5.0.2: TypeScript 5.0

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

v4.9.5: TypeScript 4.9.5

Compare Source

For release notes, check out the release announcement.

Downloads are available on:

Changes:

v4.9.4: TypeScript 4.9.4

Compare Source

For release notes, check out the release announcement.

For the complete list of fixed issues, check out the

Downloads are available on:

Changes:

This list of changes was auto generated.

v4.9.3: TypeScript 4.9

Compare Source

For release notes, check out the release announcement.

Downloads are available on:

Changes:

See More

Note

PR body was truncated to here.


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • "after 10pm on monday,before 5am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/major-dependencies branch from af9dc1d to 036aee1 Compare March 16, 2023 16:59
@renovate renovate Bot changed the title fix(deps): update dependency commander to v10 fix(deps): update dependencies (major) Mar 16, 2023
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 036aee1 to 8a5a114 Compare March 30, 2023 23:24
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 8a5a114 to b74fb4a Compare April 7, 2023 19:46
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from b74fb4a to 7b7ab11 Compare April 15, 2023 07:10
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 7b7ab11 to e27d7ac Compare June 1, 2023 18:28
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from e27d7ac to 7d5aeec Compare June 16, 2023 01:06
@renovate renovate Bot force-pushed the renovate/major-dependencies branch 2 times, most recently from 1f85250 to cf91681 Compare June 29, 2023 00:01
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from cf91681 to 277d6eb Compare August 24, 2023 20:22
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 277d6eb to 7e18b01 Compare October 13, 2023 01:50
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 7e18b01 to 54b19a3 Compare November 20, 2023 18:36
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 54b19a3 to 3b1cd2d Compare December 6, 2023 23:17
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 3b1cd2d to 9dd23a2 Compare February 3, 2024 10:49
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 9dd23a2 to 9f806f7 Compare March 6, 2024 19:28
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 9f806f7 to df5486f Compare March 20, 2024 20:10
@renovate renovate Bot force-pushed the renovate/major-dependencies branch 2 times, most recently from 45d3bc2 to 39fbd8d Compare April 10, 2024 14:39
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 39fbd8d to 4feb480 Compare May 18, 2024 15:52
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 4feb480 to 7d9c27c Compare June 20, 2024 18:49
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 7d9c27c to 6d8752f Compare July 1, 2024 20:13
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 6d8752f to 82bc711 Compare July 23, 2024 02:25
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 82bc711 to 413cd3f Compare September 9, 2024 19:22
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 413cd3f to 761fac3 Compare October 9, 2024 01:14
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 761fac3 to ae6277f Compare November 22, 2024 19:21
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from ae6277f to d4ef5fb Compare December 30, 2024 06:58
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from d4ef5fb to 4fe2a46 Compare January 8, 2025 21:42
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 4fe2a46 to ca0f24e Compare January 21, 2025 00:31
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from ca0f24e to 3fce2f2 Compare February 28, 2025 18:52
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 3fce2f2 to 799d9fb Compare April 5, 2025 01:53
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 799d9fb to b60d055 Compare May 18, 2025 06:28
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from b60d055 to e18547c Compare August 1, 2025 00:44
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from e18547c to 128621d Compare September 13, 2025 00:10
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 128621d to 00b1d4f Compare October 1, 2025 01:09
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 00b1d4f to 591e8d4 Compare October 25, 2025 14:36
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 591e8d4 to 3a82861 Compare January 31, 2026 04:42
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 3a82861 to 0166ba3 Compare February 17, 2026 15:36
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 0166ba3 to 641c440 Compare March 23, 2026 17:19
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from 641c440 to f0ac009 Compare April 17, 2026 02:31
@renovate renovate Bot force-pushed the renovate/major-dependencies branch from f0ac009 to bcdf802 Compare May 29, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants