From b4bc1c3f4106c133954d47bc62115a0744930c3e Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sat, 17 Apr 2021 13:20:30 +0200 Subject: [PATCH] 6.0.0 --- CHANGELOG.md | 16 ++++++++++++++++ UPGRADING.md | 31 ++++++++++++++++++++++++++++--- package.json | 2 +- 3 files changed, 45 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7d1d53..6bc9707 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +_**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._ + +## [6.0.0] - 2021-04-17 + +### Changed + +- **Breaking:** modernize syntax and bump `standard` ([Level/community#98](https://github.com/Level/community/issues/98)) ([`4770d17`](https://github.com/Level/packager/commit/4770d17)) (Vincent Weevers) +- **Breaking:** bump `levelup` and `encoding-down` ([`c92e054`](https://github.com/Level/packager/commit/c92e054)) (Vincent Weevers) +- Add `files` to `package.json` ([`809fb8e`](https://github.com/Level/packager/commit/809fb8e)) (Vincent Weevers) + +### Removed + +- **Breaking:** drop node 6 and 8 ([Level/community#98](https://github.com/Level/community/issues/98)) ([`5fd4a37`](https://github.com/Level/packager/commit/5fd4a37)) (Vincent Weevers) + ## [5.1.1] - 2019-11-29 ### Fixed @@ -375,6 +389,8 @@ - Remove `tape` from devDependencies, allow callers to pass in custom test function ([**@rvagg**](https://github.com/rvagg)) +[6.0.0]: https://github.com/Level/packager/compare/v5.1.1...v6.0.0 + [5.1.1]: https://github.com/Level/packager/compare/v5.1.0...v5.1.1 [5.1.0]: https://github.com/Level/packager/compare/v5.0.3...v5.1.0 diff --git a/UPGRADING.md b/UPGRADING.md index ed3aaea..3eacddd 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -2,14 +2,39 @@ 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.createReadStream({ start: 'a', end: 'z' }) +``` + +An error would now be thrown and you must instead do: + +```js +db.createReadStream({ gte: 'a', lte: 'z' }) +``` + +The same applies to `db.iterator()`, `db.createKeyStream()` and `db.createValueStream()`. + +This release also drops support of legacy runtime environments ([Level/community#98](https://github.com/Level/community/issues/98)): + +- Node.js 6 and 8 +- Internet Explorer 11 +- Safari 9-11 +- Stock Android browser (AOSP). + +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. + +## 5.0.0 Upgraded to [`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). We recommend to pair `level-packager@5` only with a store based on `abstract-leveldown` >= 6. Please follow the earlier links for more information. -## v4 +## 4.0.0 The `test.js` file was rewritten to test the `level-packager` api and is no longer part of the api. Implementations based on `level-packager` should instead use the tests in the `abstract/` folder. -## v3 +## 3.0.0 Dropped support for node 4. No other breaking changes. diff --git a/package.json b/package.json index cc00648..45c4c44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "level-packager", - "version": "5.1.1", + "version": "6.0.0", "description": "levelup package helper for distributing with an abstract-leveldown store", "license": "MIT", "main": "level-packager.js",