unstale

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 init

@unstale/cli on npm

execa 1063 changes

Breaking changes 12

  • Invalid file descriptor objects, such as closed file handles, now throw instead of crashing the current process.

    10.2.0release notes

  • Errors from synchronous transforms are no longer hidden.

    10.2.0release notes

  • Filtered output is no longer returned when a synchronous transform fails.

    10.2.0release notes

  • Wrong-typed options and arguments are no longer silently ignored or coerced.

    10.1.1release notes

  • Synchronous methods now throw when the signal option is used, matching asynchronous methods.

    10.1.0release notes

  • Using the same file as input and output now throws even when the paths are written differently.

    10.1.0release notes

  • This function was removed; use template string syntax instead, or parse a dynamic command string with parseCommandString().

    10.0.0release notes

  • When combined with inherited stdin, explicit input is now used instead of ignored.

    10.0.0release notes

  • Node.js 22 is now required to use execa.

    10.0.0release notes

  • The undocumented stdio: [..., 'ipc'] syntax was removed; use the ipc: true option instead.

    10.0.0release notes

  • The subprocess is now a normal promise rather than a ChildProcess instance augmented with promise methods; documented Execa methods and properties are unchanged.

    10.0.0release notes

  • Access Node.js-specific ChildProcess APIs such as .on(), .send(), .ref() and .unref() through this property.

    10.0.0release notes

New APIs and options 2

  • Use this option to terminate subprocess descendant processes, including processes spawned by a subprocess using the shell option.

    10.0.0release notes

  • 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.

    10.0.0release notes

Behavior and default changes 2

  • Options set to undefined now use $ defaults, including inheriting stdin.

    10.2.0release notes

  • The value returned by subprocess.pipe() now exposes the destination subprocess' methods, enabling direct output iteration, stream conversion, and IPC messaging.

    10.0.0release notes

Tooling 1

  • The transform generator's chunk argument is typed by transform mode: string for line transforms, Uint8Array for binary transforms, and unknown in object mode.

    10.0.0release notes

Fixes and other changes 46

  • Fixes type compatibility when using exactOptionalPropertyTypes.

    10.2.1release notes

  • Result types are corrected when options bound with execa(options) are overridden or reset to undefined.

    10.2.0release notes

  • execaNode() types are corrected when node is undefined.

    10.2.0release notes

  • execaNode() now runs its file when the current process uses --print.

    10.2.0release notes

  • Types for file-descriptor-specific options are corrected.

    10.2.0release notes

  • Setting maxBuffer to 0 now limits output from synchronous methods as it does from asynchronous methods.

    10.2.0release notes

  • Result and subprocess types are corrected when options are a union, including IPC.

    10.2.0release notes

  • result.all no longer changes objects when only stdout or stderr is buffered.

    10.2.0release notes

  • An invalid subprocess.duplex option no longer causes later stream conversions to hang.

    10.2.0release notes

  • Chunk types are corrected for subprocess.iterable() when using object-mode transforms.

    10.2.0release notes

  • subprocess.stdin types are corrected for the input and inputFile options.

    10.2.0release notes

  • Mixed text and byte chunks are no longer reordered.

    10.2.0release notes

  • final() is no longer skipped when a synchronous transform receives no input.

    10.2.0release notes

  • Writing objects to a web WritableStream is fixed.

    10.2.0release notes

  • Fixes errors and early error edge cases.

    10.1.1release notes

  • Fixes argument quoting when using the shell option.

    10.1.1release notes

  • Fixes missing IPC in the types for execaNode().

    10.1.1release notes

  • Fixes execaNode() edge cases.

    10.1.1release notes

  • Fixes handling of invalid forceKillAfterDelay values.

    10.1.1release notes

  • Fixes IPC edge cases.

    10.1.1release notes

  • Fixes missing IPC in the types for the node option.

    10.1.1release notes

  • Fixes parseCommandString() edge cases.

    10.1.1release notes

  • Fixes edge cases in .pipe() and stream conversion.

    10.1.1release notes

  • Fixes result.all edge cases.

    10.1.1release notes

  • Fixes edge cases involving stdin iterables and input transforms.

    10.1.1release notes

  • Fixes template string edge cases.

    10.1.1release notes

  • Fixes handling of invalid timeout values.

    10.1.1release notes

  • Fixes color output when stderr is not a terminal.

    10.1.1release notes

  • On Windows, arguments are escaped like Rust does, fixing batch files that read %~1.

    10.1.0release notes

  • These fields are no longer undefined when synchronous methods fail to spawn.

    10.1.0release notes

  • Fixes the encoding option and line splitting in transforms.

    10.1.0release notes

  • Synchronous methods now write raw output bytes to files, matching asynchronous methods.

    10.1.0release notes

  • Fixes input and output transforms with synchronous methods.

    10.1.0release notes

  • Fixes IPC with JSON serialization, strict mode, and the verbose option.

    10.1.0release notes

  • On Windows, killDescendants no longer signals unrelated processes.

    10.1.0release notes

  • Fixes results when only some file descriptors are buffered or split into lines.

    10.1.0release notes

  • Fixes small shebang scripts on Windows.

    10.1.0release notes

  • The subprocess error is no longer hidden when the current directory has been deleted.

    10.1.0release notes

  • The subprocess promise no longer hangs until an output stream is read.

    10.1.0release notes

  • Spawning no longer crashes when it fails with EMFILE or ENFILE, or when a file target cannot be opened.

    10.1.0release notes

  • Calling subprocess.kill() after a spawn failure no longer signals the current process group.

    10.1.0release notes

  • Fixes piping with the stdio option and destination subprocesses being left running.

    10.1.0release notes

  • Fixes template strings containing emojis and line continuations.

    10.1.0release notes

  • Fixes an argument escaping edge case on Windows when using preferLocal.

    10.0.1release notes

  • fd-specific options such as maxBuffer now work when ipc is true because fd3 and IPC no longer target the same file descriptor.

    10.0.0release notes

  • fd-specific options such as verbose now work when ipc is true because fd3 and IPC no longer target the same file descriptor.

    10.0.0release notes

