Skip to content

Commit b27277c

Browse files
authored
Breaking: upgrade to abstract-level 3 (#248)
Category: change
1 parent 5553fbf commit b27277c

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

UPGRADING.md

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
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+
## 10.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).
8+
9+
Not mentioned in that guide is the later addition of `db.getSync()`. This new method blocks the event loop but can be significantly faster than `db.get()`:
10+
11+
```js
12+
const value = db.getSync('example')
13+
```
14+
15+
It is only supported in Node.js (via `classic-level`) and not in browsers.
16+
517
## 9.0.0
618

719
This release upgrades to `abstract-level` 2.0.0 which adds [hooks](https://github.com/Level/abstract-level#hooks) and drops callbacks and not-found errors. Please refer to the [upgrade guide of `abstract-level`](https://github.com/Level/abstract-level/blob/v2.0.0/UPGRADING.md) for details. The only thing to add is that this release ends support of Node.js < 18 and Electron < 30.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
],
2020
"browser": "browser.js",
2121
"dependencies": {
22-
"abstract-level": "^2.0.1",
23-
"browser-level": "^2.0.0",
24-
"classic-level": "^2.0.0"
22+
"abstract-level": "^3.1.0",
23+
"browser-level": "^3.0.0",
24+
"classic-level": "^3.0.0"
2525
},
2626
"devDependencies": {
2727
"@babel/preset-env": "^7.26.9",

0 commit comments

Comments
 (0)