Use native promises
selbekk opened this issue · 3 comments
selbekk commented
Instead of using the pouchdb-promise
lib (that uses bluebird
), why not just use native promises? Most projects these days use transpilers and polyfills, and therefore have this in place already.
nolanlawson commented
pouchdb-promise
actually uses native promises if they're available. In the browser it uses lie
, and in Node it uses bluebird
: https://github.com/calvinmetcalf/pouchdb-promise/blob/d8f4af2cd7abc88088ea0912437a0289e216f4b2/index.js#L1
nolanlawson commented
selbekk commented
Ah okay