From bd73acefcfe70fd5602552f4de9686b1c11e1383 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sat, 2 Oct 2021 12:15:45 +0200 Subject: [PATCH] Bump `levelup` to fix API parity with `abstract-leveldown` --- index.js | 10 +--------- package.json | 2 +- test/index.js | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/index.js b/index.js index fbfb94e..ff21926 100644 --- a/index.js +++ b/index.js @@ -8,13 +8,5 @@ module.exports = function (db, prefix, opts) { if (typeof prefix === 'object' && !opts) return module.exports(db, null, prefix) if (!opts) opts = {} - const wrapped = levelup(encoding(subdown(db, prefix, opts), opts), opts) - - // Workaround for abstract-leveldown tests that expect db._nextTick - // TODO: fix tests or add _nextTick to levelup for API parity - if (!wrapped._nextTick) { - wrapped._nextTick = subdown.prototype._nextTick - } - - return wrapped + return levelup(encoding(subdown(db, prefix, opts), opts), opts) } diff --git a/package.json b/package.json index c27e903..699edbe 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "encoding-down": "^7.1.0", "inherits": "^2.0.3", "level-option-wrap": "^1.1.0", - "levelup": "^5.1.0", + "levelup": "^5.1.1", "reachdown": "^1.1.0" }, "devDependencies": { diff --git a/test/index.js b/test/index.js index d80312d..d0cb2bc 100644 --- a/test/index.js +++ b/test/index.js @@ -87,7 +87,7 @@ suite({ // Adapt for levelup deferredOpen: true, promises: true, - status: false, + status: true, serialize: false, encodings: true })