Skip to content

Commit ae6f2c6

Browse files
deps!: update helia to 6.x.x (#177)
Bumps the helia-deps group with 10 updates in the / directory: | Package | From | To | | --- | --- | --- | | [@libp2p/interface](https://github.com/libp2p/js-libp2p) | `2.11.0` | `3.0.2` | | [@libp2p/logger](https://github.com/libp2p/js-libp2p) | `5.2.0` | `6.0.5` | | [@libp2p/peer-id](https://github.com/libp2p/js-libp2p) | `5.1.9` | `6.0.3` | | [@multiformats/multiaddr](https://github.com/multiformats/js-multiaddr) | `12.5.1` | `13.0.1` | | [@helia/ipns](https://github.com/ipfs/helia) | `8.2.4` | `9.0.0` | | [@libp2p/identify](https://github.com/libp2p/js-libp2p) | `3.0.39` | `4.0.5` | | [@libp2p/kad-dht](https://github.com/libp2p/js-libp2p) | `15.1.11` | `16.0.5` | | [@libp2p/ping](https://github.com/libp2p/js-libp2p) | `2.0.37` | `3.0.5` | | [helia](https://github.com/ipfs/helia) | `5.5.1` | `6.0.1` | | [@helia/interface](https://github.com/ipfs/helia) | `5.4.0` | `6.0.0` | Updates `@libp2p/interface` from 2.11.0 to 3.0.2 - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json) - [Commits](libp2p/js-libp2p@interface-v2.11.0...tls-v3.0.2) Updates `@libp2p/logger` from 5.2.0 to 6.0.5 - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json) - [Commits](libp2p/js-libp2p@utils-v5.2.0...utils-v6.0.5) Updates `@libp2p/peer-id` from 5.1.9 to 6.0.3 - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json) - [Commits](libp2p/js-libp2p@crypto-v5.1.9...utils-v6.0.3) Updates `@multiformats/multiaddr` from 12.5.1 to 13.0.1 - [Release notes](https://github.com/multiformats/js-multiaddr/releases) - [Changelog](https://github.com/multiformats/js-multiaddr/blob/main/CHANGELOG.md) - [Commits](multiformats/js-multiaddr@v12.5.1...v13.0.1) Updates `@helia/ipns` from 8.2.4 to 9.0.0 - [Release notes](https://github.com/ipfs/helia/releases) - [Changelog](https://github.com/ipfs/helia/blob/main/CHANGELOG.md) - [Commits](ipfs/helia@ipns-v8.2.4...ipns-v9.0.0) Updates `@libp2p/identify` from 3.0.39 to 4.0.5 - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json) - [Commits](libp2p/js-libp2p@identify-v3.0.39...perf-v4.0.5) Updates `@libp2p/kad-dht` from 15.1.11 to 16.0.5 - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json) - [Commits](libp2p/js-libp2p@kad-dht-v15.1.11...kad-dht-v16.0.5) Updates `@libp2p/ping` from 2.0.37 to 3.0.5 - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/main/.release-please.json) - [Commits](libp2p/js-libp2p@ping-v2.0.37...tls-v3.0.5) Updates `helia` from 5.5.1 to 6.0.1 - [Release notes](https://github.com/ipfs/helia/releases) - [Changelog](https://github.com/ipfs/helia/blob/main/CHANGELOG.md) - [Commits](ipfs/helia@helia-v5.5.1...helia-v6.0.1) Updates `@helia/interface` from 5.4.0 to 6.0.0 - [Release notes](https://github.com/ipfs/helia/releases) - [Changelog](https://github.com/ipfs/helia/blob/main/CHANGELOG.md) - [Commits](ipfs/helia@helia-v5.4.0...mfs-v6.0.0) --- updated-dependencies: - dependency-name: "@libp2p/interface" dependency-version: 3.0.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@libp2p/logger" dependency-version: 6.0.5 dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@libp2p/peer-id" dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@multiformats/multiaddr" dependency-version: 13.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@helia/ipns" dependency-version: 9.0.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@libp2p/identify" dependency-version: 4.0.5 dependency-type: direct:development update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@libp2p/kad-dht" dependency-version: 16.0.5 dependency-type: direct:development update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@libp2p/ping" dependency-version: 3.0.5 dependency-type: direct:development update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: helia dependency-version: 6.0.1 dependency-type: direct:development update-type: version-update:semver-major dependency-group: helia-deps - dependency-name: "@helia/interface" dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: helia-deps ... BREAKING CHANGE: requires [email protected] or later --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: achingbrain <[email protected]>
1 parent 00aceb9 commit ae6f2c6

File tree

11 files changed

+32
-30
lines changed

11 files changed

+32
-30
lines changed

packages/client/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@
139139
"release": "aegir release"
140140
},
141141
"dependencies": {
142-
"@libp2p/interface": "^2.10.1",
143-
"@libp2p/logger": "^5.1.17",
144-
"@libp2p/peer-id": "^5.1.4",
145-
"@multiformats/multiaddr": "^12.4.0",
142+
"@libp2p/interface": "^3.0.2",
143+
"@libp2p/logger": "^6.0.5",
144+
"@libp2p/peer-id": "^6.0.3",
145+
"@multiformats/multiaddr": "^13.0.1",
146146
"any-signal": "^4.1.1",
147147
"browser-readablestream-to-it": "^2.0.9",
148148
"ipns": "^10.0.2",
@@ -151,7 +151,7 @@
151151
"it-ndjson": "^1.1.3",
152152
"multiformats": "^13.3.6",
153153
"p-defer": "^4.0.1",
154-
"p-queue": "^8.1.0",
154+
"p-queue": "^9.0.0",
155155
"uint8arrays": "^5.1.0"
156156
},
157157
"devDependencies": {

packages/client/test/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ describe('delegated-routing-v1-http-api-client', () => {
378378
results.forEach(resultProviders => {
379379
expect(resultProviders.map(prov => ({
380380
id: prov.ID.toString(),
381-
// eslint-disable-next-line max-nested-callbacks
381+
382382
addrs: prov.Addrs?.map(ma => ma.toString())
383383
}))).to.deep.equal(providers.map(prov => ({
384384
id: prov.ID,

packages/client/test/routings.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-nested-callbacks */
21
/* eslint-env mocha */
32

43
import { generateKeyPair } from '@libp2p/crypto/keys'

packages/interop/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@
2626
"devDependencies": {
2727
"@helia/delegated-routing-v1-http-api-client": "^4.0.0",
2828
"@helia/delegated-routing-v1-http-api-server": "^4.0.0",
29-
"@helia/ipns": "^8.2.3",
29+
"@helia/ipns": "^9.0.0",
3030
"@libp2p/crypto": "^5.1.3",
31-
"@libp2p/identify": "^3.0.31",
32-
"@libp2p/interface": "^2.10.1",
33-
"@libp2p/kad-dht": "^15.1.1",
34-
"@libp2p/ping": "^2.0.31",
31+
"@libp2p/identify": "^4.0.5",
32+
"@libp2p/interface": "^3.0.2",
33+
"@libp2p/kad-dht": "^16.0.5",
34+
"@libp2p/keychain": "^6.0.5",
35+
"@libp2p/ping": "^3.0.5",
3536
"aegir": "^47.0.10",
3637
"fastify": "^5.3.3",
37-
"helia": "^5.4.2",
38+
"helia": "^6.0.1",
3839
"ipns": "^10.0.2",
3940
"it-first": "^3.0.8",
4041
"multiformats": "^13.3.6"

packages/interop/test/fixtures/create-helia.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import { identify } from '@libp2p/identify'
22
import { kadDHT, removePublicAddressesMapper } from '@libp2p/kad-dht'
3+
import { keychain } from '@libp2p/keychain'
34
import { ping } from '@libp2p/ping'
45
import { createHelia as createNode } from 'helia'
56
import { ipnsSelector } from 'ipns/selector'
67
import { ipnsValidator } from 'ipns/validator'
78
import type { Libp2p } from '@libp2p/interface'
89
import type { KadDHT } from '@libp2p/kad-dht'
9-
import type { HeliaInit, HeliaLibp2p } from 'helia'
10+
import type { Keychain } from '@libp2p/keychain'
11+
import type { HeliaInit, Helia } from 'helia'
1012

11-
export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp2p<Libp2p<{ dht: KadDHT }>>> {
13+
export async function createHelia (init?: Partial<HeliaInit>): Promise<Helia<Libp2p<{ dht: KadDHT, keychain: Keychain }>>> {
1214
const helia = await createNode({
1315
libp2p: {
1416
peerDiscovery: [],
@@ -25,7 +27,8 @@ export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp
2527
}
2628
}),
2729
identify: identify(),
28-
ping: ping()
30+
ping: ping(),
31+
keychain: keychain()
2932
}
3033
}
3134
})

packages/interop/test/index.spec.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ import { createHelia } from './fixtures/create-helia.js'
1515
import type { DelegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client'
1616
import type { Libp2p } from '@libp2p/interface'
1717
import type { KadDHT } from '@libp2p/kad-dht'
18+
import type { Keychain } from '@libp2p/keychain'
1819
import type { FastifyInstance } from 'fastify'
19-
import type { HeliaLibp2p } from 'helia'
20+
import type { Helia } from 'helia'
2021

2122
describe('delegated-routing-v1-http-api interop', () => {
22-
let network: Array<HeliaLibp2p<Libp2p<{ dht: KadDHT }>>>
23+
let network: Array<Helia<Libp2p<{ dht: KadDHT, keychain: Keychain }>>>
2324
let server: FastifyInstance
2425
let client: DelegatedRoutingV1HttpApiClient
2526

@@ -93,11 +94,10 @@ describe('delegated-routing-v1-http-api interop', () => {
9394
// publish a record using a remote host
9495
const i = ipns(network[5])
9596
const cid = CID.parse('bafybeiczsscdsbs7ffqz55asqdf3smv6klcw3gofszvwlyarci47bgf354')
96-
const privateKey = await generateKeyPair('Ed25519')
97-
await i.publish(privateKey, cid)
97+
const result = await i.publish('key-name', cid)
9898

9999
// use client to resolve the published record
100-
const record = await client.getIPNS(privateKey.publicKey.toCID())
100+
const record = await client.getIPNS(result.publicKey.toCID())
101101
expect(record.value).to.equal(`/ipfs/${cid.toString()}`)
102102
})
103103

@@ -111,7 +111,6 @@ describe('delegated-routing-v1-http-api interop', () => {
111111

112112
// resolve the record using a remote host
113113
const i = ipns(network[8])
114-
// @ts-expect-error helia needs to be updated to the latest libp2p deps
115114
const result = await i.resolve(privateKey.publicKey.toCID())
116115
expect(result.cid.toString()).to.equal(cid.toString())
117116
})

packages/server/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,17 @@
156156
},
157157
"dependencies": {
158158
"@fastify/cors": "^11.0.1",
159-
"@helia/interface": "^5.3.2",
160-
"@libp2p/interface": "^2.10.1",
161-
"@libp2p/peer-id": "^5.1.4",
159+
"@helia/interface": "^6.0.0",
160+
"@libp2p/interface": "^3.0.2",
161+
"@libp2p/peer-id": "^6.0.3",
162162
"fastify": "^5.3.3",
163163
"ipns": "^10.0.2",
164164
"multiformats": "^13.3.6",
165165
"raw-body": "^3.0.0"
166166
},
167167
"devDependencies": {
168168
"@libp2p/crypto": "^5.1.3",
169-
"@multiformats/multiaddr": "^12.4.0",
169+
"@multiformats/multiaddr": "^13.0.1",
170170
"@types/sinon": "^17.0.4",
171171
"aegir": "^47.0.10",
172172
"sinon": "^21.0.0",

packages/server/src/routes/routing/v1/ipns/get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function getIpnsV1 (fastify: FastifyInstance, helia: Helia): void
4040
const { name: cidStr } = request.params
4141
cid = CID.parse(cidStr)
4242
} catch (err) {
43-
fastify.log.error('could not parse CID from params', err)
43+
fastify.log.error({ err }, 'could not parse CID from params')
4444
return reply.code(422).type('text/html').send('Unprocessable Entity')
4545
}
4646

packages/server/src/routes/routing/v1/ipns/put.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function putIpnsV1 (fastify: FastifyInstance, helia: Helia): void
4848
const { name: cidStr } = request.params
4949
cid = CID.parse(cidStr)
5050
} catch (err) {
51-
fastify.log.error('could not parse CID from params', err)
51+
fastify.log.error({ err }, 'could not parse CID from params')
5252
return reply.code(422).type('text/html').send('Unprocessable Entity')
5353
}
5454

packages/server/src/routes/routing/v1/peers/get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function getPeersV1 (fastify: FastifyInstance, helia: Helia): voi
4040
const peerCid = CID.parse(cidStr)
4141
peerId = peerIdFromCID(peerCid)
4242
} catch (err) {
43-
fastify.log.error('could not parse CID from params', err)
43+
fastify.log.error({ err }, 'could not parse CID from params')
4444
return reply.code(422).type('text/html').send('Unprocessable Entity')
4545
}
4646

0 commit comments

Comments
 (0)