Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade libp2p & related deps #1471

Merged
merged 22 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a343297
chore: update noise
danisharora099 Aug 11, 2023
51b93f8
update: package.lock
danisharora099 Aug 11, 2023
c0652cf
update: @chainsafe/libp2p-gossipsub
danisharora099 Aug 11, 2023
06b92eb
rm unwanted libp2p interface deps & bump up libp2p
danisharora099 Aug 11, 2023
e2fbdb3
refactor code for new deps
danisharora099 Aug 11, 2023
d9b499c
Merge branch 'master' of github.com:waku-org/js-waku into chore/upgra…
danisharora099 Aug 11, 2023
7b58f17
update: new package.lock
danisharora099 Aug 11, 2023
7f6ef97
Merge branch 'master' of github.com:waku-org/js-waku into chore/upgra…
danisharora099 Aug 12, 2023
6eceeb8
update package.lock
danisharora099 Aug 12, 2023
f7a77ad
Merge branch 'chore/prettier' of github.com:waku-org/js-waku into cho…
danisharora099 Aug 12, 2023
700267a
fix build
danisharora099 Aug 12, 2023
d97579b
chore(deps)(deps-dev): bump eslint-plugin-functional from 5.0.8 to 6.…
dependabot[bot] Aug 15, 2023
1548a4f
chore(peer-exchange): refactor/fix compliance test (#1478)
danisharora099 Aug 16, 2023
3d24cd6
re-enable @waku/tests (#1472)
danisharora099 Aug 16, 2023
5ad0210
chore(deps)(deps): bump @libp2p/websockets from 6.0.3 to 7.0.3 (#1481)
dependabot[bot] Aug 16, 2023
6d78c73
import type for interface
danisharora099 Aug 16, 2023
7b6ead1
update: tsdoc (#1476)
danisharora099 Aug 16, 2023
68baeaa
Merge branch 'master' of github.com:waku-org/js-waku into chore/upgra…
danisharora099 Aug 16, 2023
e8770c9
fix imports for merge
danisharora099 Aug 16, 2023
31279b3
update typedoc exports
danisharora099 Aug 16, 2023
9926c79
add: CustomEvent import
danisharora099 Aug 16, 2023
1fcd6ac
use new libp2p interface
danisharora099 Aug 16, 2023
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
61,430 changes: 15,799 additions & 45,631 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@libp2p/interface-connection": "^5.1.1",
"@libp2p/interface-libp2p": "^3.2.0",
"@libp2p/interface-peer-id": "^2.0.2",
"@libp2p/interface-peer-store": "^2.0.4",
"@libp2p/interface-registrar": "^2.0.12",
"@multiformats/multiaddr": "^12.0.0",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
Expand Down Expand Up @@ -119,7 +114,7 @@
},
"peerDependencies": {
"@multiformats/multiaddr": "^12.0.0",
"libp2p": "^0.45.9"
"libp2p": "^0.46.3"
},
"peerDependenciesMeta": {
"@multiformats/multiaddr": {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/lib/base_protocol.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Stream } from "@libp2p/interface-connection";
import type { Libp2p } from "@libp2p/interface-libp2p";
import type { PeerId } from "@libp2p/interface-peer-id";
import { Peer, PeerStore } from "@libp2p/interface-peer-store";
import type { Libp2p } from "@libp2p/interface";
import type { Stream } from "@libp2p/interface/connection";
import type { PeerId } from "@libp2p/interface/peer-id";
import { Peer, PeerStore } from "@libp2p/interface/peer-store";
import type { IBaseProtocol, Libp2pComponents } from "@waku/interfaces";
import {
getPeersForProtocol,
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/lib/connection_manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PeerId } from "@libp2p/interface-peer-id";
import type { PeerInfo } from "@libp2p/interface-peer-info";
import type { Peer } from "@libp2p/interface-peer-store";
import type { PeerId } from "@libp2p/interface/peer-id";
import type { PeerInfo } from "@libp2p/interface/peer-info";
import type { Peer } from "@libp2p/interface/peer-store";
import { CustomEvent, EventEmitter } from "@libp2p/interfaces/events";
import {
ConnectionManagerOptions,
Expand Down Expand Up @@ -31,7 +31,7 @@
private options: ConnectionManagerOptions;
private libp2p: Libp2p;
private dialAttemptsForPeer: Map<string, number> = new Map();
private dialErrorsForPeer: Map<string, any> = new Map();

Check warning on line 34 in packages/core/src/lib/connection_manager.ts

View workflow job for this annotation

GitHub Actions / check

Unexpected any. Specify a different type

Check warning on line 34 in packages/core/src/lib/connection_manager.ts

View workflow job for this annotation

GitHub Actions / proto

Unexpected any. Specify a different type

private currentActiveDialCount = 0;
private pendingPeerDialQueue: Array<PeerId> = [];
Expand Down Expand Up @@ -197,7 +197,7 @@
// Handle generic error
log(
`Error dialing peer ${peerId.toString()} - ${
(error as any).message

Check warning on line 200 in packages/core/src/lib/connection_manager.ts

View workflow job for this annotation

GitHub Actions / check

Unexpected any. Specify a different type

Check warning on line 200 in packages/core/src/lib/connection_manager.ts

View workflow job for this annotation

GitHub Actions / proto

Unexpected any. Specify a different type
}`
);
}
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/lib/filter/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Stream } from "@libp2p/interface-connection";
import type { PeerId } from "@libp2p/interface-peer-id";
import type { Peer } from "@libp2p/interface-peer-store";
import type { IncomingStreamData } from "@libp2p/interface-registrar";
import { Stream } from "@libp2p/interface/connection";
import type { PeerId } from "@libp2p/interface/peer-id";
import type { Peer } from "@libp2p/interface/peer-store";
import type { IncomingStreamData } from "@libp2p/interface-internal/registrar";
import type {
Callback,
ContentTopic,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/light_push/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from "@libp2p/interface-peer-id";
import type { PeerId } from "@libp2p/interface/peer-id";
import {
IEncoder,
ILightPush,
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/lib/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Stream } from "@libp2p/interface-connection";
import type { PeerId } from "@libp2p/interface-peer-id";
import type { Stream } from "@libp2p/interface/connection";
import type { PeerId } from "@libp2p/interface/peer-id";
import { sha256 } from "@noble/hashes/sha256";
import {
Cursor,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/wait_for_remote_peer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IdentifyResult } from "@libp2p/interface-libp2p";
import type { IdentifyResult } from "@libp2p/interface";
import type { IBaseProtocol, IRelay, Waku } from "@waku/interfaces";
import { Protocols } from "@waku/interfaces";
import debug from "debug";
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/lib/waku.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Stream } from "@libp2p/interface-connection";
import { isPeerId, PeerId } from "@libp2p/interface-peer-id";
import type { Stream } from "@libp2p/interface/connection";
import { isPeerId, PeerId } from "@libp2p/interface/peer-id";
import { multiaddr, Multiaddr, MultiaddrInput } from "@multiformats/multiaddr";
import type {
IFilter,
Expand Down
4 changes: 0 additions & 4 deletions packages/dns-discovery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
"node": ">=16"
},
"dependencies": {
"@libp2p/interface-peer-discovery": "^2.0.0",
"@libp2p/interfaces": "^3.3.2",
"@waku/enr": "0.0.16",
"@waku/utils": "0.0.10",
"debug": "^4.3.4",
Expand All @@ -61,8 +59,6 @@
"uint8arrays": "^4.0.4"
},
"devDependencies": {
"@libp2p/interface-peer-info": "^1.0.10",
"@libp2p/interface-peer-store": "^2.0.4",
"@libp2p/peer-id": "^2.0.4",
"@libp2p/peer-id-factory": "^2.0.4",
"@multiformats/multiaddr": "^12.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/dns-discovery/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { CustomEvent, EventEmitter } from "@libp2p/interface/events";
import type {
PeerDiscovery,
PeerDiscoveryEvents
} from "@libp2p/interface-peer-discovery";
import { peerDiscovery as symbol } from "@libp2p/interface-peer-discovery";
import type { PeerInfo } from "@libp2p/interface-peer-info";
import type { PeerStore } from "@libp2p/interface-peer-store";
import { CustomEvent, EventEmitter } from "@libp2p/interfaces/events";
} from "@libp2p/interface/peer-discovery";
import { peerDiscovery as symbol } from "@libp2p/interface/peer-discovery";
import type { PeerInfo } from "@libp2p/interface/peer-info";
import type { PeerStore } from "@libp2p/interface/peer-store";
import type { IEnr } from "@waku/interfaces";
import debug from "debug";

Expand Down
2 changes: 0 additions & 2 deletions packages/enr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
"js-sha3": "^0.8.0"
},
"devDependencies": {
"@libp2p/interface-peer-id": "^2.0.2",
"@libp2p/interface-peer-info": "^1.0.10",
"@libp2p/peer-id-factory": "^2.0.4",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/enr/src/creator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PeerId } from "@libp2p/interface-peer-id";
import { PeerId } from "@libp2p/interface/peer-id";
import type { ENRKey, ENRValue } from "@waku/interfaces";
danisharora099 marked this conversation as resolved.
Show resolved Hide resolved
import { utf8ToBytes } from "@waku/utils/bytes";

Expand Down
2 changes: 1 addition & 1 deletion packages/enr/src/enr.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from "@libp2p/interface-peer-id";
import type { PeerId } from "@libp2p/interface/peer-id";
import { createSecp256k1PeerId } from "@libp2p/peer-id-factory";
import { multiaddr } from "@multiformats/multiaddr";
import * as secp from "@noble/secp256k1";
Expand Down
4 changes: 2 additions & 2 deletions packages/enr/src/enr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PeerId } from "@libp2p/interface-peer-id";
import type { PeerInfo } from "@libp2p/interface-peer-info";
import type { PeerId } from "@libp2p/interface/peer-id";
import type { PeerInfo } from "@libp2p/interface/peer-info";
import type { Multiaddr } from "@multiformats/multiaddr";
import type {
ENRKey,
Expand Down
2 changes: 1 addition & 1 deletion packages/enr/src/peer_id.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { unmarshalPrivateKey, unmarshalPublicKey } from "@libp2p/crypto/keys";
import { supportedKeys } from "@libp2p/crypto/keys";
import type { PeerId } from "@libp2p/interface-peer-id";
import type { PeerId } from "@libp2p/interface/peer-id";
import { peerIdFromKeys } from "@libp2p/peer-id";

export function createPeerIdFromPublicKey(
Expand Down
11 changes: 2 additions & 9 deletions packages/interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,12 @@
"node": ">=16"
},
"devDependencies": {
"@chainsafe/libp2p-gossipsub": "^9.1.0",
"@libp2p/interface-connection": "^5.1.1",
"@libp2p/interface-connection-manager": "^3.0.1",
"@libp2p/interface-libp2p": "^3.2.0",
"@libp2p/interface-peer-id": "^2.0.2",
"@libp2p/interface-peer-info": "^1.0.10",
"@libp2p/interface-peer-store": "^2.0.4",
"@libp2p/interface-registrar": "^2.0.12",
"@chainsafe/libp2p-gossipsub": "^10.0.0",
"@multiformats/multiaddr": "^12.0.0",
"cspell": "^7.0.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.0.4",
"libp2p": "^0.45.9"
"libp2p": "^0.46.3"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
4 changes: 2 additions & 2 deletions packages/interfaces/src/connection_manager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PeerId } from "@libp2p/interface-peer-id";
import type { Peer } from "@libp2p/interface-peer-store";
import type { PeerId } from "@libp2p/interface/peer-id";
import type { Peer } from "@libp2p/interface/peer-store";
import type { EventEmitter } from "@libp2p/interfaces/events";

export enum Tags {
Expand Down
4 changes: 2 additions & 2 deletions packages/interfaces/src/enr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PeerId } from "@libp2p/interface-peer-id";
import type { PeerInfo } from "@libp2p/interface-peer-info";
import type { PeerId } from "@libp2p/interface/peer-id";
import type { PeerInfo } from "@libp2p/interface/peer-info";
import type { Multiaddr } from "@multiformats/multiaddr";

export type ENRKey = string;
Expand Down
2 changes: 1 addition & 1 deletion packages/interfaces/src/filter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PeerId } from "@libp2p/interface-peer-id";
import type { PeerId } from "@libp2p/interface/peer-id";

import type { IDecodedMessage, IDecoder } from "./message.js";
import type { ContentTopic } from "./misc.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/interfaces/src/libp2p.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { GossipSub } from "@chainsafe/libp2p-gossipsub";
import type { Libp2p as BaseLibp2p } from "@libp2p/interface-libp2p";
import type { Libp2p as BaseLibp2p } from "@libp2p/interface";
import type { Libp2pInit } from "libp2p";
import type { identifyService } from "libp2p/identify";
import type { PingService } from "libp2p/ping";
Expand Down
6 changes: 3 additions & 3 deletions packages/interfaces/src/peer_exchange.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ConnectionManager } from "@libp2p/interface-connection-manager";
import type { PeerId } from "@libp2p/interface-peer-id";
import type { PeerStore } from "@libp2p/interface-peer-store";
import type { PeerId } from "@libp2p/interface/peer-id";
import type { PeerStore } from "@libp2p/interface/peer-store";
import type { ConnectionManager } from "@libp2p/interface-internal/connection-manager";

