libp2p 0.46.21-05b52d69c → 0.46.21-0b4a2ee79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -40
- package/dist/index.min.js +40 -28
- package/dist/src/connection/index.d.ts +2 -2
- package/dist/src/connection/index.d.ts.map +1 -1
- package/dist/src/connection/index.js +2 -2
- package/dist/src/connection/index.js.map +1 -1
- package/dist/src/connection-manager/constants.defaults.d.ts +0 -4
- package/dist/src/connection-manager/constants.defaults.d.ts.map +1 -1
- package/dist/src/connection-manager/constants.defaults.js +0 -4
- package/dist/src/connection-manager/constants.defaults.js.map +1 -1
- package/dist/src/connection-manager/dial-queue.d.ts +0 -2
- package/dist/src/connection-manager/dial-queue.d.ts.map +1 -1
- package/dist/src/connection-manager/dial-queue.js +4 -11
- package/dist/src/connection-manager/dial-queue.js.map +1 -1
- package/dist/src/connection-manager/index.d.ts +0 -7
- package/dist/src/connection-manager/index.d.ts.map +1 -1
- package/dist/src/connection-manager/index.js +1 -2
- package/dist/src/connection-manager/index.js.map +1 -1
- package/dist/src/upgrader.d.ts +1 -2
- package/dist/src/upgrader.d.ts.map +1 -1
- package/dist/src/upgrader.js +50 -21
- package/dist/src/upgrader.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +23 -23
- package/src/connection/index.ts +2 -3
- package/src/connection-manager/constants.defaults.ts +0 -5
- package/src/connection-manager/dial-queue.ts +3 -12
- package/src/connection-manager/index.ts +1 -10
- package/src/upgrader.ts +76 -25
- package/src/version.ts +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<h1 align="center">
|
|
2
|
-
<a href="https://libp2p.io"><img width="250" src="https://github.com/libp2p/js-libp2p/blob/
|
|
2
|
+
<a href="https://libp2p.io"><img width="250" src="https://github.com/libp2p/js-libp2p/blob/main/img/libp2p.png?raw=true" alt="libp2p hex logo" /></a>
|
|
3
3
|
</h1>
|
|
4
4
|
|
|
5
5
|
<h3 align="center">The JavaScript implementation of the libp2p Networking Stack.</h3>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</p>
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
19
|
-
<a href="https://github.com/libp2p/js-libp2p/actions?query=branch%3Amaster+workflow%3Aci+"><img src="https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=
|
|
19
|
+
<a href="https://github.com/libp2p/js-libp2p/actions?query=branch%3Amaster+workflow%3Aci+"><img src="https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=main&label=ci&style=flat-square" /></a>
|
|
20
20
|
<a href="https://codecov.io/gh/libp2p/js-libp2p"><img src="https://img.shields.io/codecov/c/github/libp2p/js-libp2p/master.svg?style=flat-square"></a>
|
|
21
21
|
<br>
|
|
22
22
|
<a href="https://github.com/feross/standard"><img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square"></a>
|
|
@@ -72,7 +72,7 @@ To sum up, libp2p is a "network stack" -- a protocol suite -- that cleanly separ
|
|
|
72
72
|
|
|
73
73
|
# Roadmap
|
|
74
74
|
|
|
75
|
-
The js-libp2p roadmap can be found here: <https://github.com/libp2p/js-libp2p/blob/
|
|
75
|
+
The js-libp2p roadmap can be found here: <https://github.com/libp2p/js-libp2p/blob/main/ROADMAP.md>
|
|
76
76
|
|
|
77
77
|
It represents current projects the js-libp2p maintainers are focused on and provides an estimation of completion targets.
|
|
78
78
|
|
|
@@ -128,43 +128,42 @@ List of packages currently in existence for libp2p
|
|
|
128
128
|
|
|
129
129
|
> This table is generated using the module `package-table` with `package-table --data=package-list.json`.
|
|
130
130
|
|
|
131
|
-
| Package
|
|
132
|
-
|
|
|
133
|
-
| **libp2p**
|
|
134
|
-
| [`libp2p`](//github.com/libp2p/js-libp2p)
|
|
135
|
-
| [`@libp2p/interface`](//github.com/libp2p/js-libp2p
|
|
136
|
-
| **transports**
|
|
137
|
-
| [`@libp2p/tcp`](//github.com/libp2p/js-libp2p-tcp)
|
|
138
|
-
| [`@libp2p/webrtc`](//github.com/libp2p/js-libp2p-webrtc)
|
|
139
|
-
| [`@libp2p/websockets`](//github.com/libp2p/js-libp2p-websockets)
|
|
140
|
-
| [`@libp2p/webtransport`](//github.com/libp2p/js-libp2p-webtransport)
|
|
141
|
-
| **secure channels**
|
|
142
|
-
| [`@chainsafe/libp2p-noise`](//github.com/ChainSafe/js-libp2p-noise)
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
| [`@
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
| [`@libp2p/
|
|
149
|
-
| [`@libp2p/
|
|
150
|
-
| [`@
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
| [`@libp2p/
|
|
154
|
-
| [`@libp2p/delegated-content-routing`](//github.com/libp2p/js-libp2p-delegated-content-routing) | [
|
|
158
|
-
| [`@libp2p/kad-dht`](//github.com/libp2p/js-libp2p
|
|
159
|
-
| **utilities**
|
|
160
|
-
| [`@libp2p/crypto`](//github.com/libp2p/js-libp2p
|
|
161
|
-
| **data types**
|
|
162
|
-
| [`@libp2p/peer-id`](//github.com/libp2p/js-libp2p
|
|
163
|
-
| [`@libp2p/record`](//github.com/libp2p/js-libp2p-record)
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
| [`@
|
|
167
|
-
| [`@libp2p/floodsub`](//github.com/libp2p/js-libp2p-floodsub) | [](//github.com/libp2p/js-libp2p-floodsub/releases) | [](//libraries.io/npm/%40libp2p%2Ffloodsub) | [](//github.com/libp2p/js-libp2p-floodsub/actions?query=branch%3Amaster+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p-floodsub) |
|
|
131
|
+
| Package | Version | Deps | CI | Coverage |
|
|
132
|
+
| ---------|---------|---------|---------|--------- |
|
|
133
|
+
| **libp2p** |
|
|
134
|
+
| [`libp2p`](//github.com/libp2p/js-libp2p) | [](//github.com/libp2p/js-libp2p/releases) | [](//libraries.io/npm/libp2p) | [](//github.com/libp2p/js-libp2p/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p) |
|
|
135
|
+
| [`@libp2p/interface`](//github.com/libp2p/js-libp2p/tree/main/packages/interface) | [](//github.com/libp2p/js-libp2p/tree/main/packages/interface/releases) | [](//libraries.io/npm/%40libp2p%2Finterface) | [](//github.com/libp2p/js-libp2p/tree/main/packages/interface/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/interface) |
|
|
136
|
+
| **transports** |
|
|
137
|
+
| [`@libp2p/tcp`](//github.com/libp2p/js-libp2p/tree/main/packages/transport-tcp) | [](//github.com/libp2p/js-libp2p/tree/main/packages/transport-tcp/releases) | [](//libraries.io/npm/%40libp2p%2Ftcp) | [](//github.com/libp2p/js-libp2p/tree/main/packages/transport-tcp/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/transport-tcp) |
|
|
138
|
+
| [`@libp2p/webrtc`](//github.com/libp2p/js-libp2p/tree/main/packages/transport-webrtc) | [](//github.com/libp2p/js-libp2p/tree/main/packages/transport-webrtc/releases) | [](//libraries.io/npm/%40libp2p%2Fwebrtc) | [](//github.com/libp2p/js-libp2p/tree/main/packages/transport-webrtc/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/transport-webrtc) |
|
|
139
|
+
| [`@libp2p/websockets`](//github.com/libp2p/js-libp2p/tree/main/packages/transport-websockets) | [](//github.com/libp2p/js-libp2p/tree/main/packages/transport-websockets/releases) | [](//libraries.io/npm/%40libp2p%2Fwebsockets) | [](//github.com/libp2p/js-libp2p/tree/main/packages/transport-websockets/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/transport-websockets) |
|
|
140
|
+
| [`@libp2p/webtransport`](//github.com/libp2p/js-libp2p/tree/main/packages/transport-webtransport) | [](//github.com/libp2p/js-libp2p/tree/main/packages/transport-webtransport/releases) | [](//libraries.io/npm/%40libp2p%2Fwebtransport) | [](//github.com/libp2p/js-libp2p/tree/main/packages/transport-webtransport/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/transport-webtransport) |
|
|
141
|
+
| **secure channels** |
|
|
142
|
+
| [`@chainsafe/libp2p-noise`](//github.com/ChainSafe/js-libp2p-noise) | [](//github.com/ChainSafe/js-libp2p-noise/releases) | [](//libraries.io/npm/%40chainsafe%2Flibp2p-noise) | [](//github.com/ChainSafe/js-libp2p-noise/actions?query=branch%3Amaster+workflow%3Aci+) | [](https://codecov.io/gh/ChainSafe/js-libp2p-noise) |
|
|
143
|
+
| [`@libp2p/plaintext`](//github.com/libp2p/js-libp2p/tree/main/packages/connection-encrypter-plaintext) | [](//github.com/libp2p/js-libp2p/tree/main/packages/connection-encrypter-plaintext/releases) | [](//libraries.io/npm/%40libp2p%2Fplaintext) | [](//github.com/libp2p/js-libp2p/tree/main/packages/connection-encrypter-plaintext/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/connection-encrypter-plaintext) |
|
|
144
|
+
| **stream multiplexers** |
|
|
145
|
+
| [`@libp2p/mplex`](//github.com/libp2p/js-libp2p/tree/main/packages/stream-multiplexer-mplex) | [](//github.com/libp2p/js-libp2p/tree/main/packages/stream-multiplexer-mplex/releases) | [](//libraries.io/npm/%40libp2p%2Fmplex) | [](//github.com/libp2p/js-libp2p/tree/main/packages/stream-multiplexer-mplex/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/stream-multiplexer-mplex) |
|
|
146
|
+
| [`@chainsafe/libp2p-yamux`](//github.com/ChainSafe/js-libp2p-yamux) | [](//github.com/ChainSafe/js-libp2p-yamux/releases) | [](//libraries.io/npm/%40chainsafe%2Flibp2p-yamux) | [](//github.com/ChainSafe/js-libp2p-yamux/actions?query=branch%3Amaster+workflow%3Aci+) | [](https://codecov.io/gh/ChainSafe/js-libp2p-yamux) |
|
|
147
|
+
| **peer discovery** |
|
|
148
|
+
| [`@libp2p/bootstrap`](//github.com/libp2p/js-libp2p/tree/main/packages/peer-discovery-bootstrap) | [](//github.com/libp2p/js-libp2p/tree/main/packages/peer-discovery-bootstrap/releases) | [](//libraries.io/npm/%40libp2p%2Fbootstrap) | [](//github.com/libp2p/js-libp2p/tree/main/packages/peer-discovery-bootstrap/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/peer-discovery-bootstrap) |
|
|
149
|
+
| [`@libp2p/kad-dht`](//github.com/libp2p/js-libp2p/tree/main/packages/kad-dht) | [](//github.com/libp2p/js-libp2p/tree/main/packages/kad-dht/releases) | [](//libraries.io/npm/%40libp2p%2Fkad-dht) | [](//github.com/libp2p/js-libp2p/tree/main/packages/kad-dht/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/kad-dht) |
|
|
150
|
+
| [`@libp2p/mdns`](//github.com/libp2p/js-libp2p/tree/main/packages/peer-discovery-mdns) | [](//github.com/libp2p/js-libp2p/tree/main/packages/peer-discovery-mdns/releases) | [](//libraries.io/npm/%40libp2p%2Fmdns) | [](//github.com/libp2p/js-libp2p/tree/main/packages/peer-discovery-mdns/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/peer-discovery-mdns) |
|
|
151
|
+
| [`@chainsafe/discv5`](//github.com/ChainSafe/discv5) | [](//github.com/ChainSafe/discv5/releases) | [](//libraries.io/npm/%40chainsafe%2Fdiscv5) | [](//github.com/ChainSafe/discv5/actions?query=branch%3Amaster+workflow%3Aci+) | [](https://codecov.io/gh/ChainSafe/discv5) |
|
|
152
|
+
| **content routing** |
|
|
153
|
+
| [`@libp2p/http-v1-content-routing`](//github.com/libp2p/js-http-v1-content-routing) | [](//github.com/libp2p/js-http-v1-content-routing/releases) | [](//libraries.io/npm/%40libp2p%2Fhttp-v1-content-routing) | [](//github.com/libp2p/js-http-v1-content-routing/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-http-v1-content-routing) |
|
|
154
|
+
| [`@libp2p/delegated-content-routing`](//github.com/libp2p/js-libp2p-delegated-content-routing) | [](//github.com/libp2p/js-libp2p-delegated-content-routing/releases) | [](//libraries.io/npm/%40libp2p%2Fdelegated-content-routing) | [](//github.com/libp2p/js-libp2p-delegated-content-routing/actions?query=branch%3Amaster+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p-delegated-content-routing) |
|
|
155
|
+
| [`@libp2p/kad-dht`](//github.com/libp2p/js-libp2p/tree/main/packages/kad-dht) | [](//github.com/libp2p/js-libp2p/tree/main/packages/kad-dht/releases) | [](//libraries.io/npm/%40libp2p%2Fkad-dht) | [](//github.com/libp2p/js-libp2p/tree/main/packages/kad-dht/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/kad-dht) |
|
|
156
|
+
| **peer routing** |
|
|
157
|
+
| [`@libp2p/delegated-peer-routing`](//github.com/libp2p/js-libp2p-delegated-peer-routing) | [](//github.com/libp2p/js-libp2p-delegated-peer-routing/releases) | [](//libraries.io/npm/%40libp2p%2Fdelegated-peer-routing) | [](//github.com/libp2p/js-libp2p-delegated-peer-routing/actions?query=branch%3Amaster+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p-delegated-peer-routing) |
|
|
158
|
+
| [`@libp2p/kad-dht`](//github.com/libp2p/js-libp2p/tree/main/packages/kad-dht) | [](//github.com/libp2p/js-libp2p/tree/main/packages/kad-dht/releases) | [](//libraries.io/npm/%40libp2p%2Fkad-dht) | [](//github.com/libp2p/js-libp2p/tree/main/packages/kad-dht/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/kad-dht) |
|
|
159
|
+
| **utilities** |
|
|
160
|
+
| [`@libp2p/crypto`](//github.com/libp2p/js-libp2p/tree/main/packages/crypto) | [](//github.com/libp2p/js-libp2p/tree/main/packages/crypto/releases) | [](//libraries.io/npm/%40libp2p%2Fcrypto) | [](//github.com/libp2p/js-libp2p/tree/main/packages/crypto/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/crypto) |
|
|
161
|
+
| **data types** |
|
|
162
|
+
| [`@libp2p/peer-id`](//github.com/libp2p/js-libp2p/tree/main/packages/peer-id) | [](//github.com/libp2p/js-libp2p/tree/main/packages/peer-id/releases) | [](//libraries.io/npm/%40libp2p%2Fpeer-id) | [](//github.com/libp2p/js-libp2p/tree/main/packages/peer-id/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/peer-id) |
|
|
163
|
+
| [`@libp2p/peer-record`](//github.com/libp2p/js-libp2p/tree/main/packages/peer-record) | [](//github.com/libp2p/js-libp2p/tree/main/packages/peer-record/releases) | [](//libraries.io/npm/%40libp2p%2Fpeer-record) | [](//github.com/libp2p/js-libp2p/tree/main/packages/peer-record/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/peer-record) |
|
|
164
|
+
| **pubsub** |
|
|
165
|
+
| [`@ChainSafe/libp2p-gossipsub`](//github.com/ChainSafe/js-libp2p-gossipsub) | [](//github.com/ChainSafe/js-libp2p-gossipsub/releases) | [](//libraries.io/npm/%40ChainSafe%2Flibp2p-gossipsub) | [](//github.com/ChainSafe/js-libp2p-gossipsub/actions?query=branch%3Amaster+workflow%3Aci+) | [](https://codecov.io/gh/ChainSafe/js-libp2p-gossipsub) |
|
|
166
|
+
| [`@libp2p/floodsub`](//github.com/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub) | [](//github.com/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub/releases) | [](//libraries.io/npm/%40libp2p%2Ffloodsub) | [](//github.com/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub/actions?query=branch%3Amain+workflow%3Aci+) | [](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub) |
|
|
168
167
|
|
|
169
168
|
# Used by
|
|
170
169
|
|