TL;DR - .then and .catch can now be called on the standard simpleGit chain to handle the promise
returned by the most recently added task... essentially, promises now just work the way you would expect
them to.
The main export from simple-git no longer shows the deprecation notice for using the
.then function, it now exposes the promise chain generated from the most recently run
task, allowing the combination of chain building and ad-hoc splitting off to a new promise chain.
Promise / async interface and TypeScript types all available from the simple-git import rather than needing
simple-git/promise, see examples in the ReadMe or in the consumer tests.
Typed Errors
Tasks that previously validated their usage and rejected with a TypeError will now reject with a
TaskConfigurationError.
Tasks that previously rejected with a custom object (currently only git.merge when the auto-merge fails)
will now reject with a GitResponseError where previously it
was a modified Error.
Git Clean
git.clean(...) will now return a CleanSummary instead of the raw string data
Git Raw
git.raw(...) now accepts any number of leading string arguments as an alternative to the
single array of strings.
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@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)
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in the `.dependabot/config.yml` file in this repo:
- Update frequency
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps simple-git from 2.5.0 to 2.6.0.
Changelog
Sourced from simple-git's changelog.
Commits
f8eef91
2.6.03aaab8a
Merge pull request #460 from steveukx/feature/clean4ab4082
Add clean parser test1d7d1c4
Single-branch deletion failures reject with aGitResponseError
rather than ...30c9060
Add description for use of typed errors to the change log38904c8
Add TypeScript consumer test for using default export ofsimple-git
with as...da23dc0
Add ability to use the regularsimple-git
main export as a promise generato...a3192de
Setsimple-git/promise
export to be the standardgitP
function as a defau...e767fd3
Add TypeScript consumer tests - to test the importing of the library using Ty...7d90127
Remove type checkDependabot 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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@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) - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in the `.dependabot/config.yml` file in this repo: - Update frequency - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)