Skip to content

Commit 324d422

Browse files
authored
Prepare 6.0.0 (#163)
1 parent a9656c3 commit 324d422

File tree

4 files changed

+107
-54
lines changed

4 files changed

+107
-54
lines changed

Diff for: CHANGELOG.md

+63-45
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
# Changelog
22

3-
If you are upgrading, please see the [upgrade guide](UPGRADING.md).
3+
_**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._
44

5-
## [Unreleased][unreleased]
5+
## [6.0.0] - 2019-10-19
6+
7+
### Changed
8+
9+
- **Breaking:** upgrade `level-js` from `^4.0.0` to `^5.0.0` ([#158](https://github.com/Level/level/issues/158)) ([**@vweevers**](https://github.com/vweevers))
10+
- Upgrade `hallmark` devDependency from `^0.1.0` to `^2.0.0` ([#152](https://github.com/Level/level/issues/152), [#157](https://github.com/Level/level/issues/157)) ([**@vweevers**](https://github.com/vweevers))
11+
- Upgrade `standard` devDependency from `^12.0.0` to `^14.0.0` ([#151](https://github.com/Level/level/issues/151), [#155](https://github.com/Level/level/issues/155)) ([**@vweevers**](https://github.com/vweevers))
12+
- Upgrade `nyc` devDependency from `^13.2.0` to `^14.0.0` ([#147](https://github.com/Level/level/issues/147)) ([**@vweevers**](https://github.com/vweevers))
13+
14+
### Added
15+
16+
- Document manifest, `iterator()` and `clear()` ([#162](https://github.com/Level/level/issues/162)) ([**@vweevers**](https://github.com/vweevers))
17+
- Add links to `browserify-starter` and `webpack-starter` ([`6ff1802`](https://github.com/Level/level/commit/6ff1802)) ([**@vweevers**](https://github.com/vweevers))
18+
19+
### Fixed
20+
21+
- Bump `leveldown` and `level-packager` to prevent dedupe ([`5efdc82`](https://github.com/Level/level/commit/5efdc82), [`a9656c3`](https://github.com/Level/level/commit/a9656c3), [`97cb31c`](https://github.com/Level/level/commit/97cb31c)) ([**@vweevers**](https://github.com/vweevers))
622

723
## [5.0.1] - 2019-03-29
824

@@ -259,19 +275,21 @@ If you are upgrading, please see the [upgrade guide](UPGRADING.md).
259275
- Update `level-packager` to `~0.18.0` ([**@rvagg**](https://github.com/rvagg))
260276
- Update `leveldown` to `~0.10.0` ([**@rvagg**](https://github.com/rvagg))
261277

262-
## [0.17.0-1] - 2013-10-09
278+
## [0.17.0] - 2013-10-01
263279

264280
### Changed
265281

266-
- Use `level-packager` instead of `levelup` ([**@rvagg**](https://github.com/rvagg))
267-
- Run tests in `level-packager` using `tape` ([**@rvagg**](https://github.com/rvagg))
282+
- Update `levelup` to `~0.17.0` ([**@rvagg**](https://github.com/rvagg))
283+
- Update `leveldown` to `~0.9.0` ([**@rvagg**](https://github.com/rvagg))
268284

269-
## [0.17.0] - 2013-10-01
285+
**Historical Note** 0.17.0 and 0.17.0-1 are listed out of order here, due to 0.17.0-1 not adhering to the semver rules that we follow today.
286+
287+
## [0.17.0-1] - 2013-10-09
270288

271289
### Changed
272290

273-
- Update `levelup` to `~0.17.0` ([**@rvagg**](https://github.com/rvagg))
274-
- Update `leveldown` to `~0.9.0` ([**@rvagg**](https://github.com/rvagg))
291+
- Use `level-packager` instead of `levelup` ([**@rvagg**](https://github.com/rvagg))
292+
- Run tests in `level-packager` using `tape` ([**@rvagg**](https://github.com/rvagg))
275293

276294
## [0.16.0] - 2013-09-10
277295

@@ -345,76 +363,76 @@ If you are upgrading, please see the [upgrade guide](UPGRADING.md).
345363

346364
:seedling: Initial release.
347365

348-
[unreleased]: https://github.com/level/level/compare/v5.0.1...HEAD
366+
[6.0.0]: https://github.com/Level/level/compare/v5.0.1...v6.0.0
349367

350-
[5.0.1]: https://github.com/level/level/compare/v5.0.0...v5.0.1
368+
[5.0.1]: https://github.com/Level/level/compare/v5.0.0...v5.0.1
351369

352-
[5.0.0]: https://github.com/level/level/compare/v4.0.0...v5.0.0
370+
[5.0.0]: https://github.com/Level/level/compare/v4.0.0...v5.0.0
353371

354-
[4.0.0]: https://github.com/level/level/compare/v3.0.1...v4.0.0
372+
[4.0.0]: https://github.com/Level/level/compare/v3.0.2...v4.0.0
355373

356-
[3.0.2]: https://github.com/level/level/compare/v3.0.1...v3.0.2
374+
[3.0.2]: https://github.com/Level/level/compare/v3.0.1...v3.0.2
357375

358-
[3.0.1]: https://github.com/level/level/compare/v3.0.0...v3.0.1
376+
[3.0.1]: https://github.com/Level/level/compare/v3.0.0...v3.0.1
359377

360-
[3.0.0]: https://github.com/level/level/compare/v2.1.2...v3.0.0
378+
[3.0.0]: https://github.com/Level/level/compare/v2.1.2...v3.0.0
361379

362-
[2.1.2]: https://github.com/level/level/compare/v2.1.1...v2.1.2
380+
[2.1.2]: https://github.com/Level/level/compare/v2.1.1...v2.1.2
363381

364-
[2.1.1]: https://github.com/level/level/compare/v2.1.0...v2.1.1
382+
[2.1.1]: https://github.com/Level/level/compare/v2.1.0...v2.1.1
365383

366-
[2.1.0]: https://github.com/level/level/compare/v2.0.1...v2.1.0
384+
[2.1.0]: https://github.com/Level/level/compare/v2.0.1...v2.1.0
367385

368-
[2.0.1]: https://github.com/level/level/compare/v2.0.0...v2.0.1
386+
[2.0.1]: https://github.com/Level/level/compare/v2.0.0...v2.0.1
369387

370-
[2.0.0]: https://github.com/level/level/compare/v2.0.0-rc3...v2.0.0
388+
[2.0.0]: https://github.com/Level/level/compare/v2.0.0-rc3...v2.0.0
371389

372-
[2.0.0-rc3]: https://github.com/level/level/compare/v2.0.0-rc2...v2.0.0-rc3
390+
[2.0.0-rc3]: https://github.com/Level/level/compare/v2.0.0-rc2...v2.0.0-rc3
373391

374-
[2.0.0-rc2]: https://github.com/level/level/compare/v2.0.0-rc1...v2.0.0-rc2
392+
[2.0.0-rc2]: https://github.com/Level/level/compare/v2.0.0-rc1...v2.0.0-rc2
375393

376-
[2.0.0-rc1]: https://github.com/level/level/compare/v1.7.0...v2.0.0-rc1
394+
[2.0.0-rc1]: https://github.com/Level/level/compare/v1.7.0...v2.0.0-rc1
377395

378-
[1.7.0]: https://github.com/level/level/compare/v1.6.0...v1.7.0
396+
[1.7.0]: https://github.com/Level/level/compare/v1.6.0...v1.7.0
379397

380-
[1.6.0]: https://github.com/level/level/compare/v1.5.0...v1.6.0
398+
[1.6.0]: https://github.com/Level/level/compare/v1.5.0...v1.6.0
381399

382-
[1.5.0]: https://github.com/level/level/compare/v1.4.0...v1.5.0
400+
[1.5.0]: https://github.com/Level/level/compare/v1.4.0...v1.5.0
383401

384-
[1.4.0]: https://github.com/level/level/compare/v1.3.0...v1.4.0
402+
[1.4.0]: https://github.com/Level/level/compare/v1.3.0...v1.4.0
385403

386-
[1.3.0]: https://github.com/level/level/compare/v1.2.0...v1.3.0
404+
[1.3.0]: https://github.com/Level/level/compare/v1.2.0...v1.3.0
387405

388-
[1.2.0]: https://github.com/level/level/compare/v1.1.0...v1.2.0
406+
[1.2.0]: https://github.com/Level/level/compare/v1.1.0...v1.2.0
389407

390-
[1.1.0]: https://github.com/level/level/compare/v1.0.0...v1.1.0
408+
[1.1.0]: https://github.com/Level/level/compare/v1.0.0...v1.1.0
391409

392-
[1.0.0]: https://github.com/level/level/compare/v1.0.0-0...v1.0.0
410+
[1.0.0]: https://github.com/Level/level/compare/v1.0.0-0...v1.0.0
393411

394-
[1.0.0-0]: https://github.com/level/level/compare/v0.19.1...v1.0.0-0
412+
[1.0.0-0]: https://github.com/Level/level/compare/v0.19.1...v1.0.0-0
395413

396-
[0.19.1]: https://github.com/level/level/compare/v0.19.0...v0.19.1
414+
[0.19.1]: https://github.com/Level/level/compare/v0.19.0...v0.19.1
397415

398-
[0.19.0]: https://github.com/level/level/compare/0.18.0...v0.19.0
416+
[0.19.0]: https://github.com/Level/level/compare/0.18.0...v0.19.0
399417

400-
[0.18.0]: https://github.com/level/level/compare/0.17.0-1...0.18.0
418+
[0.18.0]: https://github.com/Level/level/compare/0.17.0...0.18.0
401419

402-
[0.17.0-1]: https://github.com/level/level/compare/0.17.0...0.17.0-1
420+
[0.17.0]: https://github.com/Level/level/compare/0.17.0-1...0.17.0
403421

404-
[0.17.0]: https://github.com/level/level/compare/0.16.0...0.17.0
422+
[0.17.0-1]: https://github.com/Level/level/compare/0.16.0...0.17.0-1
405423

406-
[0.16.0]: https://github.com/level/level/compare/0.15.0...0.16.0
424+
[0.16.0]: https://github.com/Level/level/compare/0.15.0...0.16.0
407425

408-
[0.15.0]: https://github.com/level/level/compare/0.14.0...0.15.0
426+
[0.15.0]: https://github.com/Level/level/compare/0.14.0...0.15.0
409427

410-
[0.14.0]: https://github.com/level/level/compare/0.13.0...0.14.0
428+
[0.14.0]: https://github.com/Level/level/compare/0.13.0...0.14.0
411429

412-
[0.13.0]: https://github.com/level/level/compare/0.12.0...0.13.0
430+
[0.13.0]: https://github.com/Level/level/compare/0.12.0...0.13.0
413431

414-
[0.12.0]: https://github.com/level/level/compare/0.11.0...0.12.0
432+
[0.12.0]: https://github.com/Level/level/compare/0.11.0...0.12.0
415433

416-
[0.11.0]: https://github.com/level/level/compare/0.10.0...0.11.0
434+
[0.11.0]: https://github.com/Level/level/compare/0.10.0...0.11.0
417435

418-
[0.10.0]: https://github.com/level/level/compare/0.9.0...0.10.0
436+
[0.10.0]: https://github.com/Level/level/compare/0.9.0...0.10.0
419437

420-
[0.9.0]: https://github.com/level/level/compare/0.8.0...0.9.0
438+
[0.9.0]: https://github.com/Level/level/compare/0.8.0...0.9.0

Diff for: CONTRIBUTORS.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
| Name | GitHub | Social |
44
| :------------------------- | :--------------------------------------------------------------- | :------------------------------------------------------------ |
55
| **Lars-Magnus Skog** | [**@ralphtheninja**](https://github.com/ralphtheninja) | [**@ralph@social.weho.st**](https://social.weho.st/@ralph) |
6-
| **Rod Vagg** | [**@rvagg**](https://github.com/rvagg) | [**@rvagg@twitter**](https://twitter.com/rvagg) |
76
| **Vincent Weevers** | [**@vweevers**](https://github.com/vweevers) | [**@vweevers@twitter**](https://twitter.com/vweevers) |
8-
| **Julian Gruber** | [**@juliangruber**](https://github.com/juliangruber) | [**@juliangruber@twitter**](https://twitter.com/juliangruber) |
7+
| **Rod Vagg** | [**@rvagg**](https://github.com/rvagg) | [**@rvagg@twitter**](https://twitter.com/rvagg) |
98
| **jess** | [**@monkeywithacupcake**](https://github.com/monkeywithacupcake) | |
9+
| **Julian Gruber** | [**@juliangruber**](https://github.com/juliangruber) | [**@juliangruber@twitter**](https://twitter.com/juliangruber) |
1010
| **Tim Oxley** | [**@timoxley**](https://github.com/timoxley) | [**@secoif@twitter**](https://twitter.com/secoif) |
11+
| **Andrew Kelley** | [**@andrewrk**](https://github.com/andrewrk) | |
12+
| **Joseph Dykstra** | [**@ArtskydJ**](https://github.com/ArtskydJ) | |
1113
| **Matt Walters** | [**@mateodelnorte**](https://github.com/mateodelnorte) | |
1214
| **RasmusErik Voel Jensen** | [**@rasmuserik**](https://github.com/rasmuserik) | |
13-
| **Joseph Dykstra** | [**@ArtskydJ**](https://github.com/ArtskydJ) | |
14-
| **Andrew Kelley** | [**@andrewrk**](https://github.com/andrewrk) | |

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ db.put('name', 'Level', function (err) {
6868

6969
At the time of writing, `level` works in Node.js 8+ and Electron 3+ on Linux, Mac OS, Windows and FreeBSD, including any future Node.js and Electron release thanks to [N-API](https://nodejs.org/api/n-api.html), including ARM platforms like Raspberry Pi and Android, as well as in Chrome, Firefox, IE 11, Edge, Safari, iPhone and Chrome for Android. For details, see [Supported Platforms](https://github.com/Level/leveldown#supported-platforms) of `leveldown` and [Browser Support](https://github.com/Level/level-js#browser-support) of `level-js`.
7070

71-
Though `leveldown` and `level-js` have subtle differences in type handling, `level` negates this by transparently wrapping both with [`encoding-down`](https://github.com/Level/encoding-down). If you want to support all possible runtime environments, stick to string keys with encodings like the default `utf8`. Binary values are supported across the board; in browsers that support [IndexedDB Second Edition](https://www.w3.org/TR/IndexedDB-2/) (like Chrome and Firefox) you can also use binary keys.
71+
Binary values are supported across the board; in browsers that support [IndexedDB Second Edition](https://www.w3.org/TR/IndexedDB-2/) (like Chrome and Firefox) you can also use binary keys.
7272

7373
If you want to use [Promises](#promise-support), you will need a polyfill like [`pinkie`](https://github.com/floatdrop/pinkie) in older browsers like IE.
7474

Diff for: UPGRADING.md

+39-4
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,58 @@
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-
## v5
5+
## 6.0.0
6+
7+
**No breaking changes to the `level` API. If you're only using `level` in Node.js or Electron, you can upgrade without thinking twice.**
8+
9+
The major bump is for browsers, because `level` upgraded to [`level-js@5`](https://github.com/Level/level-js):
10+
11+
> Support of keys & values other than strings and Buffers has been dropped. Internally `level-js` now stores keys & values as binary which solves a number of compatibility issues ([Level/memdown#186](https://github.com/Level/memdown/issues/186)). If you pass in a key or value that isn't a string or Buffer, it will be irreversibly stringified.
12+
>
13+
> Existing IndexedDB databases created with `level-js@4` \[via `level@5`] can be read only if they used binary keys and string or binary values. Other types will come out stringified, and string keys will sort incorrectly. Use the included `upgrade()` utility to convert stored data to binary (in so far the environment supports it):
14+
>
15+
> ```js
16+
> var level = require('level')
17+
> var reachdown = require('reachdown')
18+
> var db = level('my-db')
19+
>
20+
> db.open(function (err) {
21+
> if (err) throw err
22+
>
23+
> reachdown(db, 'level-js').upgrade(function (err) {
24+
> if (err) throw err
25+
> })
26+
> })
27+
> ```
28+
29+
### New Features :sparkles:
30+
31+
In case you missed it (a few of these already floated into `level@5`) some exciting new features are now available in all environments:
32+
33+
- Added [`db.clear()`](https://github.com/Level/level#dbclearoptions-callback) to delete all entries or a range! Also works in [`subleveldown`](https://github.com/Level/subleveldown) - empty that bucket!
34+
- Check out [`db.supports`](https://github.com/Level/level#supports): a manifest describing the features of a db!
35+
- Glorious: `leveldown` ships a prebuilt binary for Linux that is now [compatible with Debian 8, Ubuntu 14.04, RHEL 7, CentOS 7 and other flavors with an old glibc](https://github.com/Level/leveldown/pull/674)!
36+
- With thanks to [Cirrus CI](https://cirrus-ci.org/), `leveldown` is now [continuously tested in FreeBSD](https://github.com/Level/leveldown/pull/678)!
37+
38+
Go forth and build amazing things.
39+
40+
## 5.0.0
641
742
Upgraded to [`leveldown@5.0.0`](https://github.com/Level/leveldown/blob/v5.0.0/UPGRADING.md#v5) and (through `level-packager@5`) [`levelup@4`](https://github.com/Level/levelup/blob/v4.0.0/UPGRADING.md#v4) and [`encoding-down@6`](https://github.com/Level/encoding-down/blob/v6.0.0/UPGRADING.md#v6). Please follow these links for more information. A quick summary: 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).
843
944
In addition, `level` got browser support! It uses [`leveldown`](https://github.com/Level/leveldown) in node and [`level-js`](https://github.com/Level/level-js) in browsers (backed by [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)). As such, [`level-browserify`](https://github.com/Level/level-browserify) is not needed anymore and will be deprecated later on. To learn what the integration of `level-js` means for platform, browser and type support, please see the updated [README](README.md#supported-platforms).
1045
11-
## v4
46+
## 4.0.0
1247
1348
Dropped support for node 4. No other breaking changes.
1449
15-
## v3
50+
## 3.0.0
1651
1752
No breaking changes to the `level` API.
1853
1954
This is an upgrade to `leveldown@^3.0.0` which is based on `abstract-leveldown@~4.0.0` which in turn contains breaking changes to [`.batch()`](https://github.com/Level/abstract-leveldown/commit/a2621ad70571f6ade9d2be42632ece042e068805). Though this is negated by `levelup`, we decided to release a new major version in the event of dependents reaching down into `db.db`.
2055
21-
## v2
56+
## 2.0.0
2257
2358
No breaking changes to the `level` API.
2459

0 commit comments

Comments
 (0)