From 05bd5f43ffc308166607fecdd6d074d0862c8c64 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 12 May 2021 13:11:08 +0100 Subject: [PATCH] chore: pr comments Co-authored-by: Rod Vagg --- src/_blog/js-ipfs-0.55.0-greatly-improves-type-definitions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_blog/js-ipfs-0.55.0-greatly-improves-type-definitions.md b/src/_blog/js-ipfs-0.55.0-greatly-improves-type-definitions.md index a718607b..a9fac9e9 100644 --- a/src/_blog/js-ipfs-0.55.0-greatly-improves-type-definitions.md +++ b/src/_blog/js-ipfs-0.55.0-greatly-improves-type-definitions.md @@ -50,7 +50,7 @@ const ipfs = create() Finally, in some places we previously returned instances of the [bignumber.js](https://www.npmjs.com/package/bignumber.js) module—this has been necessary in the past because JavaScript lacked an arbitrary precision number type. [BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) has been present in all of our supported environments for some time so we've been removing `bignumber.js` in favour of `BigInt` in the [Core API](https://github.com/ipfs/js-ipfs/tree/master/docs). -## 🛍️ Upgrade Guide +# 🛍️ Upgrade Guide We've taken this opportunity to align the implementation with the published [Core API Docs](https://github.com/ipfs/js-ipfs/tree/master/docs/core-api). In some cases the accepted input types were broader than what was documented for backward compatibility, but that compatibility comes at the cost of code complexity and added maintenance, so those old code paths have been removed. @@ -66,7 +66,7 @@ The API changes are as follows: * `ipfs.files.cp(source, dest, opts)` - `source` arg is `string | string[]` (was `...string`) * `ipfs.files.mv(source, dest, opts)` - `source` arg is `string | string[]` (was `...string`) -# ✨New features +## ✨New features * Support identity hash ([`0x00](https://github.com/multiformats/multicodec/blob/master/table.csv#L2)) in `ipfs.block.get()` + `ipfs.dag.get()` ([#3616](https://github.com/ipfs/js-ipfs/issues/3616)) ([28ad9ad](https://github.com/ipfs/js-ipfs/commit/28ad9ad6e50abb89a366ecd6b5301e848f0e9962))