Released on 28 April 2020
Major release 2.x changes the way the queue of tasks are handled to use promises internally and makes
available the .then
and .catch
methods for integrating with promise consumers or async await.
TypeScript is used by default for all new code, allowing for auto-generated type definitions and a phased re-write of the library rather than a big-bang.
For a per-release overview of changes, see the changelog.
When upgrading to release 2.x from 1.x, see the changelog for the release 2.0.0
-
2.25.0 depends on Node.js version 12 or above, for use in lower versions of node.js ensure you are also importing the necessary polyfills fromthis change has been reverted in 2.30.0 and will be postponed until version 3.x.core-js
, see Legacy Node Versions -
2.13.0
.push
now returns a PushResult parsed representation of the response. -
2.11.0 treats tasks chained together as atomic, where any failure in the chain prevents later tasks from executing and tasks called from the root
git
instance as the origin of a new chain, and able to be run in parallel without failures impacting one anther. Prior to this version, tasks called on the rootgit
instance would be cancelled when another one failed. -
2.7.0 deprecates use of
.silent()
in favour of using thedebug
library - see the debug logging guide for further details. -
2.6.0 introduced
.then
and.catch
as a way to chain a promise onto the current step of the chain. Importing fromsimple-git/promise
instead of justsimple-git
is no longer required and is actively discouraged.
For the full history see the changelog;