Skip to content

Commit 44ebe0a

Browse files
committed
chore: update deps
1 parent 995d76d commit 44ebe0a

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,16 @@
9191
"@libp2p/daemon-server": "^3.0.1",
9292
"@libp2p/interface-connection-encrypter-compliance-tests": "^3.0.0",
9393
"@libp2p/interop": "^3.0.1",
94-
"@libp2p/mplex": "^6.0.2",
94+
"@libp2p/mplex": "^7.0.0",
9595
"@libp2p/peer-id-factory": "^1.0.8",
96-
"@libp2p/tcp": "^4.1.0",
96+
"@libp2p/tcp": "^5.0.1",
9797
"@multiformats/multiaddr": "^11.0.3",
9898
"aegir": "^37.3.0",
9999
"benchmark": "^2.1.4",
100100
"execa": "^6.1.0",
101101
"go-libp2p": "^0.0.6",
102102
"iso-random-stream": "^2.0.2",
103-
"libp2p": "^0.39.5",
103+
"libp2p": "^0.40.0",
104104
"mkdirp": "^1.0.4",
105105
"p-defer": "^4.0.0",
106106
"protons": "^6.0.0",

test/interop.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import type { SpawnOptions, Daemon, DaemonFactory } from '@libp2p/interop'
33
import { createServer } from '@libp2p/daemon-server'
44
import { createClient } from '@libp2p/daemon-client'
55
import { createLibp2p, Libp2pOptions } from 'libp2p'
6-
import { TCP } from '@libp2p/tcp'
6+
import { tcp } from '@libp2p/tcp'
77
import { multiaddr } from '@multiformats/multiaddr'
88
import { path as p2pd } from 'go-libp2p'
99
import { execa } from 'execa'
1010
import pDefer from 'p-defer'
1111
import { logger } from '@libp2p/logger'
12-
import { Mplex } from '@libp2p/mplex'
12+
import { mplex } from '@libp2p/mplex'
1313
import fs from 'fs'
1414
import { unmarshalPrivateKey } from '@libp2p/crypto/keys'
1515
import type { PeerId } from '@libp2p/interface-peer-id'
1616
import { peerIdFromKeys } from '@libp2p/peer-id'
17-
import { Noise } from '../src/noise.js'
17+
import { noise } from '../src/index.js'
1818

1919
async function createGoPeer (options: SpawnOptions): Promise<Daemon> {
2020
const controlPort = Math.floor(Math.random() * (50000 - 10000 + 1)) + 10000
@@ -76,11 +76,9 @@ async function createJsPeer (options: SpawnOptions): Promise<Daemon> {
7676
addresses: {
7777
listen: ['/ip4/0.0.0.0/tcp/0']
7878
},
79-
transports: [new TCP()],
80-
// @ts-expect-error libp2p options is still referencing the old stream muxer interface https://github.com/libp2p/js-libp2p/pull/1402
81-
streamMuxers: [new Mplex()],
82-
// @ts-expect-error libp2p options is still referencing the old connection encrypter interface https://github.com/libp2p/js-libp2p/pull/1402
83-
connectionEncryption: [new Noise()]
79+
transports: [tcp()],
80+
streamMuxers: [mplex()],
81+
connectionEncryption: [noise()]
8482
}
8583

8684
const node = await createLibp2p(opts)

0 commit comments

Comments
 (0)