Skip to content

build(deps): bump simple-git from 3.36.0 to 4.0.2 - #244

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/simple-git-4.0.2
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/simple-git-4.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 17, 2026

Copy link
Copy Markdown
Contributor

Bumps simple-git from 3.36.0 to 4.0.2.

Release notes

Sourced from simple-git's releases.

simple-git@4.0.2

Patch Changes

  • 68874c2: Add VISUAL environment variable to set of allowUnsafeEditor environment variables.

    Thanks to @​oss-security-shopify for identifying the vulnerability.

  • Updated dependencies [68874c2]

    • @​simple-git/argv-parser@​2.0.1

simple-git@4.0.1

Patch Changes

  • 365f52d: Prepare package.json before publishing.

simple-git@4.0.0

Major Changes

  • 98864c6: Major upgrade to v4. In this version:

    • Removed previously available default export, now uses a consistently named simpleGit export.
    • Removed previously deprecated import simple-git/promise (change to using the main simple-git import).
    • Removed legacy gitP export (change to using the main simpleGit export).
    // v3 - previously supported imports
    import simpleGit from "simple-git";
    import { gitP } from "simple-git";
    import simpleGit from "simple-git/promise";
    const simpleGit = require("simple-git");
    // v4 - consolidates to a single supported import
    import { simpleGit } from "simple-git";
    const { simpleGit } = require("simple-git");

    • Prevents the use of abbreviated long-form git options:
    // v3 - allowed the use of unambiguous long-form options
    git.raw("clone", "--conf=user.name=me", "...");
    // v4 - requires full option names, abbreviated option names will now throw a GitConfigurationError
    git.raw("fetch", "--config=user.name=me", "...");

    • Ambient environment variables are filtered before passing into the git child process.
    // v3

... (truncated)

Changelog

Sourced from simple-git's changelog.

4.0.2

Patch Changes

  • 68874c2: Add VISUAL environment variable to set of allowUnsafeEditor environment variables.

    Thanks to @​oss-security-shopify for identifying the vulnerability.

  • Updated dependencies [68874c2]

    • @​simple-git/argv-parser@​2.0.1

4.0.1

Patch Changes

  • 365f52d: Prepare package.json before publishing.

4.0.0

