@erebos/api-bzz-base
Advanced tools
Changelog
v0.12.0 (2019-12-17)
The Timeline
class has been split between the TimelineReader
and TimelineWriter
classes. TimelineWriter
extends TimelineReader
and therefore can be used as a dropped-in replacement for Timeline
.
@erebos/api-bzz-browser
can now be used in a Web Worker thanks to Adam Uhlíř's pull request.uploadData()
and downloadData()
methods have been added to the Bzz APIs.Hex.from()
static method has been added as a replacement for createHex()
.HTTP error messages from Swarm are now parsed when possible thanks to Adam Uhlíř's pull request.
The @erebos/feed-list
package has been added, implementing lists data structures on top of raw Swarm feeds.
Changelog
v0.11.0 (2019-11-28)
This release adds support for Readable streams in @erebos/api-bzz-base
, thanks to Adam Uhlíř's pull request.
The uploadFileStream()
method of @erebos/api-bzz-node
has been removed, uploadFile()
now supporting streams.
downloadObservable()
and downloadDirectoryData()
methods have been added to @erebos/api-bzz-base
and are therefore also available in @erebos/api-bzz-browser
. Until now they were only available in @erebos/api-bzz-node
.downloadStream()
method has been added.uploadFile()
and upload()
methods now support a Readable stream input.The code base and type definitions have been updated to TypeScript 3.7 thanks to Adam Uhlíř's pull request.
Changelog
v0.10.0 (2019-10-01)
PollOptions
interface of the Bzz API has been changed and is now used by the Timeline API. The PollFeedOptions
interface is now used for polling feeds.PollOptions
interface of the Timeline API has been removed, now using the interface exported by the Bzz API.Erebos v0.10 adds support for 2 new features added to the Swarm v0.5 release:
Changelog
v0.9.0 (2019-08-12)
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'
EMPTY_HEX
constant has been renamed to EMPTY_ADDRESS
.sendRaw()
, setPeerPublicKey()
and setSymmetricKey()
methods of the Pss
class no longer set a default address
value, use EMPTY_ADDRESS
if needed.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.
downloadTarTo()
method has been added to @erebos/api-bzz-node
.@erebos/api-bzz-react-native
has been added by Mark Vujevits in PR #98.sign()
and verify()
functions exported by the @erebos/secp256k1
package now accept a BNInput
input value as exported by the elliptic
package.addChapter()
method of the Timeline
class now calls createChapter()
, so default values for the chapter will be injected.Changelog
v0.8.1 (2019-06-17)
rxjs
dependency to @erebos/api-bzz-base
package.@erebos/api-bzz-base
package.Changelog
v0.8.0 (2019-05-28)
FeedMode
and FeedOptions
types have been removed, their use cases are implemented by new methods.mode
and contentChangedOnly
fields have been removed from the PollOptions
object.xxxFeedValue()
methods of the Bzz class have been changed as follows:
getFeedValue()
getFeedChunk()
to load the chunk itselfgetFeedContentHash()
to load the chunk and parse the response as a Swarm hashgetFeedContent()
to load the chunk, parse the response as a Swarm hash and load the referenced resourcepollFeedValue()
pollFeedChunk()
to poll the chunk itselfpollFeedContentHash()
to poll the chunk and parse the response as a Swarm hashpollFeedContent()
to poll the chunk, parse the response as a Swarm hash and load the referenced resourcepostSignedFeedValue()
-> postSignedFeedChunk()
postFeedValue()
-> postFeedChunk()
updateFeedValue()
-> setFeedChunk()
uploadFeedValue()
-> setFeedContent()
download()
-> getChapter()
upload()
-> postChapter()
getChapterID()
-> getLatestChapterID()
loadChapter()
-> getLatestChapter()
updateChapterID()
-> setLatestChapterID()
createUpdater()
-> createAddChapter()
loadChapters()
-> getChapters()
@erebos/wallet-hd
utility package has been added, providing a simple way to use Hierarchical Deterministic wallets.PollContentHashOptions
and PollContentOptions
have been added for the pollFeedContentHash()
and pollFeedContent()
methods, respectively.setFeedContentHash()
method has been added to the Bzz class.setLatestChapter()
: sets the latest chapter without checking the previous
field, while the logic of addChapter()
has been changed to retrieve the latest chapter ID before adding the new chapter when the previous
field is not provided.createLoader()
: returns an Observable of chapters.pollLatestChapter()
: returns an Observable of the latest chapter.The library is now tested against Swarm v0.4.0, using the Docker image provided by ethersphere.
Changelog
v0.7.2 (2019-04-15)
Fix FeedParams
type in @erebos/api-bzz-base
.
Changelog
v0.7.1 (2019-03-18)
FeedTopicParams
type to @erebos/api-bzz-base
.getFeedTopic()
function in @erebos/api-bzz-base
to use FeedTopicParams
as input type.Changelog
v0.7.0 (2019-03-18)
user
field and remove the signature
one. The added feed update parameters object should be used for feed updates.getFeedURL()
, createFeedManifest()
, getFeedMetadata()
, getFeedValue()
, pollFeedValue()
, postSignedFeedValue()
, postFeedValue()
, updateFeedValue()
and uploadFeedValue()
methods.signFeedDigest
to signBytes
, to reflect the fact it could be used in other contexts.createKeyPair()
function in @erebos/secp256k1
has been removed, as hex
is the only supported value it is set by default.@erebos/hex
module now supports bytes array (Array<number>
) as an input type and output using the .toBytesArray()
method.createPublic()
and verify()
functions have been added to the @erebos/secp256k1
package.@erebos/timeline
package has been added, providing an implementation of the Timeline protocol. Its API is available in the documentation website.The website has been redesigned and additional examples have been added: erebos.js.org