From df03871740bbe097258212d8e7ae96d268f9a2db Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Thu, 9 Apr 2020 19:29:53 +0100 Subject: [PATCH] chore: release version v2.0.0 --- CHANGELOG.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26b39fa..f09eb7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,38 @@ + +# [2.0.0](https://github.com/ipfs/js-ipfs-utils/compare/v1.2.4...v2.0.0) (2020-04-09) + + +### Bug Fixes + +* simplify http client ([#35](https://github.com/ipfs/js-ipfs-utils/issues/35)) ([05c4c5d](https://github.com/ipfs/js-ipfs-utils/commit/05c4c5d)) + + +### BREAKING CHANGES + +* - The `.ndjson`, `.stream` and `.iterator` methods have been removed +- An `.ndjson` async generator function has been added to the response which + does the same thing the `.ndjson` instance method used to + +Old: + +```javascript +for await (const datum of http.ndjson('http://...')) { + +} +``` + +New: + +```javascript +const response = await http.post('http://...') + +for await (const datum of response.ndjson()) { + +} +``` + + + ## [1.2.4](https://github.com/ipfs/js-ipfs-utils/compare/v1.2.3...v1.2.4) (2020-04-08)