Skip to content

Commit 812fe88

Browse files
authored
Breaking: upgrade to abstract-level 3 (#112)
Ref: https://github.com/Level/abstract-level/releases/tag/v3.0.0 Category: change
1 parent dacb6ca commit 812fe88

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

UPGRADING.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This document describes breaking changes and how to upgrade. For a complete list of changes including minor and patch releases, please refer to the [changelog](CHANGELOG.md).
44

5+
## 3.0.0
6+
7+
This release upgrades to `abstract-level` 3. Please see its [upgrade guide](https://github.com/Level/abstract-level/blob/v3.0.0/UPGRADING.md). Note that `classic-level` already dropped support of Node.js 16. The only relevant breaking change is the removal of `put`, `del` & `batch` events.
8+
59
## 2.0.0
610

711
This release upgrades to `abstract-level` 2.0.0 which adds [hooks](https://github.com/Level/abstract-level#hooks) and drops callbacks, not-found errors and support of Node.js < 16. Please refer to the [upgrade guide of `abstract-level`](https://github.com/Level/abstract-level/blob/v2.0.0/UPGRADING.md). The only thing to add is that `classic-level` also drops Node.js 16 and Electron < 30, and that the additional methods of `classic-level` like `db.approximateSize()` similarly don't support callbacks anymore.

index.js

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class ClassicLevel extends AbstractLevel {
2222
utf8: true,
2323
view: true
2424
},
25-
seek: true,
2625
createIfMissing: true,
2726
errorIfExists: true,
2827
additionalMethods: {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"prebuild-win32-x64": "prebuildify -t 18.20.4 --napi --strip"
2828
},
2929
"dependencies": {
30-
"abstract-level": "^2.0.0",
30+
"abstract-level": "^3.0.1",
3131
"module-error": "^1.0.1",
3232
"napi-macros": "^2.2.2",
3333
"node-gyp-build": "^4.3.0"

0 commit comments

Comments
 (0)