diff --git a/CHANGELOG.md b/CHANGELOG.md index ddd2e548..ee8a1e8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ _**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._ +## [6.0.0] - 2021-04-10 + +### Changed + +- **Breaking:** bump `abstract-leveldown` ([`15d5a9e`](https://github.com/Level/leveldown/commit/15d5a9e)) (Vincent Weevers) +- **Breaking:** drop node 6 and 8 ([Level/community#98](https://github.com/Level/community/issues/98)) ([`8502b34`](https://github.com/Level/leveldown/commit/8502b34)) (Vincent Weevers) +- Bump `node-gyp` from 6.x to 7.x ([`8bc5696`](https://github.com/Level/leveldown/commit/8bc5696)) (Vincent Weevers) +- Bump `standard` from 14.x to 16.x ([`d39e232`](https://github.com/Level/leveldown/commit/d39e232), [`39e3ca3`](https://github.com/Level/leveldown/commit/39e3ca3)) (Vincent Weevers) +- Bump `node-gyp-build` from 4.1.x to 4.2.x ([#708](https://github.com/Level/leveldown/issues/708)) ([`91711fa`](https://github.com/Level/leveldown/commit/91711fa)) (Vincent Weevers) +- Skip stack exhaustion test ([`55a33b1`](https://github.com/Level/leveldown/commit/55a33b1)) (Vincent Weevers) + +### Removed + +- Remove default export ([Level/community#87](https://github.com/Level/community/issues/87)) ([`686d685`](https://github.com/Level/leveldown/commit/686d685)) (Vincent Weevers) + ## [5.6.0] - 2020-03-27 ### Changed @@ -793,7 +808,7 @@ _**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._ ### Changed -- Upgrade to `nan@0.6` for Node@0.11.6 support, `v8::Local::New(val)` rewritten to `NanNewLocal(val)` ([**@rvagg**](https://github.com/rvagg)) +- Upgrade to `nan@0.6` for Node 0.11.6 support, `v8::Local::New(val)` rewritten to `NanNewLocal(val)` ([**@rvagg**](https://github.com/rvagg)) **Historical Note** From this release and onward, tags in git start with the prefix `v`, i.e. this release corresponds to the tag `v0.10.1`. @@ -1083,6 +1098,8 @@ _**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._ :seedling: First release. Extracted from `levelup` as a stand-alone package ([**@rvagg**](https://github.com/rvagg)) +[6.0.0]: https://github.com/Level/leveldown/compare/v5.6.0...v6.0.0 + [5.6.0]: https://github.com/Level/leveldown/compare/v5.5.1...v5.6.0 [5.5.1]: https://github.com/Level/leveldown/compare/v5.5.0...v5.5.1 diff --git a/README.md b/README.md index 5cdef558..7d7521fb 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,48 @@ - [Introduction](#introduction) - [Supported Platforms](#supported-platforms) + - [Notes](#notes) - [API](#api) + - [`db = leveldown(location)`](#db--leveldownlocation) + - [`db.open([options, ]callback)`](#dbopenoptions-callback) + - [`options`](#options) + - [`db.close(callback)`](#dbclosecallback) + - [`db.put(key, value[, options], callback)`](#dbputkey-value-options-callback) + - [`options`](#options-1) + - [`db.get(key[, options], callback)`](#dbgetkey-options-callback) + - [`options`](#options-2) + - [`db.del(key[, options], callback)`](#dbdelkey-options-callback) + - [`options`](#options-3) + - [`db.batch(operations[, options], callback)` _(array form)_](#dbbatchoperations-options-callback-array-form) + - [`db.batch()` _(chained form)_](#dbbatch-chained-form) + - [`db.approximateSize(start, end, callback)`](#dbapproximatesizestart-end-callback) + - [`db.compactRange(start, end, callback)`](#dbcompactrangestart-end-callback) + - [`db.getProperty(property)`](#dbgetpropertyproperty) + - [`db.iterator([options])`](#dbiteratoroptions) + - [`db.clear([options, ]callback)`](#dbclearoptions-callback) + - [`chainedBatch`](#chainedbatch) + - [`chainedBatch.put(key, value)`](#chainedbatchputkey-value) + - [`chainedBatch.del(key)`](#chainedbatchdelkey) + - [`chainedBatch.clear()`](#chainedbatchclear) + - [`chainedBatch.write([options, ]callback)`](#chainedbatchwriteoptions-callback) + - [`chainedBatch.db`](#chainedbatchdb) + - [`iterator`](#iterator) + - [`iterator.next(callback)`](#iteratornextcallback) + - [`iterator.seek(key)`](#iteratorseekkey) + - [`iterator.end(callback)`](#iteratorendcallback) + - [`iterator.db`](#iteratordb) + - [`leveldown.destroy(location, callback)`](#leveldowndestroylocation-callback) + - [`leveldown.repair(location, callback)`](#leveldownrepairlocation-callback) - [Safety](#safety) + - [Database State](#database-state) - [Snapshots](#snapshots) - [Getting Support](#getting-support) - [Contributing](#contributing) + - [Git Submodules](#git-submodules) + - [Publishing](#publishing) - [Donate](#donate) + - [Backers](#backers) + - [Sponsors](#sponsors) - [License](#license) diff --git a/UPGRADING.md b/UPGRADING.md index cce973fb..59abc85c 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -2,7 +2,23 @@ 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). -## v5 +## 6.0.0 + +Legacy range options have been removed ([Level/community#86](https://github.com/Level/community/issues/86)). If you previously did: + +```js +db.iterator({ start: 'a', end: 'z' }) +``` + +An error would now be thrown and you must instead do: + +```js +db.iterator({ gte: 'a', lte: 'z' }) +``` + +This release also drops support of Node.js 6 and 8 ([Level/community#98](https://github.com/Level/community/issues/98)). + +## 5.0.0 This is a rewrite to N-API - which is a huge milestone, achieved without an impact on write performance - and an upgrade to `abstract-leveldown` v6, which solves long-standing issues around serialization and type support. @@ -58,15 +74,15 @@ db.close(function (err) { A future release will do the same for other operations like `get` and `batch`. -## v4 +## 4.0.0 Dropped support for node 4. No other breaking changes. -## v3.0.1 +## 3.0.1 If you're using node v10 you'll need at least `leveldown@2.0.1` to successfully compile. In addition, if you want prebuilt binaries you'll need at least `leveldown@3.0.1`. -## v3 +## 3.0.0 #### `.batch(array)` enforces objects diff --git a/appveyor.yml b/appveyor.yml index 0bccd001..7b26c997 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -35,7 +35,7 @@ deploy: - provider: GitHub artifact: $(ARCHIVE_NAME) auth_token: - secure: AjmYV2zeogfen7F6tXvR9PO1zynJVF/jhMCExQ9RMtqEHDMH8Frclym3GniZkEB0 + secure: Oe6B6Pf/inZ0I5Ta2HVEMg8PAfwi95EtfvTKKMAvFdUPXF//sExugRdATtnMFiwu draft: false on: appveyor_repo_tag: true diff --git a/package.json b/package.json index e83d03cb..74324137 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "leveldown", - "version": "5.6.0", + "version": "6.0.0", "description": "A low-level Node.js LevelDB binding", "license": "MIT", "main": "leveldown.js",