[Snyk] Upgrade execa from 5.1.1 to 8.0.1 #3
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 was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade execa from 5.1.1 to 8.0.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Warning: This is a major version upgrade, and may be a breaking change.
Release notes
Package name: execa
Fixes
{encoding: 'buffer'}
option. It is the same as{encoding: null}
, but preferred over it. (#572)v8.0.0...v8.0.1
Breaking
v7.2.0...v8.0.0
cwd
error property (#565) f57fdecv7.1.1...v7.2.0
Features
$.sync(options)`command`
is used instead of$(options).sync`command`
(#551)Bug fixes
$`command argument${value}`
(#553)stdin
option when using$`command`
: it should beinherit
(#550)Features
$
method to write Node.js scripts like zx. For more information, please see this blog post, this section and this page. Thanks @ aaronccasanova for this great feature!const branch = await $
git branch --show-current
;await $
dep deploy --branch=<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">branch</span><span class="pl-kos">}</span></span>
;.pipeStdout()
,.pipeStderr()
and.pipeAll()
methods to redirectstdout
/stderr
to a file, a stream or another process.echo unicorns > stdout.txt
in Bashawait execa('echo', ['unicorns']).pipeStdout('stdout.txt');
// Similar to
echo unicorns 2> stdout.txt
in Bashawait execa('echo', ['unicorns']).pipeStderr('stderr.txt');
// Similar to
echo unicorns &> stdout.txt
in Bashawait execa('echo', ['unicorns'], {all: true}).pipeAll('all.txt');
inputFile
option to use a file asstdin
.verbose
option to print each command onstderr
before executing it. This can also be enabled by setting theNODE_DEBUG=execa
environment variable in the current process.> node file.js
unicorns
rainbows
> NODE_DEBUG=execa node file.js
[16:50:03.305] echo unicorns
unicorns
[16:50:03.308] echo rainbows
rainbows
7.0.0 - 2023-02-11
Breaking
Fixes
end
event on streams when process fails (#518) 30c7a7aexecaNode
signature inindex.d.ts
(#506) 1f7677cv6.1.0...v7.0.0
AbortController
(#490) c6e791acwd
andlocalDir
options to be URLs (#492) 93ab929v6.0.0...v6.1.0
Breaking
require('execa')
→import {execa} from 'execa'
require('execa').sync
→import {execaSync} from 'execa'
require('execa').command
→import {execaCommand} from 'execa'
require('execa').commandSync
→import {execaCommandSync} from 'execa'
require('execa').node
→import {execaNode} from 'execa'
v5.1.1...v6.0.0
v5.1.0...v5.1.1
Commit messages
Package name: execa
turbo prune
vercel/turborepo#553)Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs