1
0
mirror of https://github.com/fluencelabs/js-libp2p synced 2025-03-16 23:50:51 +00:00

238 Commits

Author SHA1 Message Date
Jacob Heun
80cf0777b5
chore: update contributors 2019-08-21 19:51:50 +02:00
Jacob Heun
3eef695bc0
fix: improve config defaults ()
This removes defaults from superstruct and instead uses
mergeOptions to deeply set the defaults on configuration.
This ensures that defaults are properly set.

This is a step toward removing superstruct altogether, ,
but it is still being used for basic type validation.
2019-08-21 16:44:30 +02:00
Jacob Heun
b3deb356f1
fix: reference files directly to avoid npm install failures () 2019-08-21 10:23:06 +02:00
Jacob Heun
299cfefa01 chore: remove webrtcsupport 2019-08-20 17:34:55 +02:00
Jacob Heun
b294301456
refactor: add core modules to libp2p ()
* refactor: add js-libp2p-connection-manager to repo

Co-authored-by: David Dias <daviddias.p@gmail.com>
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
Co-authored-by: Pedro Teixeira <i@pgte.me>
Co-authored-by: Vasco Santos <vasco.santos@ua.pt>

* test(conn-mgr): only run in node

* refactor: add js-libp2p-identify to repo

Co-authored-by: David Dias <daviddias.p@gmail.com>
Co-authored-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
Co-authored-by: Hugo Dias <hugomrdias@gmail.com>
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
Co-authored-by: Maciej Krüger <mkg20001@gmail.com>
Co-authored-by: Richard Littauer <richard.littauer@gmail.com>
Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>
Co-authored-by: Yusef Napora <yusef@protocol.ai>
Co-authored-by: ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <victorbjelkholm@gmail.com>

* refactor: add libp2p-pnet to repo

Co-authored-by: Jacob Heun <jacobheun@gmail.com>
Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>

* refactor: add libp2p-ping to repo

Co-authored-by: David Dias <daviddias.p@gmail.com>
Co-authored-by: Francisco Baio Dias <xicombd@gmail.com>
Co-authored-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
Co-authored-by: Hugo Dias <mail@hugodias.me>
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
Co-authored-by: João Antunes <j.goncalo.antunes@gmail.com>
Co-authored-by: Richard Littauer <richard.littauer@gmail.com>
Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>
Co-authored-by: Vasco Santos <vasco.santos@ua.pt>
Co-authored-by: ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <victorbjelkholm@gmail.com>

* refactor: add libp2p-circuit to repo

Co-authored-by: David Dias <daviddias.p@gmail.com>
Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
Co-authored-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
Co-authored-by: Hugo Dias <mail@hugodias.me>
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
Co-authored-by: Maciej Krüger <mkg20001@gmail.com>
Co-authored-by: Oli Evans <oli@tableflip.io>
Co-authored-by: Pedro Teixeira <i@pgte.me>
Co-authored-by: Vasco Santos <vasco.santos@ua.pt>
Co-authored-by: Victor Bjelkholm <victorbjelkholm@gmail.com>
Co-authored-by: Yusef Napora <yusef@napora.org>
Co-authored-by: dirkmc <dirk@mccormick.cx>

* test(switch): avoid using instanceof

* chore(switch): update bignumber dep

* refactor(circuit): clean up tests

* refactor(switch): consolidate get peer utils

* test(identify): do deep checks of addresses

* test(identify): bump timeout for identify test

* test(switch): tidy up limit dialer test

* refactor(switch): remove redundant circuit tests

* chore: add coverage script

* refactor(circuit): consolidate get peer info

* docs: reference original repositories in each sub readme

* docs: fix comment

