Skip to content

@ethersphere/bee-js v0.10.0

Compare
Choose a tag to compare
@bee-worker bee-worker released this 01 Jun 10:14
0a6d858

We would like to introduce you to a new release that brings access to other new features of 0.6.0 Bee release and several other improvements. This version is compatible with 0.6.2 version of Bee.

⁉️ Improved error reporting

Until now most returned Errors contained very limited information on what actually went wrong as most of the problems originated directly from the Bee node. We improved our internal handling of these errors and now if Bee returns the reason for the error we pass it along with our thrown errors.

⛓ New endpoints

We have included support for the new Bee Debug's endpoints that exposes chain state with BeeDebug.getChainState() (/chainstate) and reserve state BeeDebug.getReserveState() (/reservestate).

♻️ Reupload support

Now you can re-upload content that you have locally pinned in your node to the network with Bee.reuploadPinnedData(). If the data is not pinned, then an error is thrown.

⛽️ Gas prices and limits for transactions

Now you can specify a gas price for methods that create transactions:

  • BeeDebug.cashoutLastCheque()
  • BeeDebug.depositTokens()
  • BeeDebug.withdrawTokens()

⚠ BREAKING CHANGES

  • Promise returning methods from now on never throw errors, but return rejected promise instead (#326)
  • BeeDebug.cashoutLastCheque() now directly returns the transaction hash as string and not object (#325)
  • BeeDebug.depositTokens() now directly returns the transaction hash as string and not object (#336)
  • BeeDebug.withdrawTokens() now directly returns the transaction hash as string and not object (#336)

Features

Bug Fixes

  • correctly return reject promise for promise returning fnc (#326) (d76ef2d)