Node.js Support: Commander now requires a minimum of Node 16, ensuring compatibility with the latest features and improvements in the Node ecosystem.
TypeScript Support: A new type definition file is added for ECMAScript modules, aligning with TypeScript guidelines for better type safety and developer experience.
Improvements
Help Command Enhancement: The help command now directly calls help for subcommands when possible, improving the reliability and user experience when seeking assistance with commands.
Input Handling: The .arguments method now trims trailing spaces from input strings, preventing unexpected empty arguments and enhancing the robustness of command parsing.
Fixes
Fix issues with npm run-script options being consumed before reaching the program, providing clearer guidance in the README to help users avoid common pitfalls.
Others
Deprecate the old import path from commander/esm.mjs, guiding users towards the updated import structure for better maintainability.