Jacob Heun
ed16b69057
chore: update delegate routing deps to fix branches ( #609 )
...
* chore: update delegate routing deps to fix branches
* chore: bump delegate router versions
2020-04-16 15:48:13 +02:00
Jacob Heun
7b56f559cb
chore: update contributors
2020-04-06 13:33:08 +02:00
Jacob Heun
1414e45969
chore: update contributors
2020-03-31 13:47:41 +02:00
dependabot-preview[bot]
afdbe3deac
chore(deps-dev): bump cids from 0.7.5 to 0.8.0 ( #594 )
...
Bumps [cids](https://github.com/multiformats/js-cid ) from 0.7.5 to 0.8.0.
- [Release notes](https://github.com/multiformats/js-cid/releases )
- [Changelog](https://github.com/multiformats/js-cid/blob/master/CHANGELOG.md )
- [Commits](https://github.com/multiformats/js-cid/compare/v0.7.5...v0.8.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-26 09:08:13 +01:00
Vasco Santos
ce58805e90
chore(deps): bump p-settle from 3.1.0 to 4.0.0 ( #581 )
...
Bumps [p-settle](https://github.com/sindresorhus/p-settle ) from 3.1.0 to 4.0.0.
- [Release notes](https://github.com/sindresorhus/p-settle/releases )
- [Commits](https://github.com/sindresorhus/p-settle/compare/v3.1.0...v4.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-05 18:12:58 +01:00
dependabot-preview[bot]
fad9cb22e0
chore(deps): bump p-any from 2.1.0 to 3.0.0 ( #570 )
...
Bumps [p-any](https://github.com/sindresorhus/p-any ) from 2.1.0 to 3.0.0.
- [Release notes](https://github.com/sindresorhus/p-any/releases )
- [Commits](https://github.com/sindresorhus/p-any/compare/v2.1.0...v3.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-26 11:23:26 +01:00
dependabot-preview[bot]
e1b158fbb9
chore(deps-dev): bump sinon from 8.1.1 to 9.0.0 ( #566 )
...
Bumps [sinon](https://github.com/sinonjs/sinon ) from 8.1.1 to 9.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v8.1.1...v9.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-26 11:10:34 +01:00
dependabot-preview[bot]
1837d6e95e
chore(deps-dev): bump aegir from 20.6.1 to 21.3.0 ( #567 )
...
Bumps [aegir](https://github.com/ipfs/aegir ) from 20.6.1 to 21.3.0.
- [Release notes](https://github.com/ipfs/aegir/releases )
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ipfs/aegir/compare/v20.6.1...v21.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-26 10:58:46 +01:00
Vasco Santos
4bce6aa0b9
chore: use libp2p utils ( #559 )
...
* chore: use libp2p utils
* chore: update libp2p-utils
2020-02-18 07:45:26 -05:00
dependabot-preview[bot]
4d11edd62c
chore(deps-dev): bump nock from 11.9.1 to 12.0.0
...
Bumps [nock](https://github.com/nock/nock ) from 11.9.1 to 12.0.0.
- [Release notes](https://github.com/nock/nock/releases )
- [Changelog](https://github.com/nock/nock/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nock/nock/compare/v11.9.1...v12.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-18 07:44:45 -05:00
Jacob Heun
b3d8132ea6
chore: update contributors
2020-02-11 17:15:59 +01:00
Jacob Heun
a317a8b011
fix: dont allow multiaddr dials without a peer id ( #558 )
...
* fix: require peer ids when dialing multiaddrs
* chore: fix lint
* docs: add more info about multiaddr peer ids
2020-02-11 16:32:40 +01:00
Jacob Heun
58c0c7c03e
chore: update contributors
2020-02-05 17:46:41 +01:00
Vasco Santos
5608178247
test: add interop tests job in ci ( #526 )
...
* chore: interop tests in ci
* chore: address review
* chore: use interop release
2020-02-05 12:01:46 +01:00
dependabot-preview[bot]
dcd58693f5
chore(deps): bump err-code from 1.1.2 to 2.0.0
...
Bumps [err-code](https://github.com/IndigoUnited/js-err-code ) from 1.1.2 to 2.0.0.
- [Release notes](https://github.com/IndigoUnited/js-err-code/releases )
- [Commits](https://github.com/IndigoUnited/js-err-code/compare/1.1.2...v2.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-05 11:59:34 +01:00
dependabot-preview[bot]
8bf05e6db6
chore(deps-dev): bump abortable-iterator from 2.1.0 to 3.0.0
...
Bumps [abortable-iterator](https://github.com/alanshaw/abortable-iterator ) from 2.1.0 to 3.0.0.
- [Release notes](https://github.com/alanshaw/abortable-iterator/releases )
- [Commits](https://github.com/alanshaw/abortable-iterator/compare/v2.1.0...v3.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-05 11:58:58 +01:00
dependabot-preview[bot]
0589d53616
chore(deps-dev): bump nock from 10.0.6 to 11.7.2
...
Bumps [nock](https://github.com/nock/nock ) from 10.0.6 to 11.7.2.
- [Release notes](https://github.com/nock/nock/releases )
- [Changelog](https://github.com/nock/nock/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nock/nock/compare/v10.0.6...v11.7.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-05 11:58:38 +01:00
Jacob Heun
56a7842664
chore: update contributors
2020-02-03 15:55:45 +01:00
Jacob Heun
2d6408eb30
chore: update contributors
2020-01-28 13:06:11 +01:00
Jacob Heun
b83880765f
chore: update contributors
2020-01-24 14:40:40 +01:00
Jacob Heun
c1038bec92
fix: use toB58String everywhere to be consistent ( #537 )
...
* chore: update deps
* fix: consistently use b58 peerid string
The migration to base32 will happen at a later date
2020-01-24 14:40:40 +01:00
Jacob Heun
e9d16ba190
chore: update contributors
2020-01-24 14:40:40 +01:00
Alan Shaw
ba4681b312
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-24 14:40:40 +01:00
Jacob Heun
58db09a9d3
chore: update contributors
2020-01-24 14:40:40 +01:00
Jacob Heun
ae5ce9a66f
chore: update contributors
2020-01-24 14:40:40 +01:00
Vasco Santos
f1eb373235
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>
2020-01-24 14:40:40 +01:00
Jacob Heun
dabee00127
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
2020-01-24 14:40:40 +01:00
Vasco Santos
4f7586886c
refactor: ping ( #505 )
...
* refactor: ping
* chore: ping is now a function
* chore: address review
2020-01-24 14:40:40 +01:00
Jacob Heun
71f46bf4a6
chore: it-all over async-iterator-all
2020-01-24 14:40:40 +01:00
Jacob Heun
1db69c5f27
chore: remove unused packages
2020-01-24 14:40:40 +01:00
Jacob Heun
633b0c291f
fix: clean up pending dials abort per feedback
2020-01-24 14:40:40 +01:00
Jacob Heun
85988cfaab
chore: fix lint
...
test: reduce interval of randomwalk in test
chore(test): glob fix
2020-01-24 14:40:40 +01:00
Jacob Heun
6b1da8326f
test(fix): fix support for it.only, it.skip, etc
2020-01-24 14:40:40 +01:00
Jacob Heun
7ac5e42a1a
chore: fix linting
2020-01-24 14:40:40 +01:00
Jacob Heun
e1e3be8106
refactor: simplify DialRequest logic per feedback
2020-01-24 14:40:40 +01:00
Jacob Heun
b7432bd02b
chore: use any-signal module
2020-01-24 14:40:40 +01:00
Jacob Heun
e445a17278
feat: add token based dialer
2020-01-24 14:40:40 +01:00
Vasco Santos
9a6e07d70b
chore: update pubsub implementations ( #493 )
2020-01-24 14:40:40 +01:00
Vasco Santos
a020db183a
refactor: async routing ( #489 )
...
* feat: async routing
* chore: put dht extra api commands under content routing
* chore: add default option to createPeerInfo
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: address review
* chore: rm dlv
2020-01-24 14:40:40 +01:00
Jacob Heun
f77ce39484
refactor: circuit relay to async ( #477 )
...
* refactor: add dialing over relay support
* chore: fix lint
* fix: dont clear listeners on close
* fix: if dial errors already have codes, just rethrow them
* fix: clear the registrar when libp2p stops
* fix: improve connection maintenance with circuit
* chore: correct feedback
* test: use chai as promised
* test(fix): reset multiaddrs on dial test
2020-01-24 14:40:40 +01:00
Vasco Santos
18a062ed12
feat: discovery modules ( #486 )
...
* feat: discovery modules
* chore: address review
2020-01-24 14:40:40 +01:00
Vasco Santos
c563e06a60
refactor: dht async/await ( #480 )
...
* refactor: core async (#478 )
* refactor: cleanup core
test: auto dial on startup
* fix: make hangup work properly
* chore: fix lint
* chore: apply suggestions from code review
Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
* fix: provide libp2p dialer to the dht
* chore: use dht release
2020-01-24 14:40:40 +01:00
Jacob Heun
f28b09fc0d
refactor: update secio and tests to use it ( #484 )
...
* refactor: use async secio
* test: add secio to most test suites
* chore: update secio version
2020-01-24 14:40:40 +01:00
Vasco Santos
bcad60995e
chore: use gossipsub release ( #479 )
2020-01-24 14:40:40 +01:00
Vasco Santos
432b0997ae
refactor: pubsub ( #467 )
...
* feat: peer-store v0
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
* chore: address review
* refactor: pubsub subsystem
* chore: address review
* chore: use topology interface
* chore: address review
* chore: address review
* chore: simplify tests
2020-01-24 14:40:40 +01:00
Jacob Heun
2afdbb71b2
chore: update it-length-prefixed ( #476 )
...
fix: decode.fromReader usage
2020-01-24 14:40:40 +01:00
Jacob Heun
c7a54f34f7
refactor: async identify and identify push ( #473 )
...
* chore: add missing dep
* feat: import from identify push branch
https://github.com/libp2p/js-libp2p-identify/tree/feat/identify-push
* feat: add the connection to stream handlers
* refactor: identify to async/await
* chore: fix lint
* test: add identify tests
* refactor: add identify to the dialer flow
* feat: connect identify to the registrar
* fix: resolve review feedback
* fix: perform identify push when our protocols change
2020-01-24 14:40:40 +01:00
Vasco Santos
582094a834
feat: peer store ( #470 )
...
* feat: peer-store v0
* chore: apply suggestions from code review
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
2020-01-24 14:40:40 +01:00
Jacob Heun
fe2a8eddbb
refactor: crypto and pnet ( #469 )
...
* feat: add initial plaintext 2 module
* refactor: initial refactor of pnet
* chore: fix lint
* fix: update plaintext api usage
* test: use plaintext for test crypto
* chore: update deps
test: update dialer suite scope
* feat: add connection protection to the upgrader
* refactor: cleanup and lint fix
* chore: remove unncessary transforms
* chore: temporarily disable bundlesize
* chore: add missing dep
* fix: use it-handshake to prevent overreading
* chore(fix): PR feedback updates
* chore: apply suggestions from code review
Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
2020-01-24 14:40:40 +01:00
Jacob Heun
5e1dbc21a2
refactor(async): add dialer and upgrader ( #462 )
...
* chore(deps): update connection and multistream
* feat: add basic dial support for addresses and peers
* test: automatically require all node test files
* fix: dont catch and log in the wrong place
* test: add direct spec test
fix: improve dial error consistency
* feat: add dial timeouts and concurrency
Queue timeouts will result in aborts of the dials
* chore: fix linting
* test: verify dialer defaults
* feat: add initial upgrader
* fix: add more test coverage and fix bugs
* feat: libp2p creates the upgrader
* feat: hook up handle to the upgrader
* feat: hook up the dialer to libp2p
test: add node dialer libp2p tests
* feat: add connection listeners to upgrader
* feat: emit connect and disconnect events
* chore: use libp2p-interfaces
* fix: address review feedback
* fix: correct import
* refactor: dedupe connection creation code
2020-01-24 14:40:40 +01:00