Skip to content

Commit

Permalink
deps: bump @libp2p/kad-dht from 11.0.8 to 12.0.0 (#355)
Browse files Browse the repository at this point in the history
Bumps [@libp2p/kad-dht](https://github.com/libp2p/js-libp2p) from 11.0.8 to 12.0.0.
- [Release notes](https://github.com/libp2p/js-libp2p/releases)
- [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json)
- [Commits](libp2p/js-libp2p@kad-dht-v11.0.8...kad-dht-v12.0.0)

---
updated-dependencies:
- dependency-name: "@libp2p/kad-dht"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: achingbrain <[email protected]>
  • Loading branch information
dependabot[bot] and achingbrain authored Dec 30, 2023
1 parent 46f2988 commit ae3cbb4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/helia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@libp2p/dcutr": "^1.0.1",
"@libp2p/identify": "^1.0.1",
"@libp2p/interface": "^1.0.1",
"@libp2p/kad-dht": "^11.0.2",
"@libp2p/kad-dht": "^12.0.0",
"@libp2p/keychain": "^4.0.2",
"@libp2p/mdns": "^10.0.2",
"@libp2p/mplex": "^10.0.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/helia/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ export async function createHelia (init: HeliaInit = {}): Promise<Helia<unknown>
const datastore = init.datastore ?? new MemoryDatastore()
const blockstore = init.blockstore ?? new MemoryBlockstore()

let libp2p: Libp2p
let libp2p: Libp2p<DefaultLibp2pServices>

if (isLibp2p(init.libp2p)) {
libp2p = init.libp2p
libp2p = init.libp2p as any
} else {
libp2p = await createLibp2p({
libp2p = await createLibp2p<DefaultLibp2pServices>({
...init,
libp2p: init.libp2p,
datastore
Expand Down
4 changes: 2 additions & 2 deletions packages/helia/src/utils/libp2p-defaults.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { bootstrap } from '@libp2p/bootstrap'
import { circuitRelayTransport } from '@libp2p/circuit-relay-v2'
import { dcutr } from '@libp2p/dcutr'
import { type Identify, identify } from '@libp2p/identify'
import { type DualKadDHT, kadDHT } from '@libp2p/kad-dht'
import { type KadDHT, kadDHT } from '@libp2p/kad-dht'
import { keychain, type Keychain } from '@libp2p/keychain'
import { mplex } from '@libp2p/mplex'
import { ping, type PingService } from '@libp2p/ping'
Expand All @@ -27,7 +27,7 @@ export interface DefaultLibp2pServices extends Record<string, unknown> {
autoNAT: unknown
dcutr: unknown
delegatedRouting: unknown
dht: DualKadDHT
dht: KadDHT
identify: Identify
keychain: Keychain
ping: PingService
Expand Down
4 changes: 2 additions & 2 deletions packages/helia/src/utils/libp2p-defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { bootstrap } from '@libp2p/bootstrap'
import { circuitRelayTransport, circuitRelayServer, type CircuitRelayService } from '@libp2p/circuit-relay-v2'
import { dcutr } from '@libp2p/dcutr'
import { type Identify, identify } from '@libp2p/identify'
import { type DualKadDHT, kadDHT } from '@libp2p/kad-dht'
import { type KadDHT, kadDHT } from '@libp2p/kad-dht'
import { keychain, type Keychain } from '@libp2p/keychain'
import { mdns } from '@libp2p/mdns'
import { mplex } from '@libp2p/mplex'
Expand All @@ -29,7 +29,7 @@ export interface DefaultLibp2pServices extends Record<string, unknown> {
autoNAT: unknown
dcutr: unknown
delegatedRouting: unknown
dht: DualKadDHT
dht: KadDHT
identify: Identify
keychain: Keychain
ping: PingService
Expand Down

0 comments on commit ae3cbb4

Please sign in to comment.