chore(deps): update dependency simple-git to v2 #23
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.107.0->^2.0.0Release Notes
steveukx/git-js
v2.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 configurationgit.addConfigsupports a newappendflag to append the value into the config rather than overwrite existingv2.2.0Compare Source
git.branchrelated functions converted to TypeScriptgit.deleteLocalBranchesto delete multiple branches in one callgit.deleteLocalBranchesandgit.deleteLocalBranchnow support an optionalforceDeleteflagv2.1.0Compare Source
.tags,.addTagand.addAnnotatedTagconverted to TypeScript, no backward compatibility changesv2.0.0Compare Source
If your application depended on any functions with a name starting with an
_, the upgrade may not be seamless,please only use the documented public API.
git.logdate format is now strict ISO by default (ie: uses the placeholder%aI) instead of the 1.x default of%aifor an "ISO-like" date format. To restore the old behaviour, addstrictDate = falseto the options passed togit.log.Renovate configuration
📅 Schedule: "after 7pm,before 6am" (UTC).
🚦 Automerge: Disabled due to failing status checks.
♻️ 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 has been generated by WhiteSource Renovate. View repository job log here.