Skip to content
Myr

Merge from develop into release/15.x (with minor conflicts and test migrations)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by John Gee · parents f4bd470, 30e6b8c · Browse files · 3 files+108 added−74 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+108 added−74 removed

  • tests:+21 added−0 removed
  • other:+87 added−74 removed

3 files+108 added−74 removed

modified:tests/argument.variadic.test.js+13 added
modified:tests/options.variadic.test.js+8 added
178 unmodified lines
179 program.parse(['--comma', 'CCC'], { from: 'user' });180181 assert.deepEqual(program.opts().comma, ['CCC']);182 });183184 test('when option has default array then specified value is used instead of default (not appended)', () => {185 const program = new commander.Command();186 program.option('-c,--comma [value...]', 'values', ['default']);187 program.parse(['--comma', 'CCC'], { from: 'user' });188189 assert.deepEqual(program.opts().comma, ['CCC']);190 });191});
modified:package-lock.json+87 added-74 removed
18 unmodified lines
19 "typescript": "^5.0.4",20 "typescript-eslint": "^8.12.2"21 },22 "engines": {23 "node": ">=20"23 "node": "^20.19.0 || >=22.12.0"24 }25 },26 "node_modules/@babel/code-frame": {27 "version": "7.29.0",
329 unmodified lines
357 "dev": true,358 "license": "MIT"359 },360 "node_modules/@types/node": {361 "version": "22.19.9",362 "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.9.tgz",363 "integrity": "sha512-PD03/U8g1F9T9MI+1OBisaIARhSzeidsUjQaf51fOxrfjeiKN9bLVO06lHuHYjxdnqLWJijJHfqXPSJri2EM2A==",361 "version": "22.19.11",362 "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.11.tgz",363 "integrity": "sha512-BH7YwL6rA93ReqeQS1c4bsPpcfOmJasG+Fkr6Y59q83f9M1WcBRHR2vM+P9eOisYRcN3ujQoiZY8uk5W+1WL8w==",364 "dev": true,365 "license": "MIT",366 "dependencies": {367 "undici-types": "~6.21.0"
6 unmodified lines
374 "dev": true,375 "license": "MIT"376 },377 "node_modules/@typescript-eslint/eslint-plugin": {378 "version": "8.54.0",379 "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.54.0.tgz",380 "integrity": "sha512-hAAP5io/7csFStuOmR782YmTthKBJ9ND3WVL60hcOjvtGFb+HJxH4O5huAcmcZ9v9G8P+JETiZ/G1B8MALnWZQ==",378 "version": "8.56.0",379 "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.56.0.tgz",380 "integrity": "sha512-lRyPDLzNCuae71A3t9NEINBiTn7swyOhvUj3MyUOxb8x6g6vPEFoOU+ZRmGMusNC3X3YMhqMIX7i8ShqhT74Pw==",381 "dev": true,382 "license": "MIT",383 "dependencies": {384 "@eslint-community/regexpp": "^4.12.2",385 "@typescript-eslint/scope-manager": "8.54.0",386 "@typescript-eslint/type-utils": "8.54.0",387 "@typescript-eslint/utils": "8.54.0",388 "@typescript-eslint/visitor-keys": "8.54.0",385 "@typescript-eslint/scope-manager": "8.56.0",386 "@typescript-eslint/type-utils": "8.56.0",387 "@typescript-eslint/utils": "8.56.0",388 "@typescript-eslint/visitor-keys": "8.56.0",389 "ignore": "^7.0.5",390 "natural-compare": "^1.4.0",391 "ts-api-utils": "^2.4.0"392 },
4 unmodified lines
397 "type": "opencollective",398 "url": "https://opencollective.com/typescript-eslint"399 },400 "peerDependencies": {401 "@typescript-eslint/parser": "^8.54.0",402 "eslint": "^8.57.0 || ^9.0.0",401 "@typescript-eslint/parser": "^8.56.0",402 "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",403 "typescript": ">=4.8.4 <6.0.0"404 }405 },406 "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
6 unmodified lines
413 "node": ">= 4"414 }415 },416 "node_modules/@typescript-eslint/parser": {417 "version": "8.54.0",418 "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.54.0.tgz",419 "integrity": "sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==",417 "version": "8.56.0",418 "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.56.0.tgz",419 "integrity": "sha512-IgSWvLobTDOjnaxAfDTIHaECbkNlAlKv2j5SjpB2v7QHKv1FIfjwMy8FsDbVfDX/KjmCmYICcw7uGaXLhtsLNg==",420 "dev": true,421 "license": "MIT",422 "peer": true,423 "dependencies": {424 "@typescript-eslint/scope-manager": "8.54.0",425 "@typescript-eslint/types": "8.54.0",426 "@typescript-eslint/typescript-estree": "8.54.0",427 "@typescript-eslint/visitor-keys": "8.54.0",424 "@typescript-eslint/scope-manager": "8.56.0",425 "@typescript-eslint/types": "8.56.0",426 "@typescript-eslint/typescript-estree": "8.56.0",427 "@typescript-eslint/visitor-keys": "8.56.0",428 "debug": "^4.4.3"429 },430 "engines": {431 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
2 unmodified lines
434 "type": "opencollective",435 "url": "https://opencollective.com/typescript-eslint"436 },437 "peerDependencies": {438 "eslint": "^8.57.0 || ^9.0.0",438 "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",439 "typescript": ">=4.8.4 <6.0.0"440 }441 },442 "node_modules/@typescript-eslint/project-service": {443 "version": "8.54.0",444 "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.54.0.tgz",445 "integrity": "sha512-YPf+rvJ1s7MyiWM4uTRhE4DvBXrEV+d8oC3P9Y2eT7S+HBS0clybdMIPnhiATi9vZOYDc7OQ1L/i6ga6NFYK/g==",443 "version": "8.56.0",444 "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.56.0.tgz",445 "integrity": "sha512-M3rnyL1vIQOMeWxTWIW096/TtVP+8W3p/XnaFflhmcFp+U4zlxUxWj4XwNs6HbDeTtN4yun0GNTTDBw/SvufKg==",446 "dev": true,447 "license": "MIT",448 "dependencies": {449 "@typescript-eslint/tsconfig-utils": "^8.54.0",450 "@typescript-eslint/types": "^8.54.0",449 "@typescript-eslint/tsconfig-utils": "^8.56.0",450 "@typescript-eslint/types": "^8.56.0",451 "debug": "^4.4.3"452 },453 "engines": {454 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
6 unmodified lines
461 "typescript": ">=4.8.4 <6.0.0"462 }463 },464 "node_modules/@typescript-eslint/scope-manager": {465 "version": "8.54.0",466 "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.54.0.tgz",467 "integrity": "sha512-27rYVQku26j/PbHYcVfRPonmOlVI6gihHtXFbTdB5sb6qA0wdAQAbyXFVarQ5t4HRojIz64IV90YtsjQSSGlQg==",465 "version": "8.56.0",466 "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.56.0.tgz",467 "integrity": "sha512-7UiO/XwMHquH+ZzfVCfUNkIXlp/yQjjnlYUyYz7pfvlK3/EyyN6BK+emDmGNyQLBtLGaYrTAI6KOw8tFucWL2w==",468 "dev": true,469 "license": "MIT",470 "dependencies": {471 "@typescript-eslint/types": "8.54.0",472 "@typescript-eslint/visitor-keys": "8.54.0"471 "@typescript-eslint/types": "8.56.0",472 "@typescript-eslint/visitor-keys": "8.56.0"473 },474 "engines": {475 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"476 },
2 unmodified lines
479 "url": "https://opencollective.com/typescript-eslint"480 }481 },482 "node_modules/@typescript-eslint/tsconfig-utils": {483 "version": "8.54.0",484 "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.54.0.tgz",485 "integrity": "sha512-dRgOyT2hPk/JwxNMZDsIXDgyl9axdJI3ogZ2XWhBPsnZUv+hPesa5iuhdYt2gzwA9t8RE5ytOJ6xB0moV0Ujvw==",483 "version": "8.56.0",484 "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.56.0.tgz",485 "integrity": "sha512-bSJoIIt4o3lKXD3xmDh9chZcjCz5Lk8xS7Rxn+6l5/pKrDpkCwtQNQQwZ2qRPk7TkUYhrq3WPIHXOXlbXP0itg==",486 "dev": true,487 "license": "MIT",488 "engines": {489 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
6 unmodified lines
496 "typescript": ">=4.8.4 <6.0.0"497 }498 },499 "node_modules/@typescript-eslint/type-utils": {500 "version": "8.54.0",501 "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.54.0.tgz",502 "integrity": "sha512-hiLguxJWHjjwL6xMBwD903ciAwd7DmK30Y9Axs/etOkftC3ZNN9K44IuRD/EB08amu+Zw6W37x9RecLkOo3pMA==",500 "version": "8.56.0",501 "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.56.0.tgz",502 "integrity": "sha512-qX2L3HWOU2nuDs6GzglBeuFXviDODreS58tLY/BALPC7iu3Fa+J7EOTwnX9PdNBxUI7Uh0ntP0YWGnxCkXzmfA==",503 "dev": true,504 "license": "MIT",505 "dependencies": {506 "@typescript-eslint/types": "8.54.0",507 "@typescript-eslint/typescript-estree": "8.54.0",508 "@typescript-eslint/utils": "8.54.0",506 "@typescript-eslint/types": "8.56.0",507 "@typescript-eslint/typescript-estree": "8.56.0",508 "@typescript-eslint/utils": "8.56.0",509 "debug": "^4.4.3",510 "ts-api-utils": "^2.4.0"511 },512 "engines": {
3 unmodified lines
516 "type": "opencollective",517 "url": "https://opencollective.com/typescript-eslint"518 },519 "peerDependencies": {520 "eslint": "^8.57.0 || ^9.0.0",520 "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",521 "typescript": ">=4.8.4 <6.0.0"522 }523 },524 "node_modules/@typescript-eslint/types": {525 "version": "8.54.0",526 "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.54.0.tgz",527 "integrity": "sha512-PDUI9R1BVjqu7AUDsRBbKMtwmjWcn4J3le+5LpcFgWULN3LvHC5rkc9gCVxbrsrGmO1jfPybN5s6h4Jy+OnkAA==",525 "version": "8.56.0",526 "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.56.0.tgz",527 "integrity": "sha512-DBsLPs3GsWhX5HylbP9HNG15U0bnwut55Lx12bHB9MpXxQ+R5GC8MwQe+N1UFXxAeQDvEsEDY6ZYwX03K7Z6HQ==",528 "dev": true,529 "license": "MIT",530 "engines": {531 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
3 unmodified lines
535 "url": "https://opencollective.com/typescript-eslint"536 }537 },538 "node_modules/@typescript-eslint/typescript-estree": {539 "version": "8.54.0",540 "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.54.0.tgz",541 "integrity": "sha512-BUwcskRaPvTk6fzVWgDPdUndLjB87KYDrN5EYGetnktoeAvPtO4ONHlAZDnj5VFnUANg0Sjm7j4usBlnoVMHwA==",539 "version": "8.56.0",540 "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.56.0.tgz",541 "integrity": "sha512-ex1nTUMWrseMltXUHmR2GAQ4d+WjkZCT4f+4bVsps8QEdh0vlBsaCokKTPlnqBFqqGaxilDNJG7b8dolW2m43Q==",542 "dev": true,543 "license": "MIT",544 "dependencies": {545 "@typescript-eslint/project-service": "8.54.0",546 "@typescript-eslint/tsconfig-utils": "8.54.0",547 "@typescript-eslint/types": "8.54.0",548 "@typescript-eslint/visitor-keys": "8.54.0",545 "@typescript-eslint/project-service": "8.56.0",546 "@typescript-eslint/tsconfig-utils": "8.56.0",547 "@typescript-eslint/types": "8.56.0",548 "@typescript-eslint/visitor-keys": "8.56.0",549 "debug": "^4.4.3",550 "minimatch": "^9.0.5",551 "semver": "^7.7.3",552 "tinyglobby": "^0.2.15",
36 unmodified lines
589 "url": "https://github.com/sponsors/isaacs"590 }591 },592 "node_modules/@typescript-eslint/utils": {593 "version": "8.54.0",594 "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.54.0.tgz",595 "integrity": "sha512-9Cnda8GS57AQakvRyG0PTejJNlA2xhvyNtEVIMlDWOOeEyBkYWhGPnfrIAnqxLMTSTo6q8g12XVjjev5l1NvMA==",593 "version": "8.56.0",594 "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.56.0.tgz",595 "integrity": "sha512-RZ3Qsmi2nFGsS+n+kjLAYDPVlrzf7UhTffrDIKr+h2yzAlYP/y5ZulU0yeDEPItos2Ph46JAL5P/On3pe7kDIQ==",596 "dev": true,597 "license": "MIT",598 "dependencies": {599 "@eslint-community/eslint-utils": "^4.9.1",600 "@typescript-eslint/scope-manager": "8.54.0",601 "@typescript-eslint/types": "8.54.0",602 "@typescript-eslint/typescript-estree": "8.54.0"600 "@typescript-eslint/scope-manager": "8.56.0",601 "@typescript-eslint/types": "8.56.0",602 "@typescript-eslint/typescript-estree": "8.56.0"603 },604 "engines": {605 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"606 },
1 unmodified line
608 "type": "opencollective",609 "url": "https://opencollective.com/typescript-eslint"610 },611 "peerDependencies": {612 "eslint": "^8.57.0 || ^9.0.0",612 "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",613 "typescript": ">=4.8.4 <6.0.0"614 }615 },616 "node_modules/@typescript-eslint/visitor-keys": {617 "version": "8.54.0",618 "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.54.0.tgz",619 "integrity": "sha512-VFlhGSl4opC0bprJiItPQ1RfUhGDIBokcPwaFH4yiBCaNPeld/9VeXbiPO1cLyorQi1G1vL+ecBk1x8o1axORA==",617 "version": "8.56.0",618 "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.56.0.tgz",619 "integrity": "sha512-q+SL+b+05Ud6LbEE35qe4A99P+htKTKVbyiNEe45eCbJFyh/HVK9QXwlrbz+Q4L8SOW4roxSVwXYj4DMBT7Ieg==",620 "dev": true,621 "license": "MIT",622 "dependencies": {623 "@typescript-eslint/types": "8.54.0",624 "eslint-visitor-keys": "^4.2.1"623 "@typescript-eslint/types": "8.56.0",624 "eslint-visitor-keys": "^5.0.0"625 },626 "engines": {627 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"628 },
1 unmodified line
630 "type": "opencollective",631 "url": "https://opencollective.com/typescript-eslint"632 }633 },634 "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {635 "version": "5.0.0",636 "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.0.tgz",637 "integrity": "sha512-A0XeIi7CXU7nPlfHS9loMYEKxUaONu/hTEzHTGba9Huu94Cq1hPivf+DE5erJozZOky0LfvXAyrV/tcswpLI0Q==",638 "dev": true,639 "license": "Apache-2.0",640 "engines": {641 "node": "^20.19.0 || ^22.13.0 || >=24"642 },643 "funding": {644 "url": "https://opencollective.com/eslint"645 }646 },647 "node_modules/acorn": {635 "version": "8.15.0",636 "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",637 "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",648 "version": "8.16.0",649 "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",650 "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",651 "dev": true,652 "license": "MIT",653 "peer": true,654 "bin": {
2048 unmodified lines
2703 "node": ">=14.17"2704 }2705 },2706 "node_modules/typescript-eslint": {2694 "version": "8.54.0",2695 "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.54.0.tgz",2696 "integrity": "sha512-CKsJ+g53QpsNPqbzUsfKVgd3Lny4yKZ1pP4qN3jdMOg/sisIDLGyDMezycquXLE5JsEU0wp3dGNdzig0/fmSVQ==",2707 "version": "8.56.0",2708 "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.56.0.tgz",2709 "integrity": "sha512-c7toRLrotJ9oixgdW7liukZpsnq5CZ7PuKztubGYlNppuTqhIoWfhgHo/7EU0v06gS2l/x0i2NEFK1qMIf0rIg==",2710 "dev": true,2711 "license": "MIT",2712 "dependencies": {2700 "@typescript-eslint/eslint-plugin": "8.54.0",2701 "@typescript-eslint/parser": "8.54.0",2702 "@typescript-eslint/typescript-estree": "8.54.0",2703 "@typescript-eslint/utils": "8.54.0"2713 "@typescript-eslint/eslint-plugin": "8.56.0",2714 "@typescript-eslint/parser": "8.56.0",2715 "@typescript-eslint/typescript-estree": "8.56.0",2716 "@typescript-eslint/utils": "8.56.0"2717 },2718 "engines": {2719 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"2720 },
1 unmodified line
2722 "type": "opencollective",2723 "url": "https://opencollective.com/typescript-eslint"2724 },2725 "peerDependencies": {2713 "eslint": "^8.57.0 || ^9.0.0",2726 "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",2727 "typescript": ">=4.8.4 <6.0.0"2728 }2729 },2730 "node_modules/undici-types": {
85 unmodified lines