simple-git
4.1.0 · 16 Nov 2026MIT15.5M / weekRepositorynpmAtom feed
Upgrading simple-git From 2.16.0 to 2.48.0
42 releases in betweennotes for 41
Reading releases, release notes and advisories…
- 3+
- changes to make
- 0
- advisories fixed
- 26+
- new
- 16+
- fixes
Counted from 41 of 42 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
8 advisories still affect 2.48.0
- Command injection in simple-githigh · GHSA-28xr-mwxg-3qc8
- Command injection in simple-githigh · GHSA-3f95-r44v-8mrg
- simple-git: unsafe-operations plugin bypass via git long-option abbreviation (--receive-p/--exe) -> command execution (residual of CVE-2026-28291)high · GHSA-858h-whjf-mvg5
Upgrading to 4.0.0 clears them.
Release by release
- New
StatusResultreturned bygit.status()should includedetachedstate of the working copy. - New
Add example for empty commit message in
git.commit()
- New
2.47.1nothing new or fixed in the note
- New
git-grep
- New
- New
completionplugin - New
completionplugin to allow configuring whensimple-gitdetermines thegittasks to be complete.
- New
- Fixed
Support progress events in locales other than western european character sets.
- Fixed
- New
Use author email field that respects mailmap
- Fixed
getConfig always returns
nulldespite values being present in configuration
- New
- New
Add support for getting the current value of a git configuration setting based on its name.
- New
- New
Task callback types defined as single function type
- New
9 other lines we could not sort, mostly version bumps
- 2.30.0
Reinstates native support for node.js v10 by removing use of ES6 constructs
- 2.29.0
Update type definition for
git.mergeFromToto be theMergeResultreturned when using the more genericgit.mergemethod. - 2.27.0
RM old -> newwill now appear inrenamedandnewwill also appear inmodified - 2.27.0
D filewill now appear in bothdeletedandstagedwhereD filewould only appear indeleted - 2.25.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.24.0
pull,pushandpushTagsparameter types updated to match new functionality and tests switched to TypeScript to ensure they are kept in sync - 2.23.0
Renames the default source branch from
mastertomain - 2.19.0
Move the command/task option processing function to TypeScript
- 2.18.0
git.cloneandgit.mirrorrewritten to fit the TypeScript tasks style.
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.