nolanlawson/blob-util

Use native promises

selbekk opened this issue · 3 comments

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.

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

Ah okay 👍