-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Promises and node v0.12 #3839
Comments
Hrm I dont think |
right and you were never able to do this in the browser, it's because we On Wed, May 13, 2015 at 8:37 AM Dale Harvey [email protected]
|
We should either 1. Figure out how to remove It looks like all stable releases of node support Promises natively but not sure what the uptake for these releases are, may be harsh to drop support already |
you can just switch to using lie only and not bluebird On Wed, May 13, 2015 at 9:44 AM Dale Harvey [email protected]
|
I know it's not part of the specification, I've been trying out lately lie, q and bluebird among others, and though it's somehow arguable and prone to change in the future, seems that bluebird is the right choice. In fact I adopted it as the promises library for my latest app (in part in sake of homogeneity with PouchDB). The issue is not so much about loosing that functionality (again: as things go by, you might be inclined to chose another lib, and then following tightly the specification will be a bonus) but about some shaky things going on under the hood, maybe worth checking. |
In node 0.12 Promises are natively supported, so it will start to use the native promises which dont have Removing bluebird and just using lie for older node versions sounds like a good plan |
I'm fine with removing bluebird and using |
Fixed in 09ce6c8 |
Hello all,
I've noticed that after upgrading my node, form 0.10.x to 0.12.2, I'm no longer able to call the "finally" method on promises returned by the api; now it throws "TypeError: undefined is not a function".
var db = new PouchDB('http:https://localhost:5984/db");
db.allDocs().then(...).finally(...); // NO LONGER WORKING!
The text was updated successfully, but these errors were encountered: