From 1aa6c8d93edb779d2e5668081fb847314b2e2c79 Mon Sep 17 00:00:00 2001 From: Daniel Norman <1992255+2color@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:39:44 +0100 Subject: [PATCH] fix: remove webtransport from default transports (#674) WebTransport is still not working reliably across different browsers. Moreover, the go-libp2p implementation needs to be updated to meet newer revisions of the spec. As we discussed during Helia WG, the most sensible thing for now is to remove WebTransport from the default transports. Refs https://github.com/libp2p/js-libp2p/issues/2572 --------- Co-authored-by: Daniel N <2color@users.noreply.github.com> --- packages/helia/package.json | 1 - packages/helia/src/utils/libp2p-defaults.browser.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/packages/helia/package.json b/packages/helia/package.json index a29e88b7..1df09f36 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 1de3ce90..b21d4dec 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: [