v0.8.0
Breaking changes
- The
FeedModeandFeedOptionstypes have been removed, their use cases are implemented by new methods. - The
modeandcontentChangedOnlyfields have been removed from thePollOptionsobject. - The
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 resource
pollFeedValue()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 resource
postSignedFeedValue()->postSignedFeedChunk()postFeedValue()->postFeedChunk()updateFeedValue()->setFeedChunk()uploadFeedValue()->setFeedContent()
- Various Timeline methods have been renamed to be more explicit:
download()->getChapter()upload()->postChapter()getChapterID()->getLatestChapterID()loadChapter()->getLatestChapter()updateChapterID()->setLatestChapterID()createUpdater()->createAddChapter()loadChapters()->getChapters()
Additional features
- The
@erebos/wallet-hdutility package has been added, providing a simple way to use Hierarchical Deterministic wallets. - The
PollContentHashOptionsandPollContentOptionshave been added for thepollFeedContentHash()andpollFeedContent()methods, respectively. - The
setFeedContentHash()method has been added to the Bzz class. - New methods have been added to the Timeline class:
setLatestChapter(): sets the latest chapter without checking thepreviousfield, while the logic ofaddChapter()has been changed to retrieve the latest chapter ID before adding the new chapter when thepreviousfield is not provided.createLoader(): returns an Observable of chapters.pollLatestChapter(): returns an Observable of the latest chapter.
- Additional commands have been added in the CLI to interact with feeds and timelines.
Other changes
The library is now tested against Swarm v0.4.0, using the Docker image provided by ethersphere.