Update execa to the latest version π
The dependency execa was updated from 1.0.0 to 2.0.0.
This version is not covered by your current version range.
If you donβt accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Release Notes for v2.0.0
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(). Theshelloption should be used instead. (#219) - Remove
execa.stdout()andexeca.stderr().childProcessResult.stdoutandchildProcessResult.stderrshould be used instead (#234) - Remove
error.code(numberorstring) in favor oferror.exitCode(number) anderror.exitCodeName(string) (#187, #250) - Rename
stripeEofoption tostripFinalNewline(f8397ba9, 4d0dc88a, #238) - Rename
cmd(inchildProcessResultanderror) tocommand(#194) - Default
preferLocaloption tofalse. If you are executing locally installed binaries, you'll need to manually specifypreferLocal: true(#314) - Ensure
windowsHideoption is alwaystrue, so that no window pops up on Windows. (8c886452) error.signalis nowundefinedinstead ofnullwhen no signal was used (#193)- Set
error.killedtofalsewhen child process timed out (#227) - Make
error.killedalways boolean (notundefined) (#229, #248) - Ensure errors always have the same shape. (#276, #277, #283)
error.stdoutanderror.stderrare 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.allandchildProcessResult.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 theforceKillAfterTimeoutoption. (#208, #272, #273, #280, #284, #285) - Add
childProcess.cancel()anderror.isCanceled(#189, f24e7c72, #226, #309) error.stdout,error.stderranderror.allnow contain the data that was sent before the child process exit. (#271)- Improve
error.messageon child process failure (#180, #223, #230, #245, #269) - Add
.finally()to the child process promise (#174, 65139849) - Increase
maxBufferoption default value from10 MBto100 MB(#286)
Bug fixes
- Fix
timeoutoption not working as expected (#199) - Fix
error.timedOutnot working withexeca.sync()(#249) - Fix
maxBuffererrors not using the same shape as the other errors (#266) - Fix
extendEndoption not working withshelloption (#184) - Fix
stripFinalNewlineoption not applied on error properties (#240) - Fix
/qparameter not added when usingcmdinstead ofcmd.exe(#203) - Fix uncaught exception when using
inputoption with a non-executable file (#212, #258) - Fix errors on child processes waiting for stdout/stderr to complete (#270)
- Fix validating that the
stdiooption cannot be used together withstdin: 0(#301).
Documentation
Design
- Add a logo (#201)
Tests
Maintainers
- Add @ehmicky as an additional maintainer.
Commits
The new version differs by 125 commits.
ec10a4c2.0.02752f49Fix lintingeb22ff7Change default value of thepreferLocaloption tofalse(#314)4dd258dSeparate error creation logic into its own file (#311)8af8c96Improve/refactor.cancel()(#309)4503764Simplify code related tocontext(#310)c2787e5Separatecleanupinto its own function (#308)a9fa13fRename variables instdiofile (#306)85a54d5Separatecleanupoption handling into its own function (#307)b979534RenamenodeArgumentstonodeOptions(#299)825f8a7Refactorstdiooption forexeca.node()(#303)2c65870Do not allowstdin: 0combined withstdio(#301)03d7be2Refactor entry point ofexeca.node()(#305)0d4a97aFix functions coding style (#296)ab83d8dSimplify tests for stdio (#300)
There are 125 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot :palm_tree:
- The
dependencyexeca was updated from1.0.0to2.0.1.