From a11d54cf4175c1240d2e445bdd40874abeb88faf Mon Sep 17 00:00:00 2001 From: Daniel N <2color@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:59:04 +0100 Subject: [PATCH] fix: remove webtransport from default transports --- benchmarks/transports/package.json | 1 - benchmarks/transports/src/runner/helia/transports.browser.ts | 4 +--- packages/helia/package.json | 1 - packages/helia/src/utils/libp2p-defaults.browser.ts | 2 -- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/benchmarks/transports/package.json b/benchmarks/transports/package.json index 8142d989c..caf170cba 100644 --- a/benchmarks/transports/package.json +++ b/benchmarks/transports/package.json @@ -25,7 +25,6 @@ "@libp2p/tcp": "^10.0.0", "@libp2p/webrtc": "^5.0.0", "@libp2p/websockets": "^9.0.0", - "@libp2p/webtransport": "^5.0.0", "@multiformats/multiaddr": "^12.2.1", "aegir": "^45.0.1", "blockstore-fs": "^2.0.1", diff --git a/benchmarks/transports/src/runner/helia/transports.browser.ts b/benchmarks/transports/src/runner/helia/transports.browser.ts index edd4439af..dfe238fec 100644 --- a/benchmarks/transports/src/runner/helia/transports.browser.ts +++ b/benchmarks/transports/src/runner/helia/transports.browser.ts @@ -2,7 +2,6 @@ import { circuitRelayTransport } from '@libp2p/circuit-relay-v2' import { webRTC } from '@libp2p/webrtc' import { webSockets } from '@libp2p/websockets' import * as wsFilters from '@libp2p/websockets/filters' -import { webTransport } from '@libp2p/webtransport' import type { Transport } from '@libp2p/interface' interface TransportFactory { (...args: any[]): Transport } @@ -13,7 +12,6 @@ export function getTransports (): TransportFactory[] { filter: wsFilters.all }), webRTC(), - circuitRelayTransport(), - webTransport() + circuitRelayTransport() ] } diff --git a/packages/helia/package.json b/packages/helia/package.json index a29e88b7c..1df09f36c 100644 --- a/packages/helia/package.json +++ b/packages/helia/package.json @@ -80,7 +80,6 @@ "@libp2p/upnp-nat": "^2.0.0", "@libp2p/webrtc": "^5.0.0", "@libp2p/websockets": "^9.0.0", - "@libp2p/webtransport": "^5.0.0", "@multiformats/dns": "^1.0.1", "blockstore-core": "^5.0.0", "datastore-core": "^10.0.0", diff --git a/packages/helia/src/utils/libp2p-defaults.browser.ts b/packages/helia/src/utils/libp2p-defaults.browser.ts index 1de3ce90d..b21d4dec8 100644 --- a/packages/helia/src/utils/libp2p-defaults.browser.ts +++ b/packages/helia/src/utils/libp2p-defaults.browser.ts @@ -13,7 +13,6 @@ import { mplex } from '@libp2p/mplex' import { ping, type PingService } from '@libp2p/ping' import { webRTC, webRTCDirect } from '@libp2p/webrtc' import { webSockets } from '@libp2p/websockets' -import { webTransport } from '@libp2p/webtransport' import { ipnsSelector } from 'ipns/selector' import { ipnsValidator } from 'ipns/validator' import * as libp2pInfo from 'libp2p/version' @@ -48,7 +47,6 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti circuitRelayTransport(), webRTC(), webRTCDirect(), - webTransport(), webSockets() ], connectionEncrypters: [