Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new types to Hypercore (#14)
This adds the following to the `Hypercore` class: - `closed` (see [source][closed]) - `sessions` (see [source][sessions]) - `core` (see [initialization][core init] and [assignment][core set]) - `Hypercore.createProtocolStream`'s second argument is optional (see [source][createProtocolStream]) - `ifAvailable` option to `Hypercore#download` (see [source][addRange]) These are all used by `@mapeo/core`. [closed]: https://github.com/holepunchto/hypercore/blob/16375ac22e87907b212c03d0e4a8e6b0a38f8c76/index.js#L76 [sessions]: https://github.com/holepunchto/hypercore/blob/16375ac22e87907b212c03d0e4a8e6b0a38f8c76/index.js#L79 [core init]: https://github.com/holepunchto/hypercore/blob/16375ac22e87907b212c03d0e4a8e6b0a38f8c76/index.js#L60 [core set]: https://github.com/holepunchto/hypercore/blob/16375ac22e87907b212c03d0e4a8e6b0a38f8c76/index.js#L338 [createProtocolStream]: https://github.com/holepunchto/hypercore/blob/16375ac22e87907b212c03d0e4a8e6b0a38f8c76/index.js#L144 [addRange]: https://github.com/holepunchto/hypercore/blob/16375ac22e87907b212c03d0e4a8e6b0a38f8c76/lib/replicator.js#L1029
- Loading branch information