Merge branch 'master' of https://github.com/waku-org/js-waku into chore/new-store-tests

This commit is contained in:
fbarbu15 2023-10-03 10:06:14 +03:00
commit a7ef4b80da
No known key found for this signature in database
GPG Key ID: D75221C8DEA22501
11 changed files with 36 additions and 28 deletions

46
package-lock.json generated
View File

@ -10178,7 +10178,9 @@
}
},
"node_modules/fast-check": {
"version": "3.13.0",
"version": "3.13.1",
"resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.13.1.tgz",
"integrity": "sha512-Xp00tFuWd83i8rbG/4wU54qU+yINjQha7bXH2N4ARNTkyOimzHtUBJ5+htpdXk7RMaCOD/j2jxSjEt9u9ZPNeQ==",
"funding": [
{
"type": "individual",
@ -10189,7 +10191,6 @@
"url": "https://opencollective.com/fast-check"
}
],
"license": "MIT",
"dependencies": {
"pure-rand": "^6.0.0"
},
@ -13018,8 +13019,9 @@
}
},
"node_modules/libp2p": {
"version": "0.46.11",
"license": "Apache-2.0 OR MIT",
"version": "0.46.12",
"resolved": "https://registry.npmjs.org/libp2p/-/libp2p-0.46.12.tgz",
"integrity": "sha512-LPEfSVW/tsFNaUplNo/QqDsg9C7wed+lBGPUUhUsRcnPnKQTqZnKBpA9pSv2+A0ST9B++uiyCOk+JK7nIlpjeA==",
"dependencies": {
"@achingbrain/nat-port-mapper": "^1.0.9",
"@libp2p/crypto": "^2.0.4",
@ -25826,7 +25828,7 @@
"@waku/build-utils": "*",
"chai": "^4.3.7",
"cspell": "^7.3.2",
"fast-check": "^3.12.0",
"fast-check": "^3.13.1",
"ignore-loader": "^0.1.2",
"isomorphic-fetch": "^3.0.0",
"mocha": "^10.2.0",
@ -25922,7 +25924,7 @@
"@chainsafe/libp2p-gossipsub": "^10.1.0",
"@multiformats/multiaddr": "^12.0.0",
"cspell": "^7.3.2",
"libp2p": "^0.46.9",
"libp2p": "^0.46.12",
"npm-run-all": "^4.1.5"
},
"engines": {
@ -25951,7 +25953,7 @@
"@waku/build-utils": "*",
"chai": "^4.3.7",
"cspell": "^7.3.2",
"fast-check": "^3.12.0",
"fast-check": "^3.13.1",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
"process": "^0.11.10",
@ -25980,7 +25982,7 @@
"@waku/interfaces": "0.0.18",
"chai": "^4.3.7",
"cspell": "^7.3.2",
"fast-check": "^3.12.0",
"fast-check": "^3.13.1",
"ignore-loader": "^0.1.2",
"isomorphic-fetch": "^3.0.0",
"mocha": "^10.2.0",
@ -26058,7 +26060,7 @@
"@waku/utils": "0.0.11",
"chai": "^4.3.7",
"debug": "^4.3.4",
"fast-check": "^3.12.0"
"fast-check": "^3.13.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.4",
@ -26085,7 +26087,7 @@
"@waku/peer-exchange": "^0.0.16",
"@waku/relay": "0.0.6",
"@waku/utils": "0.0.11",
"libp2p": "^0.46.9"
"libp2p": "^0.46.12"
},
"devDependencies": {
"@chainsafe/libp2p-gossipsub": "^10.1.0",
@ -26139,7 +26141,7 @@
"datastore-core": "^9.2.3",
"debug": "^4.3.4",
"interface-datastore": "^8.2.5",
"libp2p": "^0.46.9",
"libp2p": "^0.46.12",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5"
},
@ -29048,7 +29050,7 @@
"chai": "^4.3.7",
"cspell": "^7.3.2",
"debug": "^4.3.4",
"fast-check": "^3.12.0",
"fast-check": "^3.13.1",
"ignore-loader": "^0.1.2",
"isomorphic-fetch": "^3.0.0",
"it-all": "^3.0.3",
@ -29160,7 +29162,7 @@
"@chainsafe/libp2p-gossipsub": "^10.1.0",
"@multiformats/multiaddr": "^12.0.0",
"cspell": "^7.3.2",
"libp2p": "^0.46.9",
"libp2p": "^0.46.12",
"npm-run-all": "^4.1.5"
}
},
@ -29181,7 +29183,7 @@
"chai": "^4.3.7",
"cspell": "^7.3.2",
"debug": "^4.3.4",
"fast-check": "^3.12.0",
"fast-check": "^3.13.1",
"js-sha3": "^0.8.0",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
@ -29204,7 +29206,7 @@
"@waku/utils": "0.0.11",
"chai": "^4.3.7",
"cspell": "^7.3.2",
"fast-check": "^3.12.0",
"fast-check": "^3.13.1",
"ignore-loader": "^0.1.2",
"isomorphic-fetch": "^3.0.0",
"mocha": "^10.2.0",
@ -29267,7 +29269,7 @@
"@waku/utils": "0.0.11",
"chai": "^4.3.7",
"debug": "^4.3.4",
"fast-check": "^3.12.0",
"fast-check": "^3.13.1",
"rollup": "^3.29.2"
}
},
@ -29290,7 +29292,7 @@
"@waku/utils": "0.0.11",
"cspell": "^7.3.2",
"interface-datastore": "^8.2.5",
"libp2p": "^0.46.9",
"libp2p": "^0.46.12",
"npm-run-all": "^4.1.5",
"rollup": "^3.29.2"
}
@ -29322,7 +29324,7 @@
"debug": "^4.3.4",
"dockerode": "^3.3.5",
"interface-datastore": "^8.2.5",
"libp2p": "^0.46.9",
"libp2p": "^0.46.12",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
"p-retry": "^6.0.0",
@ -32674,7 +32676,9 @@
"version": "0.1.8"
},
"fast-check": {
"version": "3.13.0",
"version": "3.13.1",
"resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.13.1.tgz",
"integrity": "sha512-Xp00tFuWd83i8rbG/4wU54qU+yINjQha7bXH2N4ARNTkyOimzHtUBJ5+htpdXk7RMaCOD/j2jxSjEt9u9ZPNeQ==",
"requires": {
"pure-rand": "^6.0.0"
}
@ -34367,7 +34371,9 @@
}
},
"libp2p": {
"version": "0.46.11",
"version": "0.46.12",
"resolved": "https://registry.npmjs.org/libp2p/-/libp2p-0.46.12.tgz",
"integrity": "sha512-LPEfSVW/tsFNaUplNo/QqDsg9C7wed+lBGPUUhUsRcnPnKQTqZnKBpA9pSv2+A0ST9B++uiyCOk+JK7nIlpjeA==",
"requires": {
"@achingbrain/nat-port-mapper": "^1.0.9",
"@libp2p/crypto": "^2.0.4",

View File

@ -96,7 +96,7 @@
"@waku/build-utils": "*",
"chai": "^4.3.7",
"cspell": "^7.3.2",
"fast-check": "^3.12.0",
"fast-check": "^3.13.1",
"ignore-loader": "^0.1.2",
"isomorphic-fetch": "^3.0.0",
"mocha": "^10.2.0",

View File

@ -51,7 +51,7 @@
"@multiformats/multiaddr": "^12.0.0",
"cspell": "^7.3.2",
"npm-run-all": "^4.1.5",
"libp2p": "^0.46.9"
"libp2p": "^0.46.12"
},
"files": [
"dist",

View File

@ -88,7 +88,7 @@
"@waku/build-utils": "*",
"chai": "^4.3.7",
"cspell": "^7.3.2",
"fast-check": "^3.12.0",
"fast-check": "^3.13.1",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
"process": "^0.11.10",

View File

@ -64,7 +64,7 @@
"@waku/interfaces": "0.0.18",
"chai": "^4.3.7",
"cspell": "^7.3.2",
"fast-check": "^3.12.0",
"fast-check": "^3.13.1",
"ignore-loader": "^0.1.2",
"isomorphic-fetch": "^3.0.0",
"mocha": "^10.2.0",

View File

@ -57,7 +57,7 @@
"@waku/utils": "0.0.11",
"chai": "^4.3.7",
"debug": "^4.3.4",
"fast-check": "^3.12.0"
"fast-check": "^3.13.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.4",

View File

@ -57,7 +57,7 @@
"@waku/dns-discovery": "0.0.17",
"@waku/interfaces": "0.0.18",
"@waku/peer-exchange": "^0.0.16",
"libp2p": "^0.46.9"
"libp2p": "^0.46.12"
},
"devDependencies": {
"@chainsafe/libp2p-gossipsub": "^10.1.0",

View File

@ -82,7 +82,7 @@
"datastore-core": "^9.2.3",
"debug": "^4.3.4",
"interface-datastore": "^8.2.5",
"libp2p": "^0.46.9",
"libp2p": "^0.46.12",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5"
}

View File

@ -114,7 +114,7 @@ describe("Waku Filter V2: Multiple PubSubtopics", function () {
DefaultPubSubTopic,
await nwaku2.getPeerId()
);
await nwaku.ensureSubscriptions([DefaultPubSubTopic]);
await nwaku2.ensureSubscriptions([DefaultPubSubTopic]);
const messageCollector2 = new MessageCollector();

View File

@ -328,6 +328,7 @@ describe("Waku Filter V2: Subscribe", function () {
DefaultPubSubTopic,
await nwaku2.getPeerId()
);
await nwaku2.ensureSubscriptions([DefaultPubSubTopic]);
// Send a message using the new subscription
const newContentTopic = "/test/2/waku-filter";
const newEncoder = createEncoder({ contentTopic: newContentTopic });

View File

@ -114,6 +114,7 @@ describe("Waku Light Push : Multiple PubSubtopics", function () {
relay: true,
topic: [DefaultPubSubTopic]
});
await nwaku2.ensureSubscriptions([DefaultPubSubTopic]);
await waku.dial(await nwaku2.getMultiaddrWithId());
await waitForRemotePeer(waku, [Protocols.LightPush]);