Skip to content

Commit

Permalink
deps!: Update multiformats and related dependencies (#170)
Browse files Browse the repository at this point in the history
`[email protected]` shipped with a [breaking change](multiformats/js-multiformats#230) so update all deps using multiformats to the latest version.

Co-authored-by: achingbrain <[email protected]>
  • Loading branch information
whizzzkid and achingbrain authored Jan 7, 2023
1 parent 3bb5609 commit 06744a7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
13 changes: 6 additions & 7 deletions packages/libp2p-daemon-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,27 +135,26 @@
},
"dependencies": {
"@libp2p/daemon-protocol": "^3.0.0",
"@libp2p/interface-peer-id": "^1.0.2",
"@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/interface-peer-info": "^1.0.1",
"@libp2p/interface-transport": "^2.0.0",
"@libp2p/logger": "^2.0.0",
"@libp2p/peer-id": "^1.1.10",
"@libp2p/peer-id": "^2.0.0",
"@libp2p/tcp": "^5.0.0",
"@multiformats/multiaddr": "^11.0.0",
"err-code": "^3.0.1",
"it-stream-types": "^1.0.4",
"multiformats": "^10.0.0",
"multiformats": "^11.0.0",
"uint8arraylist": "^2.3.2"
},
"devDependencies": {
"@libp2p/components": "^3.0.1",
"@libp2p/daemon-server": "^3.0.0",
"@libp2p/interface-compliance-tests": "^3.0.1",
"@libp2p/interface-dht": "^1.0.0",
"@libp2p/interface-mocks": "^7.0.1",
"@libp2p/interface-dht": "^2.0.0",
"@libp2p/interface-mocks": "^9.0.0",
"@libp2p/interface-peer-store": "^1.0.0",
"@libp2p/interface-pubsub": "^3.0.0",
"@libp2p/peer-id-factory": "^1.0.9",
"@libp2p/peer-id-factory": "^2.0.0",
"aegir": "^37.2.0",
"it-all": "^2.0.0",
"it-pipe": "^2.0.3",
Expand Down
16 changes: 7 additions & 9 deletions packages/libp2p-daemon-client/test/stream.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
import all from 'it-all'
import { pipe } from 'it-pipe'
import { Components } from '@libp2p/components'

const defaultMultiaddr = multiaddr('/ip4/0.0.0.0/tcp/0')

Expand Down Expand Up @@ -65,14 +64,13 @@ describe('daemon stream client', function () {
)
})

const [peerAtoPeerB] = connectionPair(
new Components({
peerId: peerA,
registrar: registrarA
}), new Components({
peerId: peerB,
registrar: registrarB
})
const [peerAtoPeerB] = connectionPair({
peerId: peerA,
registrar: registrarA
}, {
peerId: peerB,
registrar: registrarB
}
)

libp2p.dial.withArgs(peerB).resolves(peerAtoPeerB)
Expand Down
8 changes: 4 additions & 4 deletions packages/libp2p-daemon-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,20 @@
"dependencies": {
"@libp2p/daemon-protocol": "^3.0.0",
"@libp2p/interface-connection": "^3.0.1",
"@libp2p/interface-dht": "^1.0.0",
"@libp2p/interface-peer-id": "^1.0.2",
"@libp2p/interface-dht": "^2.0.0",
"@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/interface-registrar": "^2.0.1",
"@libp2p/interface-transport": "^2.0.0",
"@libp2p/interfaces": "^3.0.2",
"@libp2p/logger": "^2.0.0",
"@libp2p/peer-id": "^1.1.10",
"@libp2p/peer-id": "^2.0.0",
"@libp2p/tcp": "^5.0.0",
"@multiformats/multiaddr": "^11.0.0",
"it-drain": "^2.0.0",
"it-length-prefixed": "^8.0.2",
"it-pipe": "^2.0.3",
"it-pushable": "^3.0.0",
"multiformats": "^10.0.0",
"multiformats": "^11.0.0",
"uint8arrays": "^4.0.2"
},
"devDependencies": {
Expand Down

0 comments on commit 06744a7

Please sign in to comment.