fix(deps): update dependency simple-git to version 3.16.0 🌟 #289
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:
1.126.0->3.16.0GitHub Vulnerability Alerts
CVE-2022-24433
The package simple-git before 3.3.0 is vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options, it was possible to get arbitrary command execution.
CVE-2022-24066
simple-git(maintained as git-js named repository on GitHub) is a light weight interface for running git commands in any node.js application.The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of CVE-2022-24433 which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover. A fix was released in simple-git@3.5.0.CVE-2022-25912
The package simple-git before 3.15.0 is vulnerable to Remote Code Execution (RCE) when enabling the
exttransport protocol, which makes it exploitable viaclone()method. This vulnerability exists due to an incomplete fix of CVE-2022-24066.CVE-2022-25860
Versions of the package simple-git before 3.16.0 are vulnerable to Remote Code Execution (RCE) via the clone(), pull(), push() and listRemote() methods, due to improper input sanitization. This vulnerability exists due to an incomplete fix of CVE-2022-25912.
Release Notes
steveukx/git-js (simple-git)
v3.16.0Compare Source
Minor Changes
97fde2c: Support the use of-Bin place of the default-bin checkout methods0a623e5: Adds vulnerability detection to prevent use of--upload-packand--receive-packwithout explicitly opting in.Patch Changes
ec97a39: Include restricting the use of git push --exec with other allowUnsafePack exclusions, thanks to @stsewd for the suggestion.v3.15.1Compare Source
Patch Changes
de570ac: Resolves an issue whereby non-strings can be passed into the config switch detector.v3.15.0Compare Source
Minor Changes
7746480: Disables the use of inline configuration arguments to prevent unitentionally allowing non-standard remote protocols without explicitly opting in to this practice with the newallowUnsafeProtocolOverrideproperty having been enabled.Patch Changes
7746480: - Upgrade repo dependencies - lerna and jestv3.14.1Compare Source
Patch Changes
5a2e7e4: Add version parsing support for non-numeric patches (including "built from source" style1.11.GIT)v3.14.0Compare Source
Minor Changes
19029fc: Create the abort plugin to allow cancelling all pending and future tasks.4259b26: Add.versionto return git version information, including whether the git binary is installed.v3.13.0Compare Source
Minor Changes
87b0d75: Increase the level of deprecation notices for use ofsimple-git/promise, which will be fully removed in the next majord0dceda: Allow supplying just one of to/from in the options supplied to git.logPatch Changes
6b3e05c: Use shared test utilities bundle in simple-git tests, to enable consistent testing across packages in the futurev3.12.0Compare Source
Minor Changes
bfd652b: Add a new configuration option to enable trimming white-space from the response togit.rawv3.11.0Compare Source
Minor Changes
80d54bd: Added fields updated + deleted branch info to fetch response, closes #823Patch Changes
75dfcb4: Add prettier configuration and apply formatting throughout.v3.10.0Compare Source
Minor Changes
2f021e7: Support for importing as an ES module with TypeScript moduleResolutionnode16or newer by addingsimpleGitas a named export.v3.9.0Compare Source
Minor Changes
a0d4eb8: Branches that have been checked out as a linked work tree will now be included in theBranchSummaryoutput, with alinkedWorkTreeproperty set totruein theBranchSummaryBranch.v3.8.0Compare Source
Minor Changes
25230cb: Support for additional log formats in diffSummary / log / stashList.Adds support for the
--numstat,--name-onlyand--name-statin addition to the existing--statoption.Patch Changes
2cfc16f: Update CI environments to run build and test in node v18, drop node v12 now out of life.13197f1: Updatedebugdependency to latest4.xv3.7.1Compare Source
Patch Changes
adb4346: Resolves issue whereby renamed files no longer appear correctly in the response togit.status.v3.7.0Compare Source
Minor Changes
fa2c7f7: Enable the use of types when loading with module-resolutionPatch Changes
3805f6b: Timeout plugin no longer keeps short lived processes alive until timeout is hitv3.6.0Compare Source
Minor Changes
f2fc5c9: Show full commit hash in aCommitResult, prior to this changegit.commitwould result in a partial hash in thecommitproperty ifcore.abbrevis unset or has a value under40. Following this change thecommitproperty will contain the full commit hash.Patch Changes
c4a2a13: chore(deps): bump minimist from 1.2.5 to 1.2.6v3.5.0Compare Source
Minor Changes
2040de6: Resolves potential command injection vulnerability by preventing use of--upload-packingit.clonev3.4.0Compare Source
Minor Changes
ed412ef: Use null separators in git.status to allow for non-ascii file namesv3.3.0Compare Source
Minor Changes
d119ec4: Resolves potential command injection vulnerability by preventing use of--upload-packingit.fetchv3.2.6Compare Source
Patch Changes
80651d5: Resolve issue in prePublish scriptv3.2.4Compare Source
Patch Changes
d35987b: Release with changesetsv3.1.1Compare Source
v3.1.0Compare Source
Features
StatusResult(70e6767), closes #7183.0.4 (2022-01-23)
Bug Fixes
3.0.3 (2022-01-20)
Bug Fixes
latest(5db4434)3.0.2 (2022-01-18)
Bug Fixes
simple-git/promisewith deprecation notice until mid-2022. (4413c47)3.0.1 (2022-01-18)
Bug Fixes
v3.0.4Compare Source
Features
StatusResult(70e6767), closes #7183.0.4 (2022-01-23)
Bug Fixes
3.0.3 (2022-01-20)
Bug Fixes
latest(5db4434)3.0.2 (2022-01-18)
Bug Fixes
simple-git/promisewith deprecation notice until mid-2022. (4413c47)3.0.1 (2022-01-18)
Bug Fixes
v3.0.3Compare Source
Features
StatusResult(70e6767), closes #7183.0.4 (2022-01-23)
Bug Fixes
3.0.3 (2022-01-20)
Bug Fixes
latest(5db4434)3.0.2 (2022-01-18)
Bug Fixes
simple-git/promisewith deprecation notice until mid-2022. (4413c47)3.0.1 (2022-01-18)
Bug Fixes
v3.0.2Compare Source
Features
StatusResult(70e6767), closes #7183.0.4 (2022-01-23)
Bug Fixes
3.0.3 (2022-01-20)
Bug Fixes
latest(5db4434)3.0.2 (2022-01-18)
Bug Fixes
simple-git/promisewith deprecation notice until mid-2022. (4413c47)3.0.1 (2022-01-18)
Bug Fixes
v3.0.1Compare Source
Features
StatusResult(70e6767), closes #7183.0.4 (2022-01-23)
Bug Fixes
3.0.3 (2022-01-20)
Bug Fixes
latest(5db4434)3.0.2 (2022-01-18)
Bug Fixes
simple-git/promisewith deprecation notice until mid-2022. (4413c47)3.0.1 (2022-01-18)
Bug Fixes
v2.48.0Compare Source
Features
StatusResultreturned bygit.status()should includedetachedstate of the working copy. (#695) (f464ebe)Bug Fixes
git.commit()(61089cb)2.47.1 (2021-11-29)
Bug Fixes
v2.47.1Compare Source
v2.47.0Compare Source
Features
v2.46.0Compare Source
Features
completionplugin (#684) (ecb7bd6)completionplugin to allow configuring whensimple-gitdetermines thegittasks to be complete. (ecb7bd6)2.45.1 (2021-09-04)
Bug Fixes
v2.45.1Compare Source
v2.45.0Compare Source
Features
Bug Fixes
nulldespite values being present in configuration (9fd483a)v2.44.0Compare Source
Features
v2.43.0Compare Source
Features
v2.42.0Compare Source
Features
logtask to separate task builder (0712f86)scopeargument inlistConfigto return a specific scope's configuration (0685a8b)2.41.2 (2021-07-29)
Bug Fixes
trueandfalseinDiffResultTextFile | DiffResultBinaryFileto aid type assertions. (8059099)2.41.1 (2021-07-11)
Bug Fixes
v2.41.2Compare Source
v2.41.1Compare Source
v2.41.0Compare Source
Features
git config addto work on thelocal,globalorsystemconfiguration. (c7164e7)local,globalorsystemconfiguration. (00ada06)v2.40.0Compare Source
Features
spawnOptionsplugin to allow settinguid/gidowner for the spawnedgitchild processes. (cc70220)2.39.1 (2021-06-09)
Bug Fixes
.execAPI (c9207da)mergeFromToto more closely represent its functionality (see #50 for the original requirement). (dd2244e)v2.39.1Compare Source
v2.39.0Compare Source
Features
git.cwdcan now be configured to affect just the chain rather than root instance. (4110662)2.38.1 (2021-05-09)
Bug Fixes
GitPluginErrorfrom the main package. (2aa7e55), closes #616v2.38.1Compare Source
v2.38.0Compare Source
Features
debuglogs programmatically. (#610) (c901b9c)v2.37.0Compare Source
Features
errorDetectionPluginto handle creating error messages when tasks fail. (c65a419)2.36.2 (2021-03-11)
Bug Fixes
SimpleGitProgressEvent(038870e), closes #6012.36.1 (2021-03-06)
Bug Fixes
outputHandler(775d81e)git.branchwhere branches have carriage returns in the commit detail. (5b71012)v2.36.2Compare Source
v2.36.1Compare Source
v2.36.0Compare Source
Features
Bug Fixes
no-responseauto-generated comment (16fe73f)2.35.2 (2021-02-23)
Bug Fixes
ListLogSummarytype is deprecated in favour of the newLogResult, the alias type should also support the default genericDefaultLogFieldsto allow downstream consumers to upgrade to newer2.xversions without the need to specify a generic. (508e602), closes #5862.35.1 (2021-02-19)
Bug Fixes
SimpleGit-optionsshould be aPartial<SimpleGitOptions>to allow for supplying just some of its properties. (30523df), closes #580v2.35.2Compare Source
v2.35.1Compare Source
v2.35.0Compare Source
Features
2.34.2 (2021-02-07)
Bug Fixes
2.34.1 (2021-02-07)
Bug Fixes
v2.34.2Compare Source
v2.32.0Compare Source
gitbinary (via its-cargument as a prefix to any otherarguments). Eg: to supply some custom http proxy to a
git pullcommand, usesimpleGit('/some/path', { config: ['http.proxy=someproxy'] }).pull()git.silentruntorunTaskingitcorev2.31.0Compare Source
root: booleanproperty to theCommitResultinterface representing whether the commit was a 'root' commit(which is a commit that has no parent, most commonly the first commit in a repo).
v2.30.0Compare Source
v2.29.0Compare Source
git.mergeFromToto be theMergeResultreturnedwhen using the more generic
git.mergemethod.Thanks to @ofirelias for the pull request.
v2.28.0Compare Source
Adds support for
git.applyPatchto apply patches generated in agit diffto the working index,TypeScript consumers can make use of the
ApplyOptionstype definition to make use of strong typesfor the supported options. Thanks to @andreterron for the pull request.
Integration tests converted to TypeScript to ensure type safety across all tests.
v2.27.0Compare Source
git.statusparser to account for staged deleted/modified files and staged files with subsequentmodifications meaning a status of:
RM old -> newwill now appear inrenamedandnewwill also appear inmodifiedD filewill now appear in bothdeletedandstagedwhereD filewould only appear indeletedv2.26.0Compare Source
git.logwith a callback (or awaiting the promise created from the now deprecatedsimple-git/promiseimport) would fail to return the response to the caller.v2.25.0Compare Source
simple-gitwithnode.jsversions 11 and below.
git.commit, the first argument must be a string or array of strings. Passing another data type has longbeen considered an error, but now a deprecation warning will be shown in the log and will be switched to an error
in version 3.
git.commitwhereby a commit that included only deleted lines would be parsed as though thedeletions were inclusions.
v2.24.0Compare Source
pull,pushandpushTagsparameter types updated to match new functionality and tests switched to TypeScript to ensure they are kept in syncv2.23.0Compare Source
debugdependency and remove use of now deprecateddebug().destroy()mastertomainv2.22.0Compare Source
git hash-object FILEandgit hash-object -w FILEwith new interface
git.hashObject(...), with thanks to @MiOnimv2.21.0Compare Source
string[]to the set of types supported as options forgit.logv2.20.1Compare Source
LogOptionsshould be intersection rather than union typesv2.20.0Compare Source
v2.19.0Compare Source
v2.18.0Compare Source
git.cloneandgit.mirrorrewritten to fit the TypeScript tasks style.git.clonedidn't accept an object of options despite being documented as supporting.v2.17.0Compare Source
git pull(and by extensiongit merge) adds remote message parsing to thePullResulttyperemoteMessages.objectsof typeRemoteMessagesObjectEnumerationto capture the objects transferred in fetch and push.v2.16.0Compare Source
git.mvrewritten to fit the TypeScript tasks style.v2.15.0Compare Source
TaskParsertype to describe a task's parser function and creates theLineParserutility to simplify line-by-line parsing of string responses.@deprecateduntil version 3.x:v2.14.0Compare Source
git.checkoutBranchmethod would not pass the branch detail through to the underlying child process.v2.13.2Compare Source
2.13.0includes all (non-empty)remote:lines in thePushResult,including
remote:lines used for other parser results (ie:pullRequestUrletc).v2.13.1Compare Source
2.13.0adding support for parsing the reponse togit.push, adds support for the pull request messageused by gitlab.
v2.13.0Compare Source
.pushand.pushTagsrewritten as v2 style tasks. The git response is now parsed and returned as aPushResult
Pull and merge rewritten to fit the TypeScript tasks style.
Integration tests updated to run through jest directly without compiling from nodeunit
v2.12.0Compare Source
git.tagsmethod could not be chained or used as an async/promise.v2.11.0Compare Source
until now,
simple-gitreject all pending tasks in the queue when a task has failed. From2.11.0, onlytasks chained from the failing one will be rejected, other tasks can continue to be processed as normal,
giving the developer more control over which tasks should be treated as atomic chains, and which can be
run in parallel.
To support this, and to prevent the issues seen when
gitis run concurrently in too many child processes,simple-gitwill limit the number of tasks running in parallel at any one time to be at most 1 from eachchain (ie: chained tasks are still run in series) and at most 5 tasks across all chains (
configurable by passing
{maxConcurrentProcesses: x}in thesimpleGitconstructor).add support to
git.status()for parsing the response of a repo that has no commits yet, previouslyit wouldn't determine the branch name correctly.
resolved a flaw introduced in
2.9.0wherebycheckoutLocalBranchwould silently fail and not check out the branchv2.10.0Compare Source
git.checkoutnow supports both object and array forms of supplying trailing options.git.initnow supports both object and array forms of supplying trailing options and nowparses the response to return an InitResult;
git.statusnow supports both object and array forms of supplying trailing options.git.resetupgraded to the new task style and exports an enumResetModewith all supportedmerge modes and now supports both object and array forms of supplying trailing options.
simpleGit()task runner, only the tasks it returns.v2.9.0Compare Source
.checkIsRepo()updated to allow choosing the type of check to run, either by using the exportedCheckRepoActionsenumor the text equivalents ('bare', 'root' or 'tree'):
checkIsRepo(CheckRepoActions.BARE): Promise<boolean>determines whether the working directory represents a bare repo.checkIsRepo(CheckRepoActions.IS_REPO_ROOT): Promise<boolean>determines whether the working directory is at the root of a repo.checkIsRepo(CheckRepoActions.IN_TREE): Promise<boolean>determines whether the working directory is a descendent of a git root..revparse()converted to a new style taskv2.8.0Compare Source
simple-gitas an es module, in TypeScript it is nolonger necessary to enable the
esModuleInteropflag in thetsconfig.jsonto consume the defaultexport.
2.7.2 - Bug Fix: Remove
promise.tssource fromsimple-gitpublished artifactdue to sharing the same name as the explicitly included
promise.jsin the project root.2.7.1 - Bug Fix:
await git.loghaving imported from rootsimple-gitawaitongit.logwithout having supplied a callback would ignore the leading optionsobject or options array.
v2.7.2Compare Source
due to sharing the same name as the explicitly included
promise.jsin the project root.v2.7.1Compare Source
awaitongit.logwithout having supplied a callback would ignore the leading optionsobject or options array.
v2.7.0Compare Source
outputHandlertype to add a trailing argument for the arguments passed into the child process.simple-gitto the
DEBUGenvironment variable.git.silent(false)can still be used to explicitly enable logging and isequivalent to calling
require('debug').enable('simple-git').v2.6.0Compare Source
Native Promises
.thenand.catchcan now be called on the standardsimpleGitchain to handle the promisereturned by the most recently added task... essentially, promises now just work the way you would expect
them to.
simple-gitno longer shows the deprecation notice for using the.thenfunction, it now exposes the promise chain generated from the most recently runtask, allowing the combination of chain building and ad-hoc splitting off to a new promise chain.
TypeScript Importing
simple-gitimport rather than needingsimple-git/promise, see examples in the ReadMe or in the consumer tests.Typed Errors
Tasks that previously validated their usage and rejected with a
TypeErrorwill now reject with aTaskConfigurationError.Tasks that previously rejected with a custom object (currently only
git.mergewhen the auto-merge fails)will now reject with a
GitResponseErrorwhere previously itwas a modified
Error.Git Clean
git.clean(...)will now return aCleanSummaryinstead of the raw string dataGit Raw
git.raw(...)now accepts any number of leading string arguments as an alternative to thesingle array of strings.
v2.5.0Compare Source
git.remoterelated functions converted to TypeScriptv2.4.0Compare Source
git.subModulerelated functions converted to TypeScriptv2.3.0Compare Source
git.listConfigto get current configurationConfiguration
📅 Schedule: Branch creation - "" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.