---
title: "yargs-parser 22.0.0 Breaking Changes on npm | Since.dev"
description: "What each yargs-parser release removed, renamed or changed: 43 breaking changes in 24 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/yargs-parser
last_updated: 2026-12-04
---

# 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

Latest version `22.0.0`, released May 26, 2025. [Source repository](https://github.com/yargs/yargs-parser)

Its 19.0.0 release drops Node.js 6. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [21.1.1](#v-21-1-1) to [22.0.0](#v-22-0-0): 1 breaking change in 1 version.
- From [3.1.0](#v-3-1-0) to [22.0.0](#v-22-0-0): 42 breaking changes in 23 versions.

## yargs-parser 22.0.0 breaking changes

yargs-parser 22.0.0, released May 26, 2025: 1 breaking change.

- **Behavior changed**  

yargs-parser is now ESM first, so code loading it with CommonJS require may need to switch to ESM import. [github.com](https://github.com/yargs/yargs-parser/releases/tag/yargs-parser-v22.0.0)

## yargs-parser 21.1.1 breaking changes

yargs-parser 21.1.1, released August 4, 2022: 1 breaking change.

- **Signature changed** `default`  

Was const yargsParser: Parser; now namespace yargsParser var yargsParser: yargsParser.Parser. [npmjs.com](https://www.npmjs.com/package/yargs-parser/v/21.1.1)

## yargs-parser 21.1.0 breaking changes

yargs-parser 21.1.0, released August 3, 2022: 6 breaking changes.

- **Removed** `Arguments`  

Arguments was removed in yargs-parser 21.1.0 [npmjs.com](https://www.npmjs.com/package/yargs-parser/v/21.1.0)
- **Removed** `Configuration`  

Configuration was removed in yargs-parser 21.1.0 [npmjs.com](https://www.npmjs.com/package/yargs-parser/v/21.1.0)
- **Removed** `DetailedArguments`  

DetailedArguments was removed in yargs-parser 21.1.0 [npmjs.com](https://www.npmjs.com/package/yargs-parser/v/21.1.0)
- **Removed** `Options`  

Options was removed in yargs-parser 21.1.0 [npmjs.com](https://www.npmjs.com/package/yargs-parser/v/21.1.0)
- **Removed** `Parser`  

Parser was removed in yargs-parser 21.1.0 [npmjs.com](https://www.npmjs.com/package/yargs-parser/v/21.1.0)
- **Signature changed** `default`  

Was namespace yargsParser var yargsParser: yargsParser.Parser; now const yargsParser: Parser. [npmjs.com](https://www.npmjs.com/package/yargs-parser/v/21.1.0)

## yargs-parser 21.0.0 breaking changes

yargs-parser 21.0.0, released November 16, 2021: 3 breaking changes.

- **Removed** `Arguments.$0`  

Arguments.$0 was removed in yargs-parser 21.0.0 [npmjs.com](https://www.npmjs.com/package/yargs-parser/v/21.0.0)
- **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](https://github.com/yargs/yargs-parser/releases/tag/yargs-parser-v21.0.0)
- **Signature changed** `Arguments._`  

Was \_: string\[\]; now \_: Array\<string | number>. [npmjs.com](https://www.npmjs.com/package/yargs-parser/v/21.0.0)

## yargs-parser 20.2.0 breaking changes

yargs-parser 20.2.0, released September 21, 2020: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v20.2.0/CHANGELOG.md)

## yargs-parser 20.0.0 breaking changes

yargs-parser 20.0.0, released September 9, 2020: 3 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](https://github.com/yargs/yargs-parser/blob/v20.0.0/CHANGELOG.md)
- **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](https://github.com/yargs/yargs-parser/blob/v20.0.0/CHANGELOG.md)
- **Signature changed** `default`  

Was const yargsParser: Parser; now namespace yargsParser var yargsParser: yargsParser.Parser. [npmjs.com](https://www.npmjs.com/package/yargs-parser/v/20.0.0)

## Older versions

18 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### yargs-parser 19.0.0 breaking changes

yargs-parser 19.0.0, released August 9, 2020: 3 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](https://github.com/yargs/yargs-parser/blob/v19.0.0/CHANGELOG.md)
- **Behavior changed**  

Type definitions changed, so projects using @types/yargs-parser may see different types and need to check their type usage. [github.com](https://github.com/yargs/yargs-parser/blob/v19.0.0/CHANGELOG.md)

And 1 more in this version.

### yargs-parser 18.0.0 breaking changes

yargs-parser 18.0.0, released March 2, 2020: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v18.0.0/CHANGELOG.md)

### yargs-parser 17.0.0 breaking changes

yargs-parser 17.0.0, released February 10, 2020: 3 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](https://github.com/yargs/yargs-parser/blob/v17.0.0/CHANGELOG.md)
- **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](https://github.com/yargs/yargs-parser/blob/v17.0.0/CHANGELOG.md)

And 1 more in this version.

### yargs-parser 16.1.0 breaking changes

yargs-parser 16.1.0, released November 1, 2019: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v16.1.0/CHANGELOG.md)

### yargs-parser 16.0.0 breaking changes

yargs-parser 16.0.0, released October 27, 2019: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v16.0.0/CHANGELOG.md)

### yargs-parser 15.0.0 breaking changes

yargs-parser 15.0.0, released October 7, 2019: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v15.0.0/CHANGELOG.md)

### yargs-parser 14.0.0 breaking changes

yargs-parser 14.0.0, released September 6, 2019: 4 breaking changes.

- **Removed** `defaulted`  

The "defaulted" functionality was dropped and is no longer available; code relying on it must be updated. [github.com](https://github.com/yargs/yargs-parser/blob/v14.0.0/CHANGELOG.md)
- **Behavior changed**  

Boolean options now handle arrays the same way as other array types, which can change parsed results for existing code. [github.com](https://github.com/yargs/yargs-parser/blob/v14.0.0/CHANGELOG.md)

And 2 more in this version.

### yargs-parser 13.0.0 breaking changes

yargs-parser 13.0.0, released February 2, 2019: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v13.0.0/CHANGELOG.md)

### yargs-parser 12.0.0 breaking changes

yargs-parser 12.0.0, released January 29, 2019: 2 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](https://github.com/yargs/yargs-parser/blob/v12.0.0/CHANGELOG.md)
- **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](https://github.com/yargs/yargs-parser/blob/v12.0.0/CHANGELOG.md)

### yargs-parser 11.0.0 breaking changes

yargs-parser 11.0.0, released October 6, 2018: 2 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](https://github.com/yargs/yargs-parser/blob/v11.0.0/CHANGELOG.md)
- **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](https://github.com/yargs/yargs-parser/blob/v11.0.0/CHANGELOG.md)

### yargs-parser 10.0.0 breaking changes

yargs-parser 10.0.0, released April 4, 2018: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v10.0.0/CHANGELOG.md)

### yargs-parser 9.0.0 breaking changes

yargs-parser 9.0.0, released January 20, 2018: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v9.0.0/CHANGELOG.md)

### yargs-parser 8.0.0 breaking changes

yargs-parser 8.0.0, released October 5, 2017: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v8.0.0/CHANGELOG.md)

### yargs-parser 7.0.0 breaking changes

yargs-parser 7.0.0, released May 2, 2017: 1 breaking change.

- **Default changed** `populate--`  

The populate-- option now defaults to false. Code that relied on the previous default must set populate-- explicitly. [github.com](https://github.com/yargs/yargs-parser/blob/v7.0.0/CHANGELOG.md)

### yargs-parser 6.0.0 breaking changes

yargs-parser 6.0.0, released May 1, 2017: 2 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](https://github.com/yargs/yargs-parser/blob/v6.0.0/CHANGELOG.md)
- **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](https://github.com/yargs/yargs-parser/blob/v6.0.0/CHANGELOG.md)

### yargs-parser 5.0.0 breaking changes

yargs-parser 5.0.0, released February 18, 2017: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v5.0.0/CHANGELOG.md)

### yargs-parser 4.0.0 breaking changes

yargs-parser 4.0.0, released September 26, 2016: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v4.0.0/CHANGELOG.md)

### yargs-parser 3.1.0 breaking changes

yargs-parser 3.1.0, released August 9, 2016: 1 breaking change.

- **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](https://github.com/yargs/yargs-parser/blob/v3.1.0/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
