Skip to content

Commit

Permalink
deps: update @libp2p/circuit-relay-v2 to 3.x.x (#661)
Browse files Browse the repository at this point in the history
Updates to latest circuit relay transport
  • Loading branch information
achingbrain authored Oct 23, 2024
1 parent e5c03bd commit 0238ed4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion benchmarks/transports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@helia/routers": "^1.0.3",
"@helia/unixfs": "^3.0.3",
"@ipld/dag-pb": "^4.1.0",
"@libp2p/circuit-relay-v2": "^2.0.0",
"@libp2p/circuit-relay-v2": "^3.0.0",
"@libp2p/identify": "^3.0.0",
"@libp2p/interface": "^2.0.0",
"@libp2p/logger": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/helia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@helia/utils": "^1.0.0",
"@libp2p/autonat": "^2.0.0",
"@libp2p/bootstrap": "^11.0.0",
"@libp2p/circuit-relay-v2": "^2.0.0",
"@libp2p/circuit-relay-v2": "^3.0.0",
"@libp2p/crypto": "^5.0.0",
"@libp2p/dcutr": "^2.0.0",
"@libp2p/identify": "^3.0.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/helia/src/utils/libp2p-defaults.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti
dns: options.dns,
addresses: {
listen: [
'/p2p-circuit',
'/webrtc'
]
},
transports: [
circuitRelayTransport({
discoverRelays: 1
}),
circuitRelayTransport(),
webRTC(),
webRTCDirect(),
webTransport(),
Expand Down
5 changes: 2 additions & 3 deletions packages/helia/src/utils/libp2p-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti
listen: [
'/ip4/0.0.0.0/tcp/0',
'/ip6/::/tcp/0',
'/p2p-circuit',
'/webrtc'
]
},
transports: [
circuitRelayTransport({
discoverRelays: 1
}),
circuitRelayTransport(),
tcp(),
webRTC(),
webRTCDirect(),
Expand Down

0 comments on commit 0238ed4

Please sign in to comment.