-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose wrapper promise as a prop so it can be chained on (fixes #79) #83
Conversation
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
10 similar comments
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.31% +0.02%
==========================================
Files 9 9
Lines 711 735 +24
Branches 157 161 +4
==========================================
+ Hits 706 730 +24
Misses 5 5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #83 +/- ##
==========================================
+ Coverage 99.29% 99.32% +0.02%
==========================================
Files 9 9
Lines 711 736 +25
Branches 157 160 +3
==========================================
+ Hits 706 731 +25
Misses 5 5
Continue to review full report at Codecov.
|
Released in v8.0.0 |
Thanks, I answered your question on SO. Basically this is a bug which will be fixed soon. See also #92 (comment) |
Description
This exposes a new
promise
prop, which is the internal wrapper Promise created when starting thepromiseFn
. This wrapper promise fulfills and rejects along with the underlying promise, so it behaves as one would expect, contrary to the promise returned byrun
, which always fulfilled. Because the promise returned byrun
is an oddball and not frequently used (it was even untested), it was changed to just returnundefined
.This fixes #79
Breaking changes
The return type for
run
was changed fromPromise
toundefined
. You should now use thepromise
prop instead. This change cannot be automated, so you should upgrade manually.Checklist
Make sure you check all the boxes. You can omit items that are not applicable.
<Async>
anduseAsync()