@oceanprotocol/lib 7.0.0-next.0 → 7.0.0-next.1

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.
@@ -42,6 +42,7 @@ export declare class BaseProvider {
42
42
  peerId: string;
43
43
  multiaddrs: string[];
44
44
  }>;
45
+ getMultiaddrFromPeerId(peerId: string): Promise<string>;
45
46
  fetchConfig(nodeUri: string, payload: Record<string, any>): Promise<any>;
46
47
  pushConfig(nodeUri: string, payload: Record<string, any>): Promise<any>;
47
48
  }
@@ -22,11 +22,6 @@ export interface P2PConfig {
22
22
  * a direct dial. Once a peer is found and connected, subsequent calls skip this.
23
23
  */
24
24
  dhtLookupTimeout?: number;
25
- /**
26
- * mDNS discovery interval in ms. Set to 0 to disable. Default: 20000
27
- * Useful for local development — discovers peers on the same LAN without bootstrap nodes.
28
- */
29
- mDNSInterval?: number;
30
25
  /**
31
26
  * Enable TCP transport in addition to WebSockets. Default: false.
32
27
  * Required in Node.js/Electron environments to reach nodes over plain TCP.
@@ -53,6 +48,7 @@ export declare class P2pProvider {
53
48
  * provide DHT entry points so the peer can be located.
54
49
  */
55
50
  setupP2P(config: P2PConfig): Promise<void>;
51
+ getMultiaddrFromPeerId(peerId: string): Promise<string>;
56
52
  /** Returns all peers discovered via mDNS or DHT bootstrap. */
57
53
  getDiscoveredNodes(): Array<{
58
54
  peerId: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "7.0.0-next.0",
4
+ "version": "7.0.0-next.1",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.cjs",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -79,7 +79,7 @@
79
79
  "form-data": "^2.3.3",
80
80
  "jsonwebtoken": "^9.0.2",
81
81
  "libp2p": "^3.1.6",
82
- "uint8arrays": "^4.0.10"
82
+ "uint8arrays": "^5.1.0"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@istanbuljs/nyc-config-typescript": "^1.0.2",