yargs-parser
22.0.0 · 26 May 2025ISC371M / weekRepositoryHomepagenpmAtom feed
17.1.0 is the newest release of 17.x.
In short
2 breaking2 new4 fixed
- breaking
This reverts parsing behavior of booleans to that of yargs@14
- breaking
Objects used during parsing are now created with a null prototype. There may be some scenarios where this change in behavior leaks externally.
Security
1 advisory affects 17.0.0; 18.1.1 fixes them
- Moderateyargs-parser Vulnerable to Prototype PollutionGHSA-p9pc-299p-vxgp · 4 Sep 2020Fixed in 18.1.1
Release note
Breaking changes
- breaking
This reverts parsing behavior of booleans to that of yargs@14
- breaking
Objects used during parsing are now created with a null
prototype. There may be some scenarios where this change in behavior
leaks externally.
Features
Boolean arguments will not be collected into an implicit array
Introduce nargs-eats-options config option
Bug Fixes
Address bugs with "uknown-options-as-args"
Array should take precedence over nargs, but enforce nargs
Support keys that collide with object prototypes
Unknown options terminated with digits now handled by unknown-options-as-args