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

Commit e7d9dbe

Browse files
committed
5.0.0
1 parent 0765808 commit e7d9dbe

File tree

3 files changed

+54
-5
lines changed

3 files changed

+54
-5
lines changed

CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22

33
_**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._
44

5+
## [5.0.0] - 2021-04-17
6+
7+
### Changed
8+
9+
- **Breaking:** modernize syntax and bump `standard` ([Level/community#98](https://github.com/Level/community/issues/98)) ([`e19cd54`](https://github.com/Level/levelup/commit/e19cd54), [`762d989`](https://github.com/Level/levelup/commit/762d989)) (Vincent Weevers)
10+
- **Breaking:** remove `Batch._levelup` property ([`cfce6bb`](https://github.com/Level/levelup/commit/cfce6bb)) (Vincent Weevers).
11+
- Align `nextTick` behavior with `abstract-leveldown` ([`4b35716`](https://github.com/Level/levelup/commit/4b35716)) (Vincent Weevers).
12+
- Add `files` to package.json and remove `.npmignore` ([`29d8b5d`](https://github.com/Level/levelup/commit/29d8b5d)) (Vincent Weevers)
13+
- Replace `xtend` with `Object.assign()` ([`7bfc0d4`](https://github.com/Level/levelup/commit/7bfc0d4)) (Vincent Weevers)
14+
- Bump `deferred-leveldown`, `level-errors`, `-iterator-stream` and `-supports` ([`8b518b1`](https://github.com/Level/levelup/commit/8b518b1), [`1b0cfb8`](https://github.com/Level/levelup/commit/1b0cfb8)) (Vincent Weevers)
15+
- Refactor `promisify()` code by using `catering` module ([#700](https://github.com/Level/levelup/issues/700)) (Lars-Magnus Skog)
16+
17+
### Added
18+
19+
- Support encoding options on chained batch `put()` and `del()` ([#717](https://github.com/Level/levelup/issues/717), [#633](https://github.com/Level/levelup/issues/633)) ([`0765808`](https://github.com/Level/levelup/commit/0765808)) (Vincent Weevers)
20+
21+
### Removed
22+
23+
- **Breaking:** drop node 6, 8, IE, Safari 9-11 & stock Android ([Level/community#98](https://github.com/Level/community/issues/98)) ([`bb1d4da`](https://github.com/Level/levelup/commit/bb1d4da)) (Vincent Weevers).
24+
- Remove legacy range options from readme and tests ([Level/community#86](https://github.com/Level/community/issues/86)) ([`2df2a44`](https://github.com/Level/levelup/commit/2df2a44)) (Vincent Weevers)
25+
- Remove default export ([Level/community#87](https://github.com/Level/community/issues/87)) ([`3fd21e2`](https://github.com/Level/levelup/commit/3fd21e2)) (Vincent Weevers)
26+
527
## [4.4.0] - 2020-04-11
628

729
### Changed
@@ -1107,6 +1129,8 @@ _**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._
11071129

11081130
- Remove unused `inherits` variable ([**@rvagg**](https://github.com/rvagg))
11091131

1132+
[5.0.0]: https://github.com/Level/levelup/compare/v4.4.0...v5.0.0
1133+
11101134
[4.4.0]: https://github.com/Level/levelup/compare/v4.3.2...v4.4.0
11111135

11121136
[4.3.2]: https://github.com/Level/levelup/compare/v4.3.1...v4.3.2

UPGRADING.md

+29-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,43 @@
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-
## v4
5+
## 5.0.0
66

7-
There have been two major updates to dependencies. First, `level-iterator-stream` is now based on [`readable-stream@3`](https://github.com/nodejs/readable-stream#version-3xx). Second, `deferred-leveldown` is now based on [`abstract-leveldown@6`](https://github.com/Level/abstract-leveldown/blob/master/UPGRADING.md#v6). Please follow these links for more information; both contain significant enough changes to warrant this `levelup` major. In addition, all aforementioned dependencies and by extension `levelup` have dropped support of IE10.
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. In the future we might use `queueMicrotask()` in Node.js too.
29+
30+
## 4.0.0
31+
32+
There have been two major updates to dependencies. First, `level-iterator-stream` is now based on [`readable-stream@3`](https://github.com/nodejs/readable-stream#version-3xx). Second, `deferred-leveldown` is now based on [`abstract-leveldown@6`](https://github.com/Level/abstract-leveldown/blob/master/UPGRADING.md#v6). Please follow these links for more information; both contain significant enough changes to warrant this `levelup` major. In addition, all aforementioned dependencies and by extension `levelup` have dropped support of IE10.
833

934
To get a consistent behavior between opening and opened `levelup` instances (in the former case, your store will be wrapped with `deferred-leveldown`), we recommend to pair `levelup@4` only with a store based on `abstract-leveldown` >= 6. For example, `deferred-leveldown` now rejects `null` and `undefined` values. If you pair `levelup@4` with an older store, `db.put('key', null)` would only throw an error if `db` is still opening itself.
1035

11-
## v3
36+
## 3.0.0
1237

1338
1. Dropped support for node 4.
1439
2. Batch operations no longer default to `'put'`. If `type` isn't specified, an error will be thrown, courtesy of `abstract-leveldown`.
1540

16-
## v2
41+
## 2.0.0
1742

1843
### Summary
1944

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "levelup",
3-
"version": "4.4.0",
3+
"version": "5.0.0",
44
"description": "Fast & simple storage - a Node.js-style LevelDB wrapper",
55
"license": "MIT",
66
"main": "lib/levelup.js",

0 commit comments

Comments
 (0)