From 8f927793e0eb0b6d24d506a01f67e5cd4943321c Mon Sep 17 00:00:00 2001 From: achingbrain Date: Tue, 17 Sep 2024 17:46:09 +0200 Subject: [PATCH] fix: update import to use multiformats --- packages/client/package.json | 2 +- packages/interop/package.json | 6 +++--- packages/server/package.json | 3 +-- packages/server/src/routes/routing/v1/ipns/get.ts | 2 +- packages/server/src/routes/routing/v1/ipns/put.ts | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index 854b180..6ab76d0 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -144,7 +144,7 @@ "it-first": "^3.0.6", "it-map": "^3.1.1", "it-ndjson": "^1.0.7", - "multiformats": "^13.2.3", + "multiformats": "^13.3.0", "p-defer": "^4.0.1", "p-queue": "^8.0.1", "uint8arrays": "^5.1.0" diff --git a/packages/interop/package.json b/packages/interop/package.json index d1350e5..530c3f3 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -116,8 +116,8 @@ "test:node": "aegir test -t node --cov" }, "devDependencies": { - "@helia/delegated-routing-v1-http-api-client": "^3.0.0", - "@helia/delegated-routing-v1-http-api-server": "^3.0.0", + "@helia/delegated-routing-v1-http-api-client": "^4.0.0", + "@helia/delegated-routing-v1-http-api-server": "^4.0.0", "@helia/ipns": "next", "@libp2p/crypto": "^5.0.1", "@libp2p/identify": "^3.0.1", @@ -128,7 +128,7 @@ "helia": "next", "ipns": "^10.0.0", "it-first": "^3.0.6", - "multiformats": "^13.2.3" + "multiformats": "^13.3.0" }, "private": true } diff --git a/packages/server/package.json b/packages/server/package.json index f785928..bafc5f9 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -156,12 +156,11 @@ "dependencies": { "@fastify/cors": "^9.0.1", "@helia/interface": "next", - "@helia/utils": "next", "@libp2p/interface": "^2.0.1", "@libp2p/peer-id": "^5.0.1", "fastify": "^4.28.1", "ipns": "^10.0.0", - "multiformats": "^13.2.3", + "multiformats": "^13.3.0", "raw-body": "^3.0.0" }, "devDependencies": { diff --git a/packages/server/src/routes/routing/v1/ipns/get.ts b/packages/server/src/routes/routing/v1/ipns/get.ts index c88f9bb..5f75737 100644 --- a/packages/server/src/routes/routing/v1/ipns/get.ts +++ b/packages/server/src/routes/routing/v1/ipns/get.ts @@ -1,7 +1,7 @@ -import { hasCode } from '@helia/utils' import { setMaxListeners } from '@libp2p/interface' import { multihashToIPNSRoutingKey } from 'ipns' import { CID } from 'multiformats/cid' +import { hasCode } from 'multiformats/hashes/digest' import { LIBP2P_KEY_CODEC } from '../../../../constants.js' import type { Helia } from '@helia/interface' import type { FastifyInstance } from 'fastify' diff --git a/packages/server/src/routes/routing/v1/ipns/put.ts b/packages/server/src/routes/routing/v1/ipns/put.ts index b53472d..7f0ba13 100644 --- a/packages/server/src/routes/routing/v1/ipns/put.ts +++ b/packages/server/src/routes/routing/v1/ipns/put.ts @@ -1,8 +1,8 @@ -import { hasCode } from '@helia/utils' import { setMaxListeners } from '@libp2p/interface' import { multihashToIPNSRoutingKey } from 'ipns' import { ipnsValidator } from 'ipns/validator' import { CID } from 'multiformats/cid' +import { hasCode } from 'multiformats/hashes/digest' import getRawBody from 'raw-body' import { LIBP2P_KEY_CODEC } from '../../../../constants.js' import type { Helia } from '@helia/interface'