---
title: "simple-git 4.1.0 Breaking Changes on npm | Since.dev"
description: "What each simple-git release removed, renamed or changed: 122 breaking changes in 8 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/simple-git
last_updated: 2026-12-04
---

# simple-git breaking changes

simple-git 4.1.0 (November 16, 2026) is its newest release with breaking changes, 11 of them. The first: Behavior changed allowUnsafeCommandBinaries. Every breaking API change we have recorded in simple-git on npm: 122 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.1.0`, released November 16, 2026. [Source repository](https://github.com/steveukx/git-js)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.36.0](#v-3-36-0) to [4.1.0](#v-4-1-0): 105 breaking changes in 4 versions.
- From [3.32.0](#v-3-32-0) to [4.1.0](#v-4-1-0): 121 breaking changes in 7 versions.

## simple-git 4.1.0 breaking changes

simple-git 4.1.0, released November 16, 2026: 11 breaking changes.

- **Behavior changed** `allowUnsafeCommandBinaries`  

Any config key ending in .cmd or command is now checked under allowUnsafeCommandBinaries when unsafe.recommended or strict is on, which can block existing configuration. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- **Behavior changed** `allowUnsafeConfigRename`  

git config --rename-section and git config rename-section are now blocked by allowUnsafeConfigRename, so code using them may fail unless allowed. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- **Behavior changed** `allowUnsafeDiffExternal`  

difftool.\<tool>.path is now covered by allowUnsafeDiffExternal, so code that sets it must be allowed explicitly. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- **Behavior changed** `allowUnsafeExec`  

The filter-branch options that run shell commands are now blocked unless allowed, so code using them must enable allowUnsafeExec. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- **Behavior changed** `allowUnsafeGpgProgram`  

The gpg.ssh.defaultKeyCommand key is blocked under allowUnsafeGpgProgram, so code relying on it must allow it explicitly. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- **Behavior changed** `allowUnsafePack`  

The --exec option is now blocked for push, send-pack, fetch-pack, archive --remote and ls-remote as well, so code using it there must be allowed explicitly. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- **Behavior changed** `allowUnsafePager`  

Setting interactive.diffFilter is now covered by allowUnsafePager, so code that sets it without allowing it will be blocked. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- **Behavior changed** `browser.<tool>.cmd`  

browser.\<tool>.cmd and man.\<tool>.cmd are now governed by allowUnsafeBrowser rather than allowUnsafeCommandBinaries, so existing allowances may need updating. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- **Behavior changed** `env`  

With the recommended checks enabled, HOME or XDG_CONFIG_HOME passed through .env() with a value different from process.env must be allowed with allowUnsafeConfigPaths or allowEnvironment. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- **Behavior changed** `strict`  

Configuration keys outside the built-in safe list and not named in allowConfig now emit a warning. With strict: true they are rejected, so code relying on them must add them to allowConfig. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
- **Signature changed** `SimpleGitOptions.unsafe`  

Was unsafe: Partial\<VulnerabilityCategoryFlags & {allowUnsafeCustomBinary: boolean; allowAbbreviatedOptions: boolean;}>; now unsafe: Partial\<VulnerabilityCategoryFlags & {recommended: boolean; allowUnsafeCustomBinary: boolean... [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.1.0)

## simple-git 4.0.2 breaking changes

simple-git 4.0.2, released September 26, 2026: 1 breaking change.

- **Behavior changed** `allowUnsafeEditor`  

The VISUAL environment variable is added to the set of environment variables that allowUnsafeEditor covers. Code that relies on VISUAL to set the editor may now be affected and should review its editor configuration. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.0.2)

## simple-git 4.0.1 breaking changes

simple-git 4.0.1, released September 25, 2026: 1 breaking change.

- **Signature changed** `simpleGit`  

Was export {simpleGit} from './src/lib/git-factory'; now const simpleGit: SimpleGitFactory. [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.0.1)

## simple-git 4.0.0 breaking changes

simple-git 4.0.0, released September 25, 2026: 92 breaking changes.

- **Removed**  

Import the named simpleGit export instead of the default export. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%404.0.0)
- **Removed** `ApplyOptions`  

ApplyOptions was removed in simple-git 4.0.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.0.0)
- **Removed** `BranchDeletionBatchSummary`  

BranchDeletionBatchSummary was removed in simple-git 4.0.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.0.0)
- **Removed** `BranchDeletionSummary`  

BranchDeletionSummary was removed in simple-git 4.0.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.0.0)
- **Removed** `BranchMultiDeleteResult`  

BranchMultiDeleteResult was removed in simple-git 4.0.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.0.0)
- **Removed** `BranchSingleDeleteFailure`  

BranchSingleDeleteFailure was removed in simple-git 4.0.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.0.0)
- **Removed** `BranchSingleDeleteResult`  

BranchSingleDeleteResult was removed in simple-git 4.0.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.0.0)
- **Removed** `BranchSingleDeleteSuccess`  

BranchSingleDeleteSuccess was removed in simple-git 4.0.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.0.0)
- **Removed** `BranchSummary`  

BranchSummary was removed in simple-git 4.0.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.0.0)
- **Removed** `BranchSummaryBranch`  

BranchSummaryBranch was removed in simple-git 4.0.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/4.0.0)

And 82 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## simple-git 3.36.0 breaking changes

simple-git 3.36.0, released April 12, 2026: 10 breaking changes.

- **Removed** `SimpleGitOptions.unsafe.allowUnsafeCustomBinary`  

SimpleGitOptions.unsafe.allowUnsafeCustomBinary was removed in simple-git 3.36.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.36.0)
- **Removed** `SimpleGitOptions.unsafe.allowUnsafeDiffExternal`  

SimpleGitOptions.unsafe.allowUnsafeDiffExternal was removed in simple-git 3.36.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.36.0)
- **Removed** `SimpleGitOptions.unsafe.allowUnsafeFsMonitor`  

SimpleGitOptions.unsafe.allowUnsafeFsMonitor was removed in simple-git 3.36.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.36.0)
- **Removed** `SimpleGitOptions.unsafe.allowUnsafeGitProxy`  

SimpleGitOptions.unsafe.allowUnsafeGitProxy was removed in simple-git 3.36.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.36.0)
- **Removed** `SimpleGitOptions.unsafe.allowUnsafeHooksPath`  

SimpleGitOptions.unsafe.allowUnsafeHooksPath was removed in simple-git 3.36.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.36.0)
- **Removed** `SimpleGitOptions.unsafe.allowUnsafePack`  

SimpleGitOptions.unsafe.allowUnsafePack was removed in simple-git 3.36.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.36.0)
- **Removed** `SimpleGitOptions.unsafe.allowUnsafeProtocolOverride`  

SimpleGitOptions.unsafe.allowUnsafeProtocolOverride was removed in simple-git 3.36.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.36.0)
- **Removed** `SimpleGitOptions.unsafe.allowUnsafeSshCommand`  

SimpleGitOptions.unsafe.allowUnsafeSshCommand was removed in simple-git 3.36.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.36.0)
- **Behavior changed**  

simple-git now blocks additional known exploitable configuration keys and per-task environment variables, including core.fsmonitor, GIT_CONFIG_COUNT, and template or merge related config. Code that passes these may now be rejected. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%403.36.0)
- **Signature changed** `SimpleGitOptions.unsafe`  

Was unsafe: {allowUnsafeCustomBinary?: boolean; allowUnsafeProtocolOverride?: boolean; allowUnsafePack?: boolean; allowUnsafeSshCommand?: boolean; allowUnsafeGitProxy?: boolean; allowUnsafeHooksPath?: boolean; allowUnsafeDiffExternal?... [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.36.0)

## simple-git 3.34.0 breaking changes

simple-git 3.34.0, released April 6, 2026: 2 breaking changes.

- **Removed** `pathspec`  

pathspec was removed in simple-git 3.34.0 [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.34.0)
- **Signature changed** `SimpleGitOptions.unsafe`  

Was unsafe: {allowUnsafeCustomBinary?: boolean; allowUnsafeProtocolOverride?: boolean; allowUnsafePack?: boolean; allowUnsafeSshCommand?: boolean; allowUnsafeGitProxy?: boolean; allowUnsafeHooksPath?: boolean; allowUnsafeDiffExternal?... [npmjs.com](https://www.npmjs.com/package/simple-git/v/3.34.0)

## Older versions

2 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### simple-git 3.33.0 breaking changes

simple-git 3.33.0, released March 10, 2026: 4 breaking changes.

- **Behavior changed**  

The unsafe plugin now performs stricter checks on git -c options, so some configurations that were previously accepted may now be rejected. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%403.33.0)
- **Behavior changed** `git.clone`  

git.clone now passes remote and local paths through pathspec wrappers, which can change how unusual path values are interpreted. Check calls that pass unsanitised or specially formatted paths. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%403.33.0)

And 2 more in this version.

### simple-git 3.32.0 breaking changes

simple-git 3.32.0, released February 21, 2026: 1 breaking change.

- **Behavior changed** `unsafe`  

The unsafe plugin now also blocks cases where the -u switch is disguised alongside other single-character options. Code that passed such arguments will now be blocked and must use a safe form of the command. [github.com](https://github.com/steveukx/git-js/releases/tag/simple-git%403.32.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
