Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@libp2p/circuit-relay-v2": "^4.2.11",
"@libp2p/identify": "^4.1.12",
"@libp2p/interface": "^3.2.5",
"@libp2p/webrtc": "^6.0.29",
"@libp2p/webrtc": "^7.0.2",
"@libp2p/websockets": "^10.1.19",
"@multiformats/multiaddr": "^13.0.3",
"@scure/bip32": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/connector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@libp2p/circuit-relay-v2": "^4.2.12",
"@libp2p/identify": "^4.1.13",
"@libp2p/interface": "^3.3.0",
"@libp2p/webrtc": "^6.0.30",
"@libp2p/webrtc": "^7.0.2",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Update the libp2p component graph alongside WebRTC

With this lockfile, the normal pnpm build:all fails: WebRTC 7.0.2 resolves @libp2p/interface-internal@3.2.2, whose Registrar requires the new one-argument use(middleware) overload, while libp2p@3.3.11 still supplies the 3.1.13 registrar with only use(protocol, middleware). Consequently the unchanged webRTC() entry passed to createLibp2p in packages/connector/src/scenes/khie/node.ts:49 is incompatible (TS2322), blocking the connector and workspace build. The app dependency change has the same mismatch.

The head build reports this exact error; its checkout explicitly merges bdd02ef into d2a663d. The base build passes.

Coverage: Local validation passed the isolated lockfile audit and 16 mock behavior checks. A local full build and live transport integration were not run; the CI results cited above are observed remote evidence.

Suggested fix

Update and resolve the related libp2p/interface packages together so the node and transport share compatible component contracts, or retain WebRTC 6.0.33 until that coordinated update is ready. Upstream introduced global middleware in libp2p 3.4.0. Regenerate the lockfile and rerun the connector and app type checks plus pnpm build:all; do not hide the mismatch with a cast.

Generated by ChatGPT · Alter Ego

"@libp2p/websockets": "^10.1.20",
"@multiformats/multiaddr": "^13.0.3",
"core-js": "^3.50.0",
Expand Down
Loading
Loading