From 0bf9d06d97708c9366f85623e123d1bae734008d Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Fri, 9 Apr 2021 15:11:08 +0200 Subject: [PATCH] 10.0.0 --- CHANGELOG.md | 11 +++++++++++ CONTRIBUTORS.md | 19 ++++++++++--------- UPGRADING.md | 37 +++++++++++++++++++++++++++++-------- package.json | 2 +- 4 files changed, 51 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2fdfc4..6634456 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ _**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._ +## [10.0.0] - 2021-04-09 + +### Changed + +- **Breaking:** remove legacy range options ([Level/community#86](https://github.com/Level/community/issues/86)) ([`73b19b4`](https://github.com/Level/codec/commit/73b19b4)) (Vincent Weevers) +- **Breaking:** drop node 6 and 8 ([`38dc04c`](https://github.com/Level/codec/commit/38dc04c)) ([Level/community#98](https://github.com/Level/community/issues/98)) (Vincent Weevers) +- **Breaking:** modernize syntax & bump `standard` to 16.x ([`874956f`](https://github.com/Level/codec/commit/874956f), [`e3ed6e4`](https://github.com/Level/codec/commit/e3ed6e4)) ([Level/community#98](https://github.com/Level/community/issues/98)) (Vincent Weevers). +- **Breaking:** bump `buffer` from 15.x to 16.x ([#62](https://github.com/Level/codec/issues/62)) ([Level/community#98](https://github.com/Level/community/issues/98)) ([`78d2ea0`](https://github.com/Level/codec/commit/78d2ea0)) (Alex Potsides). + ## [9.0.2] - 2020-06-26 ### Changed @@ -236,6 +245,8 @@ _**If you are upgrading:** please see [`UPGRADING.md`](UPGRADING.md)._ :seedling: Initial release. +[10.0.0]: https://github.com/Level/codec/compare/v9.0.2...v10.0.0 + [9.0.2]: https://github.com/Level/codec/compare/v9.0.1...v9.0.2 [9.0.1]: https://github.com/Level/codec/compare/v9.0.0...v9.0.1 diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index ee783db..1f3121f 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,11 +1,12 @@ # Contributors -| Name | GitHub | Social | -| :------------------- | :----------------------------------------------------- | :------------------------------------------------------------ | -| **Julian Gruber** | [**@juliangruber**](https://github.com/juliangruber) | [**@juliangruber@twitter**](https://twitter.com/juliangruber) | -| **Lars-Magnus Skog** | [**@ralphtheninja**](https://github.com/ralphtheninja) | [**@ralph@social.weho.st**](https://social.weho.st/@ralph) | -| **Vincent Weevers** | [**@vweevers**](https://github.com/vweevers) | [**@vweevers@twitter**](https://twitter.com/vweevers) | -| **Dominic Tarr** | [**@dominictarr**](https://github.com/dominictarr) | [**@dominictarr@twitter**](https://twitter.com/dominictarr) | -| **Daniel Cousens** | [**@dcousens**](https://github.com/dcousens) | | -| **Hugo Dias** | | | -| **Meirion Hughes** | [**@MeirionHughes**](https://github.com/MeirionHughes) | | +| Name | GitHub | Social | +| :------------------- | :----------------------------------------------------------- | :------------------------------------------------------------ | +| **Julian Gruber** | [**@juliangruber**](https://github.com/juliangruber) | [**@juliangruber@twitter**](https://twitter.com/juliangruber) | +| **Vincent Weevers** | [**@vweevers**](https://github.com/vweevers) | [**@vweevers@twitter**](https://twitter.com/vweevers) | +| **Lars-Magnus Skog** | [**@ralphtheninja**](https://github.com/ralphtheninja) | [**@ralph@social.weho.st**](https://social.weho.st/@ralph) | +| **Dominic Tarr** | [**@dominictarr**](https://github.com/dominictarr) | [**@dominictarr@twitter**](https://twitter.com/dominictarr) | +| **Alex Potsides** | | | +| **Daniel Cousens** | [**@dcousens**](https://github.com/dcousens) | | +| **Hugo Dias** | | | +| **Meirion Hughes** | [**@MeirionHughes**](https://github.com/MeirionHughes) | | diff --git a/UPGRADING.md b/UPGRADING.md index 4f30259..cf42aa9 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -2,34 +2,55 @@ 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). -## v9 +## 10.0.0 + +Legacy range options have been removed ([Level/community#86](https://github.com/Level/community/issues/86)). If you previously did: + +```js +codec.encodeLtgt({ start: 'a', end: 'z' }) +``` + +An error would now be thrown and you must instead do: + +```js +codec.encodeLtgt({ gte: 'a', lte: 'z' }) +``` + +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). + +## 9.0.0 Dropped node 0.12, 4, 5 and 7. -## v8 +## 8.0.0 Previously the "utf8" decoder always returned a string. This was a workaround for `encoding-down` that is no longer needed. The return type now depends on the `asBuffer` option, which is more optimal. -## v7 +## 7.0.0 Dropped node 0.10 and iojs. -## v6 +## 6.0.0 The `createDecodeStream()` method (introduced in the last 5.x version) has been replaced with `createStreamDecoder()`. -## v5 +## 5.0.0 This is a rewrite of both internals and the public API. Please see the README for details. -## v4 +## 4.0.0 Removed default encoding ("utf8"). If you relied on this behavior you must now define it yourself. -## v3 +## 3.0.0 Removed the `encoding` option in favor of `keyEncoding` and `valueEncoding`. Note: it was partially restored in v6.1.0. -## v2 +## 2.0.0 The function signature of `batch()` has changed from `batch(ops, batchOptions, dbOptions)` to `batch(ops, optionObjects)`. diff --git a/package.json b/package.json index 2790fff..c124f08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "level-codec", - "version": "9.0.2", + "version": "10.0.0", "description": "Encode keys, values and range options, with built-in or custom encodings", "license": "MIT", "main": "index.js",