@libp2p/interop 14.0.26-ed1ad1f26 → 14.0.27-160a24585
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/connect/index.d.ts +1 -1
- package/dist/src/dht/content-fetching.d.ts +1 -1
- package/dist/src/dht/content-routing.d.ts +1 -1
- package/dist/src/dht/index.d.ts +1 -1
- package/dist/src/dht/peer-routing.d.ts +1 -1
- package/dist/src/pubsub/floodsub.d.ts +1 -1
- package/dist/src/pubsub/gossipsub.d.ts +1 -1
- package/dist/src/pubsub/hybrid.d.ts +1 -1
- package/dist/src/pubsub/index.d.ts +1 -1
- package/dist/src/pubsub/utils.d.ts +1 -1
- package/dist/src/relay/index.d.ts +1 -1
- package/dist/src/relay/util.d.ts +1 -1
- package/dist/src/resources/keys/index.d.ts +1 -1
- package/dist/src/streams/echo.d.ts +1 -1
- package/dist/src/streams/index.d.ts +1 -1
- package/dist/src/streams/index.js +1 -1
- package/dist/src/utils/dht-record.d.ts +2 -2
- package/dist/src/utils/test-matrix.d.ts +1 -1
- package/dist/src/utils/test-matrix.js +1 -1
- package/package.json +9 -9
- package/src/connect/index.ts +1 -1
- package/src/dht/content-fetching.ts +1 -1
- package/src/dht/content-routing.ts +1 -1
- package/src/dht/index.ts +1 -1
- package/src/dht/peer-routing.ts +1 -1
- package/src/pubsub/floodsub.ts +1 -1
- package/src/pubsub/gossipsub.ts +1 -1
- package/src/pubsub/hybrid.ts +1 -1
- package/src/pubsub/index.ts +1 -1
- package/src/pubsub/utils.ts +1 -1
- package/src/relay/index.ts +1 -1
- package/src/relay/util.ts +1 -1
- package/src/resources/keys/index.ts +1 -1
- package/src/streams/echo.ts +1 -1
- package/src/streams/index.ts +2 -2
- package/src/utils/test-matrix.ts +2 -2
package/dist/src/dht/index.d.ts
CHANGED
package/dist/src/relay/util.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HopMessage } from './pb/index.ts';
|
|
2
|
-
import type { Daemon } from '../index.
|
|
2
|
+
import type { Daemon } from '../index.ts';
|
|
3
3
|
import type { PeerId, Stream } from '@libp2p/interface';
|
|
4
4
|
export declare const reserve: (d: Daemon, peerID: PeerId, message?: Partial<HopMessage>) => Promise<HopMessage>;
|
|
5
5
|
export declare const echoHandler: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DaemonFactory, SpawnOptions } from '../index.
|
|
1
|
+
import type { DaemonFactory, SpawnOptions } from '../index.ts';
|
|
2
2
|
export declare function echoStreamTests(name: string, factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void;
|
|
3
3
|
//# sourceMappingURL=echo.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/interop",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.27-160a24585",
|
|
4
4
|
"description": "Interoperability Tests for libp2p",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interop#readme",
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
"docs": "aegir docs"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@libp2p/daemon-client": "10.0.
|
|
47
|
-
"@libp2p/interface": "3.2.2-
|
|
48
|
-
"@libp2p/utils": "7.2.1-
|
|
49
|
-
"@multiformats/multiaddr": "^13.0.
|
|
46
|
+
"@libp2p/daemon-client": "10.0.27-160a24585",
|
|
47
|
+
"@libp2p/interface": "3.2.2-160a24585",
|
|
48
|
+
"@libp2p/utils": "7.2.1-160a24585",
|
|
49
|
+
"@multiformats/multiaddr": "^13.0.3",
|
|
50
50
|
"delay": "^7.0.0",
|
|
51
51
|
"it-all": "^3.0.9",
|
|
52
52
|
"it-first": "^3.0.9",
|
|
53
|
-
"multiformats": "^
|
|
53
|
+
"multiformats": "^14.0.0",
|
|
54
54
|
"p-retry": "^8.0.0",
|
|
55
55
|
"p-wait-for": "^6.0.0",
|
|
56
56
|
"protons-runtime": "^6.0.1",
|
|
57
57
|
"uint8arraylist": "^2.4.8",
|
|
58
|
-
"uint8arrays": "^
|
|
58
|
+
"uint8arrays": "^6.1.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"aegir": "^
|
|
61
|
+
"aegir": "^48.0.11",
|
|
62
62
|
"protons": "^8.1.1"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"aegir": "^
|
|
65
|
+
"aegir": "^48.0.11"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/src/connect/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { expect } from 'aegir/chai'
|
|
2
|
-
import type { Daemon, DaemonFactory, NodeType, SpawnOptions, TransportType } from '../index.
|
|
2
|
+
import type { Daemon, DaemonFactory, NodeType, SpawnOptions, TransportType } from '../index.ts'
|
|
3
3
|
|
|
4
4
|
export function connectTests (factory: DaemonFactory): void {
|
|
5
5
|
const nodeTypes: NodeType[] = ['js', 'go']
|
|
@@ -2,7 +2,7 @@ import { expect } from 'aegir/chai'
|
|
|
2
2
|
import delay from 'delay'
|
|
3
3
|
import { concat as uint8ArrayConcat } from 'uint8arrays/concat'
|
|
4
4
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
5
|
-
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.
|
|
5
|
+
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.ts'
|
|
6
6
|
|
|
7
7
|
const record = {
|
|
8
8
|
key: uint8ArrayConcat([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect } from 'aegir/chai'
|
|
2
2
|
import all from 'it-all'
|
|
3
3
|
import { CID } from 'multiformats/cid'
|
|
4
|
-
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.
|
|
4
|
+
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.ts'
|
|
5
5
|
import type { IdentifyResult } from '@libp2p/daemon-client'
|
|
6
6
|
|
|
7
7
|
export function contentRoutingTests (factory: DaemonFactory): void {
|
package/src/dht/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { contentFetchingTests } from './content-fetching.ts'
|
|
2
2
|
import { contentRoutingTests } from './content-routing.ts'
|
|
3
3
|
import { peerRoutingTests } from './peer-routing.ts'
|
|
4
|
-
import type { DaemonFactory } from '../index.
|
|
4
|
+
import type { DaemonFactory } from '../index.ts'
|
|
5
5
|
|
|
6
6
|
export async function dhtTests (factory: DaemonFactory): Promise<void> {
|
|
7
7
|
contentFetchingTests(factory)
|
package/src/dht/peer-routing.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect } from 'aegir/chai'
|
|
2
2
|
import pRetry from 'p-retry'
|
|
3
|
-
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.
|
|
3
|
+
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.ts'
|
|
4
4
|
import type { PeerInfo } from '@libp2p/interface'
|
|
5
5
|
|
|
6
6
|
export function peerRoutingTests (factory: DaemonFactory): void {
|
package/src/pubsub/floodsub.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { expect } from 'aegir/chai'
|
|
|
2
2
|
import first from 'it-first'
|
|
3
3
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
4
4
|
import { waitForSubscribed } from './utils.ts'
|
|
5
|
-
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.
|
|
5
|
+
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.ts'
|
|
6
6
|
|
|
7
7
|
export function floodsubTests (factory: DaemonFactory): void {
|
|
8
8
|
const nodeTypes: NodeType[] = ['js', 'go']
|
package/src/pubsub/gossipsub.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { expect } from 'aegir/chai'
|
|
|
2
2
|
import first from 'it-first'
|
|
3
3
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
4
4
|
import { waitForSubscribed } from './utils.ts'
|
|
5
|
-
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.
|
|
5
|
+
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.ts'
|
|
6
6
|
|
|
7
7
|
export function gossipsubTests (factory: DaemonFactory): void {
|
|
8
8
|
const nodeTypes: NodeType[] = ['js', 'go']
|
package/src/pubsub/hybrid.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { expect } from 'aegir/chai'
|
|
|
2
2
|
import first from 'it-first'
|
|
3
3
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
4
4
|
import { waitForSubscribed } from './utils.ts'
|
|
5
|
-
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.
|
|
5
|
+
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.ts'
|
|
6
6
|
|
|
7
7
|
export function hybridTests (factory: DaemonFactory): void {
|
|
8
8
|
const nodeTypes: NodeType[] = ['js', 'go']
|
package/src/pubsub/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { floodsubTests } from './floodsub.ts'
|
|
2
2
|
import { gossipsubTests } from './gossipsub.ts'
|
|
3
3
|
import { hybridTests } from './hybrid.ts'
|
|
4
|
-
import type { DaemonFactory } from '../index.
|
|
4
|
+
import type { DaemonFactory } from '../index.ts'
|
|
5
5
|
|
|
6
6
|
export async function pubsubTests (factory: DaemonFactory): Promise<void> {
|
|
7
7
|
floodsubTests(factory)
|
package/src/pubsub/utils.ts
CHANGED
package/src/relay/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { expect } from 'aegir/chai'
|
|
|
4
4
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
5
5
|
import { Status } from './pb/index.ts'
|
|
6
6
|
import { echoHandler, reserve } from './util.ts'
|
|
7
|
-
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.
|
|
7
|
+
import type { Daemon, DaemonFactory, NodeType, SpawnOptions } from '../index.ts'
|
|
8
8
|
import type { IdentifyResult } from '@libp2p/daemon-client'
|
|
9
9
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
|
10
10
|
|
package/src/relay/util.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pbStream, echo } from '@libp2p/utils'
|
|
2
2
|
import { HopMessage } from './pb/index.ts'
|
|
3
|
-
import type { Daemon } from '../index.
|
|
3
|
+
import type { Daemon } from '../index.ts'
|
|
4
4
|
import type { PeerId, Stream } from '@libp2p/interface'
|
|
5
5
|
|
|
6
6
|
const RELAY_V2_HOP = '/libp2p/circuit/relay/0.2.0/hop'
|
package/src/streams/echo.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { lpStream } from '@libp2p/utils'
|
|
|
2
2
|
import { expect } from 'aegir/chai'
|
|
3
3
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
4
4
|
import { echoHandler } from '../relay/util.ts'
|
|
5
|
-
import type { Daemon, DaemonFactory, SpawnOptions } from '../index.
|
|
5
|
+
import type { Daemon, DaemonFactory, SpawnOptions } from '../index.ts'
|
|
6
6
|
|
|
7
7
|
export function echoStreamTests (name: string, factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void {
|
|
8
8
|
describe(name, () => {
|
package/src/streams/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { runTests } from '../utils/test-matrix.
|
|
1
|
+
import { runTests } from '../utils/test-matrix.ts'
|
|
2
2
|
import { echoStreamTests } from './echo.ts'
|
|
3
|
-
import type { DaemonFactory } from '../index.
|
|
3
|
+
import type { DaemonFactory } from '../index.ts'
|
|
4
4
|
|
|
5
5
|
export async function streamTests (factory: DaemonFactory): Promise<void> {
|
|
6
6
|
runTests('echo', echoStreamTests, factory)
|
package/src/utils/test-matrix.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { keys } from '../resources/keys/index.
|
|
2
|
-
import type { DaemonFactory, Encryption, Muxer, NodeType, PeerIdType, SpawnOptions } from '../index.
|
|
1
|
+
import { keys } from '../resources/keys/index.ts'
|
|
2
|
+
import type { DaemonFactory, Encryption, Muxer, NodeType, PeerIdType, SpawnOptions } from '../index.ts'
|
|
3
3
|
|
|
4
4
|
export interface TestFunction {
|
|
5
5
|
(name: string, factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void
|