129.json (23355B)
1 { 2 "number": 129, 3 "title": "fix(deps): update dependency simple-git to v2", 4 "state": "open", 5 "diff_file": "129.diff", 6 "author": "renovate[bot]", 7 "created_at": "2020-05-01T11:59:12Z", 8 "closed_at": null, 9 "merged_at": null, 10 "base_ref": "master", 11 "head_ref": "renovate/simple-git-2.x", 12 "labels": [], 13 "assignees": [], 14 "requested_reviewers": [], 15 "body": "[](https://renovatebot.com)\n\nThis PR contains the following updates:\n\n| Package | Change | Age | Adoption | Passing | Confidence |\n|---|---|---|---|---|---|\n| [simple-git](https://togithub.com/steveukx/git-js) | [`^1.75.0` -> `^2.0.0`](https://renovatebot.com/diffs/npm/simple-git/1.132.0/2.31.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |\n\n---\n\n### Release Notes\n\n<details>\n<summary>steveukx/git-js</summary>\n\n### [`v2.31.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2310-Handle-root-commit-syntax)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.30.0...v2.31.0)\n\n- Adds a `root: boolean` property to the `CommitResult` interface representing whether the commit was a 'root' commit\n (which is a commit that has no parent, most commonly the first commit in a repo).\n\n### [`v2.30.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2300-Restore-compatibility-with-Nodejs-v10)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.29.0...v2.30.0)\n\n- Reinstates native support for node.js v10 by removing use of ES6 constructs\n\n### [`v2.29.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2290-Update-TypeScript-response-type-for-gitmergeFromTo)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.28.0...v2.29.0)\n\n- Update type definition for `git.mergeFromTo` to be the `MergeResult` returned\n when using the more generic `git.merge` method.\n Thanks to [@​ofirelias](https://togithub.com/ofirelias) for the pull request.\n\n### [`v2.28.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2280-Add-support-for-git-apply--TypeScript-Integration-Tests)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.27.0...v2.28.0)\n\n- Adds support for `git.applyPatch` to apply patches generated in a `git diff` to the working index,\n TypeScript consumers can make use of the `ApplyOptions` type definition to make use of strong types\n for the supported options. Thanks to [@​andreterron](https://togithub.com/andreterron) for the pull request.\n\n- Integration tests converted to TypeScript to ensure type safety across all tests.\n\n### [`v2.27.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2270-Included-staged-deletemodify-in-StatusResult-staged-array)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.26.0...v2.27.0)\n\n- Update the `git.status` parser to account for staged deleted/modified files and staged files with subsequent\n modifications meaning a status of:\n - `RM old -> new` will now appear in `renamed` and `new` will also appear in `modified`\n - `D file` will now appear in both `deleted` and `staged` where `D file` would only appear in `deleted`\n\n### [`v2.26.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2260-Fix-error-when-using-gitlog-with-callback)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.25.0...v2.26.0)\n\n- Resolves an issue whereby using `git.log` with a callback (or awaiting the promise created from the now deprecated\n `simple-git/promise` import) would fail to return the response to the caller.\n\n### [`v2.25.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2250-TypeScript-Types--Unit-Tests-Commit-Parsing)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.24.0...v2.25.0)\n\n- See [Legacy Node Versions](./docs/LEGACY_NODE_VERSIONS.md) for details of how to use `simple-git` with `node.js`\n versions 11 and below. \n- To help keep the TypeScript definitions in line with functionality, unit tests are now written in TypeScript.\n- When using `git.commit`, the first argument must be a string or array of strings. Passing another data type has long\n been considered an error, but now a deprecation warning will be shown in the log and will be switched to an error\n in version 3.\n- Fixes an issue in `git.commit` whereby a commit that included only deleted lines would be parsed as though the\n deletions were inclusions.\n\n### [`v2.24.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2240-Types-updated)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.23.0...v2.24.0)\n\n- `pull`, `push` and `pushTags` parameter types updated to match new functionality and tests switched to TypeScript to ensure they are kept in sync\n\n### [`v2.23.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2230-update-debug-dependency--master---main)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.22.0...v2.23.0)\n\n- Upgrade `debug` dependency and remove use of now deprecated `debug().destroy()`\n- Renames the default source branch from `master` to `main`\n\n### [`v2.22.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2220-add-githashObject-interface)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.21.0...v2.22.0)\n\n- Adds support for `git hash-object FILE` and `git hash-object -w FILE`\n with new interface `git.hashObject(...)`, with thanks to [@​MiOnim](https://togithub.com/MiOnim)\n\n### [`v2.21.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2210-add-string--to-LogOptions-type)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.20.1...v2.21.0)\n\n- Adds `string[]` to the set of types supported as options for `git.log`\n- Fix readme typos\n\n### [`v2.20.1`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2201-Bug-fix-LogOptions-type-definition)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.20.0...v2.20.1)\n\n- `LogOptions` should be intersection rather than union types\n\n### [`v2.20.0`](https://togithub.com/steveukx/git-js/compare/v2.19.0...v2.20.0)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.19.0...v2.20.0)\n\n### [`v2.19.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2190---Upgrade-task-option-filters)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.18.0...v2.19.0)\n\n- move the command/task option processing function to TypeScript\n\n### [`v2.18.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2180---Upgrade-Clone--Mirror-tasks)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.17.0...v2.18.0)\n\n- `git.clone` and `git.mirror` rewritten to fit the TypeScript tasks style.\n- resolves issue whereby `git.clone` didn't accept an object of options despite being documented as supporting.\n\n### [`v2.17.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2170---Add-remote-message-parsing-to-git-pull)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.16.0...v2.17.0)\n\n- `git pull` (and by extension `git merge`) adds remote message parsing to the `PullResult` type\n- Remote message parsing adds property `remoteMessages.objects` of type `RemoteMessagesObjectEnumeration` to capture the objects transferred in fetch and push.\n\n### [`v2.16.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2160---Upgrade-Move-task)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.15.0...v2.16.0)\n\n- `git.mv` rewritten to fit the TypeScript tasks style.\n- set up github actions for CI\n\n### [`v2.15.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2150---Task-parsers-automatically-have-access-to-stdErr-as-well-as-stdOut)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.14.0...v2.15.0)\n\n- adds the `TaskParser` type to describe a task's parser function and creates the `LineParser` utility to simplify line-by-line parsing of string responses.\n- renames some interfaces for consistency of naming, the original name remains as a type alias marked as `@deprecated` until version 3.x:\n - BranchDeletionSummary > BranchSingleDeleteResult\n - BranchDeletionBatchSummary > BranchMultiDeleteResult\n - MergeSummary > MergeResult\n\n### [`v2.14.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2140---Bug-fix-gitcheckoutBranch-fails-to-pass-commands-to-git-child-process)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.13.2...v2.14.0)\n\n- resolves an issue whereby the `git.checkoutBranch` method would not pass the branch detail through to the underlying child process.\n\n### [`v2.13.2`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2132---PushResult-to-expose-all-non-empty-remote-messages)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.13.1...v2.13.2)\n\n- Further to `2.13.0` includes all (non-empty) `remote:` lines in the `PushResult`,\n including `remote:` lines used for other parser results (ie: `pullRequestUrl` etc).\n\n### [`v2.13.1`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2131---Add-support-for-parsing-GitLab-Pull-Request-Url-Message)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.13.0...v2.13.1)\n\n- Further to `2.13.0` adding support for parsing the reponse to `git.push`, adds support for the pull request message\n used by gitlab.\n\n### [`v2.13.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2130---Upgraded-Pull--Merge-and-parser-for-Push)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.12.0...v2.13.0)\n\n- `.push` and `.pushTags` rewritten as v2 style tasks. The git response is now parsed and returned as a\n [PushResult](./typings/response.d.ts)\n\n- Pull and merge rewritten to fit the TypeScript tasks style. \n\n- Integration tests updated to run through jest directly without compiling from nodeunit\n\n### [`v2.12.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2120---Bug-fix-chaining-onto--async-awaiting-gittags-failed)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.11.0...v2.12.0)\n\n- resolves an issue whereby the `git.tags` method could not be chained or used as an async/promise.\n\n### [`v2.11.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2110---Parallel--concurrent-tasks-fresh-repo-status-parser--bug-fix-in-checkoutLocalBranch)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.10.0...v2.11.0)\n\n- until now, `simple-git` reject all pending tasks in the queue when a task has failed. From `2.11.0`, only\n tasks chained from the failing one will be rejected, other tasks can continue to be processed as normal,\n giving the developer more control over which tasks should be treated as atomic chains, and which can be\n [run in parallel](./readme.md#concurrent--parallel-requests).\n\n To support this, and to prevent the issues seen when `git` is run concurrently in too many child processes,\n `simple-git` will limit the number of tasks running in parallel at any one time to be at most 1 from each\n chain (ie: chained tasks are still run in series) and at most 5 tasks across all chains (\n [configurable](./readme.md#configuration) by passing `{maxConcurrentProcesses: x}` in the `simpleGit` constructor). \n\n- add support to `git.status()` for parsing the response of a repo that has no commits yet, previously\n it wouldn't determine the branch name correctly.\n\n- resolved a flaw introduced in `2.9.0` whereby `checkoutLocalBranch` would silently fail and not check out the branch\n\n### [`v2.10.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​2100---trailing-options-in-checkout-init-status-reset--bug-fix-awaiting-a-non-task)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.9.0...v2.10.0)\n\n- `git.checkout` now supports both object and array forms of supplying trailing options.\n\n```typescript\nimport simpleGit from 'simple-git';\nawait simpleGit().checkout('branch-name', ['--track', 'remote/branch']);\nawait simpleGit().checkout(['branch-name', '--track', 'remote/branch']);\nawait simpleGit().checkout({'branch-name': null});\n```\n\n- `git.init` now supports both object and array forms of supplying trailing options and now\n parses the response to return an [InitResult](./typings/response.d.ts);\n\n```typescript\nimport simpleGit, { InitResult } from 'simple-git';\nconst notSharedInit: InitResult = await simpleGit().init(false, ['--shared=false']);\nconst notSharedBareInit: InitResult = await simpleGit().init(['--bare', '--shared=false']);\nconst sharedInit: InitResult = await simpleGit().init(false, {'--shared': 'true'});\nconst sharedBareInit: InitResult = await simpleGit().init({'--bare': null, '--shared': 'false'});\n```\n\n- `git.status` now supports both object and array forms of supplying trailing options.\n\n```typescript\nimport simpleGit, { StatusResult } from 'simple-git';\nconst repoStatus: StatusResult = await simpleGit().status();\nconst subDirStatus: StatusResult = await simpleGit().status(['--', 'sub-dir']);\n```\n\n- `git.reset` upgraded to the new task style and exports an enum `ResetMode` with all supported\n merge modes and now supports both object and array forms of supplying trailing options.\n\n```typescript\nimport simpleGit, { ResetMode } from 'simple-git';\n\n// git reset --hard\nawait simpleGit().reset(ResetMode.HARD);\n\n// git reset --soft -- sub-dir\nawait simpleGit().reset(ResetMode.SOFT, ['--', 'sub-dir']);\n```\n\n- bug-fix: it should not be possible to await the `simpleGit()` task runner, only the tasks it returns.\n\n```typescript\nexpect(simpleGit().then).toBeUndefined();\nexpect(simpleGit().init().then).toBe(expect.any(Function));\n```\n\n### [`v2.9.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​290---checkIsRepo-rev-parse)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.8.0...v2.9.0)\n\n- `.checkIsRepo()` updated to allow choosing the type of check to run, either by using the exported `CheckRepoActions` enum\n or the text equivalents ('bare', 'root' or 'tree'):\n\n - `checkIsRepo(CheckRepoActions.BARE): Promise<boolean>` determines whether the working directory represents a bare repo.\n - `checkIsRepo(CheckRepoActions.IS_REPO_ROOT): Promise<boolean>` determines whether the working directory is at the root of a repo.\n - `checkIsRepo(CheckRepoActions.IN_TREE): Promise<boolean>` determines whether the working directory is a descendent of a git root.\n\n- `.revparse()` converted to a new style task\n\n### [`v2.8.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​280---Support-for-default-import-in-TS-without-use-of-esModuleInterop)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.7.2...v2.8.0)\n\n- Enables support for using the default export of `simple-git` as an es module, in TypeScript it is no\n longer necessary to enable the `esModuleInterop` flag in the `tsconfig.json` to consume the default\n export.\n\n##### 2.7.2 - Bug Fix: Remove `promise.ts` source from `simple-git` published artifact\n\n- Closes [#​471](https://togithub.com/steveukx/git-js/issues/471), whereby the source for the promise wrapped runner would be included in the published artifact\n due to sharing the same name as the explicitly included `promise.js` in the project root. \n\n##### 2.7.1 - Bug Fix: `await git.log` having imported from root `simple-git`\n\n- Fixes [#​464](https://togithub.com/steveukx/git-js/issues/464), whereby using `await` on `git.log` without having supplied a callback would ignore the leading options\n object or options array.\n\n### [`v2.7.2`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​272---Bug-Fix-Remove-promisets-source-from-simple-git-published-artifact)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.7.1...v2.7.2)\n\n- Closes [#​471](https://togithub.com/steveukx/git-js/issues/471), whereby the source for the promise wrapped runner would be included in the published artifact\n due to sharing the same name as the explicitly included `promise.js` in the project root.\n\n### [`v2.7.1`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​271---Bug-Fix-await-gitlog-having-imported-from-root-simple-git)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.7.0...v2.7.1)\n\n- Fixes [#​464](https://togithub.com/steveukx/git-js/issues/464), whereby using `await` on `git.log` without having supplied a callback would ignore the leading options\n object or options array.\n\n### [`v2.7.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​270---Output-Handler-and-logging)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.6.0...v2.7.0)\n\n- Updated to the `outputHandler` type to add a trailing argument for the arguments passed into the child process.\n- All logging now uses the [debug](https://www.npmjs.com/package/debug) library. Enable logging by adding `simple-git`\n to the `DEBUG` environment variable. `git.silent(false)` can still be used to explicitly enable logging and is\n equivalent to calling `require('debug').enable('simple-git')`.\n\n### [`v2.6.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​260---Native-Promises-Typed-Errors-TypeScript-Importing-Gitclean-and-Gitraw)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.5.0...v2.6.0)\n\n##### Native Promises\n\n- _TL;DR - `.then` and `.catch` can now be called on the standard `simpleGit` chain to handle the promise\n returned by the most recently added task... essentially, promises now just work the way you would expect\n them to._\n- The main export from `simple-git` no longer shows the deprecation notice for using the\n `.then` function, it now exposes the promise chain generated from the most recently run\n task, allowing the combination of chain building and ad-hoc splitting off to a new promise chain.\n - See the [unit](./test/unit/promises.spec.js) and [integration](./test/integration/promise-from-root.spec.js) tests.\n - See the [typescript consumer](./test/consumer/ts-default-from-root.spec.ts) test.\n\n##### TypeScript Importing\n\n- Promise / async interface and TypeScript types all available from the `simple-git` import rather than needing\n `simple-git/promise`, see examples in the [ReadMe](./readme.md) or in the [consumer tests](./test/consumer).\n\n##### Typed Errors\n\n- Tasks that previously validated their usage and rejected with a `TypeError` will now reject with a\n [`TaskConfigurationError`](./src/lib/errors/task-configuration-error.ts).\n\n- Tasks that previously rejected with a custom object (currently only `git.merge` when the auto-merge fails)\n will now reject with a [`GitResponseError`](./src/lib/errors/git-response-error.ts) where previously it\n was a modified `Error`.\n\n##### Git Clean\n\n- `git.clean(...)` will now return a `CleanSummary` instead of the raw string data\n\n##### Git Raw\n\n- `git.raw(...)` now accepts any number of leading string arguments as an alternative to the\n single array of strings.\n\n### [`v2.5.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​250---Gitremote)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.4.0...v2.5.0)\n\n- all `git.remote` related functions converted to TypeScript\n\n### [`v2.4.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​240---GitsubModule)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.3.0...v2.4.0)\n\n- all `git.subModule` related functions converted to TypeScript\n\n### [`v2.3.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​230---Gitconfig)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.2.0...v2.3.0)\n\n- add new `git.listConfig` to get current configuration\n- `git.addConfig` supports a new `append` flag to append the value into the config rather than overwrite existing\n\n### [`v2.2.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​220---Gitbranch)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.1.0...v2.2.0)\n\n- all `git.branch` related functions converted to TypeScript\n- add new `git.deleteLocalBranches` to delete multiple branches in one call\n- `git.deleteLocalBranches` and `git.deleteLocalBranch` now support an optional `forceDelete` flag\n\n### [`v2.1.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​210---Gittag)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v2.0.0...v2.1.0)\n\n- `.tags`, `.addTag` and `.addAnnotatedTag` converted to TypeScript, no backward compatibility changes\n\n### [`v2.0.0`](https://togithub.com/steveukx/git-js/blob/master/CHANGELOG.md#​200---Incremental-switch-to-TypeScript-and-rewritten-task-execution)\n\n[Compare Source](https://togithub.com/steveukx/git-js/compare/v1.132.0...v2.0.0)\n\n- If your application depended on any functions with a name starting with an `_`, the upgrade may not be seamless,\n please only use the documented public API.\n\n- `git.log` date format is now strict ISO by default (ie: uses the placeholder `%aI`) instead of the 1.x default of\n `%ai` for an \"ISO-like\" date format. To restore the old behaviour, add `strictDate = false` to the options passed to\n `git.log`.\n\n</details>\n\n---\n\n### Renovate configuration\n\n:date: **Schedule**: At any time (no schedule defined).\n\n:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.\n\n:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.\n\n:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.\n\n---\n\n - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box\n\n---\n\nThis PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/MTRNord/freifunk-bot).", 16 "comments": [], 17 "review_comments": [] 18 }