Skip to content

Commit

Permalink
feat!: merge stat properties into stream/connection objects
Browse files Browse the repository at this point in the history
Moves `direction`, `timeline`, `status`, etc from `.stat` objects
on `Stream` and `Connection` objects onto the root object so we
don't have awkward constructs like `conn.stat.status`, instead the
simpler `conn.status`.

Fixes #1849

BREAKING CHANGE: `stream.stat.*` and `conn.stat.*` properties are now accessed via `stream.*` and `conn.*`
  • Loading branch information
achingbrain committed Jul 20, 2023
1 parent e9cafd3 commit 3cafbf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"dependencies": {
"@chainsafe/libp2p-noise": "^12.0.1",
"@chainsafe/libp2p-yamux": "^4.0.0",
"@chainsafe/libp2p-yamux": "^4.0.1",
"@libp2p/mplex": "^8.0.0",
"@libp2p/tcp": "^7.0.0",
"@libp2p/webrtc": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/libp2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"devDependencies": {
"@chainsafe/libp2p-gossipsub": "^9.0.0",
"@chainsafe/libp2p-noise": "^12.0.0",
"@chainsafe/libp2p-yamux": "^4.0.0",
"@chainsafe/libp2p-yamux": "^4.0.2",
"@libp2p/bootstrap": "^8.0.0",
"@libp2p/daemon-client": "^6.0.0",
"@libp2p/daemon-server": "^5.0.0",
Expand Down

0 comments on commit 3cafbf4

Please sign in to comment.