Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit e36c7dd

Browse files
committed
Breaking: bump abstract-leveldown from 6.x to 7.x
As well as other Level dependencies.
1 parent cda3b9c commit e36c7dd

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

UPGRADING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Upgrade Guide
2+
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+
5+
## Upcoming
6+
7+
This release drops support of legacy runtime environments ([Level/community#98](https://github.com/Level/community/issues/98)):
8+
9+
- Internet Explorer 11
10+
- Safari 9-11
11+
- Stock Android browser (AOSP).
12+
13+
In browsers, the [`immediate`](https://github.com/calvinmetcalf/immediate) shim for `process.nextTick()` has been replaced with the smaller [`queue-microtask`](https://github.com/feross/queue-microtask), except in streams.

client.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@ module.exports = function (opts) {
88
const down = leveldown(Object.assign({}, opts, { onflush: onflush }))
99
const db = levelup(encode(down, opts), opts)
1010

11+
// TODO: fix in levelup
12+
db.supports.status = true
13+
1114
db.createRpcStream = db.connect = connect
1215
db.isFlushed = isFlushed
1316
db.forward = forward
1417

18+
// Workaround for abstract-leveldown tests that expect db._nextTick
19+
// TODO: fix tests or add _nextTick to levelup for API parity
20+
if (!db._nextTick) db._nextTick = leveldown.prototype._nextTick
21+
1522
return db
1623

1724
function onflush () {

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
"prepublishOnly": "npm run dependency-check"
1515
},
1616
"dependencies": {
17-
"abstract-leveldown": "^6.3.0",
17+
"abstract-leveldown": "^7.2.0",
1818
"duplexify": "^4.1.1",
19-
"encoding-down": "^7.0.0",
19+
"encoding-down": "^7.1.0",
2020
"end-of-stream": "^1.1.0",
2121
"length-prefixed-stream": "^2.0.0",
22-
"levelup": "^5.0.0",
22+
"levelup": "^5.1.0",
2323
"numeric-id-map": "^1.1.0",
2424
"protocol-buffers-encodings": "^1.1.0",
2525
"reachdown": "^1.0.0"
@@ -36,7 +36,7 @@
3636
"nyc": "^15.1.0",
3737
"protocol-buffers": "^4.0.2",
3838
"standard": "^16.0.3",
39-
"subleveldown": "^5.0.1",
39+
"subleveldown": "^6.0.0",
4040
"tape": "^5.0.1"
4141
},
4242
"hallmark": {

test/abstract.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ suite({
2424
createIfMissing: false,
2525
errorIfExists: false,
2626
bufferKeys: true,
27-
legacyRange: false,
2827
promises: true,
29-
status: false,
28+
status: true,
3029
serialize: false,
3130
encodings: true
3231
})

0 commit comments

Comments
 (0)