Skip to content

Commit

Permalink
Remove /promise type definitions, allow JavaScript to `require('sim…
Browse files Browse the repository at this point in the history
…ple-git/promise')` with deprecation notice written to `console.error`
  • Loading branch information
steveukx committed Aug 13, 2022
1 parent bf97246 commit 670d854
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 73 deletions.
69 changes: 0 additions & 69 deletions simple-git/promise.d.ts

This file was deleted.

7 changes: 3 additions & 4 deletions 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'
=============================================`);
Expand Down

0 comments on commit 670d854

Please sign in to comment.