@ethersphere/bee-js v0.10.0
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
- chain and reserve state endpoints (#324) (0ec57e9)
- pass error message from bee to thrown error (#314) (59b5834)
- expose stamps depth limits (#334) (0bb4dcf)
- reupload (#323) (3a256f8)
- support gas price and limit for cashout (#325) (61195c7)