chore(deps): update dependency @types/execa to v2 #237
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.9.0
->2.0.0
Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.
Release Notes
sindresorhus/execa (@types/execa)
v2.0.0
Compare Source
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
execa.shell()
andexeca.shellSync()
. Theshell
option should be used instead. (#219)execa.stdout()
andexeca.stderr()
.childProcessResult.stdout
andchildProcessResult.stderr
should be used instead (#234)error.code
(number
orstring
) in favor oferror.exitCode
(number
) anderror.exitCodeName
(string
) (#187, #250)stripeEof
option tostripFinalNewline
(f8397ba9, 4d0dc88a, #238)cmd
(inchildProcessResult
anderror
) tocommand
(#194)preferLocal
option tofalse
. If you are executing locally installed binaries, you'll need to manually specifypreferLocal: true
(#314)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)error.killed
tofalse
when child process timed out (#227)error.killed
always boolean (notundefined
) (#229, #248)error.stdout
anderror.stderr
are now an empty string (instead ofnull
) when the command failed. (#246)Features
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)childProcess.all
andchildProcessResult.all
(#171, #264)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).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)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)error.message
on child process failure (#180, #223, #230, #245, #269).finally()
to the child process promise (#174, 65139849)maxBuffer
option default value from10 MB
to100 MB
(#286)Bug fixes
timeout
option not working as expected (#199)error.timedOut
not working withexeca.sync()
(#249)maxBuffer
errors not using the same shape as the other errors (#266)extendEnd
option not working withshell
option (#184)stripFinalNewline
option not applied on error properties (#240)/q
parameter not added when usingcmd
instead ofcmd.exe
(#203)input
option with a non-executable file (#212, #258)stdio
option cannot be used together withstdin: 0
(#301).Documentation
Design
Tests
Maintainers
Configuration
📅 Schedule: Branch creation - "on the 1st through 7th day of the month" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.