@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.
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function connectTests(factory: DaemonFactory): void;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function contentFetchingTests(factory: DaemonFactory): void;
3
3
  //# sourceMappingURL=content-fetching.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function contentRoutingTests(factory: DaemonFactory): void;
3
3
  //# sourceMappingURL=content-routing.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function dhtTests(factory: DaemonFactory): Promise<void>;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function peerRoutingTests(factory: DaemonFactory): void;
3
3
  //# sourceMappingURL=peer-routing.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function floodsubTests(factory: DaemonFactory): void;
3
3
  //# sourceMappingURL=floodsub.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function gossipsubTests(factory: DaemonFactory): void;
3
3
  //# sourceMappingURL=gossipsub.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function hybridTests(factory: DaemonFactory): void;
3
3
  //# sourceMappingURL=hybrid.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function pubsubTests(factory: DaemonFactory): Promise<void>;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { Daemon } from '../index.js';
1
+ import type { Daemon } from '../index.ts';
2
2
  /**
3
3
  * Wait for daemon a to see daemon b in it's subscriber list
4
4
  * for the passed topic
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function relayTests(factory: DaemonFactory): void;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { HopMessage } from './pb/index.ts';
2
- import type { Daemon } from '../index.js';
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,4 +1,4 @@
1
- import type { NodeType, PeerIdType } from '../../index.js';
1
+ import type { NodeType, PeerIdType } from '../../index.ts';
2
2
  type KeyCollection = Record<PeerIdType, string>;
3
3
  export declare const keys: Record<NodeType, KeyCollection>;
4
4
  export {};
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory, SpawnOptions } from '../index.js';
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
@@ -1,3 +1,3 @@
1
- import type { DaemonFactory } from '../index.js';
1
+ import type { DaemonFactory } from '../index.ts';
2
2
  export declare function streamTests(factory: DaemonFactory): Promise<void>;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { runTests } from '../utils/test-matrix.js';
1
+ import { runTests } from "../utils/test-matrix.js";
2
2
  import { echoStreamTests } from "./echo.js";
3
3
  export async function streamTests(factory) {
4
4
  runTests('echo', echoStreamTests, factory);
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
- key: Uint8Array<ArrayBufferLike>;
3
- value: Uint8Array<ArrayBufferLike>;
2
+ key: Uint8Array<ArrayBuffer>;
3
+ value: Uint8Array<ArrayBuffer>;
4
4
  };
5
5
  export default _default;
6
6
  //# sourceMappingURL=dht-record.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { DaemonFactory, SpawnOptions } from '../index.js';
1
+ import type { DaemonFactory, SpawnOptions } from '../index.ts';
2
2
  export interface TestFunction {
3
3
  (name: string, factory: DaemonFactory, optionsA: SpawnOptions, optionsB: SpawnOptions): void;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { keys } from '../resources/keys/index.js';
1
+ import { keys } from "../resources/keys/index.js";
2
2
  export function runTests(name, fn, factory) {
3
3
  const keyTypes = ['ed25519', 'rsa', 'secp256k1'];
4
4
  const impls = ['js', 'go'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/interop",
3
- "version": "14.0.26-ed1ad1f26",
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.26-ed1ad1f26",
47
- "@libp2p/interface": "3.2.2-ed1ad1f26",
48
- "@libp2p/utils": "7.2.1-ed1ad1f26",
49
- "@multiformats/multiaddr": "^13.0.1",
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": "^13.4.0",
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": "^5.1.0"
58
+ "uint8arrays": "^6.1.1"
59
59
  },
60
60
  "devDependencies": {
61
- "aegir": "^47.0.22",
61
+ "aegir": "^48.0.11",
62
62
  "protons": "^8.1.1"
63
63
  },
64
64
  "peerDependencies": {
65
- "aegir": "^47.0.22"
65
+ "aegir": "^48.0.11"
66
66
  }
67
67
  }
@@ -1,5 +1,5 @@
1
1
  import { expect } from 'aegir/chai'
2
- import type { Daemon, DaemonFactory, NodeType, SpawnOptions, TransportType } from '../index.js'
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.js'
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.js'
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.js'
4
+ import type { DaemonFactory } from '../index.ts'
5
5
 
6
6
  export async function dhtTests (factory: DaemonFactory): Promise<void> {
7
7
  contentFetchingTests(factory)
@@ -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.js'
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 {
@@ -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.js'
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']
@@ -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.js'
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']
@@ -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.js'
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']
@@ -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.js'
4
+ import type { DaemonFactory } from '../index.ts'
5
5
 
6
6
  export async function pubsubTests (factory: DaemonFactory): Promise<void> {
7
7
  floodsubTests(factory)
@@ -1,6 +1,6 @@
1
1
  import delay from 'delay'
2
2
  import pWaitFor from 'p-wait-for'
3
- import type { Daemon } from '../index.js'
3
+ import type { Daemon } from '../index.ts'
4
4
 
5
5
  /**
6
6
  * Wait for daemon a to see daemon b in it's subscriber list
@@ -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.js'
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.js'
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'
@@ -1,6 +1,6 @@
1
1
  import path from 'node:path'
2
2
  import { fileURLToPath } from 'node:url'
3
- import type { NodeType, PeerIdType } from '../../index.js'
3
+ import type { NodeType, PeerIdType } from '../../index.ts'
4
4
 
5
5
  const __dirname = path.dirname(fileURLToPath(import.meta.url))
6
6
 
@@ -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.js'
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, () => {
@@ -1,6 +1,6 @@
1
- import { runTests } from '../utils/test-matrix.js'
1
+ import { runTests } from '../utils/test-matrix.ts'
2
2
  import { echoStreamTests } from './echo.ts'
3
- import type { DaemonFactory } from '../index.js'
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)
@@ -1,5 +1,5 @@
1
- import { keys } from '../resources/keys/index.js'
2
- import type { DaemonFactory, Encryption, Muxer, NodeType, PeerIdType, SpawnOptions } from '../index.js'
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