Closed nornagon closed 4 years ago
This looks great, thank you!
By the way, there's a new branch in the works for Dat2 support #36 and the promise based interface is going to be replaced in favor of having the ability to omit callbacks to get promises back using the hyperdrive-promise library. This'll unify the API into one thing rather than a separate promise and callback one.
Not sure what the alternative for getSecretKey
is gonna look like in this new API. Might just be archive.secretKey
.
This change is going to be breaking with the new Hyperdrive API in Beaker for now so you might be better off staying with the current release until all that stuff is stabilized.
Sounds great, unfortunately I wanted to experiment with in-browser usage of Dat, which it seems like Dat2 doesn't yet support.
Yeah, another reason to stick to the 1.x version of the SDK for now 😁
I've released this fix in version 1.0.3 BTW!
Thanks again for the PR
Fixes #45.
Not sure when this broke, but given that the repo depends on a git branch of hyperdrive it seems likely that a hyperdrive change broke it.
Perhaps also consider switching to depend on a stable version of hyperdrive (maybe a commit or tag rather than a branch name?)