geut / hypercore-promise

An async/await based wrapper for hypercore
MIT License
9 stars 4 forks source link

Added `destroyData` to callbacks #3

Closed RangerMauve closed 4 years ago

RangerMauve commented 4 years ago

There were complaints that feed.destroy might be confusing since it's not always a destructive method name. With that in mind, I renamed it to destroyData so that it'd be more explicit as to what it does.

It'd be nice to get this into the promise wrapper so that it can be used in the Dat-SDK project.

RangerMauve commented 4 years ago

Related to https://github.com/mafintosh/hypercore/pull/255