Packages

simple-git

4.1.0 · 16 Nov 2026MIT15.5M / weekRepositorynpmAtom feed

Your version

2.6.0

7 Jun 2020Where it was published

2.48.0 is the newest release of 2.x.

In short

7 changed

Security

8 advisories affect 2.6.0; 3.36.0 fixes the others

3 more

Release note

The section about simple-git of a note shared by several packages.

2.6.0 - Native Promises, Typed Errors, TypeScript Importing, Git.clean and Git.raw

Native Promises

  • TL;DR - .then and .catch can now be called on the standard simpleGit chain to handle the promise
    returned by the most recently added task... essentially, promises now just work the way you would expect
    them to.

  • The main export from simple-git no longer shows the deprecation notice for using the
    .then function, it now exposes the promise chain generated from the most recently run
    task, allowing the combination of chain building and ad-hoc splitting off to a new promise chain.

TypeScript Importing

  • Promise / async interface and TypeScript types all available from the simple-git import rather than needing
    simple-git/promise, see examples in the ReadMe or in the consumer tests.

Typed Errors

  • Tasks that previously validated their usage and rejected with a TypeError will now reject with a
    TaskConfigurationError.

  • Tasks that previously rejected with a custom object (currently only git.merge when the auto-merge fails)
    will now reject with a GitResponseError where previously it
    was a modified Error.

Git Clean

  • git.clean(...) will now return a CleanSummary instead of the raw string data

Git Raw

  • git.raw(...) now accepts any number of leading string arguments as an alternative to the
    single array of strings.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.