Open
Conversation
Snyk has created this PR to upgrade execa from 2.0.4 to 9.5.2. See this package in npm: execa See this project in Snyk: https://app.snyk.io/org/hashimmohammad881-TrGTrpdUyGorMuF38nmW8P/project/b6cb0b8a-46de-4049-a16a-8bcf1a378782?utm_source=github-cloud-app&utm_medium=referral&page=upgrade-pr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Snyk has created this PR to upgrade execa from 2.0.4 to 9.5.2.
ℹ️ 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.
The recommended version is 36 versions ahead of your current version.
The recommended version was released a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-SEMVER-3247795
SNYK-JS-BABELTRAVERSE-5962462
SNYK-JS-BRACES-6838727
SNYK-JS-CROSSSPAWN-8303230
SNYK-JS-CROSSSPAWN-8303230
SNYK-JS-DOMPURIFY-7984421
SNYK-JS-MICROMATCH-6838728
SNYK-JS-SEMVER-3247795
SNYK-JS-SEMVER-3247795
SNYK-JS-SEMVER-3247795
SNYK-JS-WS-7266574
SNYK-JS-DOMPURIFY-6474511
SNYK-JS-DOMPURIFY-8184974
SNYK-JS-WORDWRAP-3149973
npm:debug:20170905
Release notes
Package name: execa
-
9.5.2 - 2024-12-07
- Fix escaping newlines inside template strings. Thanks @ aarondandy! (#1176)
-
9.5.1 - 2024-10-29
- Fix odd characters being printed in
-
9.5.0 - 2024-10-27
- When redirecting
-
9.4.1 - 2024-10-16
- Fix using
-
9.4.0 - 2024-09-16
- We've created a separate package called nano-spawn. It is similar to Execa but with fewer features, for a much smaller package size. More info.
- Both
- Small documentation typo fix, thanks @ rrthomas! (#1153)
-
9.3.1 - 2024-08-14
- Do not crash when using a custom Node.js binary without ICU support. (#1144)
- Fix type of the
- Fix typo in "Inputs" documentation. (by @ jimhigson) (#1145)
- Document how to terminate hanging subprocesses. (#1140)
- Document how to add custom logging. (#1131)
-
9.3.0 - 2024-06-21
- The
-
9.2.0 - 2024-06-06
- Passing
- The
- import {execaCommand} from 'execa';
- import {execaCommand} from 'execa';
- Add
- Add
- New methods to simplify exchanging messages between the current process and the subprocess. More info. (#1059, #1061, #1076, #1077, #1079, #1082, #1083, #1086, #1087, #1088, #1089, #1090, #1091, #1092, #1094, #1095, #1098, #1104, #1107)
- The current process sends messages with
- The subprocess uses
- The
- The
- The error message now contains every IPC message sent by the subprocess. (#1067)
- The
- Add
- Export the
- Fix type of
- Fix passing a
- Fix multiple minor problems with the
- Fix accidental publishing of Vim backup files. (#1074)
- Fix
-
9.1.0 - 2024-05-13
- Export
-
9.0.2 - 2024-05-10
- Do not require using
- Fix type of the
-
9.0.1 - 2024-05-09
-
9.0.0 - 2024-05-08
-
8.0.1 - 2023-08-19
-
8.0.0 - 2023-08-19
-
7.2.0 - 2023-07-27
-
7.1.1 - 2023-03-14
-
7.1.0 - 2023-03-11
-
7.0.0 - 2023-02-11
-
6.1.0 - 2022-02-13
-
6.0.0 - 2021-11-17
-
5.1.1 - 2021-06-04
-
5.1.0 - 2021-06-02
-
5.0.1 - 2021-05-30
-
5.0.0 - 2020-12-03
-
4.1.0 - 2020-10-28
-
4.0.3 - 2020-07-07
-
4.0.2 - 2020-05-22
-
4.0.1 - 2020-05-08
-
4.0.0 - 2019-12-19
-
3.4.0 - 2019-11-25
-
3.3.0 - 2019-11-12
-
3.2.0 - 2019-10-17
-
3.1.0 - 2019-10-15
-
3.0.0 - 2019-10-14
-
2.1.0 - 2019-10-09
-
2.0.5 - 2019-10-04
-
2.0.4 - 2019-08-15
from execa GitHub release notesBug fixes
Bug fixes
verbosemode on Windows (thanks @ IIIMADDINIII). (#1167)Features
stdoutorstderrto a file, allow appending instead of overwriting. (#1166)Bug fixes
process.execPathwith Deno. Thanks @ w3cj! (#1160)Features
Bug fixes
execaNode()and thepreferLocaloption modify thePATHenvironment variable. This release includes some minor improvements to ensure that environment variable remains small (sindresorhus/npm-run-path#20). It also handles a few related edge cases better (sindresorhus/npm-run-path#21).Documentation
Thanks @ holic and @ jimhigson for your contributions!
Bugs
Bugs (types)
envoption. It was currently failing for Remix or Next.js users. (by @ holic) (#1141)Documentation
Features
verboseoption can now be a function to customize logging. (#1130)This release includes a new set of methods to exchange messages between the current process and a Node.js subprocess, also known as "IPC". This allows passing and returning almost any message type to/from a Node.js subprocess. Also, debugging IPC is now much easier.
Moreover, a new
gracefulCanceloption has also been added to terminate a subprocess gracefully.For a deeper dive-in, please check and share the release post!
Thanks @ iiroj for your contribution, @ SimonSiefke and @ adymorz for reporting the bugs fixed in this release, and @ karlhorky for improving the documentation!
Deprecations
'ipc'to thestdiooption has been deprecated. It will be removed in the next major release. Instead, theipc: trueoption should be used. (#1056)execaCommand()method has been deprecated. It will be removed in the next major release. If most cases, the template string syntax should be used instead.+ import {execa} from 'execa';
- await execaCommand('npm run build');
+ await execa
npm run build;const taskName = 'build';
- await execaCommand(
npm run ${taskName});+ await execa
npm run ${taskName};const commandArguments = ['run', 'task with space'];
await execa
npm ${commandArguments};If the file and/or multiple arguments are supplied as a single string, parseCommandString(command) can split that string into an array. More info. (#1054)
+ import {execa, parseCommandString} from 'execa';
const commandString = 'npm run task';
- await execaCommand(commandString);
+ const commandArray = parseCommandString(commandString); // ['npm', 'run', 'task']
+ await execa
${commandArray};// Or alternatively:
const [file, ...commandArguments] = commandArray;
await execa(file, commandArguments);
Features
gracefulCanceloption andgetCancelSignal()method to terminate a subprocess gracefully.error.isGracefullyCanceledwas also added. (#1109)error.isForcefullyTerminated. It istruewhen the subprocess was terminated by theforceKillAfterDelayoption. (#1111)subprocess.sendMessage(message)and receives them withsubprocess.getOneMessage().subprocess.getEachMessage()listens to multiple messages.sendMessage(message),getOneMessage()andgetEachMessage()instead. Those are the same methods, but imported directly from the'execa'module.ipcInputoption sends an IPC message from the current process to the subprocess as it starts. This enables passing almost any input type to a Node.js subprocess. (#1068)result.ipcOutputarray contains all the IPC messages sent by the subprocess to the current process. This enables returning almost any output type from a Node.js subprocess. (#1067, #1071, #1075)verbose: 'full'option now logs every IPC message sent by the subprocess, for debugging. More info here and there. (#1063)Types
ExecaMethod,ExecaNodeMethodandExecaScriptMethod,ExecaSyncMethodandExecaScriptSyncMethodtypes. (#1066)Messagetype, for IPC. (#1059)forceKillAfterDelay: trueoption. (#1116)Bug fixes
{file}to both thestdinand thestdoutorstderroptions. (#1058)cancelSignaloption. (#1108)engines.nodefield inpackage.json. Supported Node.js version is^18.19.0or>=20.5.0. (by @ iiroj) (#1101)Features (types)
TemplateExpressiontype. (#1049)Bug fixes (types)
--lib domfor TypeScript users (#1043, #1044)rejectoption (#1046)Important
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: