Skip to content

Commit 2aaab24

Browse files
joshua-rogers-exodusshadowspawncyyynthiamshimavonagam
authored
chore: update fork to 12.1.0 and reapply hardenings (#2)
* Wrap command description in help (tj#1804) * Wrap command description. Replace trimRight by trimEnd. * Preserve empty lines when wrapping * Simplify line end handling * Translate Windows line endings to keep things sane * Bump supported versions (tj#1808) * Update minimum version of node in README (tj#1815) * Update dependencies (tj#1826) * Add Command.options to TypeScript (tj#1827) Make options and commands readonly to discourage direct manipulation. Co-authored-by: Cynthia <[email protected]> Co-authored-by: Marcelo Shima <[email protected]> Co-authored-by: Dmitry Maganov <[email protected]> * *: update dev deps and make tweaks - Update the developer dependencies to their latest versions. - Remove usage of the `--experimental-modules` CLI flag as it's a no-op now. - Change the typings file to make the linters happy. * Update CHANGELOG (tj#1840) * 10.0.0 * Remove unused property (tj#1844) * Assume a string parameter to implies is name of boolean option. (tj#1854) * Link to Help class in configure-help.js and README. * Describe help description wrapping * Add parsing life cycle and hooks * Add new documentation to README * Could be multiple hooks, pluralise * Update CHANGELOG and version for 10.0.1 * ci: add 20.x to `node-version` * Have help command call help directly for subcommands, when possible (tj#1864) * Add npm run-script to README (tj#1872) * trim() input string of .arguments method * Deprecate import from commander/esm.mjs (tj#1887) * Add separate type file for esm per TypeScript guidelines (tj#1886) * Update to minimum of node 16 - update dependencies - fresh package-lock.json * Lint fixes for latest rules * Update CHANGELOG for 11.0.0 * Adjust date * Bump version * Add example of displaying custom usage in subcommand list (tj#1896) * Add example of displaying custom usage in subcommand list * Make example more focused * Bump extra Commander version number in lock file (tj#1905) * Add missing checks for passThroughOptions * Add tests for illegal passThroughOptions * Remove illegal passThroughOptions check deemed unnecessary * Use weaker wording: "broken" instead of "illegal" * Unclutter error message in broken passThrough checks Co-authored-by: John Gee <[email protected]> * Refactor _checkForBrokenPassThrough() to make it instance-aware * Fix grammar in docs * Fix indentation Signed-off-by: abetomo <[email protected]> * Watch for npm package updates with dependabot Signed-off-by: abetomo <[email protected]> * Add note on inherited settings to docs (cherry picked from commit ac955dc) * Improve docs about inherited settings (cherry picked from commit dfe2fc7) Co-authored-by: John Gee <[email protected]> * Fix executableDir() return type * Fix version() parameter type Borrowed from a3f0e28 that was supposed to land in the now-closed tj#1921. * Change initial variable values in test for better error messages (cherry picked from commit 87db4ba) * Do not use undefined long help option flag in legacy code * Revert "Fix version() parameter type" This reverts commit e8bea4a. * Fix help for commands with executable handler & only a short help flag * Throw error on options-as-properties config after setting option values (cherry picked from commit 20c7cfa) * Add test for storeOptionsAsProperties() after setting option value * Call storeOptionsAsProperties() with appropriate parameter value in test * Introduce _getCommandAndAncestors() Replaces getCommandAndParents(): - turned into an instance method - used "ancestors" instead of "parents" because it is more precise (cherry picked from commit aa280af) * Use _getCommandAndAncestors() consistently (cherry picked from commit 777a452) * Use _getCommandAndAncestors() less aggressively Only call when all elements are to be iterated. Resort to manual iteration via .parent in other cases. * Improve chain variable name (tj#1958) * Refactor to wrap invalid argument (tj#1977) Wrap handling command.invalidArgument to simplify calling code * Types for version getter (tj#1982) * Update types since .version() returns version. * Remove extra space * Make OptionValueSource a string with well-known values for auto-complete. (tj#1983) * Move Jest configuration to config file (tj#2005) * Rework option inline doc (tj#2009) * Work-around bug in Jest (tj#2011) Co-authored-by: Wee Bit <[email protected]> * Add public Arguments property (tj#2010) Co-authored-by: Wee Bit <[email protected]> * Bump actions/checkout from 3 to 4 (tj#2012) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Explicitly export factory functions (tj#2013) Co-authored-by: Wee Bit <[email protected]> * Revert factory function reexport (tj#2014) * Replace {any} with {*} as native JSDoc (tj#2015) * Remove default export of global program (tj#2017) * Switch @api private to official JSDoc (tj#2018) * Add more Option and Argument properties to typings (tj#2019) * Refactor type-checking setup (tj#1969) * Refactor type-checking setup * Refactor tsconfig particularly to enable loose check in VSCode, strict checks run separately for type definitions * Simplify includes for tsconfig * Explicitly separate the tsconfig for use with npm run-scripts * Improve comment * Resolved couple of work-in-progress comments * Update tsconfig to recommended node16 lib/module/target * Make checks strict by default and opt-out * Restore broken code to merge later changes * Updates after merge --------- Co-authored-by: Wee Bit <[email protected]> * Drop Node.js 16 (tj#2027) * Exit with non-zero code when subprocess terminated by signal (tj#2023) * Comment out new misuse check until a major version (tj#2026) * Refactor headings (tj#2028) * Update CHANGELOG for 11.1.0 (tj#2025) * Update CHANGELOG for 11.1.0 * add tsconfig refactor to CHANGELOG * Add tentative release date * Add PR reference * Bump version * Restore extra sanity check when enabling storeOptionsAsProperties (tj#2029) * Bump @types/node from 20.2.5 to 20.8.5 (tj#2034) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.2.5 to 20.8.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint from 8.41.0 to 8.51.0 (tj#2033) Bumps [eslint](https://github.com/eslint/eslint) from 8.41.0 to 8.51.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.41.0...v8.51.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/parser from 5.59.7 to 5.62.0 (tj#2030) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.59.7 to 5.62.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.62.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-config-standard from 17.0.0 to 17.1.0 (tj#2031) Bumps [eslint-config-standard](https://github.com/standard/eslint-config-standard) from 17.0.0 to 17.1.0. - [Commits](standard/eslint-config-standard@v17.0.0...v17.1.0) --- updated-dependencies: - dependency-name: eslint-config-standard dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/eslint-plugin from 5.59.7 to 6.7.5 (tj#2032) * Bump @typescript-eslint/eslint-plugin from 5.59.7 to 6.7.5 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.59.7 to 6.7.5. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.5/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Fix for `Could not resolve dependency` --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: abetomo <[email protected]> * Add explicit note to only call parse once (tj#2036) * Bump tsd from 0.28.1 to 0.29.0 Bumps [tsd](https://github.com/SamVerschueren/tsd) from 0.28.1 to 0.29.0. - [Release notes](https://github.com/SamVerschueren/tsd/releases) - [Commits](tsdjs/tsd@v0.28.1...v0.29.0) --- updated-dependencies: - dependency-name: tsd dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Add migration tips for default import * Bump @types/jest from 29.5.5 to 29.5.6 (tj#2047) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.5.5 to 29.5.6. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-n from 15.7.0 to 16.2.0 (tj#2044) Bumps [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) from 15.7.0 to 16.2.0. - [Release notes](https://github.com/eslint-community/eslint-plugin-n/releases) - [Commits](eslint-community/eslint-plugin-n@15.7.0...16.2.0) --- updated-dependencies: - dependency-name: eslint-plugin-n dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/parser from 6.7.5 to 6.8.0 (tj#2043) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.7.5 to 6.8.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.8.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-jest from 27.4.2 to 27.4.3 (tj#2045) Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.4.2 to 27.4.3. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v27.4.2...v27.4.3) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint from 8.51.0 to 8.52.0 (tj#2046) Bumps [eslint](https://github.com/eslint/eslint) from 8.51.0 to 8.52.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.51.0...v8.52.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-jest from 27.4.3 to 27.6.0 (tj#2049) Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.4.3 to 27.6.0. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v27.4.3...v27.6.0) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/node from 20.8.6 to 20.8.9 (tj#2052) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.8.6 to 20.8.9. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/setup-node from 3 to 4 (tj#2054) Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/eslint-plugin from 6.7.5 to 6.9.0 (tj#2053) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.7.5 to 6.9.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.9.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-import from 2.28.1 to 2.29.0 (tj#2051) Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.28.1 to 2.29.0. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.28.1...v2.29.0) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/parser from 6.8.0 to 6.9.0 (tj#2050) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.8.0 to 6.9.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.9.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Change npm package checks in dependabot to monthly (tj#2057) github-actions will remain weekly as it is updated infrequently. * Throw error when add option with clashing flags (tj#2055) * Add check for overlapping command names or aliases (tj#2059) Co-authored-by: aweebit <[email protected]> * Update CHANGELOG for 12.0.0 (tj#2066) * Prepare for prerelease 12.0.0-0 * Bump required version in package-lock * 12.0.0-0 * Bump @types/jest from 29.5.6 to 29.5.7 (tj#2064) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.5.6 to 29.5.7. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint from 8.52.0 to 8.53.0 (tj#2061) Bumps [eslint](https://github.com/eslint/eslint) from 8.52.0 to 8.53.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.52.0...v8.53.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/node from 20.8.9 to 20.8.10 (tj#2063) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.8.9 to 20.8.10. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/eslint-plugin from 6.9.0 to 6.9.1 (tj#2060) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.9.0 to 6.9.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.9.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/parser from 6.9.0 to 6.9.1 (tj#2062) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.9.0 to 6.9.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.9.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/jest from 29.5.7 to 29.5.8 (tj#2076) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.5.7 to 29.5.8. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/node from 20.8.10 to 20.9.0 (tj#2074) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.8.10 to 20.9.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/eslint-plugin from 6.9.1 to 6.10.0 (tj#2072) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.9.1 to 6.10.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.10.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/parser from 6.9.1 to 6.10.0 (tj#2073) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.9.1 to 6.10.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.10.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-n from 16.2.0 to 16.3.1 (tj#2075) Bumps [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) from 16.2.0 to 16.3.1. - [Release notes](https://github.com/eslint-community/eslint-plugin-n/releases) - [Commits](eslint-community/eslint-plugin-n@16.2.0...16.3.1) --- updated-dependencies: - dependency-name: eslint-plugin-n dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update url per npm advice (tj#2077) * Add Removed section to Deprecated (tj#2078) * Bump eslint from 8.53.0 to 8.54.0 (tj#2082) Bumps [eslint](https://github.com/eslint/eslint) from 8.53.0 to 8.54.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.53.0...v8.54.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-config-standard-with-typescript from 39.1.1 to 40.0.0 (tj#2083) Bumps [eslint-config-standard-with-typescript](https://github.com/standard/eslint-config-standard-with-typescript) from 39.1.1 to 40.0.0. - [Release notes](https://github.com/standard/eslint-config-standard-with-typescript/releases) - [Changelog](https://github.com/standard/eslint-config-standard-with-typescript/blob/master/CHANGELOG.md) - [Commits](mightyiam/eslint-config-love@v39.1.1...v40.0.0) --- updated-dependencies: - dependency-name: eslint-config-standard-with-typescript dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/parser from 6.10.0 to 6.13.1 (tj#2091) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.10.0 to 6.13.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.13.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Rework exitOverride description (tj#2098) * Rework exitOverride description * Fix description to match implementation * Tweak wording again * Take out the first in case people think it is before displaying helper/error. * Improve JSDoc (tj#2103) * Bump github/codeql-action from 2 to 3 (tj#2108) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@v2...v3) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/eslint-plugin from 6.10.0 to 6.18.0 (tj#2117) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.10.0 to 6.18.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.18.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump typescript from 5.2.2 to 5.3.3 (tj#2100) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.2.2 to 5.3.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.2.2...v5.3.3) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/jest from 29.5.8 to 29.5.11 (tj#2102) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.5.8 to 29.5.11. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint from 8.54.0 to 8.56.0 (tj#2107) Bumps [eslint](https://github.com/eslint/eslint) from 8.54.0 to 8.56.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.54.0...v8.56.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Refactor help command implementation to hold actual Command (tj#2087) * Refactor help option implementation to hold actual Option (tj#2006) * Add 12.0.0-1 changes to CHANGELOG * 12.0.0-1 * Add links in CHANGELOG * Update dependencies preparing for release (tj#2132) * Update CHANGELOG for v12 (tj#2133) * Bump version to 12.0.0 * Simplify security policy (tj#2150) * Bump @types/node from 20.11.7 to 20.11.16 (tj#2141) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.7 to 20.11.16. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/parser from 6.19.1 to 6.20.0 (tj#2142) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.19.1 to 6.20.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.20.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/eslint-plugin from 6.19.1 to 6.20.0 (tj#2143) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.19.1 to 6.20.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.20.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/jest from 29.5.11 to 29.5.12 (tj#2144) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.5.11 to 29.5.12. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Use standard import in examples (tj#2168) * ESLint changes preparing for Prettier (tj#2153) Switch from StandardJS to ESLint using flat configuration. Add Prettier and configuration. * Reformat code with Prettier (tj#2180) * Fix: Use `node`-prefixed requires for builtins (tj#2170) Fixes and closes tj#2169 by using Node-prefixed imports. Signed-off-by: Sam Gammon <[email protected]> * Add auto-detection of args when node evaluating script code on command-line (tj#2164) * Wrap all eslint configs in tseslint.config (tj#2182) * Fix some JSDoc lint issues (tj#2181) * Bump typescript from 5.2.2 to 5.4.5 (tj#2189) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.2.2 to 5.4.5. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](microsoft/TypeScript@v5.2.2...v5.4.5) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-jest from 27.9.0 to 28.3.0 (tj#2188) Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.9.0 to 28.3.0. - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](jest-community/eslint-plugin-jest@v27.9.0...v28.3.0) --- updated-dependencies: - dependency-name: eslint-plugin-jest dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/node from 20.8.9 to 20.12.7 (tj#2187) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.8.9 to 20.12.7. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @typescript-eslint/parser from 6.14.0 to 6.21.0 (tj#2179) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.14.0 to 6.21.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.21.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump tsd from 0.30.4 to 0.31.0 (tj#2172) Bumps [tsd](https://github.com/tsdjs/tsd) from 0.30.4 to 0.31.0. - [Release notes](https://github.com/tsdjs/tsd/releases) - [Commits](tsdjs/tsd@v0.30.4...v0.31.0) --- updated-dependencies: - dependency-name: tsd dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Remove unimplemented fullDescription from TypeScript (tj#2191) * ci: add 22.x to node-version (tj#2192) * Prepare CHANGELOG for 12.1.0 (tj#2193) * 12.1.0 * disable subcommand execution * disable storeOptionsAsProperties * fork into @exodus/ namespace * chore: disable tests * fixup: remove stray ',' character * chore: update codeql-analysis.yml with exodus branch * chore: pin github actions to hashes, and update dependabot.yml branch * chore: cherry-pick 19fa79f from upstream * chore: ignore unused variables * fixup: lint * fixup: exodus-fork, not exodus-fork-12 --------- Signed-off-by: abetomo <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Sam Gammon <[email protected]> Co-authored-by: John Gee <[email protected]> Co-authored-by: Cynthia <[email protected]> Co-authored-by: Marcelo Shima <[email protected]> Co-authored-by: Dmitry Maganov <[email protected]> Co-authored-by: Mohammed Keyvanzadeh <[email protected]> Co-authored-by: Raine Revere <[email protected]> Co-authored-by: abetomo <[email protected]> Co-authored-by: Александр Шмелев <[email protected]> Co-authored-by: Wee Bit <[email protected]> Co-authored-by: aweebit <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sam Gammon <[email protected]> Co-authored-by: Matias Lang <[email protected]>
1 parent 8e3cfeb commit 2aaab24

File tree

170 files changed

+7001
-9353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+7001
-9353
lines changed

.eslintrc.js

-67
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ and can be deleted.
66
77
Please submit pull requests against the develop branch.
88
9-
Follow the existing code style. Check the tests succeed, including lint.
9+
Follow the existing code style. Check the tests succeed, including format and lint.
1010
npm run test
11-
npm run lint
11+
npm run check
1212
1313
Don't update the CHANGELOG or command version number. That gets done by maintainers when preparing the release.
1414

.github/dependabot.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "github-actions"
4-
target-branch: "develop"
5-
directory: "/"
6-
schedule:
3+
- package-ecosystem: "npm"
4+
target-branch: "exodus-fork"
5+
directory: "/"
6+
schedule:
7+
interval: "monthly"
8+
- package-ecosystem: "github-actions"
9+
target-branch: "exodus-fork"
10+
directory: "/"
11+
schedule:
712
interval: "weekly"

.github/workflows/codeql-analysis.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ master, develop ]
5+
branches: [ exodus-fork ]
66
pull_request:
77
# The branches below must be a subset of the branches above
8-
branches: [ master, develop ]
8+
branches: [ exodus-fork ]
99
schedule:
1010
- cron: '27 5 * * 6'
1111

@@ -25,11 +25,11 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # @v4.2.2
2929

3030
# Initializes the CodeQL tools for scanning.
3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@v2
32+
uses: github/codeql-action/init@v3
3333
with:
3434
languages: ${{ matrix.language }}
3535
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -40,7 +40,7 @@ jobs:
4040
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4141
# If this step fails, then you should remove it and run the build manually (see below)
4242
- name: Autobuild
43-
uses: github/codeql-action/autobuild@v2
43+
uses: github/codeql-action/autobuild@v3
4444

4545
# ℹ️ Command-line programs to run using the OS shell.
4646
# 📚 https://git.io/JvXDl
@@ -54,4 +54,4 @@ jobs:
5454
# make release
5555

5656
- name: Perform CodeQL Analysis
57-
uses: github/codeql-action/analyze@v2
57+
uses: github/codeql-action/analyze@v3

.github/workflows/tests.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
node-version: [12.x, 14.x, 16.x, 18.x]
15+
node-version: [18.x, 20.x, 22.x]
1616
os: [ubuntu-latest, windows-latest, macos-latest]
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # @v4.2.2
2020
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # @v4.3.0
2222
with:
2323
cache: 'npm'
2424
node-version: ${{ matrix.node-version }}
@@ -27,5 +27,6 @@ jobs:
2727
run: npm ci
2828
- name: npm test
2929
run: npm test
30-
- name: npm run lint
31-
run: npm run lint
30+
- name: npm run check:lint
31+
# switch to full check when have run prettier on all files
32+
run: npm run check:lint

.prettierignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# exclude everything, and opt-in to types we want to format
2+
**.*
3+
# add the filetypes we want to format
4+
!**.js
5+
!**.mjs
6+
!**.cjs
7+
!**.ts
8+
!**.mts
9+
!**.cts
10+
!**.json

.prettierrc.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const config = {
2+
// plugins: ['prettier-plugin-jsdoc'],
3+
singleQuote: true,
4+
overrides: [
5+
{
6+
files: ['tsconfig*.json'],
7+
options: { parser: 'jsonc' },
8+
},
9+
],
10+
};
11+
12+
module.exports = config;

CHANGELOG.md

+175
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,140 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
<!-- markdownlint-disable MD024 -->
99
<!-- markdownlint-disable MD004 -->
1010

11+
## [12.1.0] (2024-05-18)
12+
13+
### Added
14+
15+
- auto-detect special node flags `node --eval` and `node --print` when call `.parse()` with no arguments ([#2164])
16+
-
17+
### Changed
18+
19+
- prefix require of Node.js core modules with `node:` ([#2170])
20+
- format source files with Prettier ([#2180])
21+
- switch from StandardJS to directly calling ESLint for linting ([#2153])
22+
- extend security support for previous major version of Commander ([#2150])
23+
24+
### Removed
25+
26+
- removed unimplemented Option.fullDescription from TypeScript definition ([#2191])
27+
28+
## [12.0.0] (2024-02-03)
29+
30+
### Added
31+
32+
- `.addHelpOption()` as another way of configuring built-in help option ([#2006])
33+
- `.helpCommand()` for configuring built-in help command ([#2087])
34+
35+
### Fixed
36+
37+
- *Breaking:* use non-zero exit code when spawned executable subcommand terminates due to a signal ([#2023])
38+
- *Breaking:* check `passThroughOptions` constraints when using `.addCommand` and throw if parent command does not have `.enablePositionalOptions()` enabled ([#1937])
39+
40+
### Changed
41+
42+
- *Breaking:* Commander 12 requires Node.js v18 or higher ([#2027])
43+
- *Breaking:* throw an error if add an option with a flag which is already in use ([#2055])
44+
- *Breaking:* throw an error if add a command with name or alias which is already in use ([#2059])
45+
- *Breaking:* throw error when calling `.storeOptionsAsProperties()` after setting an option value ([#1928])
46+
- replace non-standard JSDoc of `@api private` with documented `@private` ([#1949])
47+
- `.addHelpCommand()` now takes a Command (passing string or boolean still works as before but deprecated) ([#2087])
48+
- refactor internal implementation of built-in help option ([#2006])
49+
- refactor internal implementation of built-in help command ([#2087])
50+
51+
### Deprecated
52+
53+
- `.addHelpCommand()` passing string or boolean (use `.helpCommand()` or pass a Command) ([#2087])
54+
55+
### Removed
56+
57+
- *Breaking:* removed default export of a global Command instance from CommonJS (use the named `program` export instead) ([#2017])
58+
59+
### Migration Tips
60+
61+
**global program**
62+
63+
If you are using the [deprecated](./docs/deprecated.md#default-import-of-global-command-object) default import of the global Command object, you need to switch to using a named import (or create a new `Command`).
64+
65+
```js
66+
// const program = require('commander');
67+
const { program } = require('commander');
68+
```
69+
70+
**option and command clashes**
71+
72+
A couple of configuration problems now throw an error, which will pick up issues in existing programs:
73+
74+
- adding an option which uses the same flag as a previous option
75+
- adding a command which uses the same name or alias as a previous command
76+
77+
## [12.0.0-1] (2024-01-20)
78+
79+
(Released in 12.0.0)
80+
81+
## [12.0.0-0] (2023-11-11)
82+
83+
(Released in 12.0.0)
84+
85+
## [11.1.0] (2023-10-13)
86+
87+
### Fixed
88+
89+
- TypeScript: update `OptionValueSource` to allow any string, to match supported use of custom sources ([#1983])
90+
- TypeScript: add that `Command.version()` can also be used as getter ([#1982])
91+
- TypeScript: add null return type to `Commands.executableDir()`, for when not configured ([#1965])
92+
- subcommands with an executable handler and only a short help flag are now handled correctly by the parent's help command ([#1930])
93+
94+
### Added
95+
96+
- `registeredArguments` property on `Command` with the array of defined `Argument` (like `Command.options` for `Option`) ([#2010])
97+
- TypeScript declarations for Option properties: `envVar`, `presetArg` ([#2019])
98+
- TypeScript declarations for Argument properties: `argChoices`, `defaultValue`, `defaultValueDescription` ([#2019])
99+
- example file which shows how to configure help to display any custom usage in the list of subcommands ([#1896])
100+
101+
### Changed
102+
103+
- (developer) refactor TypeScript configs for multiple use-cases, and enable checks in JavaScript files in supporting editors ([#1969])
104+
105+
### Deprecated
106+
107+
- `Command._args` was private anyway, but now available as `registeredArguments` ([#2010])
108+
109+
## [11.0.0] (2023-06-16)
110+
111+
### Fixed
112+
113+
- help command works when help option is disabled ([#1864])
114+
115+
### Changed
116+
117+
- leading and trailing spaces are now ignored by the .arguments() method ([#1874])
118+
- refine "types" exports for ESM to follow TypeScript guidelines ([#1886])
119+
- *Breaking:* Commander 11 requires Node.js v16 or higher
120+
121+
## [10.0.1] (2023-04-15)
122+
123+
### Added
124+
125+
- improvements to documentation ([#1858], [#1859], [#1860])
126+
127+
### Fixed
128+
129+
- remove unused `Option.optionFlags` property from TypeScript definition ([#1844])
130+
131+
### Changed
132+
133+
- assume boolean option intended if caller passes string instead of hash to `.implies()` ([#1854])
134+
135+
## [10.0.0] (2023-01-13)
136+
137+
### Added
138+
139+
- wrap command description in help ([#1804])
140+
141+
### Changed
142+
143+
- *Breaking:* Commander 10 requires Node.js v14 or higher
144+
11145
## [9.5.0] (2023-01-07)
12146

13147
### Added
@@ -1116,8 +1250,41 @@ program
11161250
[#1767]: https://github.com/tj/commander.js/pull/1767
11171251
[#1794]: https://github.com/tj/commander.js/pull/1794
11181252
[#1795]: https://github.com/tj/commander.js/pull/1795
1253+
[#1804]: https://github.com/tj/commander.js/pull/1804
11191254
[#1832]: https://github.com/tj/commander.js/pull/1832
11201255
[#1828]: https://github.com/tj/commander.js/pull/1828
1256+
[#1844]: https://github.com/tj/commander.js/pull/1844
1257+
[#1854]: https://github.com/tj/commander.js/pull/1854
1258+
[#1858]: https://github.com/tj/commander.js/pull/1858
1259+
[#1859]: https://github.com/tj/commander.js/pull/1859
1260+
[#1860]: https://github.com/tj/commander.js/pull/1860
1261+
[#1864]: https://github.com/tj/commander.js/pull/1864
1262+
[#1874]: https://github.com/tj/commander.js/pull/1874
1263+
[#1886]: https://github.com/tj/commander.js/pull/1886
1264+
[#1896]: https://github.com/tj/commander.js/pull/1896
1265+
[#1928]: https://github.com/tj/commander.js/pull/1928
1266+
[#1930]: https://github.com/tj/commander.js/pull/1930
1267+
[#1937]: https://github.com/tj/commander.js/pull/1937
1268+
[#1949]: https://github.com/tj/commander.js/pull/1949
1269+
[#1965]: https://github.com/tj/commander.js/pull/1965
1270+
[#1969]: https://github.com/tj/commander.js/pull/1969
1271+
[#1982]: https://github.com/tj/commander.js/pull/1982
1272+
[#1983]: https://github.com/tj/commander.js/pull/1983
1273+
[#2006]: https://github.com/tj/commander.js/pull/2006
1274+
[#2010]: https://github.com/tj/commander.js/pull/2010
1275+
[#2017]: https://github.com/tj/commander.js/pull/2017
1276+
[#2019]: https://github.com/tj/commander.js/pull/2019
1277+
[#2023]: https://github.com/tj/commander.js/pull/2023
1278+
[#2027]: https://github.com/tj/commander.js/pull/2027
1279+
[#2055]: https://github.com/tj/commander.js/pull/2055
1280+
[#2059]: https://github.com/tj/commander.js/pull/2059
1281+
[#2087]: https://github.com/tj/commander.js/pull/2087
1282+
[#2150]: https://github.com/tj/commander.js/pull/2150
1283+
[#2153]: https://github.com/tj/commander.js/pull/2153
1284+
[#2164]: https://github.com/tj/commander.js/pull/2164
1285+
[#2170]: https://github.com/tj/commander.js/pull/2170
1286+
[#2180]: https://github.com/tj/commander.js/pull/2180
1287+
[#2191]: https://github.com/tj/commander.js/pull/2191
11211288

11221289
<!-- Referenced in 5.x -->
11231290
[#1]: https://github.com/tj/commander.js/issues/1
@@ -1197,6 +1364,14 @@ program
11971364
[#1028]: https://github.com/tj/commander.js/pull/1028
11981365

11991366
[Unreleased]: https://github.com/tj/commander.js/compare/master...develop
1367+
[12.0.0]: https://github.com/tj/commander.js/compare/v12.0.0...v12.1.0
1368+
[12.0.0]: https://github.com/tj/commander.js/compare/v11.1.0...v12.0.0
1369+
[12.0.0-1]: https://github.com/tj/commander.js/compare/v12.0.0-0...v12.0.0-1
1370+
[12.0.0-0]: https://github.com/tj/commander.js/compare/v11.1.0...v12.0.0-0
1371+
[11.1.0]: https://github.com/tj/commander.js/compare/v11.0.0...v11.1.0
1372+
[11.0.0]: https://github.com/tj/commander.js/compare/v10.0.1...v11.0.0
1373+
[10.0.1]: https://github.com/tj/commander.js/compare/v10.0.0...v10.0.1
1374+
[10.0.0]: https://github.com/tj/commander.js/compare/v9.5.0...v10.0.0
12001375
[9.5.0]: https://github.com/tj/commander.js/compare/v9.4.1...v9.5.0
12011376
[9.4.1]: https://github.com/tj/commander.js/compare/v9.4.0...v9.4.1
12021377
[9.4.0]: https://github.com/tj/commander.js/compare/v9.3.0...v9.4.0

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ or after six months otherwise.
1414

1515
Pull Requests will be considered. Please submit pull requests against the develop branch.
1616

17-
Follow the existing code style. Check the tests succeed, including lint.
17+
Follow the existing code style. Check the tests succeed, including format and lint.
1818

1919
- `npm run test`
20-
- `npm run lint`
20+
- `npm run check`
2121

2222
Don't update the CHANGELOG or command version number. That gets done by maintainers when preparing the release.
2323

0 commit comments

Comments
 (0)