Skip to content

Commit 123f06b

Browse files
authored
deps!: update multiformats to 10.x.x (#490)
Updates all deps to newst versions. BREAKING CHANGE: updates to incompatible multiformats version
1 parent 9fd9fa2 commit 123f06b

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,21 +181,21 @@
181181
"it-length-prefixed": "^8.0.2",
182182
"it-pipe": "^2.0.4",
183183
"just-debounce-it": "^3.0.1",
184-
"multiformats": "^9.0.4",
184+
"multiformats": "^10.0.1",
185185
"protobufjs": "^7.0.0",
186186
"readable-stream": "^4.0.0",
187187
"timeout-abort-controller": "^3.0.0",
188-
"uint8arrays": "^3.0.0",
188+
"uint8arrays": "^4.0.2",
189189
"varint": "^6.0.0",
190190
"varint-decoder": "^1.0.0"
191191
},
192192
"devDependencies": {
193-
"@chainsafe/libp2p-noise": "^8.0.0",
194-
"@libp2p/kad-dht": "^3.0.0",
195-
"@libp2p/mplex": "^5.0.0",
193+
"@chainsafe/libp2p-noise": "^9.0.0",
194+
"@libp2p/kad-dht": "^5.0.1",
195+
"@libp2p/mplex": "^7.0.0",
196196
"@libp2p/peer-id": "^1.1.8",
197197
"@libp2p/peer-id-factory": "^1.0.8",
198-
"@libp2p/tcp": "^3.0.1",
198+
"@libp2p/tcp": "^5.0.0",
199199
"@nodeutils/defaults-deep": "^1.1.0",
200200
"@types/debug": "^4.1.5",
201201
"@types/stats-lite": "^2.2.0",
@@ -206,9 +206,9 @@
206206
"delay": "^5.0.0",
207207
"interface-datastore": "^7.0.0",
208208
"iso-random-stream": "^2.0.0",
209-
"it-all": "^1.0.5",
210-
"it-drain": "^1.0.4",
211-
"libp2p": "^0.39.2",
209+
"it-all": "^2.0.0",
210+
"it-drain": "^2.0.0",
211+
"libp2p": "^0.40.0",
212212
"lodash.difference": "^4.5.0",
213213
"lodash.flatten": "^4.4.0",
214214
"lodash.range": "^3.2.0",

test/bitswap-mock-internals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ describe('bitswap with mocks', function () {
397397
expect(block).to.have.nested.property('cid.code', DAG_PB_CODEC)
398398
expect(block).to.have.nested.property('cid.version', 0)
399399

400-
const cid1 = CID.createV0(block.cid.multihash)
400+
const cid1 = CID.create(0, DAG_PB_CODEC, block.cid.multihash)
401401
const cid2 = CID.createV1(DAG_PB_CODEC, block.cid.multihash)
402402
const cid3 = CID.createV1(RAW_CODEC, block.cid.multihash)
403403

test/utils/create-libp2p-node.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
import { TCP } from '@libp2p/tcp'
3-
import { Mplex } from '@libp2p/mplex'
2+
import { tcp } from '@libp2p/tcp'
3+
import { mplex } from '@libp2p/mplex'
44
import { Noise } from '@chainsafe/libp2p-noise'
55
import { createLibp2p } from 'libp2p'
6-
import { KadDHT } from '@libp2p/kad-dht'
6+
import { kadDHT } from '@libp2p/kad-dht'
77
import { createEd25519PeerId } from '@libp2p/peer-id-factory'
88

99
// @ts-ignore
@@ -28,16 +28,16 @@ export async function createLibp2pNode (options) {
2828
listen: ['/ip4/0.0.0.0/tcp/0']
2929
},
3030
transports: [
31-
new TCP()
31+
tcp()
3232
],
3333
streamMuxers: [
34-
new Mplex()
34+
mplex()
3535
],
3636
connectionEncryption: [
37-
new Noise()
37+
() => new Noise()
3838
],
3939
dht: options.DHT
40-
? new KadDHT({
40+
? kadDHT({
4141
clientMode: false
4242
})
4343
: undefined

0 commit comments

Comments
 (0)