import { IEnr } from "./enr.js";
import { IBaseProtocol } from "./protocols.js";
Expand Down
6 changes: 3 additions & 3 deletions packages/interfaces/src/protocols.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Libp2p } from "@libp2p/interface-libp2p";
import type { PeerId } from "@libp2p/interface-peer-id";
import type { Peer, PeerStore } from "@libp2p/interface-peer-store";
import type { Libp2p } from "@libp2p/interface";
import type { PeerId } from "@libp2p/interface/peer-id";
import type { Peer, PeerStore } from "@libp2p/interface/peer-store";
import type { Libp2pOptions } from "libp2p";

import type { IDecodedMessage } from "./message.js";
Expand Down
4 changes: 2 additions & 2 deletions packages/interfaces/src/waku.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Stream } from "@libp2p/interface-connection";
import type { PeerId } from "@libp2p/interface-peer-id";
import type { Stream } from "@libp2p/interface/connection";
import type { PeerId } from "@libp2p/interface/peer-id";
import type { Multiaddr } from "@multiformats/multiaddr";

import { IConnectionManager } from "./connection_manager.js";
Expand Down
6 changes: 0 additions & 6 deletions packages/message-encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@
"js-sha3": "^0.8.0"
},
"devDependencies": {
"@libp2p/interface-connection": "^5.1.1",
"@libp2p/interface-connection-manager": "^3.0.1",
"@libp2p/interface-libp2p": "^3.2.0",
"@libp2p/interface-peer-id": "^2.0.2",
"@libp2p/interface-peer-store": "^2.0.4",
"@libp2p/interface-registrar": "^2.0.12",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
Expand Down
9 changes: 1 addition & 8 deletions packages/peer-exchange/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,18 @@
"node": ">=16"
},
"dependencies": {
"@libp2p/interface-peer-discovery": "^2.0.0",
"@libp2p/interfaces": "^3.3.2",
"@waku/core": "0.0.22",
"@waku/enr": "0.0.16",
"@waku/interfaces": "0.0.17",
"@waku/proto": "0.0.5",
"@waku/utils": "0.0.10",
"@waku/interfaces": "0.0.17",
"debug": "^4.3.4",
"it-all": "^3.0.2",
"it-length-prefixed": "^9.0.1",
"it-pipe": "^3.0.1"
},
"devDependencies": {
"@libp2p/interface-connection-manager": "^3.0.1",
"@libp2p/interface-libp2p": "^3.2.0",
"@libp2p/interface-peer-id": "^2.0.2",
"@libp2p/interface-peer-info": "^1.0.10",
"@libp2p/interface-peer-store": "^2.0.4",
"@libp2p/interface-registrar": "^2.0.12",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
Expand Down
10 changes: 5 additions & 5 deletions packages/peer-exchange/src/waku_peer_exchange_discovery.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { PeerUpdate } from "@libp2p/interface-libp2p";
import type { PeerUpdate } from "@libp2p/interface";
import { CustomEvent, EventEmitter } from "@libp2p/interface/events";
import type {
PeerDiscovery,
PeerDiscoveryEvents
} from "@libp2p/interface-peer-discovery";
import { peerDiscovery as symbol } from "@libp2p/interface-peer-discovery";
} from "@libp2p/interface/peer-discovery";
import { peerDiscovery as symbol } from "@libp2p/interface/peer-discovery";
import type { PeerInfo } from "@libp2p/interface/peer-info";
import type { PeerId } from "@libp2p/interface-peer-id";
import type { PeerInfo } from "@libp2p/interface-peer-info";
import { CustomEvent, EventEmitter } from "@libp2p/interfaces/events";
import { Libp2pComponents, Tags } from "@waku/interfaces";
import debug from "debug";

Expand Down
3 changes: 1 addition & 2 deletions packages/relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"node": ">=16"
},
"dependencies": {
"@chainsafe/libp2p-gossipsub": "^9.1.0",
"@chainsafe/libp2p-gossipsub": "^10.0.0",
"@noble/hashes": "^1.3.0",
"@waku/core": "0.0.22",
"@waku/interfaces": "0.0.17",
Expand All @@ -60,7 +60,6 @@
"fast-check": "^3.8.1"
},
"devDependencies": {
"@libp2p/interface-pubsub": "^4.0.1",
"@rollup/plugin-commonjs": "^24.1.0",
"@waku/build-utils": "*",
"@rollup/plugin-json": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/relay/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from "@chainsafe/libp2p-gossipsub";
import type { PeerIdStr, TopicStr } from "@chainsafe/libp2p-gossipsub/types";
import { SignaturePolicy } from "@chainsafe/libp2p-gossipsub/types";
import type { PubSub } from "@libp2p/interface-pubsub";
import type { PubSub } from "@libp2p/interface/pubsub";
import { sha256 } from "@noble/hashes/sha256";
import { DefaultPubSubTopic } from "@waku/core";
import {
Expand Down
4 changes: 2 additions & 2 deletions packages/relay/src/message_validator.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TopicValidatorResult } from "@libp2p/interface-pubsub";
import type { UnsignedMessage } from "@libp2p/interface-pubsub";
import { TopicValidatorResult } from "@libp2p/interface/pubsub";
import type { UnsignedMessage } from "@libp2p/interface/pubsub";
import { createSecp256k1PeerId } from "@libp2p/peer-id-factory";
import { createEncoder } from "@waku/core";
import { expect } from "chai";
Expand Down
6 changes: 3 additions & 3 deletions packages/relay/src/message_validator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PeerId } from "@libp2p/interface-peer-id";
import type { Message } from "@libp2p/interface-pubsub";
import { TopicValidatorResult } from "@libp2p/interface-pubsub";
import type { PeerId } from "@libp2p/interface/peer-id";
import type { Message } from "@libp2p/interface/pubsub";
import { TopicValidatorResult } from "@libp2p/interface/pubsub";
import { proto_message as proto } from "@waku/proto";
import debug from "debug";

