Skip to content

Commit

Permalink
deps!: update it-stream-deps and libp2p-daemon-client (#104)
Browse files Browse the repository at this point in the history
Updates deps to new streaming versions
  • Loading branch information
achingbrain authored Apr 19, 2023
1 parent d3e0a45 commit 6729cf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"release": "aegir release"
},
"dependencies": {
"@libp2p/daemon-client": "^5.0.0",
"@libp2p/daemon-client": "^6.0.0",
"@libp2p/interface-peer-id": "^2.0.1",
"@libp2p/interface-peer-info": "^1.0.7",
"@multiformats/multiaddr": "^12.0.0",
Expand All @@ -144,7 +144,7 @@
"it-length-prefixed": "^9.0.0",
"it-pb-stream": "^3.0.0",
"it-pipe": "^3.0.0",
"it-stream-types": "^1.0.5",
"it-stream-types": "^2.0.1",
"multiformats": "^11.0.0",
"p-defer": "^4.0.0",
"p-retry": "^5.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/relay/util.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { PeerId } from '@libp2p/interface-peer-id'
import type { Daemon } from '../index.js'
import { HopMessage } from './pb/index.js'
import type { Duplex } from 'it-stream-types'
import type { Duplex, Source } from 'it-stream-types'
import type { Uint8ArrayList } from 'uint8arraylist'
import { pipe } from 'it-pipe'
import { pbStream } from 'it-pb-stream'
Expand All @@ -22,7 +22,7 @@ export const reserve = async (d: Daemon, peerID: PeerId, message?: Partial<HopMe

export const echoHandler = {
protocol: '/echo/1.0.0',
handler: async (stream: Duplex<Uint8ArrayList | Uint8Array, Uint8Array, Promise<void>>) => {
handler: async (stream: Duplex<AsyncIterable<Uint8ArrayList | Uint8Array>, Source<Uint8Array>, Promise<void>>) => {
await pipe(
stream,
async function * (src) {
Expand Down

0 comments on commit 6729cf2

Please sign in to comment.