You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 2, 2024. It is now read-only.
- Removes legacy range options (Level/community#86)
- Drops legacy runtime environments (Level/community#98)
- In browsers, `process.nextTick()` has been replaced with
`queue-microtask`
Copy file name to clipboardExpand all lines: UPGRADING.md
+28-3Lines changed: 28 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,32 @@
2
2
3
3
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).
4
4
5
-
## v5
5
+
## Upcoming
6
+
7
+
Legacy range options have been removed ([Level/community#86](https://github.com/Level/community/issues/86)). If you previously did:
8
+
9
+
```js
10
+
db.createReadStream({ start:'a', end:'z' })
11
+
```
12
+
13
+
An error would now be thrown and you must instead do:
14
+
15
+
```js
16
+
db.createReadStream({ gte:'a', lte:'z' })
17
+
```
18
+
19
+
The same applies to `db.iterator()`, `db.createKeyStream()` and `db.createValueStream()`.
20
+
21
+
This release also drops support of legacy runtime environments ([Level/community#98](https://github.com/Level/community/issues/98)):
22
+
23
+
- Node.js 6 and 8
24
+
- Internet Explorer 11
25
+
- Safari 9-11
26
+
- Stock Android browser (AOSP).
27
+
28
+
Lastly, in browsers, `process.nextTick()` has been replaced with [`queue-microtask`](https://github.com/feross/queue-microtask), except in streams.
29
+
30
+
## 5.0.0
6
31
7
32
### Fixes iterating buffer keys that contain bytes 196-255 ([#88](https://github.com/level/subleveldown/issues/88))
8
33
@@ -57,7 +82,7 @@ subdb(db, 'example').on('error', function (err) {
57
82
db.close(function () {})
58
83
```
59
84
60
-
## v4
85
+
## 4.0.0
61
86
62
87
Upgraded to `abstract-leveldown@6`, `encoding-down@6` and `levelup@4`. We recommend to pair `subleveldown@4` with `level` >= 5 or when using a custom store, one that is based on `abstract-leveldown` >= 6. For details please see:
63
88
@@ -66,7 +91,7 @@ Upgraded to `abstract-leveldown@6`, `encoding-down@6` and `levelup@4`. We recomm
66
91
67
92
A quick summary: range options are now serialized the same as keys, `db.iterator({ gt: undefined })` is not the same as `db.iterator({})`, nullish values are now rejected and streams are backed by [`readable-stream@3`](https://github.com/nodejs/readable-stream#version-3xx).
0 commit comments