execa 94 changes

Breaking changes 3

  • Support for versions below 18.19.0 and versions 20.0.0 through 20.4.0 was dropped.

    9.0.0release notes

  • Passing a file path to pipeStdout(), pipeStderr(), or pipeAll() was removed; pass a {file: './path'} object to stdout or stderr instead.

    9.0.0release notes

  • Removed; use subprocess.kill() or the cancelSignal option instead.

    9.0.0release notes

Fixes and other changes 1

  • Fixes the type export so developers can import VerboseOption.

    9.6.1release notes

execa 81 changes

Breaking changes 1

execa 73 changes

Breaking changes 1

Fixes and other changes 2

  • Streams now emit the end event when the process fails.

    7.0.0release notes

  • Fixes the incorrect execaNode signature in index.d.ts.

    7.0.0release notes

execa 67 changes

Breaking changes 7

  • Import execa as a named export instead of using the default export.

    6.0.0release notes

  • Import the command function as a named export instead of accessing it through the default export.

    6.0.0release notes

  • Import the sync command function as a named export instead of accessing it through the default export.

    6.0.0release notes

  • Import the node function as a named export instead of accessing it through the default export.

    6.0.0release notes

  • Import the sync function as a named export instead of accessing it through the default export.

    6.0.0release notes

  • Node.js 12.20 is now required to use the package.

    6.0.0release notes

  • The package is now pure ESM, so CommonJS usage must be migrated.

    6.0.0release notes

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.

    5.0.0release notes

execa 44 changes

Breaking changes 1

New APIs and options 1

  • A new property retrieves the error message without stderr or stdout.

    4.0.0release notes

Behavior and default changes 1

Fixes and other changes 1

  • Fix childProcess.kill() not working with Electron.

    4.0.0release notes

execa 39 changes

Breaking changes 5

  • The all property is undefined unless the all option is set to true.

    3.0.0release notes

  • The error.code property is no longer removed when it is defined.

    3.0.0release notes

  • error.exitCode is fixed; its value is no longer based on error.errno.

    3.0.0release notes

  • The error.exitCodeName property has been removed.

    3.0.0release notes

  • 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.

    3.0.0release notes

New APIs and options 1

Behavior and default changes 1

Fixes and other changes 2

  • Fixes errors being thrown when detached is true or cleanup is false.

    3.0.0release notes

  • Execa is compatible with Node.js 13.0.0-pre.

    3.0.0release notes

execa 242 changes

Breaking changes 18

  • The result field cmd was renamed to command.

    2.0.0release notes

  • Errors now always have the same shape.

    2.0.0release notes

  • error.code was removed in favor of error.exitCode and error.exitCodeName.

    2.0.0release notes

  • The error field cmd was renamed to command.

    2.0.0release notes

  • error.exitCode is the numeric replacement for error.code.

    2.0.0release notes

  • error.exitCodeName is the string replacement for error.code.

    2.0.0release notes

  • error.killed is false when the child process timed out.

    2.0.0release notes

  • error.signal is undefined rather than null when no signal was used.

    2.0.0release notes

  • error.stderr is an empty string rather than null when the command failed.

    2.0.0release notes

  • error.stdout is an empty string rather than null when the command failed.

    2.0.0release notes

  • The execa.shell() API was removed; use the shell option instead.

    2.0.0release notes

  • The execa.shellSync() API was removed; use the shell option instead.

    2.0.0release notes

  • The execa.stderr() API was removed; use childProcessResult.stderr instead.

    2.0.0release notes

  • The execa.stdout() API was removed; use childProcessResult.stdout instead.

    2.0.0release notes

  • Support for Node.js 6 was dropped.

    2.0.0release notes

  • The preferLocal option now defaults to false; set it to true to execute locally installed binaries.

    2.0.0release notes

  • The option was renamed from stripeEof to stripFinalNewline.

    2.0.0release notes

  • The windowsHide option is always true, preventing a window from popping up on Windows.

    2.0.0release notes

New APIs and options 9

  • Added .finally() to the child process promise.

    2.0.0release notes

  • Added access to interleaved stdout and stderr through childProcess.all.

    2.0.0release notes

  • Added a method to cancel a child process.

    2.0.0release notes

  • Added access to interleaved stdout and stderr through childProcessResult.all.

    2.0.0release notes

  • Added error.isCanceled to indicate cancellation.

    2.0.0release notes

  • Added an API that accepts the file and arguments together in a single string.

    2.0.0release notes

  • Added a synchronous API that accepts the file and arguments together in a single string.

    2.0.0release notes

  • Added an API to execute a Node.js script as a child process, similar to child_process.fork().

    2.0.0release notes

  • Added an option to configure force-killing a child process if it is not terminated after five seconds.

    2.0.0release notes

Behavior and default changes 1

  • The maxBuffer default increased from 10 MB to 100 MB.

    2.0.0release notes

Tooling 1

Fixes and other changes 13

  • Fixed errors on child processes waiting for stdout or stderr to complete.

    2.0.0release notes

  • error.all now contains data sent before the child process exited.

    2.0.0release notes

  • error.killed is always a boolean rather than undefined.

    2.0.0release notes

  • The error.message value was improved when a child process fails.

    2.0.0release notes

  • error.stderr now contains data sent before the child process exited.

    2.0.0release notes

  • error.stdout now contains data sent before the child process exited.

    2.0.0release notes

  • Fixed error.timedOut not working with execa.sync().

    2.0.0release notes

  • Fixed the extendEnd option not working with the shell option.

    2.0.0release notes

  • Fixed an uncaught exception when input is used with a non-executable file.

    2.0.0release notes

  • Fixed maxBuffer errors not using the same shape as other errors.

    2.0.0release notes

  • Fixed the /q parameter not being added when using cmd instead of cmd.exe.

    2.0.0release notes

  • Fixed stripFinalNewline not being applied to error properties.

    2.0.0release notes

  • Fixed the timeout option not working as expected.

    2.0.0release notes

execa 11 changes

Behavior and default changes 1

  • execa is marked stable; there are no actual changes since 0.11.0.

    1.0.0release notes