Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,21 +181,21 @@
"it-length-prefixed": "^8.0.2",
"it-pipe": "^2.0.4",
"just-debounce-it": "^3.0.1",
"multiformats": "^9.0.4",
"multiformats": "^10.0.1",
"protobufjs": "^7.0.0",
"readable-stream": "^4.0.0",
"timeout-abort-controller": "^3.0.0",
"uint8arrays": "^3.0.0",
"uint8arrays": "^4.0.2",
"varint": "^6.0.0",
"varint-decoder": "^1.0.0"
},
"devDependencies": {
"@chainsafe/libp2p-noise": "^8.0.0",
"@libp2p/kad-dht": "^3.0.0",
"@libp2p/mplex": "^5.0.0",
"@chainsafe/libp2p-noise": "^9.0.0",
"@libp2p/kad-dht": "^5.0.1",
"@libp2p/mplex": "^7.0.0",
"@libp2p/peer-id": "^1.1.8",
"@libp2p/peer-id-factory": "^1.0.8",
"@libp2p/tcp": "^3.0.1",
"@libp2p/tcp": "^5.0.0",
"@nodeutils/defaults-deep": "^1.1.0",
"@types/debug": "^4.1.5",
"@types/stats-lite": "^2.2.0",
Expand All @@ -206,9 +206,9 @@
"delay": "^5.0.0",
"interface-datastore": "^7.0.0",
"iso-random-stream": "^2.0.0",
"it-all": "^1.0.5",
"it-drain": "^1.0.4",
"libp2p": "^0.39.2",
"it-all": "^2.0.0",
"it-drain": "^2.0.0",
"libp2p": "^0.40.0",
"lodash.difference": "^4.5.0",
"lodash.flatten": "^4.4.0",
"lodash.range": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion test/bitswap-mock-internals.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ describe('bitswap with mocks', function () {
expect(block).to.have.nested.property('cid.code', DAG_PB_CODEC)
expect(block).to.have.nested.property('cid.version', 0)

const cid1 = CID.createV0(block.cid.multihash)
const cid1 = CID.create(0, DAG_PB_CODEC, block.cid.multihash)
const cid2 = CID.createV1(DAG_PB_CODEC, block.cid.multihash)
const cid3 = CID.createV1(RAW_CODEC, block.cid.multihash)

Expand Down
14 changes: 7 additions & 7 deletions test/utils/create-libp2p-node.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import { TCP } from '@libp2p/tcp'
import { Mplex } from '@libp2p/mplex'
import { tcp } from '@libp2p/tcp'
import { mplex } from '@libp2p/mplex'
import { Noise } from '@chainsafe/libp2p-noise'
import { createLibp2p } from 'libp2p'
import { KadDHT } from '@libp2p/kad-dht'
import { kadDHT } from '@libp2p/kad-dht'
import { createEd25519PeerId } from '@libp2p/peer-id-factory'

// @ts-ignore
Expand All @@ -28,16 +28,16 @@ export async function createLibp2pNode (options) {
listen: ['/ip4/0.0.0.0/tcp/0']
},
transports: [
new TCP()
tcp()
],
streamMuxers: [
new Mplex()
mplex()
],
connectionEncryption: [
new Noise()
() => new Noise()
],
dht: options.DHT
? new KadDHT({
? kadDHT({
clientMode: false
})
: undefined
Expand Down