yargs-parser breaking changes
yargs-parser 22.0.0 (May 26, 2025) is its newest release with breaking changes. The first: Package is now ESM first in yargs-parser 22.0.0. Every breaking API change we have recorded in yargs-parser on npm: 43 breaking changes in 24 versions. Below, its 24 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 22.0.0, released May 26, 2025. Source repository
Its 19.0.0 release drops Node.js 6. Node.js end of life dates.
- From 21.1.1 to 22.0.0: 1 breaking change in 1 version.
- From 3.1.0 to 22.0.0: 42 breaking changes in 23 versions.
yargs-parser 22.0.0 breaking changes
- Behavior changed
yargs-parser is now ESM first, so code loading it with CommonJS require may need to switch to ESM import. github.com
yargs-parser 21.1.1 breaking changes
- Signature changed
default
Was const yargsParser: Parser; now namespace yargsParser var yargsParser: yargsParser.Parser. npmjs.com
yargs-parser 21.1.0 breaking changes
- Removed
Arguments
Arguments was removed in yargs-parser 21.1.0 npmjs.com - Removed
Configuration
Configuration was removed in yargs-parser 21.1.0 npmjs.com - Removed
DetailedArguments
DetailedArguments was removed in yargs-parser 21.1.0 npmjs.com - Removed
Options
Options was removed in yargs-parser 21.1.0 npmjs.com - Removed
Parser
Parser was removed in yargs-parser 21.1.0 npmjs.com - Signature changed
default
Was namespace yargsParser var yargsParser: yargsParser.Parser; now const yargsParser: Parser. npmjs.com
yargs-parser 21.0.0 breaking changes
- Removed
Arguments.$0
Arguments.$0 was removed in yargs-parser 21.0.0 npmjs.com - Behavior changed
The package no longer supports Node.js 10. Users on Node.js 10 must upgrade their Node.js runtime before upgrading to this release. github.com - Signature changed
Arguments._
Was _: string[]; now _: Array<string | number>. npmjs.com
yargs-parser 20.2.0 breaking changes
- Behavior changed
unknown-options-as-args
Positional arguments that look like numbers are now converted to numbers in unknown-options-as-args mode, which may change values code previously received as strings. github.com
yargs-parser 20.0.0 breaking changes
- Removed
The package no longer ships type definitions, so TypeScript users must obtain types separately (for example from @types/yargs-parser). github.com - Behavior changed
Camel case is only stripped when the key is hyphenated, so code relying on the previous parsing of non-hyphenated keys may see different results. github.com - Signature changed
default
Was const yargsParser: Parser; now namespace yargsParser var yargsParser: yargsParser.Parser. npmjs.com
Older versions
18 older versions, each with its first changes. Sign up to see every change
Show 18 older versions
yargs-parser 19.0.0 breaking changes
- Removed
Node.js 6 is no longer supported; the package now follows the Node.js LTS schedule, so users on Node 6 must upgrade their runtime. github.com - Behavior changed
Type definitions changed, so projects using @types/yargs-parser may see different types and need to check their type usage. github.com
And 1 more in this version.
yargs-parser 18.0.0 breaking changes
- Behavior changed
Array options now respect the configured nargs count during parsing, so code relying on the previous looser behavior may parse differently. Check array options that use nargs. github.com
yargs-parser 17.0.0 breaking changes
- Behavior changed
Boolean arguments given multiple times are no longer gathered into an implicit array, so code expecting an array must be updated. github.com - Behavior changed
Boolean arguments are parsed as they were in yargs 14 again. Code relying on the 16.x boolean parsing may now get different values and must be checked. github.com
And 1 more in this version.
yargs-parser 16.1.0 breaking changes
- Behavior changed
Options that combine narg with count, or array with count, now populate the parser error. Code that used these combinations may see new errors and should remove or fix the conflicting options. github.com
yargs-parser 16.0.0 breaking changes
- Removed
The package no longer tests on Node 6; users on Node 6 should stay on yargs-parser 15 or upgrade their Node.js version. github.com
yargs-parser 15.0.0 breaking changes
- Renamed
collect-unknown-options
The collect-unknown-options option was reworked into unknown-options-as-args, which has broader behavior. Code using collect-unknown-options must switch to unknown-options-as-args. github.com
yargs-parser 14.0.0 breaking changes
- Removed
defaulted
The "defaulted" functionality was dropped and is no longer available; code relying on it must be updated. github.com - Behavior changed
Boolean options now handle arrays the same way as other array types, which can change parsed results for existing code. github.com
And 2 more in this version.
yargs-parser 13.0.0 breaking changes
- Behavior changed
Options whose values start with a leading '+' or '0' now parse as strings instead of numbers. Code relying on numeric parsing of such values must convert them explicitly. github.com
yargs-parser 12.0.0 breaking changes
- Behavior changed
Quotes and the beginning and end of strings are no longer stripped during parsing. Code that expected quotes to be removed must handle them itself. github.com - Behavior changed
A flag given with no right-hand value no longer populates defaulted options with undefined. Check code that relied on undefined for such options. github.com
yargs-parser 11.0.0 breaking changes
- Removed
Node 4 is no longer supported, so users on Node 4 must upgrade their Node.js runtime before using this version. github.com - Behavior changed
When hyphens and dot notation are used together, the parsed argv object now has a different shape. Code that relied on the old layout must be updated. github.com
yargs-parser 10.0.0 breaking changes
- Behavior changed
boolean
Boolean options defined without a default value are now omitted from parsed results when the user does not pass the flag. Code that expects false in that case must set a default explicitly. github.com
yargs-parser 9.0.0 breaking changes
- Behavior changed
Flag-style arguments such as --foo or -abc are no longer taken as values by options declared with nargs. Users relying on nargs consuming flag arguments must adjust their calls. github.com
yargs-parser 8.0.0 breaking changes
- Behavior changed
Arguments that are strings failing Number.isSafeInteger() stay as strings instead of being converted to numbers. Code relying on that coercion must handle the string values. github.com
yargs-parser 7.0.0 breaking changes
- Default changed
populate--
The populate-- option now defaults to false. Code that relied on the previous default must set populate-- explicitly. github.com
yargs-parser 6.0.0 breaking changes
- Behavior changed
Environment variables take precedence over args-config files, so values previously taken from config files may now come from the environment. github.com - Behavior changed
When parsing stops at "--", arguments are now placed in an array called "--" by default instead of "_". Code reading positional arguments from "_" after "--" must read "--" instead. github.com
yargs-parser 5.0.0 breaking changes
- Behavior changed
Environment variables now override config files (args, env, config-file, config-object). Users relying on config file values over env vars must adjust their setup. github.com
yargs-parser 4.0.0 breaking changes
- Behavior changed
coerce
The coerce option is no longer applied to each individual argument in an implicit array; it is applied to the final array or object instead. Adjust coerce functions that expected per-item input. github.com
yargs-parser 3.1.0 breaking changes
- Behavior changed
Negative values are parsed differently and defaults now check aliases when guessing argument types, which may alter results for existing callers. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.