@libp2p/circuit-relay-v2 4.1.7 → 4.2.0-90100be0c

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.
@@ -1,10 +1,10 @@
1
1
  import { serviceCapabilities, serviceDependencies, transportSymbol } from '@libp2p/interface';
2
2
  import { ReservationStore } from './reservation-store.js';
3
3
  import type { CircuitRelayTransportComponents, CircuitRelayTransportInit } from '../index.ts';
4
- import type { Transport, CreateListenerOptions, Listener, Connection, Stream, OutboundConnectionUpgradeEvents, DialTransportOptions, OpenConnectionProgressEvents } from '@libp2p/interface';
4
+ import type { Transport, CreateListenerOptions, Listener, Connection, Stream, DialTransportOptions, OpenConnectionProgressEvents, NewStreamProgressEvents } from '@libp2p/interface';
5
5
  import type { Multiaddr } from '@multiformats/multiaddr';
6
6
  import type { ProgressEvent } from 'progress-events';
7
- export type CircuitRelayDialEvents = OutboundConnectionUpgradeEvents | OpenConnectionProgressEvents | ProgressEvent<'circuit-relay:open-connection'> | ProgressEvent<'circuit-relay:reuse-connection'> | ProgressEvent<'circuit-relay:open-hop-stream'> | ProgressEvent<'circuit-relay:write-connect-message'> | ProgressEvent<'circuit-relay:read-connect-response'>;
7
+ export type CircuitRelayDialEvents = OpenConnectionProgressEvents | NewStreamProgressEvents | ProgressEvent<'circuit-relay:open-connection'> | ProgressEvent<'circuit-relay:reuse-connection'> | ProgressEvent<'circuit-relay:open-hop-stream'> | ProgressEvent<'circuit-relay:write-connect-message'> | ProgressEvent<'circuit-relay:read-connect-response'>;
8
8
  export declare class CircuitRelayTransport implements Transport<CircuitRelayDialEvents> {
9
9
  private readonly components;
10
10
  private readonly discovery?;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transport/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,mBAAmB,EAAE,mBAAmB,EAAe,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAc1I,OAAO,EAAE,gBAAgB,E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G;IACH,UAAU,CAAE,UAAU,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE;IAQjD;;OAEG;IACG,MAAM,CAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CA+FrE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/circuit-relay-v2",
3
- "version": "4.1.7",
3
+ "version": "4.2.0-90100be0c",
4
4
  "description": "Implementation of Circuit Relay v2",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-circuit-relay-v2#readme",
@@ -45,27 +45,27 @@
45
45
  "doc-check": "aegir doc-check"
46
46
  },
