-
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ability to import
/promise
types and throw when required.
- Loading branch information
Showing
3 changed files
with
5 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,8 @@ | ||
// TODO: deprecation warning | ||
console.warn(`============================================= | ||
throw new Error(`============================================= | ||
simple-git has supported promises / async await since version 2.6.0. | ||
Importing from 'simple-git/promise' has been deprecated and will be | ||
removed by July 2022. | ||
Importing from 'simple-git/promise' was deprecated in January 2022 | ||
and removed in August 2022. | ||
To upgrade, change all 'simple-git/promise' imports to just 'simple-git' | ||
Upgrading is simple though: | ||
change all 'simple-git/promise' imports to just 'simple-git' | ||
=============================================`); | ||
|
||
const simpleGit = require('.'); | ||
|
||
module.exports = Object.assign( | ||
function () { | ||
return simpleGit.gitP.apply(null, arguments); | ||
}, | ||
simpleGit, | ||
{ default: simpleGit.gitP } | ||
); |