79 Commits

Author SHA1 Message Date
Alex Potsides
df6ef45a2d feat: promisify all api methods that accept callbacks (#381)
* feat: promisify all api methods that accept callbacks

This is a stop-gap until the full async/await migration can be
completed.  It means we can refactor tests of other modules that
depend on this module without having to mix async flow control
strategies.

N.b. some methods that were previously callable without callbacks
(e.g. `node.start()`, `node.stop()`, etc) now require callbacks
otherwise a promise is returned which, if rejected, can cause
`unhandledPromiseRejection` events and lead to memory leaks.

* docs: add a global note to the api about promisify

* fix: update the logic for unsubscribe

* test(fix): correct pubsub unsubscribe usage for api change

* test(fix): update content routing tests for latest delegate version
2019-07-29 15:40:40 +02:00
Jacob Heun
9433c6c398
docs: add createLibp2p to readme (#368)
* chore: update deps
* test(fix): account for wrtcrendezvous now being thenable
2019-06-07 15:50:23 +02:00
Jacob Heun
51cc993876
docs: fix incorrect references for enabling dht discovery (#358) 2019-04-16 15:04:23 +02:00
Jacob Heun
313b1eae20
fix: connection emits (#352)
* fix: add connection tracking events

* chore: update dependencies
2019-04-11 13:49:31 +02:00
Jacob Heun
01aa44724e
feat: auto dial discovered peers (#349) 2019-04-11 12:44:58 +02:00
Vasco Santos
8b627797e2 chore: add discourse badge (#351) 2019-04-10 11:53:19 +02:00
Yusef Napora
5204da73f7 chore: update readme with links to docs & discuss (#347) 2019-04-04 10:49:40 +02:00
Andrew Nesbitt
da52af704e docs: update package table in readme (#337) 2019-03-15 16:18:27 +01:00
Aditya Bose
ef3238bdee docs: update README.md (#334)
Fixed a typo in the Tutorials and Examples section.
2019-03-12 08:55:24 +01:00
Hugo Dias
d497961938 fix: bundle-size (#298)
* fix: bundle-size

* fix: feedback

* fix: lint

* chore: update deps

* fix: add bundle size check and update deps

* fix: fix badges

* fix: add once to package.json

* fix: fix config validation
2019-02-21 17:07:35 +01:00
Vasco Santos
c4cab007af feat: enable dht by default (#313)
BREAKING CHANGE: dht experimental flag was removed and a dht.enabled property was added to the config
2019-01-29 18:57:09 +01:00
Vasco Santos
970deec2a4 feat: add maxNumProviders to findprovs (#283)
* feat: add maxNumProviders to findprovs

* chore: upgrade libp2p-kad-dht
2018-11-13 11:46:51 +01:00
Jacob Heun
0b75f99d75
feat: make libp2p a state machine (#257)
* docs: add events to readme
2018-10-19 17:37:34 +02:00
Jacob Heun
686379efb0
feat: enable relay by default (no hop) (#254)
docs: update readme default relay
2018-10-19 16:31:40 +02:00
Jacob Heun
a95389a28e
feat: add delegated peer and content routing support (#242)
* feat: allow for configuring content and peer routing

* feat: support multiple peer and content routing modules

* docs: add delegated routing example
2018-10-19 16:28:28 +02:00
Henrique Dias
3226632d83 docs: add lead maintainer to package table 2018-10-07 20:42:12 +03:00
Vasco Santos
dd934b9690 fix: start kad dht random walk (#251)
* fix: start kad dht random walk

* chore: added tests and stop random walk

* chore: allows to disable discovery for dht

* chore: upgrade kad-dht version
2018-10-04 14:40:32 +02:00
David Dias
a63432e24b feat: use package-table vs custom script
docs: add note on how to generate table
2018-09-24 15:42:16 +02:00
David Dias
e052021397
docs: Improve wording on the Readme 2018-08-22 09:12:58 +02:00
Volker Mische
fdd714ee60 docs: update API for node creation (#236)
The API changed recently, update the README to reflect that.
2018-08-14 14:23:55 +02:00
Volker Mische
65e7223ce0 docs: make example from README copy & pastable (#235)
The example in the README can now be used with simply copy & pasting,
no errors will be thrown.

Fixes #234.
2018-08-14 14:17:18 +02:00
Volker Mische
eddec7d2e4 docs: fix example in README (#233)
The JSON in the example was missing some commas.
2018-08-13 17:10:40 +02:00
Jacob Heun
0b729621db chore: update lead maintainer 2018-07-27 16:04:15 +02:00
Jacob Heun
2b7cc55c88 feat: add check for protector and enforced pnet
fix: update protector config and tests
docs: add private network info to the readme
test: fix an issue with config
2018-07-24 19:53:53 +02:00
Jacob Heun
6106915923 fix: start and stop connection manager with libp2p
test: add test to verify libp2p starts and stops the right things
test: add test for verifying disabled modules
fix: linting
2018-07-22 19:29:19 +01:00
David Dias
187d584086
docs: update logo url 2018-07-06 19:16:21 +02:00
Maciej Krüger
7502ba86a5 docs: better packages table (#218) 2018-07-05 17:17:47 +02:00
Maciej Krüger
cc51fa59f9 docs: add missing commas to readme example (#216) 2018-07-05 11:47:00 +02:00
David Dias
7baf9f47ac
chore: remove travis CI badge 2018-06-28 10:35:18 +02:00
David Dias
6905f1ba41
feat: (BREAKING CHANGE) overhaul libp2p config and constructor
* docs: update chat example and add info to its readme
* docs: update echo example
* docs: update libp2p in browser example
* docs: update pubsub example
* docs: update peer and content routing examples
* docs: update discovery mechanisms example
* docs: update encrypted comms example
* docs: update protocol and stream muxing example
* feat: add config validation
* test: update CI configs, use only node 8
2018-06-28 10:06:25 +02:00
David Dias
b80e89269c
docs: add weekly core dev calls url 2018-06-22 00:05:53 +01:00
David Dias
abc6257bf7
docs: update badges 2018-05-29 13:45:48 +01:00
Volker Mische
dd84190d47 docs: libp2p-swarm was renamed to libp2p-switch (#196)
* docs: libp2p-swarm was renamed to libp2p-switch

Update the README accordingly.

* Fixing another typo
2018-05-28 14:29:43 +01:00
David Dias
0bf203b087
docs: lead maintainer (#190) 2018-05-06 18:32:26 +02:00
Pedro Teixeira
2c04a71007 stats: exposed and documented 2018-03-15 08:09:56 -07:00
David Dias
1ebf725ac4 docs: add docs 2018-02-16 19:23:35 +01:00
David Dias
59df82a675 docs: dialProtocol 2018-02-07 08:37:03 +00:00
Maciej Krüger
68c170a40d docs: Add ws-star and ws-star-rendezvous (#158) 2018-02-07 07:07:53 +00:00
Chris Dostert
bd8a35aaf9 feat: add explicit error for case peer id not included in multiaddr (#155) 2018-02-05 12:36:20 +01:00
Giovanni T. Parra
07b0cdc30e docs: note the Connection type on .handle and .dial docs (#149) 2018-01-07 18:47:02 +00:00
John Rees
f8b441fff5 docs: Update README.md (#143)
added missing backtick
2018-01-02 07:18:41 +00:00
Joel Gustafson
0870068ebc docs: fix typo (#136) 2017-12-11 12:16:05 +00:00
David Dias
2504cbeb26 docs: add missing sections to the README (#128) 2017-10-22 10:27:36 +01:00
Daijiro Wachi
7f7278fe82 docs: fix typo in readme (#121) 2017-09-06 09:55:12 +01:00
David Dias
cad173e3bd feat: p2p addrs situation (#119)
* chore: update gitignore and CI

* chore: update deps

* test: update tests to use p2p-webrtc-star
2017-09-03 14:39:55 +01:00
David Dias
363259f832 docs: add project status and throughput graph 2017-07-23 11:20:18 -07:00
David Dias
06eb7a19f3 docs(examples): Peer and Content Routing 1 and 2 (#107) 2017-07-20 14:19:36 -07:00
David Dias
c23f147bda docs: fix API docs 2017-07-09 12:18:05 +01:00
David Dias
32cb59fa18 docs(examples): transports 1 2017-07-07 14:37:41 +01:00
David Dias
2d40f3ad6a docs: update header of the README (#97) 2017-07-05 18:18:31 +01:00