47
47
  "dependencies": {
48
- "@libp2p/crypto": "^5.1.14",
49
- "@libp2p/interface": "^3.1.1",
50
- "@libp2p/interface-internal": "^3.0.14",
51
- "@libp2p/peer-collections": "^7.0.14",
52
- "@libp2p/peer-id": "^6.0.5",
53
- "@libp2p/peer-record": "^9.0.6",
54
- "@libp2p/utils": "^7.0.14",
48
+ "@libp2p/crypto": "5.1.15-90100be0c",
49
+ "@libp2p/interface": "3.2.0-90100be0c",
50
+ "@libp2p/interface-internal": "3.1.0-90100be0c",
51
+ "@libp2p/peer-collections": "7.0.15-90100be0c",
52
+ "@libp2p/peer-id": "6.0.6-90100be0c",
53
+ "@libp2p/peer-record": "9.0.7-90100be0c",
54
+ "@libp2p/utils": "7.0.15-90100be0c",
55
55
  "@multiformats/multiaddr": "^13.0.1",
56
56
  "@multiformats/multiaddr-matcher": "^3.0.1",
57
57
  "any-signal": "^4.1.1",
58
58
  "main-event": "^1.0.1",
59
59
  "multiformats": "^13.4.0",
60
60
  "nanoid": "^5.1.5",
61
- "progress-events": "^1.0.1",
61
+ "progress-events": "^1.1.0",
62
62
  "protons-runtime": "^6.0.1",
63
63
  "retimeable-signal": "^1.0.1",
64
64
  "uint8arraylist": "^2.4.8",
65
65
  "uint8arrays": "^5.1.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@libp2p/logger": "^6.2.3",
68
+ "@libp2p/logger": "6.2.4-90100be0c",
69
69
  "aegir": "^47.0.22",
70
70
  "delay": "^7.0.0",
71
71
  "it-all": "^3.0.9",
@@ -15,7 +15,7 @@ import { createListener } from './listener.js'
15
15
  import { ReservationStore } from './reservation-store.js'
16
16
  import { streamToMaConnection } from './stream-to-conn.js'
17
17
  import type { CircuitRelayTransportComponents, CircuitRelayTransportInit } from '../index.ts'
18
- import type { Transport, CreateListenerOptions, Listener, Logger, Connection, Stream, OutboundConnectionUpgradeEvents, DialTransportOptions, OpenConnectionProgressEvents } from '@libp2p/interface'
18
+ import type { Transport, CreateListenerOptions, Listener, Logger, Connection, Stream, DialTransportOptions, OpenConnectionProgressEvents, NewStreamProgressEvents } from '@libp2p/interface'
19
19
  import type { Multiaddr } from '@multiformats/multiaddr'
20
20
  import type { ProgressEvent } from 'progress-events'
21
21
 
@@ -40,8 +40,8 @@ const defaults = {
40
40
  }
41
41
 
42
42
  export type CircuitRelayDialEvents =
43
- OutboundConnectionUpgradeEvents |
44
43
  OpenConnectionProgressEvents |
44
+ NewStreamProgressEvents |
45
45
  ProgressEvent<'circuit-relay:open-connection'> |
46
46
  ProgressEvent<'circuit-relay:reuse-connection'> |
47
47
  ProgressEvent<'circuit-relay:open-hop-stream'> |
@@ -1,41 +0,0 @@
1
- {
2
- "LimitDataFieldEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.Limit.LimitDataFieldEvent.html",
3
- "LimitDurationFieldEvent": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.Limit.LimitDurationFieldEvent.html",
4
- "codec": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit-relay-v2.Limit.codec.html",
5
- "decode": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit-relay-v2.Limit.decode.html",
6
- "encode": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit-relay-v2.Limit.encode.html",
7
- "stream": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit-relay-v2.Limit.stream.html",
8
- "CircuitRelayServerComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayServerComponents.html",
9
- ".:CircuitRelayServerComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayServerComponents.html",
10
- "CircuitRelayServerInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayServerInit.html",
11
- ".:CircuitRelayServerInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayServerInit.html",
12
- "CircuitRelayService": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayService.html",
13
- ".:CircuitRelayService": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayService.html",
14
- "CircuitRelayServiceEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayServiceEvents.html",
15
- ".:CircuitRelayServiceEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayServiceEvents.html",
16
- "CircuitRelayTransportComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayTransportComponents.html",
17
- ".:CircuitRelayTransportComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayTransportComponents.html",
18
- "CircuitRelayTransportInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayTransportInit.html",
19
- ".:CircuitRelayTransportInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.CircuitRelayTransportInit.html",
20
- "Limit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.Limit.html",
21
- "RelayDiscoveryComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.RelayDiscoveryComponents.html",
22
- ".:RelayDiscoveryComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.RelayDiscoveryComponents.html",
23
- "RelayDiscoveryEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.RelayDiscoveryEvents.html",
24
- ".:RelayDiscoveryEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.RelayDiscoveryEvents.html",
25
- "RelayDiscoveryInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.RelayDiscoveryInit.html",
26
- ".:RelayDiscoveryInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.RelayDiscoveryInit.html",
27
- "RelayReservation": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.RelayReservation.html",
28
- ".:RelayReservation": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.RelayReservation.html",
29
- "ServerReservationStoreInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.ServerReservationStoreInit.html",
30
- ".:ServerReservationStoreInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.ServerReservationStoreInit.html",
31
- "TransportReservationStoreComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.TransportReservationStoreComponents.html",
32
- ".:TransportReservationStoreComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.TransportReservationStoreComponents.html",
33
- "TransportReservationStoreInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.TransportReservationStoreInit.html",
34
- ".:TransportReservationStoreInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit-relay-v2.TransportReservationStoreInit.html",
35
- "RELAY_V2_HOP_CODEC": "https://libp2p.github.io/js-libp2p/variables/_libp2p_circuit-relay-v2.RELAY_V2_HOP_CODEC.html",
36
- "RELAY_V2_STOP_CODEC": "https://libp2p.github.io/js-libp2p/variables/_libp2p_circuit-relay-v2.RELAY_V2_STOP_CODEC.html",
37
- "circuitRelayServer": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit-relay-v2.circuitRelayServer.html",
38
- ".:circuitRelayServer": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit-relay-v2.circuitRelayServer.html",
39
- "circuitRelayTransport": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit-relay-v2.circuitRelayTransport.html",
40
- ".:circuitRelayTransport": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit-relay-v2.circuitRelayTransport.html"
41
- }