nolanlawson / blob-util

Cross-browser utils for working with binary Blobs
https://nolanlawson.github.io/blob-util
Apache License 2.0
503 stars 45 forks source link

Use native promises #21

Closed selbekk closed 8 years ago

selbekk commented 8 years ago

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 8 years ago

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 8 years ago

lie switch: https://github.com/calvinmetcalf/pouchdb-promise/blob/d8f4af2cd7abc88088ea0912437a0289e216f4b2/package.json#L11

selbekk commented 8 years ago

Ah okay :+1: