@simple-git/argv-parser
3.0.0 · 16 Nov 2026MIT11.7M / weekRepositorynpmAtom feed
Upgrading @simple-git/argv-parser From 1.1.0 to 3.0.0
4 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking2.0.0
Security
Fixes 1 advisory affecting 1.1.0
- simple-git: `VISUAL` editor environment variable is omitted from unsafe editor detectioncritical · GHSA-v5rq-49vh-5v5c
- 3.0.0
Remove the
vulnerabilityCheckexport, useparseArgv(...tokens).vulnerabilitiesandparseEnv(env).vulnerabilitiesinstead. Each vulnerability now also carries theconfigKeyorenvKeythat triggered it. - 3.0.0
Closing the loop on any configuration setting ending with
.cmdorcommandunder the catch-allallowUnsafeCommandBinariessetting (only enforced with the newunsafe.recommendedoption, orstrict), and blockinggpg.ssh.defaultKeyCommandunderallowUnsafeGpgProgram. - 3.0.0
allowUnsafePagerwill now catch setting a custom binary ingit grep --open-files-in-pager. - 3.0.0
allowUnsafePagernow also coversinteractive.diffFilter, the shell command thatgit add -pand the other--patchcommands pipe their diff through. - 3.0.0
New (deprecated on arrival, prefer
allowConfig)allowUnsafeSendEmailConfigoption covering thesendemail.*keys thatgit send-emailruns as commands, reads as files or uses to turn off certificate verification (sendmailCmd,toCmd,ccCmd,headerCmd,smtpServer,smtpServerOption,smtpSSLCertPath,smtpSSLClientCert,smtpSSLClientKey,aliasesFileandmailmap.file, including their per-identitysendemail.<identity>.*variants), and theimap.tunnel,imap.hostandimap.sslVerifykeys used bygit imap-send. - 3.0.0
New (deprecated on arrival, prefer
allowConfig)allowUnsafeWebServerConfigoption covering theinstaweb.httpd,instaweb.modulePathandinstaweb.gitwebDirkeys used bygit instaweb. - 3.0.0
New (deprecated on arrival, prefer
allowConfig)allowUnsafeBrowseroption covering thebrowser.<tool>.path,browser.<tool>.cmd,man.<tool>.pathandman.<tool>.cmdkeys used bygit helpandgit instawebto open a browser or man page viewer.browser.<tool>.cmdandman.<tool>.cmdwere previously covered byallowUnsafeCommandBinaries. - 3.0.0
New (deprecated on arrival, prefer
allowConfig)allowUnsafeSignatureTrustoption coveringgpg.ssh.allowedSignersFile,gpg.ssh.revocationFileandgpg.minTrustLevel, which decide which signatures pass verification. - 3.0.0
allowUnsafePacknow blocks--execfor every command other thanrebase, as it names the remote program forpush,send-pack,fetch-pack,archive --remoteandls-remote(previously onlypush). - 3.0.0
New
allowUnsafeConfigRenameoption blockinggit 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).
Release by release
- Security
Remove the
vulnerabilityCheckexport, useparseArgv(...tokens).vulnerabilitiesandparseEnv(env).vulnerabilitiesinstead. Each vulnerability now also carries theconfigKeyorenvKeythat triggered it. - Security
Closing the loop on any configuration setting ending with
.cmdorcommandunder the catch-allallowUnsafeCommandBinariessetting (only enforced with the newunsafe.recommendedoption, orstrict), and blockinggpg.ssh.defaultKeyCommandunderallowUnsafeGpgProgram. - Security
allowUnsafePagerwill now catch setting a custom binary ingit grep --open-files-in-pager. - Security
allowUnsafePagernow also coversinteractive.diffFilter, the shell command thatgit add -pand the other--patchcommands pipe their diff through.
- Security
- New
Add
VISUALenvironment variable to set ofallowUnsafeEditorenvironment variables.
- New
- Security
Adds detection for
includeIf.<condition>.path, thanks to @NotAFlightRisk for identifying the vulnerability - Security
Vulnerability detection expanded to include
pager.*,uploadpack.packObjectsHook,difftool.*.cmdand use of theGIT_CONFIG_PARAMETERSenvironment variable - Breaking
Updates ahead of the v4 release for
simple-git.
- Security
- New
Add backward compatible API, resolves issue caused by using simple-git@3.35.2 with @simple-git/argv-parser@1.1.0
- New
1 internal line (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.