diff --git a/package.json b/package.json index ffa3dc3..0d66b8e 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,10 @@ "prepublishOnly": "npm run dependency-check" }, "dependencies": { - "abstract-leveldown": "^6.2.1", + "abstract-leveldown": "^7.0.0", "inherits": "^2.0.3", - "level-codec": "^9.0.0", - "level-errors": "^2.0.0" + "level-codec": "^10.0.0", + "level-errors": "^3.0.0" }, "devDependencies": { "coveralls": "^3.0.2", diff --git a/test/index.js b/test/index.js index 02578d9..4dce39d 100644 --- a/test/index.js +++ b/test/index.js @@ -404,7 +404,7 @@ test('iterator skips values if options.values is false', function (t) { }) test('iterator encodes range options', function (t) { - t.plan(7) + t.plan(5) const keyEncoding = { encode: function (key) { @@ -415,8 +415,6 @@ test('iterator encodes range options', function (t) { const db = encdown({ iterator: function (options) { - t.is(options.start, 'encoded_1') - t.is(options.end, 'encoded_2') t.is(options.gt, 'encoded_3') t.is(options.gte, 'encoded_4') t.is(options.lt, 'encoded_5') @@ -425,7 +423,7 @@ test('iterator encodes range options', function (t) { } }, { keyEncoding }) - db.iterator({ start: 1, end: 2, gt: 3, gte: 4, lt: 5, lte: 6, foo: 7 }) + db.iterator({ gt: 3, gte: 4, lt: 5, lte: 6, foo: 7 }) }) test('iterator does not strip nullish range options', function (t) {