diff --git a/simple-git/promise.d.ts b/simple-git/promise.d.ts deleted file mode 100644 index 7d3e74e1..00000000 --- a/simple-git/promise.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import * as SimpleGitTypes from 'simple-git'; - -/** - * @deprecated - * - * 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. - * - * To upgrade, change all 'simple-git/promise' imports to just 'simple-git' - */ -declare const simplegit: simplegit.SimpleGitExport; - -declare namespace simplegit { - type SimpleGitExport = ((basePath?: string) => simplegit.SimpleGit) & { - CleanOptions: typeof SimpleGitTypes.CleanOptions; - }; - - /** - * @deprecated - * - * 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. - * - * To upgrade, change all 'simple-git/promise' imports to just 'simple-git' - */ - type SimpleGit = SimpleGitTypes.SimpleGit; - - // errors - type GitError = SimpleGitTypes.GitError; - type GitConstructError = SimpleGitTypes.GitConstructError; - type GitResponseError = SimpleGitTypes.GitResponseError; - type TaskConfigurationError = SimpleGitTypes.TaskConfigurationError; - - // responses - type BranchSummary = SimpleGitTypes.BranchSummary; - type CleanSummary = SimpleGitTypes.CleanSummary; - type CleanMode = SimpleGitTypes.CleanMode; - type DiffResult = SimpleGitTypes.DiffResult; - type FetchResult = SimpleGitTypes.FetchResult; - type CommitResult = SimpleGitTypes.CommitResult; - type MergeResult = SimpleGitTypes.MergeResult; - type PullResult = SimpleGitTypes.PullResult; - type StatusResult = SimpleGitTypes.StatusResult; - type TagResult = SimpleGitTypes.TagResult; - - // types - type outputHandler = SimpleGitTypes.outputHandler; - type LogOptions = SimpleGitTypes.LogOptions; - type Options = SimpleGitTypes.Options; - - // deprecated - /** @deprecated use MergeResult */ - type MergeSummary = SimpleGitTypes.MergeSummary; - /** @deprecated use CommitResult */ - type CommitSummary = SimpleGitTypes.CommitResult; -} - -/** - * @deprecated - * - * 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. - * - * To upgrade, change all 'simple-git/promise' imports to just 'simple-git' - */ -export = simplegit; diff --git a/simple-git/promise.js b/simple-git/promise.js index f12c9162..9f584b9f 100644 --- a/simple-git/promise.js +++ b/simple-git/promise.js @@ -1,8 +1,7 @@ -// TODO: deprecation warning -console.warn(`============================================= +console.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' has been deprecated and will + report this error until the next major release of version 4. To upgrade, change all 'simple-git/promise' imports to just 'simple-git' =============================================`);