diff --git a/examples/chat/package.json b/examples/chat/package.json index a4a169a3..dfd2dd9c 100644 --- a/examples/chat/package.json +++ b/examples/chat/package.json @@ -19,7 +19,6 @@ "@topology-foundation/object": "0.2.0", "assemblyscript": "^0.27.29", "crypto-browserify": "^3.12.0", - "memfs": "^4.11.1", "process": "^0.11.10", "stream-browserify": "^3.0.0", "ts-node": "^10.9.2", diff --git a/examples/chat/vite.config.mts b/examples/chat/vite.config.mts index 2668f00b..82c807ac 100644 --- a/examples/chat/vite.config.mts +++ b/examples/chat/vite.config.mts @@ -9,7 +9,6 @@ export default defineConfig({ plugins: [ nodePolyfills({ overrides: { - fs: "memfs", }, }), ], diff --git a/packages/network/package.json b/packages/network/package.json index 6f924635..fc92fab2 100644 --- a/packages/network/package.json +++ b/packages/network/package.json @@ -44,7 +44,6 @@ "@libp2p/identify": "^3.0.2", "@libp2p/mdns": "^11.0.1", "@libp2p/peer-id": "^5.0.2", - "@libp2p/prometheus-metrics": "^4.2.0", "@libp2p/pubsub-peer-discovery": "^11.0.0", "@libp2p/webrtc": "^5.0.4", "@libp2p/websockets": "^9.0.2", diff --git a/packages/network/src/node.ts b/packages/network/src/node.ts index ebf1d171..81ae8464 100644 --- a/packages/network/src/node.ts +++ b/packages/network/src/node.ts @@ -21,7 +21,6 @@ import type { Stream, StreamHandler, } from "@libp2p/interface"; -import { prometheusMetrics } from "@libp2p/prometheus-metrics"; import { pubsubPeerDiscovery } from "@libp2p/pubsub-peer-discovery"; import { webRTC, webRTCDirect } from "@libp2p/webrtc"; import { webSockets } from "@libp2p/websockets"; @@ -77,7 +76,7 @@ export class TopologyNetworkNode { }, metrics: this._config?.browser_metrics ? devToolsMetrics() - : prometheusMetrics(), + : undefined, peerDiscovery: [ pubsubPeerDiscovery({ interval: 10_000, @@ -87,8 +86,8 @@ export class TopologyNetworkNode { list: this._config?.bootstrap_peers ? this._config.bootstrap_peers : [ - "/dns4/relay.droak.sh/tcp/443/wss/p2p/Qma3GsJmB47xYuyahPZPSadh1avvxfyYQwk8R3UnFrQ6aP", - ], + "/dns4/relay.droak.sh/tcp/443/wss/p2p/Qma3GsJmB47xYuyahPZPSadh1avvxfyYQwk8R3UnFrQ6aP", + ], }), ], services: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 37aae37f..d64dd470 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -108,9 +108,6 @@ importers: crypto-browserify: specifier: ^3.12.0 version: 3.12.0 - memfs: - specifier: ^4.11.1 - version: 4.11.1 process: specifier: ^0.11.10 version: 0.11.10 @@ -252,9 +249,6 @@ importers: '@libp2p/peer-id': specifier: ^5.0.2 version: 5.0.2 - '@libp2p/prometheus-metrics': - specifier: ^4.2.0 - version: 4.2.0 '@libp2p/pubsub-peer-discovery': specifier: ^11.0.0 version: 11.0.0 @@ -1563,9 +1557,6 @@ packages: '@libp2p/peer-store@11.0.2': resolution: {integrity: sha512-qiXJAqlIV/Xemjt8uBWUbRT+tdYkb4qOGwERK4kOzh9wKMphvk+XXSpRzEdwZs1aX9DMMYqcrPjZY5A7W+K1Jg==} - '@libp2p/prometheus-metrics@4.2.0': - resolution: {integrity: sha512-oIjoWobr+beCA3dcNti77uyXLZ/U7pJDjeyxiNdGl2NJOjzKWdhbZiTHySRBE7pf6qeFeAM0SC1EW+IuZ23wNg==} - '@libp2p/pubsub-peer-discovery@11.0.0': resolution: {integrity: sha512-QlknUb2SCbmWScWzv2TS1tJIErYzr2HJoA93ZKYAlz5Dsfr9P1I17HvvlOIt/Q2PFp1aMOJOOF5mNsFV5kU73w==} @@ -1679,10 +1670,6 @@ packages: '@octokit/types@13.5.0': resolution: {integrity: sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==} - '@opentelemetry/api@1.9.0': - resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==} - engines: {node: '>=8.0.0'} - '@pnpm/config.env-replace@1.1.0': resolution: {integrity: sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==} engines: {node: '>=12.22.0'} @@ -4465,10 +4452,6 @@ packages: progress-events@1.0.1: resolution: {integrity: sha512-MOzLIwhpt64KIVN64h1MwdKWiyKFNc/S6BoYKPIVUHFg0/eIEyBulhWCgn678v/4c0ri3FdGuzXymNCv02MUIw==} - prom-client@15.1.3: - resolution: {integrity: sha512-6ZiOBfCywsD4k1BN9IX0uZhF+tJkV8q8llP64G5Hajs4JOeVLPCwpPVcpXy3BwYiUGgyJzsJJQeOIv7+hDSq8g==} - engines: {node: ^16 || ^18 || >=20} - promise@8.3.0: resolution: {integrity: sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==} @@ -7095,14 +7078,6 @@ snapshots: uint8arraylist: 2.4.8 uint8arrays: 5.1.0 - '@libp2p/prometheus-metrics@4.2.0': - dependencies: - '@libp2p/interface': 2.1.2 - it-foreach: 2.1.1 - it-stream-types: 2.0.1 - prom-client: 15.1.3 - uint8arraylist: 2.4.8 - '@libp2p/pubsub-peer-discovery@11.0.0': dependencies: '@libp2p/crypto': 5.0.2 @@ -7370,8 +7345,6 @@ snapshots: dependencies: '@octokit/openapi-types': 22.2.0 - '@opentelemetry/api@1.9.0': {} - '@pnpm/config.env-replace@1.1.0': {} '@pnpm/network.ca-file@1.0.2': @@ -10612,11 +10585,6 @@ snapshots: progress-events@1.0.1: {} - prom-client@15.1.3: - dependencies: - '@opentelemetry/api': 1.9.0 - tdigest: 0.1.2 - promise@8.3.0: dependencies: asap: 2.0.6