v0.9.0
Breaking changes
TypeScript rewrite
The main change in this release is the code base being rewritten in TypeScript. As part of these changes, the library no longer uses ES modules default
exports but only named exports, such as:
import { Bzz } from '@erebos/api-bzz-node'
import { Pss } from '@erebos/api-pss'
import { createHex } from '@erebos/hex'
Pss module changes
- The
EMPTY_HEX
constant has been renamed toEMPTY_ADDRESS
. - The
sendRaw()
,setPeerPublicKey()
andsetSymmetricKey()
methods of thePss
class no longer set a defaultaddress
value, useEMPTY_ADDRESS
if needed.
Browser module namespacing
The @erebos/swarm-browser
package now exports its contents in the Erebos.swarm
namespace instead of Erebos
. For example Erebos.swarm.SwarmClient()
should be used instead of Erebos.SwarmClient()
.
The browser builds (in the dist
folder) have been renamed from erebos.development.js
and erebos.production.js
to erebos.swarm.development.js
and erebos.swarm.production.js
to better reflect this change.
Additional features
- The
downloadTarTo()
method has been added to@erebos/api-bzz-node
. - The experimental
@erebos/api-bzz-react-native
has been added by Mark Vujevits in PR #98.
Other changes
- The
sign()
andverify()
functions exported by the@erebos/secp256k1
package now accept aBNInput
input value as exported by theelliptic
package. - The
addChapter()
method of theTimeline
class now callscreateChapter()
, so default values for the chapter will be injected. - Fixed links to Swarm install & run (by thecryptofruit in PR #108).
- Docs have been updated to expose TypeScript interfaces rather than Flow types.