Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit 0f99bf8

Browse files
authored
chore(deps)!: bump @libp2p/interface-connection from 1.0.1 to 2.1.0 (#51)
BREAKING CHANGE: the API of the returned MultiaddrConnection has changed
1 parent 786a712 commit 0f99bf8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
},
173173
"dependencies": {
174174
"@achingbrain/ip-address": "^8.1.0",
175-
"@libp2p/interface-connection": "^1.0.1",
175+
"@libp2p/interface-connection": "^2.1.0",
176176
"@libp2p/interface-peer-store": "^1.0.0",
177177
"@libp2p/logger": "^2.0.0",
178178
"@multiformats/multiaddr": "^10.1.1",

test/stream-to-ma-conn.spec.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ function toMuxedStream (stream: Duplex<Uint8Array>) {
1818
closeWrite: () => {},
1919
abort: () => {},
2020
reset: () => {},
21-
timeline: {
22-
open: Date.now()
21+
stat: {
22+
direction: 'outbound',
23+
timeline: {
24+
open: Date.now()
25+
}
2326
},
27+
metadata: {},
2428
id: `muxed-stream-${Math.random()}`
2529
}
2630

0 commit comments

Comments
 (0)