diff --git a/packages/helia/package.json b/packages/helia/package.json index cec97044..cc0eb61c 100644 --- a/packages/helia/package.json +++ b/packages/helia/package.json @@ -164,6 +164,7 @@ "interface-datastore": "^8.0.0", "interface-store": "^5.0.1", "ipfs-bitswap": "^18.0.0", + "ipns": "^6.0.0", "it-all": "^3.0.1", "it-drain": "^3.0.1", "it-filter": "^3.0.1", diff --git a/packages/helia/src/utils/libp2p.browser.ts b/packages/helia/src/utils/libp2p.browser.ts index 69e2d96c..0cc82457 100644 --- a/packages/helia/src/utils/libp2p.browser.ts +++ b/packages/helia/src/utils/libp2p.browser.ts @@ -8,6 +8,8 @@ import { mplex } from '@libp2p/mplex' 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 { createLibp2p as create } from 'libp2p' import { autoNATService } from 'libp2p/autonat' import { circuitRelayTransport, circuitRelayServer } from 'libp2p/circuit-relay' @@ -52,7 +54,13 @@ export async function createLibp2p (opts: CreateLibp2pOptions): Promise