Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,26 +138,26 @@
"release": "aegir release"
},
"dependencies": {
"@libp2p/interface": "^2.2.0",
"@libp2p/logger": "^5.0.1",
"@libp2p/peer-id": "^5.0.1",
"@multiformats/multiaddr": "^12.3.1",
"@libp2p/interface": "^2.9.0",
"@libp2p/logger": "^5.1.15",
"@libp2p/peer-id": "^5.1.2",
"@multiformats/multiaddr": "^12.4.0",
"any-signal": "^4.1.1",
"browser-readablestream-to-it": "^2.0.7",
"ipns": "^10.0.0",
"it-first": "^3.0.6",
"it-map": "^3.1.1",
"it-ndjson": "^1.0.7",
"multiformats": "^13.3.0",
"browser-readablestream-to-it": "^2.0.8",
"ipns": "^10.0.2",
"it-first": "^3.0.7",
"it-map": "^3.1.2",
"it-ndjson": "^1.1.2",
"multiformats": "^13.3.2",
"p-defer": "^4.0.1",
"p-queue": "^8.0.1",
"p-queue": "^8.1.0",
"uint8arrays": "^5.1.0"
},
"devDependencies": {
"@libp2p/crypto": "^5.0.1",
"aegir": "^45.0.1",
"body-parser": "^1.20.3",
"it-all": "^3.0.6",
"@libp2p/crypto": "^5.1.1",
"aegir": "^45.2.1",
"body-parser": "^2.2.0",
"it-all": "^3.0.7",
"wherearewe": "^2.0.1"
},
"sideEffects": false
Expand Down
27 changes: 14 additions & 13 deletions packages/interop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,20 @@
"test:node": "aegir test -t node --cov"
},
"devDependencies": {
"@helia/delegated-routing-v1-http-api-client": "^4.0.0",
"@helia/delegated-routing-v1-http-api-server": "^4.0.0",
"@helia/ipns": "^8.0.0",
"@libp2p/crypto": "^5.0.1",
"@libp2p/identify": "^3.0.1",
"@libp2p/interface": "^2.0.1",
"@libp2p/kad-dht": "^14.0.1",
"aegir": "^45.0.1",
"fastify": "^5.0.0",
"helia": "^5.1.0",
"ipns": "^10.0.0",
"it-first": "^3.0.6",
"multiformats": "^13.3.0"
"@helia/delegated-routing-v1-http-api-client": "^4.2.2",
"@helia/delegated-routing-v1-http-api-server": "^4.0.4",
"@helia/ipns": "^8.2.0",
"@libp2p/crypto": "^5.1.1",
"@libp2p/identify": "^3.0.29",
"@libp2p/interface": "^2.9.0",
"@libp2p/kad-dht": "^15.0.2",
"@libp2p/ping": "^2.0.29",
"aegir": "^45.2.1",
"fastify": "^5.3.2",
"helia": "^5.3.0",
"ipns": "^10.0.2",
"it-first": "^3.0.7",
"multiformats": "^13.3.2"
},
"private": true
}
7 changes: 4 additions & 3 deletions packages/interop/test/fixtures/create-helia.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { identify } from '@libp2p/identify'
import { kadDHT, removePublicAddressesMapper, type KadDHT } from '@libp2p/kad-dht'
import { ping, type Ping } from '@libp2p/ping'
import { createHelia as createNode, type HeliaInit, type HeliaLibp2p } from 'helia'
import { ipnsSelector } from 'ipns/selector'
import { ipnsValidator } from 'ipns/validator'
import type { Libp2p } from '@libp2p/interface'

export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp2p<Libp2p<{ dht: KadDHT }>>> {
export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp2p<Libp2p<{ dht: KadDHT, ping: Ping }>>> {
const helia = await createNode({
libp2p: {
peerDiscovery: [],
Expand All @@ -21,7 +21,8 @@ export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp
ipns: ipnsSelector
}
}),
identify: identify()
identify: identify(),
ping: ping()
}
}
})
Expand Down
3 changes: 2 additions & 1 deletion packages/interop/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { createDelegatedRoutingV1HttpApiServer } from '@helia/delegated-routing-
import { ipns } from '@helia/ipns'
import { generateKeyPair } from '@libp2p/crypto/keys'
import { start, stop } from '@libp2p/interface'
import { type Ping } from '@libp2p/ping'
import { expect } from 'aegir/chai'
import { createIPNSRecord } from 'ipns'
import first from 'it-first'
Expand All @@ -19,7 +20,7 @@ import type { FastifyInstance } from 'fastify'
import type { HeliaLibp2p } from 'helia'

describe('delegated-routing-v1-http-api interop', () => {
let network: Array<HeliaLibp2p<Libp2p<{ dht: KadDHT }>>>
let network: Array<HeliaLibp2p<Libp2p<{ dht: KadDHT, ping: Ping }>>>
let server: FastifyInstance
let client: DelegatedRoutingV1HttpApiClient

Expand Down
24 changes: 12 additions & 12 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,21 +154,21 @@
"release": "aegir release"
},
"dependencies": {
"@fastify/cors": "^10.0.1",
"@helia/interface": "^5.0.0",
"@libp2p/interface": "^2.0.1",
"@libp2p/peer-id": "^5.0.1",
"fastify": "^5.0.0",
"ipns": "^10.0.0",
"multiformats": "^13.3.0",
"@fastify/cors": "^11.0.1",
"@helia/interface": "^5.2.1",
"@libp2p/interface": "^2.9.0",
"@libp2p/peer-id": "^5.1.2",
"fastify": "^5.3.2",
"ipns": "^10.0.2",
"multiformats": "^13.3.2",
"raw-body": "^3.0.0"
},
"devDependencies": {
"@libp2p/crypto": "^5.0.1",
"@multiformats/multiaddr": "^12.3.1",
"@types/sinon": "^17.0.3",
"aegir": "^45.0.1",
"sinon": "^19.0.2",
"@libp2p/crypto": "^5.1.1",
"@multiformats/multiaddr": "^12.4.0",
"@types/sinon": "^17.0.4",
"aegir": "^45.2.1",
"sinon": "^20.0.0",
"sinon-ts": "^2.0.0"
}
}