1
0
mirror of https://github.com/fluencelabs/js-libp2p synced 2025-03-31 14:51:05 +00:00

21 Commits

Author SHA1 Message Date
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
a1300
b0f124b5ff fix: pubsub configuration ()
* fix: add pubsub default config ()

License: MIT
Signed-off-by: Matthias Knopp <matthias-knopp@gmx.net>

* docs: add default pubsub config to README ()

License: MIT
Signed-off-by: Matthias Knopp <matthias-knopp@gmx.net>

* fix: pass config to provided PubSub ()

License: MIT
Signed-off-by: Matthias Knopp <matthias-knopp@gmx.net>

* docs: adapt pubsub/example for new config ()

License: MIT
Signed-off-by: Matthias Knopp <matthias-knopp@gmx.net>

* Update examples/pubsub/README.md

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

* test: add pubsub config tests ()

License: MIT
Signed-off-by: Matthias Knopp <matthias-knopp@gmx.net>
2019-08-19 17:06:08 +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
f4f3f0f03a
fix: pubsub default config ()
* docs: update browser example pubsub

* docs: fix pubsub example config

* fix: make pubsub default to enabled

This allows for only adding the module to have it enabled. Previously you would have to supply and enable the module which is unncessary for users
2019-07-31 18:47:30 +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
Jacob Heun
f3801f0e6c
fix: dht config () 2019-04-17 15:04:35 +02:00
Jacob Heun
eb5aa03232
fix: allow switch to be configured () 2019-04-12 11:10:09 +02:00
Jacob Heun
01aa44724e
feat: auto dial discovered peers () 2019-04-11 12:44:58 +02:00
Jacob Heun
e52ce66ab7
fix: disable dht by default ()
fix: correct transport config check
2019-03-20 09:12:02 +01:00
Vasco Santos
eb10b5c6d2 chore: disable dht discovery () 2019-03-06 11:21:43 +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
Thomas Eizinger
91e60d4253
feat: prepare for new randomWalk config parameters
As per: https://github.com/libp2p/js-libp2p-kad-dht/issues/76

fix: pass whole dht config into DHT constructor
2019-02-05 12:42:40 +01:00
Vasco Santos
c4cab007af feat: enable dht by default ()
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
7d12eb9e26 feat: allow configurable validators and selectors to the dht ()
* feat: allow configurable validators and selectors to the dht

* chore: remove fallback
2018-11-29 15:10:23 +01:00
Jacob Heun
686379efb0
feat: enable relay by default (no hop) ()
docs: update readme default relay
2018-10-19 16:31:40 +02:00
Jacob Heun
a95389a28e
feat: add delegated peer and content routing support ()
* 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
Vasco Santos
cef3c8b5cc chore: change dependency name from libp2p-railing to libp2p-bootstrap ()
* chore: change dependency name from libp2p-railing to libp2p-bootstrap

* fix: changed require on tests
2018-10-02 15:09:22 +02:00
Alan Shaw
4ad70efb00 fix: remove peer discovery module config checks
Configuration for the peer discovery modules is now optional so this does not need to be validated. This also cleans up the config module to reduce repetition.

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
2018-06-29 23:42:43 +02:00
Alan Shaw
1af5ba9093 fix: typo in fixture and fail for correct reason
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
2018-06-29 23:42:43 +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