File tree Expand file tree Collapse file tree 10 files changed +27
-29
lines changed
src/routes/routing/v1/providers Expand file tree Collapse file tree 10 files changed +27
-29
lines changed Original file line number Diff line number Diff line change 2929 "generate" : " aegir run generate" ,
3030 "build" : " aegir run build" ,
3131 "lint" : " aegir run lint" ,
32- "docs" : " NODE_OPTIONS=--max_old_space_size=4096 aegir docs -- --exclude packages/interop" ,
33- "docs:no-publish" : " npm run docs -- --publish false " ,
32+ "docs" : " NODE_OPTIONS=--max_old_space_size=8192 aegir docs -- --exclude packages/interop" ,
33+ "docs:no-publish" : " NODE_OPTIONS=--max_old_space_size=8192 aegir docs --publish false -- --exclude packages/interop " ,
3434 "dep-check" : " aegir run dep-check" ,
3535 "release" : " npm run docs:no-publish && aegir run release && npm run docs -- --exclude packages/interop"
3636 },
Original file line number Diff line number Diff line change 129129 "release" : " aegir release"
130130 },
131131 "dependencies" : {
132- "@libp2p/interface-peer-info" : " ^1.0.10" ,
133- "@libp2p/interfaces" : " ^3.3.2" ,
134- "@libp2p/logger" : " ^2.1.0" ,
135- "@libp2p/peer-id" : " ^2.0.3" ,
132+ "@libp2p/interface" : " ^0.1.2" ,
133+ "@libp2p/logger" : " ^3.0.2" ,
134+ "@libp2p/peer-id" : " ^3.0.2" ,
136135 "@multiformats/multiaddr" : " ^12.1.3" ,
137136 "any-signal" : " ^4.1.1" ,
138137 "browser-readablestream-to-it" : " ^2.0.3" ,
139138 "it-all" : " ^3.0.2" ,
140139 "iterable-ndjson" : " ^1.1.0" ,
141- "multiformats" : " ^11.0.2 " ,
140+ "multiformats" : " ^12.1.1 " ,
142141 "p-defer" : " ^4.0.0" ,
143142 "p-queue" : " ^7.3.4"
144143 },
145144 "devDependencies" : {
146- "@libp2p/peer-id-factory" : " ^2 .0.3" ,
145+ "@libp2p/peer-id-factory" : " ^3 .0.3" ,
147146 "aegir" : " ^40.0.8" ,
148147 "body-parser" : " ^1.20.2"
149148 }
Original file line number Diff line number Diff line change 1- import { CodeError } from '@libp2p/interfaces /errors'
1+ import { CodeError } from '@libp2p/interface /errors'
22import { logger } from '@libp2p/logger'
33import { peerIdFromString } from '@libp2p/peer-id'
44import { multiaddr } from '@multiformats/multiaddr'
@@ -9,8 +9,8 @@ import ndjson from 'iterable-ndjson'
99import defer from 'p-defer'
1010import PQueue from 'p-queue'
1111import type { RoutingV1HttpApiClient , RoutingV1HttpApiClientInit } from './index.js'
12- import type { PeerInfo } from '@libp2p/interface-peer-info '
13- import type { AbortOptions } from '@libp2p/interfaces '
12+ import type { AbortOptions } from '@libp2p/interface'
13+ import type { PeerInfo } from '@libp2p/interface/peer-info '
1414import type { Multiaddr } from '@multiformats/multiaddr'
1515import type { CID } from 'multiformats'
1616
Original file line number Diff line number Diff line change 1818 */
1919
2020import { DefaultRoutingV1HttpApiClient } from './client.js'
21- import type { PeerInfo } from '@libp2p/interface-peer-info '
22- import type { AbortOptions } from '@libp2p/interfaces '
21+ import type { AbortOptions } from '@libp2p/interface'
22+ import type { PeerInfo } from '@libp2p/interface/peer-info '
2323import type { CID } from 'multiformats/cid'
2424
2525export interface RoutingV1HttpApiClientInit {
Original file line number Diff line number Diff line change 4545 "dependencies" : {
4646 "@helia/routing-v1-http-api-client" : " ^1.0.0" ,
4747 "@helia/routing-v1-http-api-server" : " ^1.0.0" ,
48- "helia" : " ^1. 2.0"
48+ "helia" : " ^2.0.1 "
4949 },
5050 "devDependencies" : {
51- "@helia/interface" : " ^1.1.1 " ,
52- "@libp2p/interface-libp2p " : " ^3.2.0 " ,
53- "@libp2p/kad-dht" : " ^9.3 .6" ,
51+ "@helia/interface" : " ^2.0.0 " ,
52+ "@libp2p/interface" : " ^0.1.2 " ,
53+ "@libp2p/kad-dht" : " ^10.0 .6" ,
5454 "aegir" : " ^40.0.8" ,
5555 "fastify" : " ^4.17.0" ,
56- "libp2p" : " ^0.45.4 " ,
57- "multiformats" : " ^11.0.2 "
56+ "libp2p" : " ^0.46.10 " ,
57+ "multiformats" : " ^12.1.1 "
5858 },
5959 "private" : true
6060}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { kadDHT } from '@libp2p/kad-dht'
22import { createHelia as createNode , type HeliaInit } from 'helia'
33import { identifyService } from 'libp2p/identify'
44import type { Helia } from '@helia/interface'
5- import type { Libp2p } from '@libp2p/interface-libp2p '
5+ import type { Libp2p } from '@libp2p/interface'
66import type { KadDHT } from '@libp2p/kad-dht'
77
88export async function createHelia ( init ?: Partial < HeliaInit > ) : Promise < Helia < Libp2p < { dht : KadDHT , identify : unknown } > > > {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { sha256 } from 'multiformats/hashes/sha2'
99import { createHelia } from './fixtures/create-helia.js'
1010import type { Helia } from '@helia/interface'
1111import type { RoutingV1HttpApiClient } from '@helia/routing-v1-http-api-client'
12- import type { Libp2p } from '@libp2p/interface-libp2p '
12+ import type { Libp2p } from '@libp2p/interface'
1313import type { KadDHT } from '@libp2p/kad-dht'
1414import type { FastifyInstance } from 'fastify'
1515
Original file line number Diff line number Diff line change 150150 },
151151 "dependencies" : {
152152 "@fastify/cors" : " ^8.3.0" ,
153- "@helia/interface" : " ^1.1.1 " ,
154- "@libp2p/interfaces " : " ^3.3 .2" ,
153+ "@helia/interface" : " ^2.0.0 " ,
154+ "@libp2p/interface " : " ^0.1 .2" ,
155155 "fastify" : " ^4.17.0" ,
156- "multiformats" : " ^11.0.2 "
156+ "multiformats" : " ^12.1.1 "
157157 },
158158 "devDependencies" : {
159- "@libp2p/interface-peer-info" : " ^1.0.10" ,
160- "@libp2p/peer-id-factory" : " ^2.0.3" ,
159+ "@libp2p/peer-id-factory" : " ^3.0.3" ,
161160 "@multiformats/multiaddr" : " ^12.1.3" ,
162161 "@types/sinon" : " ^10.0.15" ,
163162 "aegir" : " ^40.0.8" ,
164- "sinon" : " ^15.1 .0" ,
163+ "sinon" : " ^16.0 .0" ,
165164 "sinon-ts" : " ^1.0.0"
166165 }
167166}
Original file line number Diff line number Diff line change 11import { PassThrough } from 'node:stream'
22import { CID } from 'multiformats/cid'
33import type { Helia } from '@helia/interface'
4- import type { AbortOptions } from '@libp2p/interfaces '
4+ import type { AbortOptions } from '@libp2p/interface '
55import type { FastifyInstance } from 'fastify'
66
77interface Params {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { expect } from 'aegir/chai'
66import { stubInterface } from 'sinon-ts'
77import { createRoutingV1HttpApiServer } from '../src/index.js'
88import type { Helia } from '@helia/interface'
9- import type { PeerInfo } from '@libp2p/interface- peer-info'
9+ import type { PeerInfo } from '@libp2p/interface/ peer-info'
1010import type { FastifyInstance } from 'fastify'
1111import type { StubbedInstance } from 'sinon-ts'
1212
You can’t perform that action at this time.
0 commit comments