diff --git a/index.js b/index.js index 8b46417..ce0d229 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,14 @@ var DEFAULT_PREFIX = 'level-js-' function Level (location, opts) { if (!(this instanceof Level)) return new Level(location, opts) - AbstractLevelDOWN.call(this) + + AbstractLevelDOWN.call(this, { + bufferKeys: support.bufferKeys(indexedDB), + snapshots: true, + permanence: true, + clear: true + }) + opts = opts || {} if (typeof location !== 'string') { @@ -28,12 +35,6 @@ function Level (location, opts) { this.location = location this.prefix = opts.prefix || DEFAULT_PREFIX this.version = parseInt(opts.version || 1, 10) - - // Experimental, do not externally rely on this object yet. - // See Level/community#42. - this.supports = { - bufferKeys: support.bufferKeys(indexedDB) - } } inherits(Level, AbstractLevelDOWN) diff --git a/package.json b/package.json index 5ee328e..72ec427 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "./util/immediate.js": "./util/immediate-browser.js" }, "dependencies": { - "abstract-leveldown": "~6.1.1", + "abstract-leveldown": "~6.2.1", "immediate": "~3.2.3", "inherits": "^2.0.3", "ltgt": "^2.1.2"