Packages

simple-git

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

Upgrading simple-git From 1.95.1 to 4.1.0

155 releases in betweennotes for 117

Reading releases, release notes and advisories…

Other targets from 1.95.1Newest 1.x1.132.0Clears its 8 advisories4.0.0
  1. 1.95.1yours
  2. 36 releases
  3. 2.0.0major
  4. 70 releases
  5. 3.3.0security
  6. 1 release
  7. 3.5.0security
  8. 13 releases
  9. 3.16.0security
  10. 26 releases
  11. 3.36.0security
  12. 4.0.0major
  13. 2 releases
  14. 4.1.0target
8+
changes to make
8
advisories fixed
79+
new
62+
fixes

Counted from 117 of 155 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

  • Closing the loop on any configuration setting ending with .cmd or command under the catch-all allowUnsafeCommandBinaries setting (only enforced with the new unsafe.recommended option, or strict), and blocking gpg.ssh.defaultKeyCommand under allowUnsafeGpgProgram.

    4.1.0
  • allowUnsafePager will now catch setting a custom binary in git grep --open-files-in-pager.

    4.1.0
  • allowUnsafePager now also covers interactive.diffFilter, the shell command that git add -p and the other --patch commands pipe their diff through.

    4.1.0
  • New (deprecated on arrival, prefer allowConfig) allowUnsafeSendEmailConfig option covering the sendemail.* keys that git send-email runs as commands, reads as files or uses to turn off certificate verification (sendmailCmd, toCmd, ccCmd, headerCmd, smtpServer, smtpServerOption, smtpSSLCertPath, smtpSSLClientCert, smtpSSLClientKey, aliasesFile and mailmap.file, including their per-identity sendemail.<identity>.* variants), and the imap.tunnel, imap.host and imap.sslVerify keys used by git imap-send.

    4.1.0
  • New (deprecated on arrival, prefer allowConfig) allowUnsafeWebServerConfig option covering the instaweb.httpd, instaweb.modulePath and instaweb.gitwebDir keys used by git instaweb.

    4.1.0
  • New (deprecated on arrival, prefer allowConfig) allowUnsafeBrowser option covering the browser.<tool>.path, browser.<tool>.cmd, man.<tool>.path and man.<tool>.cmd keys used by git help and git instaweb to open a browser or man page viewer. browser.<tool>.cmd and man.<tool>.cmd were previously covered by allowUnsafeCommandBinaries.

    4.1.0
  • New (deprecated on arrival, prefer allowConfig) allowUnsafeSignatureTrust option covering gpg.ssh.allowedSignersFile, gpg.ssh.revocationFile and gpg.minTrustLevel, which decide which signatures pass verification.

    4.1.0
  • allowUnsafePack now blocks --exec for every command other than rebase, as it names the remote program for push, send-pack, fetch-pack, archive --remote and ls-remote (previously only push).

    4.1.0
  • New allowUnsafeConfigRename option blocking git config --rename-section / git config rename-section, which could move keys written under a harmless section name (eg: foo.fsmonitor) into one that runs commands (core.fsmonitor).

    4.1.0
  • allowUnsafeExec now also covers the git filter-branch options that run a shell command: --setup, --env-filter, --tree-filter, --index-filter, --parent-filter, --msg-filter, --commit-filter and --tag-name-filter.

    4.1.0

Release by release

  1. 4.1.0

    Security fix16 Nov 20264 new
    • Security

      Closing the loop on any configuration setting ending with .cmd or command under the catch-all allowUnsafeCommandBinaries setting (only enforced with the new unsafe.recommended option, or strict), and blocking gpg.ssh.defaultKeyCommand under allowUnsafeGpgProgram.

    • Security

      allowUnsafePager will now catch setting a custom binary in git grep --open-files-in-pager.

    • Security

      allowUnsafePager now also covers interactive.diffFilter, the shell command that git add -p and the other --patch commands pipe their diff through.

    • Security

      New (deprecated on arrival, prefer allowConfig) allowUnsafeSendEmailConfig option covering the sendemail.* keys that git send-email runs as commands, reads as files or uses to turn off certificate verification (sendmailCmd, toCmd, ccCmd, headerCmd, smtpServer, smtpServerOption, smtpSSLCertPath, smtpSSLClientCert, smtpSSLClientKey, aliasesFile and mailmap.file, including their per-identity sendemail.<identity>.* variants), and the imap.tunnel, imap.host and imap.sslVerify keys used by git imap-send.

  2. 4.0.2

    26 Sep 20261 new
    • New

      Add VISUAL environment variable to set of allowUnsafeEditor environment variables.

  3. 4.0.1

    25 Sep 20261 fix
    • Fixed

      Prepare package.json before publishing.

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

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

  6. 3.35.2

    6 Apr 20261 fix
    • Fixed

      Improvements for mono-repo publishing pipeline

  7. 3.35.1

    6 Apr 20261 fix
    • Fixed

      Update monorepo version handling during publish

  8. 3.35.0

    6 Apr 20261 new
    • New

      Updating publish config

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

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