Packages

simple-git

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

Upgrading simple-git From 2.18.0 to 2.48.0

40 releases in betweennotes for 39

Reading releases, release notes and advisories…

Other targets from 2.18.0Clears its 8 advisories4.0.0Latest4.1.0
  1. 2.18.0yours
  2. 39 releases
  3. 2.48.0target
3+
changes to make
0
advisories fixed
24+
new
15+
fixes

Counted from 39 of 40 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Deprecated2.35.2
  • Deprecated2.26.0
  • Deprecated2.23.0

Security

Release by release

  1. 2.48.0

    1 Dec 20212 new
    • New

      StatusResult returned by git.status() should include detached state of the working copy.

    • New

      Add example for empty commit message in git.commit()

  2. 2.47.1nothing new or fixed in the note

  3. 2.47.0

    19 Oct 20211 new
    • New

      git-grep

  4. 2.46.0

    29 Sep 20212 new
    • New

      completion plugin

    • New

      completion plugin to allow configuring when simple-git determines the git tasks to be complete.

  5. 2.45.1

    4 Sep 20211 fix
    • Fixed

      Support progress events in locales other than western european character sets.

  6. 2.45.0

    27 Aug 20211 new · 1 fix
    • New

      Use author email field that respects mailmap

    • Fixed

      getConfig always returns null despite values being present in configuration

  7. 2.44.0

    14 Aug 20211 new
    • New

      Add support for getting the current value of a git configuration setting based on its name.

  8. 2.43.0

    13 Aug 20211 new
    • New

      Task callback types defined as single function type

8 other lines we could not sort, mostly version bumps
  • Reinstates native support for node.js v10 by removing use of ES6 constructs

    2.30.0
  • Update type definition for git.mergeFromTo to be the MergeResult returned when using the more generic git.merge method.

    2.29.0
  • RM old -> new will now appear in renamed and new will also appear in modified

    2.27.0
  • D file will now appear in both deleted and staged where D file would only appear in deleted

    2.27.0
  • When using git.commit, the first argument must be a string or array of strings. Passing another data type has long been considered an error, but now a deprecation warning will be shown in the log and will be switched to an error in version 3.

    2.25.0
  • pull, push and pushTags parameter types updated to match new functionality and tests switched to TypeScript to ensure they are kept in sync

    2.24.0
  • Renames the default source branch from master to main

    2.23.0
  • Move the command/task option processing function to TypeScript

    2.19.0

8 internal lines (docs, tests, tooling) left out.

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.