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

Commit eb2e3bd

Browse files
committed
5.0.0
1 parent ad96ac9 commit eb2e3bd

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [5.0.0] - 2021-09-12
4+
5+
_If you are upgrading: please see [`UPGRADING.md`](UPGRADING.md)._
6+
7+
### Changed
8+
9+
- **Breaking:** bump `rocksdb` from 4.x to [5.x](https://github.com/Level/rocksdb/releases/tag/v5.0.0) ([`a02f4b5`](https://github.com/Level/level-rocksdb/commit/a02f4b5)) (Vincent Weevers)
10+
- **Breaking:** bump `level-packager` from 5.x to [6.x](https://github.com/Level/packager/releases/tag/v6.0.0) ([#73](https://github.com/Level/level-rocksdb/issues/73)) ([`a0b5ea6`](https://github.com/Level/level-rocksdb/commit/a0b5ea6)) (Vincent Weevers)
11+
12+
### Removed
13+
14+
- **Breaking:** drop Node.js 8 ([Level/community#98](https://github.com/Level/community/issues/98)) ([`ec94d45`](https://github.com/Level/level-rocksdb/commit/ec94d45)) (Vincent Weevers)
15+
- Remove legacy range options from README ([Level/community#86](https://github.com/Level/community/issues/86)) ([`6d08202`](https://github.com/Level/level-rocksdb/commit/6d08202)) (Vincent Weevers).
16+
317
## [4.0.0] - 2019-06-08
418

519
_If you are upgrading: please see [`UPGRADING.md`](UPGRADING.md)._
@@ -95,6 +109,8 @@ _If you are upgrading: please see [`UPGRADING.md`](UPGRADING.md)._
95109

96110
_Technically not the first release. Earlier versions were published in 2013._
97111

112+
[5.0.0]: https://github.com/Level/level-rocksdb/releases/tag/v5.0.0
113+
98114
[4.0.0]: https://github.com/Level/level-rocksdb/releases/tag/v4.0.0
99115

100116
[3.0.1]: https://github.com/Level/level-rocksdb/releases/tag/v3.0.1

UPGRADING.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
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+
## 5.0.0
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+
A db created or opened with this release cannot be opened by earlier versions, because RocksDB has been upgraded to 6.17.3 (via `rocksdb` [5.0.0](https://github.com/Level/rocksdb/releases/tag/v5.0.0)) which effectively changes the default [`format_version`](https://rocksdb.org/blog/2019/03/08/format-version-4.html) from 2 to 4.
22+
23+
This release also drops support of Node.js 8 ([Level/community#98](https://github.com/Level/community/issues/98)).
24+
525
## 4.0.0
626

727
Upgraded to [`[email protected]`](https://github.com/Level/rocksdb/blob/master/UPGRADING.md#v4) and (through `level-packager@5`) [`levelup@4`](https://github.com/Level/levelup/blob/master/UPGRADING.md#v4) and [`encoding-down@6`](https://github.com/Level/encoding-down/blob/master/UPGRADING.md#v6). Please follow these links for more information. A quick summary: support of node < 8.6.0 has been dropped, node 12 is now supported, range options (e.g. `gt`) are now serialized the same as keys, `{ gt: undefined }` is not the same as `{}`, nullish values are now rejected and streams are backed by [`readable-stream@3`](https://github.com/nodejs/readable-stream#version-3xx).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "level-rocksdb",
3-
"version": "4.0.0",
3+
"version": "5.0.0",
44
"description": "Fast & simple storage - a Node.js-style RocksDB wrapper (a convenience package bundling LevelUP & RocksDB)",
55
"license": "MIT",
66
"main": "level-rocksdb.js",

0 commit comments

Comments
 (0)