* refactor: clean up sub package.json files and readmes
2019-08-16 17:30:03 +02:00
Jacob Heun
fd738f9d51
refactor: add js-libp2p-switch to the libp2p codebase ()
Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>
Co-authored-by: Alan Shaw <alan@tableflip.io>
Co-authored-by: Arnaud <arnaud.valensi@gmail.com>
Co-authored-by: David Dias <daviddias.p@gmail.com>
Co-authored-by: David Dias <mail@daviddias.me>
Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
Co-authored-by: Francisco Baio Dias <xicombd@gmail.com>
Co-authored-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
Co-authored-by: Haad <haadcode@users.noreply.github.com>
Co-authored-by: Hugo Dias <mail@hugodias.me>
Co-authored-by: Hugo Dias <hugomrdias@gmail.com>
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
Co-authored-by: Kevin Kwok <antimatter15@gmail.com>
Co-authored-by: Kobi Gurkan <kobigurk@gmail.com>
Co-authored-by: Maciej Krüger <mkg20001@gmail.com>
Co-authored-by: Matteo Collina <matteo.collina@gmail.com>
Co-authored-by: Michael Fakhry <fakhrimichael@live.com>
Co-authored-by: Oli Evans <oli@tableflip.io>
Co-authored-by: Pau Ramon Revilla <masylum@gmail.com>
Co-authored-by: Pedro Teixeira <i@pgte.me>
Co-authored-by: Pius Nyakoojo <piusnyakoojo@gmail.com>
Co-authored-by: Richard Littauer <richard.littauer@gmail.com>
Co-authored-by: Sid Harder <sideharder@gmail.com>
Co-authored-by: Vasco Santos <vasco.santos@ua.pt>
Co-authored-by: harrshasri <35241544+harrshasri@users.noreply.github.com>
Co-authored-by: kumavis <kumavis@users.noreply.github.com>
Co-authored-by: ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <victorbjelkholm@gmail.com>
2019-08-08 19:01:16 +02:00
Jacob Heun
d5a977b227
chore: update contributors 2019-08-07 20:48:41 +02:00
Jacob Heun
3f31b1f422
chore: update contributors 2019-08-06 12:27:27 +02:00
Jacob Heun
ff7a6c86a0
fix: promisified methods ()
* chore: update ws rendezvous dep

test(fix): fix tests with latest ws rendezvous server

* fix: promisification of libp2p methods

test: add tests to verify promisify support until async/await endeavor is complete

* chore: fix linting
2019-08-06 10:53:23 +02:00
Jacob Heun
9fef58cb7d
chore: update contributors 2019-08-01 17:17:54 +02:00
Jacob Heun
684f283aec
chore: update switch ()
BREAKING CHANGE: switch configuration has changed.
'blacklistTTL' is now 'denyTTL' and 'blackListAttempts' is now 'denyAttempts'
2019-08-01 17:15:02 +02:00
Jacob Heun
e8d8aab278
chore: update contributors 2019-07-31 14:35:42 +02:00
Jacob Heun
2a2e7a1012
chore: update contributors 2019-07-31 09:47:06 +02:00
Vasco Santos
791f39a09b feat: integrate gossipsub by default ()
BREAKING CHANGE: new configuration for deciding the implementation of pubsub to be used.
In this context, the experimental flags were also removed. See the README for the latest usage.
2019-07-31 09:38:14 +02:00
Jacob Heun
65d52857a5
test(fix): correct findProviders test for missing provider ()
* test(fix): correct findProviders test for missing provider

* chore: fix lint
2019-07-30 15:11:24 +02:00
Alex Potsides
df6ef45a2d feat: promisify all api methods that accept callbacks ()
* 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
45716da465
chore: update contributors 2019-07-12 13:10:53 +01:00
Jacob Heun
10811e9ced
chore: update keywords and description ()
* chore: update keywords and description

chore: reorganize package.json fields

* test: bump timeouts for peer generation
2019-06-12 14:18:34 +02:00
Jacob Heun
24be691bc1
chore: update contributors 2019-06-07 17:10:07 +02:00
Jacob Heun
9433c6c398
docs: add createLibp2p to readme ()
* chore: update deps
* test(fix): account for wrtcrendezvous now being thenable
2019-06-07 15:50:23 +02:00
Jacob Heun
c346e8066b
chore: update contributors 2019-05-07 13:49:02 +02:00
Jacob Heun
40978a1940
feat: sign pubsub messages ()
* fix: forward pubsub publish callback to floodsub

