This PR contains a handful of changes to make it easier to work with Hyperspace.
Most importantly, it introduces a Promises API that can be accessed through drive.promises (similar to the fs module).
It also asyncifies a handful of Hypercore methods that were previously assumed to be sync. These were updated to be optionally-async in Hypercore, so as to be compatible with Hyperspace's RemoteHypercores.
This PR contains a handful of changes to make it easier to work with Hyperspace.
Most importantly, it introduces a Promises API that can be accessed through
drive.promises
(similar to thefs
module).It also asyncifies a handful of Hypercore methods that were previously assumed to be sync. These were updated to be optionally-async in Hypercore, so as to be compatible with Hyperspace's
RemoteHypercore
s.