Major Changes

  • 98864c6: Major upgrade to v4. In this version:

    • Removed previously available default export, now uses a consistently named simpleGit export.
    • Removed previously deprecated import simple-git/promise (change to using the main simple-git import).
    • Removed legacy gitP export (change to using the main simpleGit export).
    // v3 - previously supported imports
    import simpleGit from "simple-git";
    import { gitP } from "simple-git";
    import simpleGit from "simple-git/promise";
    const simpleGit = require("simple-git");
    // v4 - consolidates to a single supported import
    import { simpleGit } from "simple-git";
    const { simpleGit } = require("simple-git");

    • Prevents the use of abbreviated long-form git options:
    // v3 - allowed the use of unambiguous long-form options
    git.raw("clone", "--conf=user.name=me", "...");
    // v4 - requires full option names, abbreviated option names will now throw a GitConfigurationError
    git.raw("fetch", "--config=user.name=me", "...");

    Thanks to @​anir0y, @​CFionaBF, @​Leeziao, @​internetteletubbie, @​idisdi, @​the-vibe-dev,

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [simple-git](https://github.com/steveukx/git-js/tree/HEAD/simple-git) from 3.36.0 to 4.0.2.
- [Release notes](https://github.com/steveukx/git-js/releases)
- [Changelog](https://github.com/steveukx/git-js/blob/main/simple-git/CHANGELOG.md)
- [Commits](https://github.com/steveukx/git-js/commits/simple-git@4.0.2/simple-git)

---
updated-dependencies:
- dependency-name: simple-git
  dependency-version: 4.0.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage report

Caution

Test run failed

St.❔
Category Percentage Covered / Total
🟢 Statements
84.87% (-2.81% 🔻)
634/747
🟡 Branches
79.9% (-1.83% 🔻)
306/383
🟢 Functions
83.89% (-1.67% 🔻)
151/180
🟢 Lines
85% (-2.78% 🔻)
612/720
Show files with reduced coverage 🔻
St.❔
File Statements Branches Functions Lines
🔴 git/git-cli.ts
35.38% (-32.31% 🔻)
14.81% (-25.93% 🔻)
64.29% (-21.43% 🔻)
35.94% (-31.25% 🔻)

Test suite run failed

Failed tests: 7/230. Failed suites: 1/19.
  ● git cli service › version

    TypeError: (0 , simple_git_1.default) is not a function

      28 |   private git(cwd?: string): SimpleGit {
      29 |     const gitConfig = { ...(cwd ? { baseDir: cwd } : {})};
    > 30 |     return simpleGit(gitConfig).addConfig("user.name", this.gitData.user).addConfig("user.email", this.gitData.email);
         |                     ^
      31 |   }
      32 |
      33 |   /**

      at GitCLIService.git (src/service/git/git-cli.ts:30:21)
      at GitCLIService.git [as version] (src/service/git/git-cli.ts:52:34)
      at Object.<anonymous> (test/service/git/git-cli.test.ts:80:30)

  ● git cli service › fetch

    expect(received).resolves.not.toThrow()

    Received promise rejected instead of resolved
    Rejected to value: [TypeError: (0 , simple_git_1.default) is not a function]

      89 |
      90 |   test("fetch", async () => {
    > 91 |     await expect(git.fetch(cwd, currentBranch)).resolves.not.toThrow();
         |           ^
      92 |   });
      93 |
      94 |   test("local branch", async () => {

      at expect (node_modules/expect/build/index.js:2116:15)
      at Object.<anonymous> (test/service/git/git-cli.test.ts:91:11)

  ● git cli service › local branch

    expect(received).resolves.not.toThrow()

    Received promise rejected instead of resolved
    Rejected to value: [TypeError: (0 , simple_git_1.default) is not a function]

      93 |
      94 |   test("local branch", async () => {
    > 95 |     await expect(git.createLocalBranch(cwd, "new-local-branch")).resolves.not.toThrow();
         |           ^
      96 |
      97 |     // use rev-parse to double check the current branch is the new one
      98 |     const output = spawnSync("git", ["rev-parse", "--abbrev-ref", "HEAD"], { cwd }).stdout.toString().trim();

      at expect (node_modules/expect/build/index.js:2116:15)
      at Object.<anonymous> (test/service/git/git-cli.test.ts:95:11)

  ● git cli service › push local branch

    TypeError: (0 , simple_git_1.default) is not a function

      28 |   private git(cwd?: string): SimpleGit {
      29 |     const gitConfig = { ...(cwd ? { baseDir: cwd } : {})};
    > 30 |     return simpleGit(gitConfig).addConfig("user.name", this.gitData.user).addConfig("user.email", this.gitData.email);
         |                     ^
      31 |   }
      32 |
      33 |   /**

      at GitCLIService.git (src/service/git/git-cli.ts:30:21)
      at GitCLIService.git [as pointToSameCommit] (src/service/git/git-cli.ts:197:29)
      at Object.<anonymous> (test/service/git/git-cli.test.ts:108:31)

  ● git cli service › git clone on already created repo

    TypeError: (0 , simple_git_1.default) is not a function

      28 |   private git(cwd?: string): SimpleGit {
      29 |     const gitConfig = { ...(cwd ? { baseDir: cwd } : {})};
    > 30 |     return simpleGit(gitConfig).addConfig("user.name", this.gitData.user).addConfig("user.email", this.gitData.email);
         |                     ^
      31 |   }
      32 |
      33 |   /**

      at GitCLIService.git (src/service/git/git-cli.ts:30:21)
      at GitCLIService.git [as anyConflict] (src/service/git/git-cli.ts:169:31)
      at GitCLIService.anyConflict [as clone] (src/service/git/git-cli.ts:74:42)
      at Object.<anonymous> (test/service/git/git-cli.test.ts:130:15)

  ● git cli service › add remote twice updates the url instead of throwing

    TypeError: (0 , simple_git_1.default) is not a function

      28 |   private git(cwd?: string): SimpleGit {
      29 |     const gitConfig = { ...(cwd ? { baseDir: cwd } : {})};
    > 30 |     return simpleGit(gitConfig).addConfig("user.name", this.gitData.user).addConfig("user.email", this.gitData.email);
         |                     ^
      31 |   }
      32 |
      33 |   /**

      at GitCLIService.git (src/service/git/git-cli.ts:30:21)
      at GitCLIService.git [as addRemote] (src/service/git/git-cli.ts:105:40)
      at Object.<anonymous> (test/service/git/git-cli.test.ts:138:15)

  ● git cli service › git clone set url with auth correctly for API token

    TypeError: (0 , simple_git_1.default) is not a function

      64 |     this.logger.info(`Cloning repository ${from} to ${to}`);
      65 |     if (!fs.existsSync(to)) {
    > 66 |       await simpleGit().clone(this.remoteWithAuth(from), to, ["--quiet", "--filter=blob:none", "--shallow-submodules", "--no-tags", "--branch", branch]);
         |                      ^
      67 |       return;
      68 |     }
      69 |

      at GitCLIService.clone (src/service/git/git-cli.ts:66:22)
      at Object.<anonymous> (test/service/git/git-cli.test.ts:153:18)

Report generated by 🧪jest coverage report action from fc42f57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants