yargs breaking changes
Updated December 4, 2026
On this page
Latest version 18.2.0, released September 20, 2026. Source repository
Its 18.0.0 release requires Node.js 20.19.0 or later. Node.js end of life dates.
- From 17.7.3 to 18.0.0: 37 breaking changes in 1 version.
- From 4.0.0 to 18.0.0: 264 breaking changes in 15 versions.
yargs 18.0.0 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 - Removed
Arguments
Arguments was removed in yargs 18.0.0 npmjs.com - Removed
ArgumentsCamelCase
ArgumentsCamelCase was removed in yargs 18.0.0 npmjs.com - Removed
Argv
Argv was removed in yargs 18.0.0 npmjs.com - Removed
AsyncCompletionFunction
AsyncCompletionFunction was removed in yargs 18.0.0 npmjs.com - Removed
BuilderArguments
BuilderArguments was removed in yargs 18.0.0 npmjs.com - Removed
BuilderCallback
BuilderCallback was removed in yargs 18.0.0 npmjs.com - Removed
Choices
Choices was removed in yargs 18.0.0 npmjs.com - Removed
CommandBuilder
CommandBuilder was removed in yargs 18.0.0 npmjs.com - Removed
CommandModule
CommandModule was removed in yargs 18.0.0 npmjs.com - Removed
CompletionCallback
CompletionCallback was removed in yargs 18.0.0 npmjs.com - Removed
default
default was removed in yargs 18.0.0 npmjs.com - Removed
Defined
Defined was removed in yargs 18.0.0 npmjs.com - Removed
FallbackCompletionFunction
FallbackCompletionFunction was removed in yargs 18.0.0 npmjs.com - Removed
helpers:applyExtends
applyExtends was removed in yargs 18.0.0 npmjs.com - Removed
helpers:hideBin
hideBin was removed in yargs 18.0.0 npmjs.com - Removed
helpers:Parser
Parser was removed in yargs 18.0.0 npmjs.com - Removed
InferredOptionType
InferredOptionType was removed in yargs 18.0.0 npmjs.com - Removed
InferredOptionTypeInner
InferredOptionTypeInner was removed in yargs 18.0.0 npmjs.com - Removed
InferredOptionTypePrimitive
InferredOptionTypePrimitive was removed in yargs 18.0.0 npmjs.com - Removed
InferredOptionTypes
InferredOptionTypes was removed in yargs 18.0.0 npmjs.com - Removed
MiddlewareFunction
MiddlewareFunction was removed in yargs 18.0.0 npmjs.com - Removed
Options
Options was removed in yargs 18.0.0 npmjs.com - Removed
ParseCallback
ParseCallback was removed in yargs 18.0.0 npmjs.com - Removed
ParserConfigurationOptions
ParserConfigurationOptions was removed in yargs 18.0.0 npmjs.com - Removed
PositionalOptions
PositionalOptions was removed in yargs 18.0.0 npmjs.com - Removed
PositionalOptionsType
PositionalOptionsType was removed in yargs 18.0.0 npmjs.com - Removed
PromiseCompletionFunction
PromiseCompletionFunction was removed in yargs 18.0.0 npmjs.com - Removed
RequireDirectoryOptions
RequireDirectoryOptions was removed in yargs 18.0.0 npmjs.com - Removed
SyncCompletionFunction
SyncCompletionFunction was removed in yargs 18.0.0 npmjs.com - Removed
ToArray
ToArray was removed in yargs 18.0.0 npmjs.com - Removed
ToNumber
ToNumber was removed in yargs 18.0.0 npmjs.com - Removed
ToString
ToString was removed in yargs 18.0.0 npmjs.com - Removed
yargs:default
default was removed in yargs 18.0.0 npmjs.com - 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 - 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 - Behavior changed
The package is now ESM first, which may affect how it is loaded from CommonJS code. github.com
yargs 17.7.3 breaking changes
- Removed
browser:default
default was removed in yargs 17.7.3 npmjs.com
yargs 17.0.0 breaking changes
- Removed
Node 10 is no longer supported. Upgrade to a newer Node.js version before using this release. github.com - Removed
Methods that were only implicitly private are now actually private and can no longer be called from user code. github.com - Removed
Argv.argv._
Argv.argv._ was removed in yargs 17.0.0 npmjs.com - Removed
Argv.argv.$0
Argv.argv.$0 was removed in yargs 17.0.0 npmjs.com - Removed
Argv.reset
The deprecated reset() method is now private. Call yargs() instead to get a fresh instance. npmjs.com - Removed
Omit
Omit was removed in yargs 17.0.0 npmjs.com - Removed
onFinishCommand
onFinishCommand has been removed; await the returned promise instead. github.com - Removed
RequiredOptionType
RequiredOptionType was removed in yargs 17.0.0 npmjs.com - Behavior changed
yargs now returns a promise if the handler is async, so callers must await the result. github.com - Behavior changed
The yargs-factory internals were refactored to a class, which changes how the factory is constructed. github.com
And 19 more in this version. Sign up to see every change
yargs 16.0.0 breaking changes
- Removed
Node 8 is no longer supported, so users on Node 8 must upgrade their runtime. github.com - Removed
rebase
The rebase helper is no longer available on the yargs instance and must be used as an exported helper instead. github.com - Renamed
getProcessArgvWithoutBin
Rename calls to getProcessArgvWithoutBin to hideBin. github.com - 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 - 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 - Behavior changed
usage
Help output lists single character aliases before longer ones, so help text may look different. github.com - 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
yargs 15.0.0 breaking changes
- Removed
yargs no longer supports Node 6. Upgrade your Node.js runtime before using this version. github.com - 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 - Behavior changed
yargs no longer supports Node 6. Users on Node 6 must upgrade their Node.js version. github.com
yargs 14.0.0 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 - 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 - 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
Older versions
10 older versions, each with its first changes. Sign up to see every change
Show 10 older versions
yargs 13.1.0 breaking changes
- Removed
Configuration
Configuration was removed in yargs 13.1.0 npmjs.com - Removed
DetailedArguments
DetailedArguments was removed in yargs 13.1.0 npmjs.com
And 3 more in this version.
yargs 12.0.0 breaking changes
- Removed
Node 6 is no longer tested, and support for Node 4 will gradually drift away. github.com - Removed
Arguments._
Arguments._ was removed in yargs 12.0.0 npmjs.com
And 101 more in this version.
yargs 11.0.0 breaking changes
- Removed
BuilderCallback
BuilderCallback was removed in yargs 11.0.0 npmjs.com - Removed
PositionalOptions.array
PositionalOptions.array was removed in yargs 11.0.0 npmjs.com
And 51 more in this version.
yargs 10.0.0 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 - 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
And 2 more in this version.
yargs 9.0.0 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 - 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
yargs 8.0.0 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 - Behavior changed
The release uses language features that need Node 4+, so older Node versions will no longer work. github.com
And 3 more in this version.
yargs 7.0.0 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 - 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
And 4 more in this version.
yargs 6.0.0 breaking changes
- 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
yargs 5.0.0 breaking changes
- Removed
defaults
The undocumented defaults alias of default has been removed. Use default instead. github.com - 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
And 3 more in this version.
yargs 4.0.0 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 - 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
And 3 more in this version.
Related packages
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.