From bc64f5b484df2bad44b2da61259385e65f59aaf0 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 12 May 2021 12:13:40 +0000 Subject: [PATCH] Update from Forestry.io Alex Potsides updated src/_blog/js-ipfs-0.55.0-greatly-improves-type-definitions.md --- ...js-ipfs-0.55.0-greatly-improves-type-definitions.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 a9fac9e9..d5bdbcd5 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 @@ -2,8 +2,8 @@ title: js-IPFS 0.55.0 greatly improves type definitions description: The new release comes with types rewritten from the ground up author: Alex Potsides -date: 2021-05-10 -permalink: "/2021-05-10-js-ipfs-0-55/" +date: 2021-05-11 +permalink: "/2021-05-12-js-ipfs-0-55/" translationKey: '' header_image: "/header-image-js-ipfs-placeholder.png" tags: @@ -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. @@ -68,7 +68,7 @@ The API changes are as follows: ## ✨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)) +* 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)) ## 🔨 Breaking changes @@ -251,4 +251,4 @@ Would you like to contribute to the IPFS project and don’t know how? Well, the # ⁉️ Do you have questions? -The best place to ask your questions about IPFS, how it works, and what you can do with it is at [discuss.ipfs.io](https://discuss.ipfs.io). We are also available at the `#ipfs` channel on Freenode. +The best place to ask your questions about IPFS, how it works, and what you can do with it is at [discuss.ipfs.io](https://discuss.ipfs.io). We are also available at the `#ipfs` channel on Freenode. \ No newline at end of file