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

# yargs breaking changes

yargs 18.0.0 (May 27, 2025) is its newest release with breaking changes, 37 of them. The first: Command names are no longer derived from modules passed to command in yargs 18.0.0. Every breaking API change we have recorded in yargs on npm: 269 breaking changes in 16 versions. Below, its 16 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `18.2.0`, released September 20, 2026. [Source repository](https://github.com/yargs/yargs)

Its 18.0.0 release requires Node.js 20.19.0 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [17.7.3](#v-17-7-3) to [18.0.0](#v-18-0-0): 37 breaking changes in 1 version.
- From [4.0.0](#v-4-0-0) to [18.0.0](#v-18-0-0): 264 breaking changes in 15 versions.

## yargs 18.0.0 breaking changes

yargs 18.0.0, released May 27, 2025: 37 breaking changes.

- **Removed**  

Command names are not derived from modules passed to command anymore. Code relying on the derived name must set the command name explicitly. [github.com](https://github.com/yargs/yargs/blob/v18.0.0/CHANGELOG.md)
- **Removed** `Arguments`  

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

ArgumentsCamelCase was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `Argv`  

Argv was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `AsyncCompletionFunction`  

AsyncCompletionFunction was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `BuilderArguments`  

BuilderArguments was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `BuilderCallback`  

BuilderCallback was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `Choices`  

Choices was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `CommandBuilder`  

CommandBuilder was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `CommandModule`  

CommandModule was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `CompletionCallback`  

CompletionCallback was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `default`  

default was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `Defined`  

Defined was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `FallbackCompletionFunction`  

FallbackCompletionFunction was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `helpers:applyExtends`  

applyExtends was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `helpers:hideBin`  

hideBin was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `helpers:Parser`  

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

InferredOptionType was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `InferredOptionTypeInner`  

InferredOptionTypeInner was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `InferredOptionTypePrimitive`  

InferredOptionTypePrimitive was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `InferredOptionTypes`  

InferredOptionTypes was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `MiddlewareFunction`  

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

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

ParseCallback was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `ParserConfigurationOptions`  

ParserConfigurationOptions was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `PositionalOptions`  

PositionalOptions was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `PositionalOptionsType`  

PositionalOptionsType was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `PromiseCompletionFunction`  

PromiseCompletionFunction was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `RequireDirectoryOptions`  

RequireDirectoryOptions was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `SyncCompletionFunction`  

SyncCompletionFunction was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `ToArray`  

ToArray was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `ToNumber`  

ToNumber was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `ToString`  

ToString was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `yargs:default`  

default was removed in yargs 18.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/18.0.0)
- **Removed** `yargs.foo`  

The singleton usage of yargs, such as yargs.foo and yargs().argv, has been removed. Use the yargs factory function instead. [github.com](https://github.com/yargs/yargs/blob/v18.0.0/CHANGELOG.md)
- **Behavior changed**  

The minimum Node.js versions are now ^20.19.0, ^22.12.0 or >=23. Upgrade Node.js before using this release. [github.com](https://github.com/yargs/yargs/blob/v18.0.0/CHANGELOG.md)
- **Behavior changed**  

The package is now ESM first, which may affect how it is loaded from CommonJS code. [github.com](https://github.com/yargs/yargs/blob/v18.0.0/CHANGELOG.md)

## yargs 17.7.3 breaking changes

yargs 17.7.3, released June 19, 2026: 1 breaking change.

- **Removed** `browser:default`  

default was removed in yargs 17.7.3 [npmjs.com](https://www.npmjs.com/package/yargs/v/17.7.3)

## yargs 17.0.0 breaking changes

yargs 17.0.0, released May 2, 2021: 29 breaking changes.

- **Removed**  

Node 10 is no longer supported. Upgrade to a newer Node.js version before using this release. [github.com](https://github.com/yargs/yargs/blob/v17.0.0/CHANGELOG.md)
- **Removed**  

Methods that were only implicitly private are now actually private and can no longer be called from user code. [github.com](https://github.com/yargs/yargs/blob/v17.0.0/CHANGELOG.md)
- **Removed** `Argv.argv._`  

Argv.argv.\_ was removed in yargs 17.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/17.0.0)
- **Removed** `Argv.argv.$0`  

Argv.argv.$0 was removed in yargs 17.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/17.0.0)
- **Removed** `Argv.reset`  

The deprecated reset() method is now private. Call yargs() instead to get a fresh instance. [npmjs.com](https://www.npmjs.com/package/yargs/v/17.0.0)
- **Removed** `Omit`  

Omit was removed in yargs 17.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/17.0.0)
- **Removed** `onFinishCommand`  

onFinishCommand has been removed; await the returned promise instead. [github.com](https://github.com/yargs/yargs/blob/v17.0.0/CHANGELOG.md)
- **Removed** `RequiredOptionType`  

RequiredOptionType was removed in yargs 17.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/17.0.0)
- **Behavior changed**  

yargs now returns a promise if the handler is async, so callers must await the result. [github.com](https://github.com/yargs/yargs/blob/v17.0.0/CHANGELOG.md)
- **Behavior changed**  

The yargs-factory internals were refactored to a class, which changes how the factory is constructed. [github.com](https://github.com/yargs/yargs/blob/v17.0.0/CHANGELOG.md)

And 19 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## yargs 16.0.0 breaking changes

yargs 16.0.0, released September 9, 2020: 7 breaking changes.

- **Removed**  

Node 8 is no longer supported, so users on Node 8 must upgrade their runtime. [github.com](https://github.com/yargs/yargs/blob/v16.0.0/CHANGELOG.md)
- **Removed** `rebase`  

The rebase helper is no longer available on the yargs instance and must be used as an exported helper instead. [github.com](https://github.com/yargs/yargs/blob/v16.0.0/CHANGELOG.md)
- **Renamed** `getProcessArgvWithoutBin`  

Rename calls to getProcessArgvWithoutBin to hideBin. [github.com](https://github.com/yargs/yargs/blob/v16.0.0/CHANGELOG.md)
- **Behavior changed**  

The default export of the ESM and Deno builds is now the yargs function. Code that relied on the previous default export must import the named export instead. [github.com](https://github.com/yargs/yargs/blob/v16.0.0/CHANGELOG.md)
- **Behavior changed**  

The bundled parser moved to version 19 with a new decamelize and camelcase implementation, which can change how option names are parsed. [github.com](https://github.com/yargs/yargs/blob/v16.0.0/CHANGELOG.md)
- **Behavior changed** `usage`  

Help output lists single character aliases before longer ones, so help text may look different. [github.com](https://github.com/yargs/yargs/blob/v16.0.0/CHANGELOG.md)
- **Configuration changed**  

An export map was added, so deep imports of files not listed in it no longer work on Node 12 and later. [github.com](https://github.com/yargs/yargs/blob/v16.0.0/CHANGELOG.md)

## yargs 15.0.0 breaking changes

yargs 15.0.0, released November 10, 2019: 3 breaking changes.

- **Removed**  

yargs no longer supports Node 6. Upgrade your Node.js runtime before using this version. [github.com](https://github.com/yargs/yargs/blob/v15.0.0/CHANGELOG.md)
- **Removed** `parserConfiguration`  

The parserConfiguration setting read from package.json is removed. Users who relied on it must move that configuration into their code. [github.com](https://github.com/yargs/yargs/blob/v15.0.0/CHANGELOG.md)
- **Behavior changed**  

yargs no longer supports Node 6. Users on Node 6 must upgrade their Node.js version. [github.com](https://github.com/yargs/yargs/blob/v15.0.0/CHANGELOG.md)

## yargs 14.0.0 breaking changes

yargs 14.0.0, released July 30, 2019: 3 breaking changes.

- **Behavior changed**  

In strict mode, extra positional arguments beyond those declared now cause an error. Code passing extra positionals must be adjusted. [github.com](https://github.com/yargs/yargs/blob/v14.0.0/CHANGELOG.md)
- **Behavior changed** `yargs.getOptions`  

Methods such as yargs.getOptions() now reflect the current instance rather than the state of the last command executed. Code relying on the old state must change. [github.com](https://github.com/yargs/yargs/blob/v14.0.0/CHANGELOG.md)
- **Behavior changed** `yargs.parsed`  

When yargs.parse() is called with no arguments, yargs.parsed is now filled in before returning. Code that expected it to be empty must be updated. [github.com](https://github.com/yargs/yargs/blob/v14.0.0/CHANGELOG.md)

## Older versions

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

### yargs 13.1.0 breaking changes

yargs 13.1.0, released February 12, 2019: 5 breaking changes.

- **Removed** `Configuration`  

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

DetailedArguments was removed in yargs 13.1.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/13.1.0)

And 3 more in this version.

### yargs 12.0.0 breaking changes

yargs 12.0.0, released June 26, 2018: 103 breaking changes.

- **Removed**  

Node 6 is no longer tested, and support for Node 4 will gradually drift away. [github.com](https://github.com/yargs/yargs/blob/v12.0.0/CHANGELOG.md)
- **Removed** `Arguments._`  

Arguments.\_ was removed in yargs 12.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/12.0.0)

And 101 more in this version.

### yargs 11.0.0 breaking changes

yargs 11.0.0, released January 22, 2018: 53 breaking changes.

- **Removed** `BuilderCallback`  

BuilderCallback was removed in yargs 11.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/11.0.0)
- **Removed** `PositionalOptions.array`  

PositionalOptions.array was removed in yargs 11.0.0 [npmjs.com](https://www.npmjs.com/package/yargs/v/11.0.0)

And 51 more in this version.

### yargs 10.0.0 breaking changes

yargs 10.0.0, released October 18, 2017: 4 breaking changes.

- **Behavior changed**  

Options were previously hidden by giving them a falsy description. Now they are hidden only when marked with the "hidden" flag, so update options that relied on a falsy description. [github.com](https://github.com/yargs/yargs/blob/v10.0.0/CHANGELOG.md)
- **Behavior changed**  

The help command executes only if it is the last positional in argv.\_. Code that relied on it running in other positions must be adjusted. [github.com](https://github.com/yargs/yargs/blob/v10.0.0/CHANGELOG.md)

And 2 more in this version.

### yargs 9.0.0 breaking changes

yargs 9.0.0, released September 3, 2017: 2 breaking changes.

- **Default changed** `help`  

help() is on without calling it and appears in help output. The implicit help command can no longer be enabled or disabled separately from help itself, which can now be disabled. [github.com](https://github.com/yargs/yargs/blob/v9.0.0/CHANGELOG.md)
- **Default changed** `version`  

version() is on without calling it and appears in help output. Code that relied on it being off must now disable it explicitly. [github.com](https://github.com/yargs/yargs/blob/v9.0.0/CHANGELOG.md)

### yargs 8.0.0 breaking changes

yargs 8.0.0, released May 1, 2017: 5 breaking changes.

- **Behavior changed**  

When parsing is stopped with '--', the remaining arguments are placed in '--' rather than '\_'. Update code that reads '\_' for these values. [github.com](https://github.com/yargs/yargs/blob/v8.0.0/CHANGELOG.md)
- **Behavior changed**  

The release uses language features that need Node 4+, so older Node versions will no longer work. [github.com](https://github.com/yargs/yargs/blob/v8.0.0/CHANGELOG.md)

And 3 more in this version.

### yargs 7.0.0 breaking changes

yargs 7.0.0, released February 26, 2017: 6 breaking changes.

- **Behavior changed**  

Code that uses the API in unexpected ways may now throw exceptions. Check for calls that relied on silent handling. [github.com](https://github.com/yargs/yargs/blob/v7.0.0/CHANGELOG.md)
- **Behavior changed**  

By default, options and parsing helpers now apply globally and are no longer reset before being passed into commands. Check commands that depended on per-command resets. [github.com](https://github.com/yargs/yargs/blob/v7.0.0/CHANGELOG.md)

And 4 more in this version.

### yargs 6.0.0 breaking changes

yargs 6.0.0, released September 30, 2016: 1 breaking change.

- **Behavior changed** `coerce`  

Coercion functions are applied after all other argument parsing finishes, so code relying on the earlier order may see different values. [github.com](https://github.com/yargs/yargs/blob/v6.0.0/CHANGELOG.md)

### yargs 5.0.0 breaking changes

yargs 5.0.0, released August 16, 2016: 5 breaking changes.

- **Removed** `defaults`  

The undocumented defaults alias of default has been removed. Use default instead. [github.com](https://github.com/yargs/yargs/blob/v5.0.0/CHANGELOG.md)
- **Behavior changed**  

yargs now ships a default help command that outputs help as an alternative to the help flag. Code that defines its own help command may behave differently. [github.com](https://github.com/yargs/yargs/blob/v5.0.0/CHANGELOG.md)

And 3 more in this version.

### yargs 4.0.0 breaking changes

yargs 4.0.0, released February 14, 2016: 5 breaking changes.

- **Behavior changed**  

The command handling API was overhauled, introducing named positional arguments and commands as modules. Existing command definitions must be updated to the new API. [github.com](https://github.com/bcoe/yargs/blob/v4.0.0/CHANGELOG.md)
- **Behavior changed** `strict`  

With .strict() on, a valid command must now be provided, so calls without one will fail. Make sure code supplies a valid command when strict mode is used. [github.com](https://github.com/bcoe/yargs/blob/v4.0.0/CHANGELOG.md)

And 3 more in this version.

## Related packages

- [yargs-parser](https://since.dev/packages/npm/yargs-parser.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.
