Commit Graph

47 Commits

Author SHA1 Message Date
Vasco Santos
e5f4bdac44 feat: peer-discovery not using peer-info
BREAKING CHANGE: peer-discovery emits object with id and multiaddrs properties
2020-04-16 16:02:26 +02:00
Cayman
c56dd3e3fa chore: add discv5 peer discovery module 2020-04-10 14:03:58 -05:00
Hugo Dias
78e015cef3 fix: add buffer (#39) 2020-03-20 20:53:54 +01:00
Alex Potsides
c77d8de2e7 fix: remove use of assert module (#34)
* fix: remove use of assert module

The polyfill is big, we can simulate it by throwing an Error and it doesn't work under React Native.

* chore: pr comments
2020-02-17 22:19:13 +01:00
Jacob Heun
5c88d77aaa fix(connection): tracks streams properly (#25) 2020-02-04 17:34:56 +01:00
Jacob Heun
2de533e15b fix(transport): make close listener test more resilient (#21) 2020-01-21 16:06:13 +01:00
Jacob Heun
5967834a2f fix(connection): dont require remoteAddr on creation (#20) 2020-01-17 15:38:14 +01:00
Jacob Heun
d98bb23fea feat: add crypto transmission error (#17)
* feat: add crypto transmission error

* docs: add error to crypto readme
2019-12-27 19:51:10 -08:00
Vasco Santos
ff0313721c fix: transport should not handle connection if upgradeInbound throws (#16)
* fix: transport should not handle connection if upgradeInbound throws

* chore: address review
2019-12-20 08:01:37 -08:00
Jacob Heun
bdbd58e897 feat: export connection status' (#15)
* feat: export the connection status'

* docs(fix): correct status listing
2019-12-15 16:54:43 +01:00
Vasco Santos
148f3c9f43 docs: corrected reference to delegated content routing (#13) 2019-12-04 17:19:16 +01:00
Vasco Santos
d5dd256a21 fix: multicodec topology disconnect with peer param (#12) 2019-12-02 16:06:26 +01:00
Vasco Santos
a67abccabf feat: add class-is to topology (#11) 2019-11-15 14:49:39 +01:00
Vasco Santos
21d8ae6d96 fix: multicodec topology update peers with multicodec (#10) 2019-11-15 14:48:43 +01:00
Vasco Santos
8bee747c7c feat: add topology interfaces (#7)
* feat: topology

* feat: multicodec-topology

* chore: address review

Co-Authored-By: Jacob Heun <jacobheun@gmail.com>

* chore: remove error from disconnect

* docs: topology

* chore: apply suggestions from code review

Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
2019-11-14 11:52:06 +01:00
Jacob Heun
749a8d035d fix: localAddr should be optional (#6)
The local address of a connection will not always be known, such as a browser client, so it should not be required.
2019-10-30 16:56:28 +01:00
Jacob Heun
d2fe2d1b36 feat: crypto errors (#4)
* chore: ignore docs folder

* feat: add invalid crypto exchange error
2019-10-29 12:12:09 +01:00
Jacob Heun
5a5c44a770 feat: crypto interface (#2)
* docs: initial crypto readme

* feat: add basic crypto interface test suite

* feat: add optional remotepeer for inbound

feat: add errors export

* docs(fix): update src/crypto/README.md

Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
2019-10-21 14:44:17 +02:00
Jacob Heun
81254b1d43 chore: add empty main file 2019-10-20 11:56:33 +02:00
Jacob Heun
3230ae4ead chore: fix transport docs and imports 2019-10-18 14:45:28 +02:00
Jacob Heun
13844d482c chore: clean up transport 2019-10-18 14:40:12 +02:00
Jacob Heun
212e571624 chore: clean up transport 2019-10-18 14:39:43 +02:00
Jacob Heun
101cf22cc9 chore: clean up stream-muxer 2019-10-18 14:39:26 +02:00
Jacob Heun
46eac39626 chore: remove record-store, it is old 2019-10-18 14:31:00 +02:00
Jacob Heun
606d6a6815 chore: cleanup peer routing 2019-10-18 14:25:47 +02:00
Jacob Heun
f9f0b0902e chore: cleanup peer disco and fix tests 2019-10-18 14:23:50 +02:00
Jacob Heun
32f863be86 chore: clean up content routing 2019-10-18 14:20:29 +02:00
Jacob Heun
c9fa1ac249 chore: fix connection tests and do cleanup 2019-10-18 14:14:27 +02:00
Jacob Heun
020f72b336 refactor: move all files to the right place 2019-10-18 13:58:35 +02:00
Jacob Heun
827197585e refactor: move stream-muxer 2019-10-18 13:48:14 +02:00
Jacob Heun
0f608322c8 feat: add onStreamEnd, muxer.streams and timeline (#56)
BREAKING CHANGE: This adds new validations to the stream muxer, which will cause existing tests to fail.
2019-09-20 12:56:18 +02:00
Alan Shaw
dd837ba326 refactor: API changes and switch to async await (#55)
BREAKING CHANGE: the API is now async / await. See https://github.com/libp2p/interface-stream-muxer/pull/55#issue-275014779 for a summary of the changes.
2019-09-16 17:48:04 +02:00
Jacob Heun
e43827e224 chore: update deps and fix linting
chore: make npm scripts cross platform friendly
2018-11-09 16:07:01 +01:00
Jacob Heun
d9c868195a fix: improve the close test 2018-11-09 16:07:01 +01:00
David Dias
4f52024857 chore: bump timout 2017-12-14 06:02:39 +00:00
David Dias
a25ecb19a7 chore: update deps, including aegir 2017-12-14 05:52:48 +00:00
Dmitriy Ryajov
6180213681 test: increase timeouts (#48) 2017-12-14 05:47:36 +00:00
ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ
8d93b6e586 Remove console.logs (#47) 2017-11-24 17:49:58 +00:00
David Dias
b5bdcb84bb chore: update aegir and fix lint 2017-03-16 15:56:47 +00:00
David Dias
1635977484 fix: when things are in the same process, there is a order to them :) 2017-01-24 09:25:24 +00:00
Victor Bjelkholm
466c161cd4 Pass error 2017-01-19 15:49:44 +01:00
Victor Bjelkholm
127be58017 Refactor of test-case 2017-01-19 14:07:37 +01:00
Friedel Ziegelmayer
23a75d192e fix: some fixes for incorrect tests
found these when debugging pull-multiplex
2017-01-11 21:57:37 +01:00
David Dias
98b08fda06 docs(readme): update spec and code accordingly 2016-09-06 18:06:36 -04:00
Friedel Ziegelmayer
c06da3b925 feat(tests): add closing tests, make sure errors are propagated 2016-09-06 18:05:15 -04:00
David Dias
5069679163 feat(api): update the interface usage from dial to dialer and listen to listener 2016-09-06 18:05:15 -04:00
Friedel Ziegelmayer
cc3130fa23 feat(pull): migration to pull streams. Upgrade tests to use mocha as
well
2016-09-06 18:04:50 -04:00