@helia/ipns 8.2.3 → 8.2.4-34d3ecd7

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.
package/README.md CHANGED
@@ -150,13 +150,14 @@ import { createHelia, libp2pDefaults } from 'helia'
150
150
  import { ipns } from '@helia/ipns'
151
151
  import { pubsub } from '@helia/ipns/routing'
152
152
  import { unixfs } from '@helia/unixfs'
153
- import { gossipsub } from '@chainsafe/libp2p-gossipsub'
153
+ import { floodsub } from '@libp2p/floodsub'
154
154
  import { generateKeyPair } from '@libp2p/crypto/keys'
155
- import type { Libp2p, PubSub } from '@libp2p/interface'
155
+ import type { PubSub } from '@helia/ipns/routing'
156
+ import type { Libp2p } from '@libp2p/interface'
156
157
  import type { DefaultLibp2pServices } from 'helia'
157
158
 
158
159
  const libp2pOptions = libp2pDefaults()
159
- libp2pOptions.services.pubsub = gossipsub()
160
+ libp2pOptions.services.pubsub = floodsub()
160
161
 
161
162
  const helia = await createHelia<Libp2p<DefaultLibp2pServices & { pubsub: PubSub }>>({
162
163
  libp2p: libp2pOptions