chore: update floodsub version

* test: add random walk delay to config

* chore: update floodsub
2019-05-07 13:45:59 +02:00
Jacob Heun
5319e065ec
chore: update contributors 2019-04-17 15:06:47 +02:00
Jacob Heun
54c474de98
chore: update contributors 2019-04-16 12:40:41 +02:00
Jacob Heun
cfa4df6e11
chore: update contributors 2019-04-12 11:15:33 +02:00
Jacob Heun
7313f781fc
chore: update contributors 2019-04-11 13:54:39 +02:00
Jacob Heun
313b1eae20
fix: connection emits ()
* fix: add connection tracking events

* chore: update dependencies
2019-04-11 13:49:31 +02:00
Jacob Heun
01aa44724e
feat: auto dial discovered peers () 2019-04-11 12:44:58 +02:00
Jacob Heun
e5f19e860b
fix: remove unneeded peerbook puts () 2019-04-05 14:27:35 +02:00
Jacob Heun
813a59b9ce
chore: update contributors 2019-03-21 14:27:35 +01:00
Jacob Heun
eee60ed37d
feat: update to the latest switch () 2019-03-21 14:23:00 +01:00
Jacob Heun
bb0c45d704
chore: update contributors 2019-03-06 11:28:19 +01:00
Jacob Heun
6cfb0b2692
chore: update contributors 2019-02-26 15:24:55 +01:00
Jacob Heun
bba6f7eff8
chore: update contributors 2019-02-26 15:10:30 +01:00
Jacob Heun
5f92acd5bb
fix: make the config less restrictive () 2019-02-25 12:19:37 +01:00
Jacob Heun
9f47100713
chore: update contributors 2019-02-21 17:46:09 +01:00
Hugo Dias
d497961938 fix: bundle-size ()
* 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
Jacob Heun
ec7d0761de test: add pull-mplex to test suite 2019-02-18 15:45:33 +01:00
Hugo Dias
59fe9732d7 chore: move to travis ()
* chore: move to travis

* chore: move to travis 2

* chore: remove unused test file

* chore: remove travis webworker

* chore: fix webworker

* chore: remove webrtcsupport module

* chore: test windows

* chore: make windows-build-tools silent

* chore: test dllss

* chore: test dllss 2

* chore: test dllss 3

* chore: remove before_install stuff

* chore: remove windows from CI
2019-02-14 18:07:13 +01:00
Vasco Santos
9e7a080a5c fix: emit peer discovery for dht discovery 2019-02-05 19:54:02 +01:00
Jacob Heun
ab028a2be3
chore: update contributors 2019-02-05 13:56:50 +01:00
Jacob Heun
8047fb76fa
fix: start and stop error callback ()
* fix: ensure start and stop callbacks are called
2019-02-01 16:32:34 +01:00
Jacob Heun
14e12ee1f1
chore: update contributors 2019-01-04 10:15:48 -07:00
Alan Shaw
2374929990 chore: update deps
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
2019-01-04 10:11:49 -07:00
Jacob Heun
daa26859e0
chore: update contributors 2018-12-14 17:57:31 +01:00
Jacob Heun
fdfb7b4e86
fix: not started yet ()
* fix: callback when not started rather than throwing asserts

* fix: dont remove transports until the switch has stopped

* test: update connection check logic

* test: fix variable reference

* chore: update switch dep

* chore: update switch dep
2018-12-14 17:54:32 +01:00
Jacob Heun
7d78728f54
chore: update contributors 2018-12-04 17:10:52 +01:00
Jacob Heun
7c78faa171
chore: update contributors 2018-12-03 12:56:50 +01:00
Jacob Heun
2a5232b541
chore: update contributors 2018-11-16 14:12:01 +01:00
Jacob Heun
44915b3723
0.24.0-rc.3 2018-11-15 18:59:22 +01:00