Skip to content

Commit 0b98710

Browse files
committed
Remove levelup compatibility check
Category: removal
1 parent 6296322 commit 0b98710

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

index.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
'use strict'
44

55
const { AbstractLevel } = require('abstract-level')
6-
const ModuleError = require('module-error')
76
const { Iterator } = require('./iterator')
87
const deserialize = require('./util/deserialize')
98
const clear = require('./util/clear')
@@ -20,14 +19,7 @@ const kStore = Symbol('store')
2019
const kOnComplete = Symbol('onComplete')
2120

2221
class BrowserLevel extends AbstractLevel {
23-
constructor (location, options, _) {
24-
// To help migrating to abstract-level
25-
if (typeof options === 'function' || typeof _ === 'function') {
26-
throw new ModuleError('The levelup-style callback argument has been removed', {
27-
code: 'LEVEL_LEGACY'
28-
})
29-
}
30-
22+
constructor (location, options) {
3123
const { prefix, version, ...forward } = options || {}
3224

3325
super({

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"UPGRADING.md"
2020
],
2121
"dependencies": {
22-
"abstract-level": "^2.0.1",
23-
"module-error": "^1.0.2"
22+
"abstract-level": "^2.0.1"
2423
},
2524
"devDependencies": {
2625
"@voxpelli/tsconfig": "^4.0.0",

0 commit comments

Comments
 (0)