nolanlawson / fruitdown

Browser-based LevelDOWN adapter that works over Apple IndexedDB (UNMAINTAINED)
MIT License
50 stars 4 forks source link

Fruitdown is not compatible with the latest version of abstract-leveldown #14

Open dfreire opened 6 years ago

dfreire commented 6 years ago
const leveldown = require('fruitdown')
const levelup = require('levelup');
const db = leveldown('my-database-name')
levelup(db);

Causes the assertion error:

".status required, old abstract-leveldown"

The status property is documented in the README of: https://github.com/Level/abstract-leveldown AbstractLevelDOWN#status

(As a workaround I'm setting db.status = 'unknown' before doing levelup(db))

nolanlawson commented 6 years ago

This package has limited value now that Apple has fixed their IDB implementation. It should probably just be deprecated.

humpedli commented 6 years ago

Apple has fixed their IDB implementation

no, it's still not working in WKWebview

guillaumejenkins commented 6 years ago

For what it's worth we have the same exception in WKWebview when using PouchDB with pouch-adapter-fruitdown. FruitDOWN would still be very useful for WKWebview.