All Versions
24
Latest Version
Avg Release Cycle
53 days
Latest Release
1733 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v3.0.0 Changes
October 14, 2019๐ฅ Breaking changes
- ๐จ When the
buffer
option isfalse
andstdout
andstderr
are piped, the promise returned byexeca()
will resolve only after those streams are fully read. This also applies to theall
property if theall
option istrue
. This concerns you only if you've explicitly set thebuffer
option tofalse
. (#353) - The
all
property is nowundefined
unless theall
option is set totrue
. (#353) - ๐
error.exitCodeName
has been removed. (#375) - Fix
error.exitCode
. Its value was previously based onerror.errno
which is incorrect. (#375)
๐ Features
- Do not remove
error.code
property when it is defined (#375) - ๐ Improve error messages (#375)
- โ Add
error.originalMessage
property (#373)
๐ Bug fixes
- ๐ Fix errors being thrown when
detached: true
orcleanup: false
is used (#360) - ๐ Make execa compatible with Node.js
13.0.0-pre
(#370)
Dependencies
๐ Documentation
- Document the reasons why the returned promise might fail (#364)
- ๐จ When the
-
v2.1.0 Changes
October 09, 2019๐ Features
- โ Add
error.originalMessage
property (#373)
๐ Documentation
- Document the reasons why the returned promise might fail (#364)
Dependencies
- โฌ๏ธ Upgrade cross-spawn to
7.0.0
(#367)
- โ Add
-
v2.0.5 Changes
October 04, 2019 -
v2.0.4 Changes
August 15, 2019๐ Bug fixes
-
v2.0.3 Changes
July 05, 2019 -
v2.0.2 Changes
July 01, 2019 -
v2.0.1 Changes
June 26, 2019๐ Bug fixes
- ๐ฆ Correctly set the
engines.node
field inpackage.json
. Supported Node versions are either^8.12.0
or>=9.7.0
(#319, #323)
๐ Documentation
- ๐ Improve the
execa.command()
documentation (#317)
- ๐ฆ Correctly set the
-
v2.0.0 Changes
June 25, 2019๐ Thanks to @GMartigny, @BendingBender, @tomsotte, @ammarbinfaisal, @zokker13, @stroncium, @satyarohith, @bradfordlemley, @coreyfarrell, @brandon93s, @dtinth, @papb for the great features and bug fixes they've contributed!
๐ Please check the Medium article about this release!
๐ฅ Breaking changes
- โฌ๏ธ Drop support for Node.js 6 (dce22670, #221)
- โ Remove
execa.shell()
andexeca.shellSync()
. Theshell
option should be used instead. (#219) - โ Remove
execa.stdout()
andexeca.stderr()
.childProcessResult.stdout
andchildProcessResult.stderr
should be used instead (#234) - โ Remove
error.code
(number
orstring
) in favor oferror.exitCode
(number
) anderror.exitCodeName
(string
) (#187, #250) - ๐ Rename
stripeEof
option tostripFinalNewline
(f8397ba9, 4d0dc88a, #238) - ๐ Rename
cmd
(inchildProcessResult
anderror
) tocommand
(#194) - 0๏ธโฃ Default
preferLocal
option tofalse
. If you are executing locally installed binaries, you'll need to manually specifypreferLocal: true
(#314) - ๐จ Ensure
windowsHide
option is alwaystrue
, so that no window pops up on Windows. (8c886452) - ๐ฆ
error.signal
is nowundefined
instead ofnull
when no signal was used (#193) - Set
error.killed
tofalse
when child process timed out (#227) - ๐ Make
error.killed
always boolean (notundefined
) (#229, #248) - Ensure errors always have the same shape. (#276, #277, #283)
error.stdout
anderror.stderr
are now an empty string (instead ofnull
) when the command failed. (#246)
๐ Features
- โ Add TypeScript definition (#188, f2cb86ff, 7702b8ef, 4692dcd4, #251)
- โ Add
execa.command()
andexeca.commandSync()
. Those are the same asexeca()
except both file and arguments are specified in a single string. For example,execa('echo', ['unicorns'])
is the same asexeca.command('echo unicorns')
(#182, #261, #262, #278, #279, #282) - Retrieve interleaved stdout and stderr with
childProcess.all
andchildProcessResult.all
(#171, #264) - ๐จ Add
execa.node()
which (likechild_process.fork()
) allows you to execute a Node.js script as a child process (#200, #297, #299, #302, #303, #305, #306). - ๐ฆ If
childProcess.kill()
does not terminate a child process after 5 seconds, force it by sendingSIGKILL
. This can be configured using theforceKillAfterTimeout
option. (#208, #272, #273, #280, #284, #285) - โ Add
childProcess.cancel()
anderror.isCanceled
(#189, f24e7c72, #226, #309) error.stdout
,error.stderr
anderror.all
now contain the data that was sent before the child process exit. (#271)- ๐ Improve
error.message
on child process failure (#180, #223, #230, #245, #269) - โ Add
.finally()
to the child process promise (#174, 65139849) - 0๏ธโฃ Increase
maxBuffer
option default value from10 MB
to100 MB
(#286)
๐ Bug fixes
- ๐ Fix
timeout
option not working as expected (#199) - ๐ Fix
error.timedOut
not working withexeca.sync()
(#249) - ๐ Fix
maxBuffer
errors not using the same shape as the other errors (#266) - ๐ Fix
extendEnd
option not working withshell
option (#184) - ๐ Fix
stripFinalNewline
option not applied on error properties (#240) - ๐ Fix
/q
parameter not added when usingcmd
instead ofcmd.exe
(#203) - ๐ Fix uncaught exception when using
input
option with a non-executable file (#212, #258) - ๐ Fix errors on child processes waiting for stdout/stderr to complete (#270)
- ๐ Fix validating that the
stdio
option cannot be used together withstdin: 0
(#301).
๐ Documentation
Design
- โ Add a logo (#201)
โ Tests
Maintainers
- โ Add @ehmicky as an additional maintainer.
-
v2.0.0-alpha.0 Changes
June 18, 2019๐ This is an alpha release for the upcoming
2.0.0
.๐ Thanks to @GMartigny, @BendingBender, @tomsotte, @ammarbinfaisal, @zokker13, @stroncium, @satyarohith, @bradfordlemley, @coreyfarrell, @brandon93s, @dtinth, @papb for the great features and bug fixes they contributed!
๐ฅ Breaking changes
- โฌ๏ธ Drop support for Node.js 6 (dce22670, #221)
- โ Remove
execa.shell()
andexeca.shellSync()
. Theshell
option should be used instead. (#219) - โ Remove
execa.stdout()
andexeca.stderr()
.childProcessResult.stdout
andchildProcessResult.stderr
should be used instead (#234) - โ Remove
error.code
(number
orstring
) in favor oferror.exitCode
(number
) anderror.exitCodeName
(string
) (#187, #250) - ๐ Rename
stripeEof
option tostripFinalNewline
(f8397ba9, 4d0dc88a, #238) - ๐ Rename
cmd
(inchildProcessResult
anderror
) tocommand
(#194) - ๐จ Default
windowsHide
option totrue
. This ensures no window pops up on Windows. (8c886452) - ๐ฆ
error.signal
is nowundefined
instead ofnull
when no signal was used (#193) - Set
error.killed
tofalse
when child process timed out (#227) - ๐ Make
error.killed
anderror.isCanceled
always boolean (notundefined
) (#229, #248) - Ensure errors always have the same shape. (#276, #277, #283)
error.stdout
anderror.stderr
are now an empty string (instead ofnull
) when the command failed. (#246)
๐ Features
- โ Add TypeScript definition (#188, f2cb86ff, 7702b8ef, 4692dcd4, #251)
- โ Add
execa.command()
andexeca.commandSync()
. Those are the same asexeca()
except both file and arguments are specified in a single string. For example,execa('echo', ['unicorns'])
is the same asexeca.command('echo unicorns')
(#182, #261, #262, #278, #279, #282) - Retrieve interleaved stdout and stderr with
childProcess.all
andchildProcessResult.all
(#171, #264) - ๐ฆ If
childProcess.kill()
does not terminate a child process after 5 seconds, force it by sendingSIGKILL
. This can be configured using theforceKillAftrerTimeout
option. (#208, #272, #273, #280, #284, #285) - โ Add
childProcess.cancel()
anderror.isCanceled
(#189, f24e7c72, #226) error.stdout
,error.stderr
anderror.all
now contain the data that was sent before the child process exit. (#271)- ๐ Improve
error.message
on child process failure (#180, #223, #230, #245, #269) - โ Add
.finally()
to the child process promise (#174, 65139849) - 0๏ธโฃ Increase
maxBuffer
option default value from10 MB
to100 MB
(#286)
๐ Bug fixes
- ๐ Fix
timeout
option not working as expected (#199) - ๐ Fix
error.timedOut
not working withexeca.sync()
(#249) - ๐ Fix
maxBuffer
errors not using the same shape as the other errors (#266) - ๐ Fix
extendEnd
option not working withshell
option (#184) - ๐ Fix
stripFinalNewline
option not applied on error properties (#240) - ๐ Fix
/q
parameter not added when usingcmd
instead ofcmd.exe
(#203) - ๐ Fix uncaught exception when using
input
option with a non-executable file (#212, #258) - ๐ Fix errors on child processes waiting for stdout/stderr to complete (#270)
๐ Documentation
Design
- โ Add a logo (#201)
โ Tests
Maintainers
- โ Add @ehmicky as an additional maintainer.
-
v1.0.0 Changes
November 12, 2018This marks
execa
as stable. No actual changes since 0.11.0.