Packages

simple-git

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

Upgrading simple-git From 0.1.2 to 4.0.0

271 releases in betweennotes for 115

Reading releases, release notes and advisories…

Other targets from 0.1.2Newest 0.x0.17.0Latest4.1.0
1.0.0 has no release note on GitHub or in the repository's changelog, so its breaking changes are missing from the counts below.
  1. 0.1.2yours
  2. 0.2.0major
  3. 0.3.0major
  4. 0.4.0major
  5. 0.5.0major
  6. 0.6.0major
  7. 0.7.0major
  8. 0.8.0major
  9. 0.9.0major
  10. 0.10.0major
  11. 0.11.0major
  12. 0.12.0major
  13. 0.13.0major
  14. 0.14.0major
  15. 0.15.0major
  16. 0.16.0major
  17. 0.17.0major
  18. 1.0.0major
  19. 138 releases
  20. 2.0.0major
  21. 70 releases
  22. 3.3.0security
  23. 1 release
  24. 3.5.0security
  25. 13 releases
  26. 3.16.0security
  27. 26 releases
  28. 3.36.0security
  29. 4.0.0target
8+
changes to make
8
advisories fixed
74+
new
62+
fixes

Counted from 115 of 271 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

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

Security

1 advisory still affects 4.0.0

Upgrading to 4.0.1 clears it.

  • Note - ParsedVulnerabilities from argv-parser is removed in favour of a readonly array of Vulnerability to match usage in simple-git, rolled into the new vulnerabilityCheck for simpler access to the identified issues.

    3.36.0
  • Adds vulnerability detection to prevent use of --upload-pack and --receive-pack without explicitly opting in.

    3.16.0
  • Resolves potential command injection vulnerability by preventing use of --upload-pack in git.clone

    3.5.0
  • Resolves potential command injection vulnerability by preventing use of --upload-pack in git.fetch

    3.3.0

Release by release

  1. 4.0.0

    Migration needed25 Sep 20262 new · 1 fix
    • Breaking

      Removed previously available default export, now uses a consistently named simpleGit export.

    • Breaking

      Removed legacy gitP export (change to using the main simpleGit export).

    • New

      Support one-shot stdin via git.input(data) (string or Buffer).

    • New

      Add allowUnsafeExec detection to rebase -x and rebase --exec.

    • Fixed

      Parse binary rename entries without byte counts in diff summaries.

  2. 3.36.0

    Security fix12 Apr 20261 new · 1 fix
    • Security

      Note - ParsedVulnerabilities from argv-parser is removed in favour of a readonly array of Vulnerability to match usage in simple-git, rolled into the new vulnerabilityCheck for simpler access to the identified issues.

    • New

      Extend known exploitable configuration keys and per-task environment variables.

    • Fixed

      Remove conflicting node:buffer import

  3. 3.35.2

    6 Apr 20261 fix
    • Fixed

      Improvements for mono-repo publishing pipeline

  4. 3.35.1

    6 Apr 20261 fix
    • Fixed

      Update monorepo version handling during publish

  5. 3.35.0

    6 Apr 20261 new
    • New

      Updating publish config

  6. 3.34.0

    6 Apr 20261 new · 1 fix
    • New

      Revised dependency tree to add helper modules as dependencies in main simple-git

    • Fixed

      Enhances scanning of arguments before passing on to the spawned child_process.

  7. 3.33.0

    10 Mar 20261 new · 1 fix
    • New

      Use pathspec wrappers for remote and local paths when running either git.clone or git.mirror to avoid leaving them less open for unexpected outcomes when passing unsanitised data into these tasks.

    • Fixed

      Enhanced git -c checks in unsafe plugin.

  8. 3.32.3

    26 Feb 20261 fix
    • Fixed

      Enhanced protocol.allow checks in allowUnsafeExtProtocol handling.

36 other lines we could not sort, mostly version bumps
  • Removed previously deprecated import simple-git/promise (change to using the main simple-git import).

    4.0.0
  • 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
  • git.clone and git.mirror rewritten to fit the TypeScript tasks style.

    2.18.0

16 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.