Vasco Santos
4dbc6a4dd8
chore: use fixed gossipsub
2020-01-13 16:32:12 +01:00
Alan Shaw
c44e6e33ed
fix: stop discoveries ( #530 )
...
* fix: stop discoveries
* test: add discovery stop test
* chore: fix lint
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-01-07 16:27:32 +01:00
Jacob Heun
999d086278
chore: release version v0.27.0-pre.2
v0.27.0-pre.2
2020-01-07 15:31:13 +01:00
Jacob Heun
122a114d96
chore: update contributors
2020-01-07 15:30:59 +01:00
Vasco Santos
21362b5cbe
refactor: examples transports ( #503 )
...
* refactor: examples-transports
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: address review
* chore: address review
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-01-07 14:56:05 +01:00
Vasco Santos
0840739a00
refactor: examples/pnet ( #523 )
...
* refactor: examples/pnet
* chore: rename pnet-ipfs to pnet
* chore: address review
2020-01-07 14:53:27 +01:00
Vasco Santos
f182f5bcd9
refactor: examples/discovery-mechanisms ( #498 )
...
* refactor: examples-discovery-mechanisms
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: suggestion interval
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: add peer connected event
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-01-06 10:01:28 -07:00
Alan Shaw
a1717dac6a
fix: conn mngr min/max connection values ( #528 )
...
Fixes the case when options are passed with `maxConnections` and/or `minConnections` set to `undefined`:
```console
{
defaultOptions: {
maxConnections: Infinity,
minConnections: 0,
maxData: Infinity,
maxSentData: Infinity,
maxReceivedData: Infinity,
maxEventLoopDelay: Infinity,
pollInterval: 2000,
movingAverageInterval: 60000,
defaultPeerValue: 1
},
options: {
minPeers: 25,
maxConnections: undefined,
minConnections: undefined
}
}
{ maxConnections: undefined, minConnections: undefined }
1) "before all" hook in "custom config"
(node:67176) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION]: Connection Manager maxConnections must be greater than minConnections
at new ConnectionManager (node_modules/libp2p/src/connection-manager/index.js:43:5)
at new Libp2p (node_modules/libp2p/src/index.js:92:30)
at Object.module.exports [as libp2p] (src/core/components/libp2p.js:27:10)
at Proxy.start (src/core/components/start.js:48:31)
at async Daemon.start (src/cli/daemon.js:63:31)
at async startHttpAPI (test/http-api/routes.js:29:5)
at async Context.<anonymous> (test/http-api/routes.js:48:7)
```
2020-01-06 07:03:07 -07:00
Vasco Santos
dec8dc450f
refactor: examples/protocol-and-stream-muxing ( #502 )
2020-01-02 21:51:02 +01:00
Jacob Heun
0d4b2bd23d
feat: allow transport options to be passed on creation ( #524 )
...
* feat: allow transport options to be passed on creation
* fix: only add circuit transport if enabled
* chore: fix lint
2019-12-20 08:32:46 -08:00
Vasco Santos
fdb48c8df5
refactor: examples/peer-and-content-routing ( #500 )
...
* refactor: examples-peer-and-content-routing
* chore: address review
* chore: review suggestions
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
2019-12-18 03:37:36 +01:00
Vasco Santos
506af15b6b
refactor: examples/encrypted-communications ( #499 )
...
* refactor: examples/encrypted-communications
* chore: address review
2019-12-18 03:35:49 +01:00
Vasco Santos
9f0f08f586
refactor: examples-pubsub ( #504 )
2019-12-16 23:28:35 +01:00
Jacob Heun
6ca19c5ef4
feat: add libp2p.connections getter ( #522 )
...
* fix: make hangup accept what the API says it does
* feat: add libp2p.connections getter
* chore: fix typo
2019-12-16 19:24:35 +01:00
Jacob Heun
24c3ce6f8d
fix: make dialer configurable ( #521 )
...
docs: update configuration and api docs
2019-12-16 16:49:29 +01:00
Vasco Santos
56a1825639
fix: upgrader should not need muxers ( #517 )
...
* fix: upgrader should not need muxers
* chore: address review
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
2019-12-16 12:26:38 +01:00
Jacob Heun
92ed56657c
chore: release version v0.27.0-pre.1
v0.27.0-pre.1
2019-12-15 17:36:47 +01:00
Jacob Heun
9900beb243
chore: update contributors
2019-12-15 17:36:46 +01:00
Jacob Heun
4a871bbf8b
feat: coalescing dial support ( #518 )
...
* docs: fix spelling in api
* fix: dont create peerstore twice
* feat: add support for dial coalescing
* doc(fix): add setPeerValue to API TOC
* docs: add more jsdocs to dialer
* chore: remove old comment
* fix: ensure connections are closed
* fix: registrar.getConnections returns first open conn
* fix: directly set the closed status
* chore: remove unneeded log
* refactor: peerStore.put takes an options object
2019-12-15 17:33:16 +01:00
Alan Shaw
a39889c4ea
docs: add ToC link to pubsub.unsubscribe
2019-12-13 10:50:06 +01:00
Alan Shaw
9bbe93c772
docs: fix the ToC links ( #515 )
2019-12-12 18:40:40 +01:00
Vasco Santos
cc65a4b06f
chore: update readme ( #513 )
2019-12-12 13:08:06 +01:00
Jacob Heun
9c884a72b0
chore: release version v0.27.0-pre.0
v0.27.0-pre.0
2019-12-12 10:43:18 +01:00
Jacob Heun
3ee1e22242
chore: update contributors
2019-12-12 10:43:17 +01:00
Jacob Heun
45f47023d2
refactor: connection manager ( #511 )
...
* refactor: initial refactor of the connection manager
* fix: start/stop issues
* fix: add tests and resolve pruning issues
* chore: fix lint
* test: move conn manager tests to node only for now
* chore: apply suggestions from code review
Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
* fix: assert min max connection options
* test: fix assertion check for browser
* docs: add api and config docs for conn manager
2019-12-12 10:29:10 +01:00
Vasco Santos
af96dcc499
feat: discovery modules from transports should be added ( #510 )
...
* feat: discovery modules from transports should be added
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: address review
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
2019-12-12 10:29:10 +01:00
Jacob Heun
f540112835
refactor: stats ( #501 )
...
* docs: add initial notes on stats
* feat: initial refactor of stats to metrics
* feat: add support for placeholder metrics
This is helpful for tracking metrics prior to knowing the remote peers id
* fix: add metrics tests and fix issues
* fix: always clear the dial timeout timer
* docs: add metrics to api doc
* chore: apply suggestions from code review
Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
* docs: update metrics docs
* fix: call metrics.onDisconnect
* docs(config): add example headers so they appear in the TOC
* docs(config): add metrics configuration
* docs(relay): fix relay configuration docs
2019-12-12 10:29:10 +01:00
Vasco Santos
3d30cb18cd
docs: config ( #495 )
...
* docs: new api
* chore: new iteration
* chore: apply suggestions from code review
Co-Authored-By: Alan Shaw <alan.shaw@protocol.ai>
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: address review
* docs: add events
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* docs: configuration
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: update peer routing description
Co-Authored-By: Yusef Napora <yusef@protocol.ai>
* chore: decouple examples
* chore: address pr comment
* fix: connection encryption is required
* chore: apply review suggestion
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
2019-12-12 10:29:10 +01:00
Vasco Santos
64cbf90e02
refactor: ping ( #505 )
...
* refactor: ping
* chore: ping is now a function
* chore: address review
2019-12-12 10:29:10 +01:00
Jacob Heun
7fc1900343
chore: it-all over async-iterator-all
2019-12-12 10:29:09 +01:00
Jacob Heun
ad15d4ed09
chore: add bundlesize check back to ci
2019-12-12 10:29:09 +01:00
Jacob Heun
600f761009
chore: remove uneeded dep check exclusions
2019-12-12 10:29:09 +01:00
Jacob Heun
a2f31d99d2
chore: disable pull dep check until ping is refactored
2019-12-12 10:29:09 +01:00
Jacob Heun
edaa67dfd0
chore: remove unused packages
2019-12-12 10:29:09 +01:00
Jacob Heun
9b10e09cc0
chore: move stats folder and delete old switch code
2019-12-12 10:29:09 +01:00
Vasco Santos
8c6ad79630
docs: new api ( #472 )
...
* docs: new api
* chore: new iteration
* chore: apply suggestions from code review
Co-Authored-By: Alan Shaw <alan.shaw@protocol.ai>
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: address review
* docs: add events
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
2019-12-12 10:29:08 +01:00
Jacob Heun
1838a641d9
fix: token release logic
2019-12-12 10:29:08 +01:00
Jacob Heun
3cadeb39cb
test: bump delay for ci
2019-12-12 10:29:08 +01:00
Jacob Heun
43440aa8a6
fix: release tokens as soon as they are available
2019-12-12 10:29:08 +01:00
Jacob Heun
7c3371bf17
fix: clean up pending dials abort per feedback
2019-12-12 10:29:08 +01:00
Jacob Heun
43b98e64b6
docs: add DialRequest description
2019-12-12 10:29:07 +01:00
Jacob Heun
962081f448
test: remove timeout
2019-12-12 10:29:07 +01:00
Jacob Heun
754fbc2d0b
feat: abort all pending dials on stop
2019-12-12 10:29:07 +01:00
Jacob Heun
0a8f9f3238
test: reduce randomwalk timeout
2019-12-12 10:29:07 +01:00
Jacob Heun
3b52236dee
chore: fix lint
...
test: reduce interval of randomwalk in test
chore(test): glob fix
2019-12-12 10:29:07 +01:00
Jacob Heun
c7dcfe5e48
test: add tests for DialRequest
2019-12-12 10:29:06 +01:00
Jacob Heun
3b06283ad8
test(fix): fix support for it.only, it.skip, etc
2019-12-12 10:29:06 +01:00
Jacob Heun
74bfe6bea5
docs(release): point to libp2p weekly sync
2019-12-12 10:29:06 +01:00
Jacob Heun
53ce404260
chore: update per feedback
2019-12-12 10:29:06 +01:00
Jacob Heun
43a3b85f1a
refactor: cleanup and reorganize
2019-12-12 10:29:06 +01:00