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
[bluebird] Restore assignability to native Promises (fixes #11027) #34805
Conversation
Bluebird has an absolute massive amount of dependents which must be upgraded for this to work. |
@lhecker Thank you for submitting this PR! 🔔 @tkqubo @rogierschouten @mnahkies @abreits @nfantone @Zelein @tkqubo @sodatea @d-ph @pvomhoff @arcticwaters @vesse @soywiz @theosherry @nicolashenry @nickiannone @mtraynham @micksatana @midknight41 @jasonswearingen @HiromiShikata @segayuu @philipisapain @plantain-00 @chrisleck @aliarham11 @br8h @shaharmor @palindrom615 @reconbot @funthing @iamolegga @tingwai-to @pettyalex @elvisvoer @tkrotoff @43081j @devoto13 @mgroenhoff @kataras @saeedtabrizi @scsouthw @coolreader18 @chrootsu @BendingBender @cglantschnig @joeskeen @AyaMorisawa @mastermatt @Loghorn @Raigen @samuelneff @codeanimal @drinchev @babolivier @kukoo1 @oktapodia @morpheusxaut @TitaneBoy @zjy01 @nidzov @todd @nrschultz @thomas-b @Antoine38660 @smff @truongkhanhduy95 @emmanuelgautier @dancrumb @torhal @pilagod @cschwarz @mad-mike @troy-lamerton @netux @LinusU @mlamp @trodi @arvitaly - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
glad to finally see bb made compatable with native promises. props for seeing this through! |
A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped! |
@lhecker As you mentioned this has not been release yet, I'll keep from merging until you let me know otherwise. |
@lhecker Unfortunately, this pull request currently has a merge conflict 😥. Please update your PR branch to be up-to-date with respect to master. Have a nice day! |
To be completely honest I didn’t expect the release of this feature to take quite that long. I‘ll fix the merge conflict once Bluebird was released with this change. |
@armanio123 Bluebird 3.5.5 was released just now with this particular feature. You should be able to safely merge this PR now. 🙂 |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
I just published |
…Typed#11027) (DefinitelyTyped#34805) * [bluebird] Rename import to Bluebird for tests * [bluebird] Restore assignability to native Promises * [bluebird] Upgrade TypeScript Versions of all dependents
Intention
Recently Bluebird added support for
Symbol.toStringTag
in petkaantonov/bluebird#1421.This PR adds typings for this new "feature", in turn restores assignability of Bluebird to native Promise types and thus fixes the longstanding issue #11027.
This Bluebird feature has not been released yet, but I expect this to happen relatively soon.
We'll have to decide whether we wait or not for Bluebird to release the changes in the above PR.
I've inquired @petkaantonov whether we intends to release a minor version for this here.
In that case we could safely release this PR as part of seperate Bluebird 3.6 typings.
If it'll be a patch release we can merge this PR at any point in time instead.
Code
The PR is split up in 2 commits. You should review them seperately.
The first commit only renames the Bluebird import for tests, in order for us to more easily have access to the native
Promise
class (including in the future).cc: @tmueller
Template
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).tslint.json
containing{ "extends": "dtslint/dt.json" }
.