Expand Down
30 changes: 8 additions & 22 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,36 +48,22 @@
"node": ">=16"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^12.0.1",
"@libp2p/mplex": "^8.0.4",
"@libp2p/websockets": "^6.0.3",
"@waku/utils": "0.0.10",
"@waku/relay": "0.0.5",
"@chainsafe/libp2p-noise": "^13.0.0",
"@libp2p/mplex": "^9.0.2",
"@libp2p/websockets": "^7.0.2",
"@waku/core": "0.0.22",
"@waku/interfaces": "0.0.17",
"@waku/dns-discovery": "0.0.16",
"libp2p": "^0.45.9"
"@waku/interfaces": "0.0.17",
"@waku/relay": "0.0.5",
"@waku/utils": "0.0.10",
"libp2p": "^0.46.3"
},
"devDependencies": {
"@libp2p/interface-address-manager": "^3.0.1",
"@libp2p/interface-connection": "^5.1.1",
"@libp2p/interface-connection-manager": "^3.0.1",
"@libp2p/interface-content-routing": "^2.1.1",
"@libp2p/interface-dht": "^2.0.3",
"@libp2p/interface-libp2p": "^3.2.0",
"@libp2p/interface-metrics": "^4.0.8",
"@libp2p/interface-peer-discovery": "^2.0.0",
"@libp2p/interface-peer-id": "^2.0.2",
"@libp2p/interface-peer-routing": "^1.1.1",
"@libp2p/interface-peer-store": "^2.0.4",
"@libp2p/interface-pubsub": "^4.0.1",
"@libp2p/interface-registrar": "^2.0.12",
"@libp2p/interface-transport": "^4.0.3",
"@chainsafe/libp2p-gossipsub": "^10.0.0",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@waku/build-utils": "*",
"@chainsafe/libp2p-gossipsub": "^9.1.0",
"cspell": "^7.0.0",
"interface-datastore": "^7.0.4",
"npm-run-all": "^4.1.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/create.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { GossipSub } from "@chainsafe/libp2p-gossipsub";
import { noise } from "@chainsafe/libp2p-noise";
import type { PeerDiscovery } from "@libp2p/interface-peer-discovery";
import type { PeerDiscovery } from "@libp2p/interface/peer-discovery";
import { mplex } from "@libp2p/mplex";
import { webSockets } from "@libp2p/websockets";
import { all as filterAll } from "@libp2p/websockets/filters";
Expand Down Expand Up @@ -179,5 +179,5 @@
...pubsubService,
...options?.services
}
}) as any as Libp2p; // TODO: make libp2p include it;

Check warning on line 182 in packages/sdk/src/create.ts

View workflow job for this annotation

GitHub Actions / check

Unexpected any. Specify a different type

Check warning on line 182 in packages/sdk/src/create.ts

View workflow job for this annotation

GitHub Actions / proto

Unexpected any. Specify a different type
}
Loading
Loading