Commit Graph

18 Commits

Author SHA1 Message Date
7597875c32 chore: record interface instead of class, transport and stream muxer factory interface and minor pubsub fixes 2020-12-03 11:21:56 +01:00
5cfaf4128f chore: make inboundStream a asyncIterable 2020-12-02 18:16:39 +01:00
5cb2025c2a chore: address review 2020-12-02 17:50:01 +01:00
6f090617aa chore: address review 2020-12-02 16:04:16 +01:00
67a5f51805 fix: type incompatibilities (#75) 2020-12-02 10:33:13 +01:00
bac57b05dc chore: remove generated types from vsc 2020-12-01 14:56:18 -08:00
6a95834570 feat: add types 2020-12-01 23:12:24 +01:00
7fd26cf6b9 fix: optional fields 2020-11-30 22:33:44 -08:00
b7f10727d6 fix: lint issues by disabling valid-jsdoc rules 2020-11-30 20:46:04 -08:00
3143efd7c1 fix: tsconfig to generate optionals correctly 2020-11-30 16:55:33 -08:00
7ccaf27e24 chore: generate fixed types 2020-11-30 15:06:11 -08:00
4e25c6e51c fix: add type annotations to improve innference 2020-11-30 15:05:36 -08:00
ad2dfa42dc chore: pubsub conformance test updates (#70) 2020-11-11 17:16:49 +01:00
269a6f5e0a fix: typescript types (#69) 2020-11-03 22:35:18 +01:00
946b046440 feat: pubsub: add global signature policy (#66)
BREAKING CHANGE:
`signMessages` and `strictSigning` pubsub configuration options replaced
with a `globalSignaturePolicy` option
2020-11-03 18:22:03 +01:00
e14844315b feat: update pubsub getMsgId return type to Uint8Array (#65)
BREAKING CHANGE:
new getMsgId return type is not backwards compatible with prior `string`
return type.
2020-10-05 16:36:29 +02:00
eacdc246da chore: add type generation from jsdoc (#64) 2020-09-30 11:21:11 +02:00
ba15a48dd9 feat: interface pubsub (#60)
* feat: interface pubsub

* chore: pubsub router tests

* chore: move pubsub abstractions from gossipsub

* chore: address review

* chore: revamp docs

* chore: add emit self tests to interface

* chore: refactor base tests

* chore: publish should only accept one topic per api call

* chore: normalize msg before emit

* chore: do not reset inbound stream

* chore: apply suggestions from code review

Co-authored-by: Jacob Heun <jacobheun@gmail.com>

* chore: address review

* fix: remove subscribe handler

* chore: remove bits from create peerId

Co-authored-by: Jacob Heun <jacobheun@gmail.com>

* chore: remove delay from topic validators tests

* chore: add event emitter information

* fix: topic validator docs

Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-08-25 13:05:58 +02:00