googleapis / nodejs-common

🚀🐢 A set of classes and utilities used in Google npm modules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drop Promise property

JustinBeckwith opened this issue · comments

From #106 by @ofrobots

Not a comment for this PR, but in the next semver major, can we drop support from custom Promises? Note that async/await always use native promises, so the use-case for custom promises is growing thin, and might even be footgun as things behave differently from what people might expect.

Is there a strong reason to continue supporting this? People can always do global.Promise = that.thing;

cc @callmehiphop -- was that just a nice thing we did, or was there a requirement or important use case?

Is it worth trying to figure out if we have many Bluebird users (I assume that was the most common use-case for Promise override)?

There are bluebird users I'm sure. Users that rely on bluebird-specific features of the promises returned by these methods would have to do global.Promise = require('bluebird') if they weren't already.

Ah, gotcha. Then, since we're not blocking them, or giving them a hard time, it makes sense to remove.

I just don't think this is worth addressing right now. This would be a semver major breaking change across the board, and that's a lot of churn for little gain. Unless anyone really objects, I am closing this out for now.