Packages

yargs-parser

22.0.0 · 26 May 2025ISC371M / weekRepositoryHomepagenpmAtom feed

Upgrading yargs-parser From 16.1.0 to 18.1.1

6 releases in betweenevery note read

Other targets from 16.1.0Latest22.0.0

Before you upgrade

Tick each one off as you go
  • breaking18.0.0
  • breaking17.0.0
  • breaking17.0.0

Security

Fixes 1 advisory affecting 16.1.0

  • __proto__ will now be replaced with ___proto___ in parse (#258), patching a potential prototype pollution vulnerability. This was reported by the Snyk Security Research Team.

    18.1.1

Release by release

  1. 18.1.1

    Security fix16 Mar 2020
    • security

      __proto__ will now be replaced with ___proto___ in parse (#258), patching a potential prototype pollution vulnerability. This was reported by the Snyk Security Research Team.

  2. 18.1.0

    7 Mar 20201 new
    • new

      Introduce single-digit boolean aliases

  3. 18.0.0

    Migration needed2 Mar 20201 new
    • breaking

      The narg count is now enforced when parsing arrays.

    • new

      NaN can now be provided as a value for nargs, indicating "at least" one value is expected for array

  4. 17.1.0

    1 Mar 20201 new
    • new

      Introduce greedy-arrays config, for specifying whether arrays consume multiple positionals

  5. 17.0.1

    29 Feb 20201 fix
    • fixed

      Normalized keys were not enumerable

  6. 17.0.0

    Migration needed10 Feb 20202 new · 4 fixes
    • 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.

    • new

      Boolean arguments will not be collected into an implicit array

    • new

      Introduce nargs-eats-options config option