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_HEXconstant has been renamed toEMPTY_ADDRESS. - The
sendRaw(),setPeerPublicKey()andsetSymmetricKey()methods of thePssclass no longer set a defaultaddressvalue, useEMPTY_ADDRESSif 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-nativehas been added by Mark Vujevits in PR #98.
Other changes
- The
sign()andverify()functions exported by the@erebos/secp256k1package now accept aBNInputinput value as exported by theellipticpackage. - The
addChapter()method of theTimelineclass 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.