npm / execa
execa
What changed in execa 1 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
49 breaking13 new APIs and options6 behavior and defaults2 tooling65 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initexeca 1063 changes
Breaking changes 12
Invalid file descriptor objects, such as closed file handles, now throw instead of crashing the current process.
Errors from synchronous transforms are no longer hidden.
Filtered output is no longer returned when a synchronous transform fails.
Wrong-typed options and arguments are no longer silently ignored or coerced.
Synchronous methods now throw when the signal option is used, matching asynchronous methods.
Using the same file as input and output now throws even when the paths are written differently.
This function was removed; use template string syntax instead, or parse a dynamic command string with
parseCommandString().When combined with inherited stdin, explicit input is now used instead of ignored.
Node.js 22 is now required to use execa.
The undocumented
stdio: [..., 'ipc']syntax was removed; use theipc: trueoption instead.The subprocess is now a normal promise rather than a ChildProcess instance augmented with promise methods; documented Execa methods and properties are unchanged.
Access Node.js-specific ChildProcess APIs such as
.on(),.send(),.ref()and.unref()through this property.
New APIs and options 2
Use this option to terminate subprocess descendant processes, including processes spawned by a subprocess using the
shelloption.An additional file descriptor can be used as input by wrapping its stdio value in a
{value, input: true}object; ambiguous values default to output on additional descriptors.
Behavior and default changes 2
Options set to undefined now use $ defaults, including inheriting stdin.
The value returned by
subprocess.pipe()now exposes the destination subprocess' methods, enabling direct output iteration, stream conversion, and IPC messaging.
Tooling 1
The transform generator's
chunkargument is typed by transform mode:stringfor line transforms,Uint8Arrayfor binary transforms, andunknownin object mode.
Fixes and other changes 46
Fixes type compatibility when using exactOptionalPropertyTypes.
Result types are corrected when options bound with execa(options) are overridden or reset to undefined.
execaNode() types are corrected when node is undefined.
execaNode() now runs its file when the current process uses --print.
Types for file-descriptor-specific options are corrected.
Setting maxBuffer to 0 now limits output from synchronous methods as it does from asynchronous methods.
Result and subprocess types are corrected when options are a union, including IPC.
result.all no longer changes objects when only stdout or stderr is buffered.
An invalid subprocess.duplex option no longer causes later stream conversions to hang.
Chunk types are corrected for subprocess.iterable() when using object-mode transforms.
subprocess.stdin types are corrected for the input and inputFile options.
Mixed text and byte chunks are no longer reordered.
final() is no longer skipped when a synchronous transform receives no input.
Writing objects to a web WritableStream is fixed.
Fixes errors and early error edge cases.
Fixes argument quoting when using the shell option.
Fixes missing IPC in the types for execaNode().
Fixes execaNode() edge cases.
Fixes handling of invalid forceKillAfterDelay values.
Fixes IPC edge cases.
Fixes missing IPC in the types for the node option.
Fixes parseCommandString() edge cases.
Fixes edge cases in .pipe() and stream conversion.
Fixes result.all edge cases.
Fixes edge cases involving stdin iterables and input transforms.
Fixes template string edge cases.
Fixes handling of invalid timeout values.
Fixes color output when stderr is not a terminal.
On Windows, arguments are escaped like Rust does, fixing batch files that read %~1.
These fields are no longer undefined when synchronous methods fail to spawn.
Fixes the encoding option and line splitting in transforms.
Synchronous methods now write raw output bytes to files, matching asynchronous methods.
Fixes input and output transforms with synchronous methods.
Fixes IPC with JSON serialization, strict mode, and the verbose option.
On Windows, killDescendants no longer signals unrelated processes.
Fixes results when only some file descriptors are buffered or split into lines.
Fixes small shebang scripts on Windows.
The subprocess error is no longer hidden when the current directory has been deleted.
The subprocess promise no longer hangs until an output stream is read.
Spawning no longer crashes when it fails with EMFILE or ENFILE, or when a file target cannot be opened.
Calling subprocess.kill() after a spawn failure no longer signals the current process group.
Fixes piping with the stdio option and destination subprocesses being left running.
Fixes template strings containing emojis and line continuations.
Fixes an argument escaping edge case on Windows when using preferLocal.
fd-specific options such as
maxBuffernow work whenipcis true because fd3 and IPC no longer target the same file descriptor.fd-specific options such as
verbosenow work whenipcis true because fd3 and IPC no longer target the same file descriptor.
execa 94 changes
Breaking changes 3
Support for versions below 18.19.0 and versions 20.0.0 through 20.4.0 was dropped.
Passing a file path to pipeStdout(), pipeStderr(), or pipeAll() was removed; pass a {file: './path'} object to stdout or stderr instead.
Removed; use subprocess.kill() or the cancelSignal option instead.
Fixes and other changes 1
Fixes the type export so developers can import VerboseOption.
execa 81 changes
Breaking changes 1
Requires Node.js 16.17.0 or later.
execa 73 changes
Breaking changes 1
Requires Node.js 14 or later.
Fixes and other changes 2
Streams now emit the end event when the process fails.
Fixes the incorrect execaNode signature in index.d.ts.
execa 67 changes
Breaking changes 7
Import execa as a named export instead of using the default export.
Import the command function as a named export instead of accessing it through the default export.
Import the sync command function as a named export instead of accessing it through the default export.
Import the node function as a named export instead of accessing it through the default export.
Import the sync function as a named export instead of accessing it through the default export.
Node.js 12.20 is now required to use the package.
The package is now pure ESM, so CommonJS usage must be migrated.
execa 51 changes
Breaking changes 1
The faulty emulated ENOENT error on Windows was removed; this matters if you depend on the exact error message.
execa 44 changes
Breaking changes 1
Node.js 10 is now required.
New APIs and options 1
A new property retrieves the error message without stderr or stdout.
Behavior and default changes 1
error.message now includes stderr and stdout.
Fixes and other changes 1
Fix childProcess.kill() not working with Electron.
execa 39 changes
Breaking changes 5
The all property is undefined unless the all option is set to true.
The error.code property is no longer removed when it is defined.
error.exitCode is fixed; its value is no longer based on error.errno.
The error.exitCodeName property has been removed.
With buffer false and stdout and stderr piped, the returned promise resolves only after those streams are fully read; this also applies to all when the all option is true.
New APIs and options 1
Adds the error.originalMessage property.
Behavior and default changes 1
Error messages are improved.
Fixes and other changes 2
Fixes errors being thrown when detached is true or cleanup is false.
Execa is compatible with Node.js 13.0.0-pre.
execa 242 changes
Breaking changes 18
The result field cmd was renamed to command.
Errors now always have the same shape.
error.code was removed in favor of error.exitCode and error.exitCodeName.
The error field cmd was renamed to command.
error.exitCode is the numeric replacement for error.code.
error.exitCodeName is the string replacement for error.code.
error.killed is false when the child process timed out.
error.signal is undefined rather than null when no signal was used.
error.stderr is an empty string rather than null when the command failed.
error.stdout is an empty string rather than null when the command failed.
The execa.shell() API was removed; use the shell option instead.
The execa.shellSync() API was removed; use the shell option instead.
The execa.stderr() API was removed; use childProcessResult.stderr instead.
The execa.stdout() API was removed; use childProcessResult.stdout instead.
Support for Node.js 6 was dropped.
The preferLocal option now defaults to false; set it to true to execute locally installed binaries.
The option was renamed from stripeEof to stripFinalNewline.
The windowsHide option is always true, preventing a window from popping up on Windows.
New APIs and options 9
Added .finally() to the child process promise.
Added access to interleaved stdout and stderr through childProcess.all.
Added a method to cancel a child process.
Added access to interleaved stdout and stderr through childProcessResult.all.
Added error.isCanceled to indicate cancellation.
Added an API that accepts the file and arguments together in a single string.
Added a synchronous API that accepts the file and arguments together in a single string.
Added an API to execute a Node.js script as a child process, similar to child_process.fork().
Added an option to configure force-killing a child process if it is not terminated after five seconds.
Behavior and default changes 1
The maxBuffer default increased from 10 MB to 100 MB.
Tooling 1
TypeScript definitions were added.
Fixes and other changes 13
Fixed errors on child processes waiting for stdout or stderr to complete.
error.all now contains data sent before the child process exited.
error.killed is always a boolean rather than undefined.
The error.message value was improved when a child process fails.
error.stderr now contains data sent before the child process exited.
error.stdout now contains data sent before the child process exited.
Fixed error.timedOut not working with execa.sync().
Fixed the extendEnd option not working with the shell option.
Fixed an uncaught exception when input is used with a non-executable file.
Fixed maxBuffer errors not using the same shape as other errors.
Fixed the /q parameter not being added when using cmd instead of cmd.exe.
Fixed stripFinalNewline not being applied to error properties.
Fixed the timeout option not working as expected.
execa 11 changes
Behavior and default changes 1
execa is marked stable; there are no actual changes since 0.11.0.