From 4ef455588fd2169deeef73e60963558d9ee2ac41 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Tue, 1 Oct 2024 14:39:11 +0530 Subject: [PATCH] chore: upgrade sdk w/ mutex locks --- examples/message-monitor/package-lock.json | 100 +++++++++++---------- examples/message-monitor/package.json | 2 +- 2 files changed, 56 insertions(+), 46 deletions(-) diff --git a/examples/message-monitor/package-lock.json b/examples/message-monitor/package-lock.json index c384cbb..b0699a7 100644 --- a/examples/message-monitor/package-lock.json +++ b/examples/message-monitor/package-lock.json @@ -15,7 +15,7 @@ "@types/node": "^16.18.111", "@types/react": "^18.3.9", "@types/react-dom": "^18.3.0", - "@waku/sdk": "^0.0.28", + "@waku/sdk": "^0.0.29-338250a.0", "protobufjs": "^7.4.0", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -5469,16 +5469,16 @@ "license": "ISC" }, "node_modules/@waku/core": { - "version": "0.0.32", - "resolved": "https://registry.npmjs.org/@waku/core/-/core-0.0.32.tgz", - "integrity": "sha512-dsG9ox7VpOsbflFnrfy96wBuk2f3KVaTGMv20T9iZeCr2Yil26xhu9IAyL8EvyIG4ip6VJFooBw7kQQ8Ck+wZA==", + "version": "0.0.33-f599932.0", + "resolved": "https://registry.npmjs.org/@waku/core/-/core-0.0.33-f599932.0.tgz", + "integrity": "sha512-G83+C4S3+Gg9TOuGc869Tn0Rw4QIWelIAw/5TQBZ/Y38HGn9my2Xb7ym5IKFcVPVCmNAfTtzBoBdjE5JruGImg==", "license": "MIT OR Apache-2.0", "dependencies": { "@libp2p/ping": "^1.1.2", - "@waku/enr": "^0.0.26", - "@waku/interfaces": "0.0.27", - "@waku/proto": "0.0.8", - "@waku/utils": "0.0.20", + "@waku/enr": "0.0.27-f599932.0", + "@waku/interfaces": "0.0.28-f599932.0", + "@waku/proto": "0.0.9-f599932.0", + "@waku/utils": "0.0.21-f599932.0", "debug": "^4.3.4", "it-all": "^3.0.4", "it-length-prefixed": "^9.0.4", @@ -5517,16 +5517,16 @@ } }, "node_modules/@waku/discovery": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@waku/discovery/-/discovery-0.0.5.tgz", - "integrity": "sha512-GKR+7gu3g9NW9eG9J0oK8q1UIea+RL+8NfC/RLunfU5xj6BGuw+VuBW3CDnm6USYOxHHLGjA6OxHf/upOTpSlA==", + "version": "0.0.6-f599932.0", + "resolved": "https://registry.npmjs.org/@waku/discovery/-/discovery-0.0.6-f599932.0.tgz", + "integrity": "sha512-Ykr/Q2bwBBFCoCtLn61q/tL3PCnqLCinrVSobK8vfXyc0A4U07UAS2YHr1a9l1ALRBmnWJR9QGBGLKrCnvxCew==", "license": "MIT OR Apache-2.0", "dependencies": { - "@waku/core": "0.0.32", - "@waku/enr": "0.0.26", - "@waku/interfaces": "0.0.27", - "@waku/proto": "^0.0.8", - "@waku/utils": "0.0.20", + "@waku/core": "0.0.33-f599932.0", + "@waku/enr": "0.0.27-f599932.0", + "@waku/interfaces": "0.0.28-f599932.0", + "@waku/proto": "0.0.9-f599932.0", + "@waku/utils": "0.0.21-f599932.0", "debug": "^4.3.4", "dns-query": "^0.11.2", "hi-base32": "^0.5.1", @@ -5545,9 +5545,9 @@ } }, "node_modules/@waku/enr": { - "version": "0.0.26", - "resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.26.tgz", - "integrity": "sha512-5JEEyAINiRv+BI9svY7UQrYU5xy/akGq3pDjbEeGPGOWga4BJ128RGpNz0tHHMnUXaHFoq+2DpQbT2oQXytXkw==", + "version": "0.0.27-f599932.0", + "resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.27-f599932.0.tgz", + "integrity": "sha512-IFVwLlVJAHgU+sQVdKaZc0z3trM7rAQPjK5rucoHK5SVGEY5J5kYgcejqwXhI1LrqOA593tO3ugQSdrdTwRCSg==", "license": "MIT OR Apache-2.0", "dependencies": { "@ethersproject/rlp": "^5.7.0", @@ -5555,7 +5555,7 @@ "@libp2p/peer-id": "^4.2.1", "@multiformats/multiaddr": "^12.0.0", "@noble/secp256k1": "^1.7.1", - "@waku/utils": "0.0.20", + "@waku/utils": "0.0.21-f599932.0", "debug": "^4.3.4", "js-sha3": "^0.9.2" }, @@ -5572,34 +5572,34 @@ } }, "node_modules/@waku/interfaces": { - "version": "0.0.27", - "resolved": "https://registry.npmjs.org/@waku/interfaces/-/interfaces-0.0.27.tgz", - "integrity": "sha512-VsmpngqYVVY57JcyQkNau62clV/hStWfBVAAhlDUvaOcci+j3Aj3hWj550klFlcud9btEQ2Kl+P6EHnq9bQWIw==", + "version": "0.0.28-f599932.0", + "resolved": "https://registry.npmjs.org/@waku/interfaces/-/interfaces-0.0.28-f599932.0.tgz", + "integrity": "sha512-h6nzGgek0/TVU8339y5IZczpDsAfBRSQfjzbKRhzdiCAzgeh/x9K5YHh01jhECj4lWQnPHCmebZG0iTztUuYKg==", "license": "MIT OR Apache-2.0", "dependencies": { - "@waku/proto": "^0.0.8" + "@waku/proto": "0.0.9-f599932.0" }, "engines": { "node": ">=20" } }, "node_modules/@waku/message-hash": { - "version": "0.1.16", - "resolved": "https://registry.npmjs.org/@waku/message-hash/-/message-hash-0.1.16.tgz", - "integrity": "sha512-Vwm4mWC3PSWf4YRjmfIR7SFzmps2JnF6ICbQJYGoTmLaS4AaxsbwrLmb747QMnpdfh9aemB0HbtM/cZEBrbWsA==", + "version": "0.1.17-f599932.0", + "resolved": "https://registry.npmjs.org/@waku/message-hash/-/message-hash-0.1.17-f599932.0.tgz", + "integrity": "sha512-ifw9jCFfH2DitWOyVgWAmzHRJwJqjwUjfQP57GfV7NKUVrs6QAgfD55NsZsDMu4jfrVuPYPvDyD6sPpPKRP5gg==", "license": "MIT OR Apache-2.0", "dependencies": { "@noble/hashes": "^1.3.2", - "@waku/utils": "0.0.20" + "@waku/utils": "0.0.21-f599932.0" }, "engines": { "node": ">=20" } }, "node_modules/@waku/proto": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/@waku/proto/-/proto-0.0.8.tgz", - "integrity": "sha512-RPq8XLZf1xoKXCFyGKfL0j2ySfMS6MNimBwhMHKM53kRlGnszP3wBZnjWBApBY7G1pIHvxzvUBpFQzYdHMhIQA==", + "version": "0.0.9-f599932.0", + "resolved": "https://registry.npmjs.org/@waku/proto/-/proto-0.0.9-f599932.0.tgz", + "integrity": "sha512-+pL3JfUCkjn20qKruHZVgINDe5Iaz5qDlHk4L9FUPALaZBA7qM8F0Dqq1tlqLoONXZ6yEC7ZA2s7fJIGWayTEw==", "license": "MIT OR Apache-2.0", "dependencies": { "protons-runtime": "^5.4.0" @@ -5609,24 +5609,25 @@ } }, "node_modules/@waku/sdk": { - "version": "0.0.28", - "resolved": "https://registry.npmjs.org/@waku/sdk/-/sdk-0.0.28.tgz", - "integrity": "sha512-wiy8BB2Rg2yizlwM58RhWRkpuP8XjCXCmiVAsNqitHZw3L5LjdGDU9YZU105M0J61L7DMAtlRoRBXgJyPWNEfg==", + "version": "0.0.29-f599932.0", + "resolved": "https://registry.npmjs.org/@waku/sdk/-/sdk-0.0.29-f599932.0.tgz", + "integrity": "sha512-jQ7rfqps4Qt/QVK84SNEWFYeuF1hMk6fSY1x2bDrPNzQYEFiLl+JR2KErvjciUnviw+ht8ZTDT+7jU7UyqPJ7Q==", "license": "MIT OR Apache-2.0", "dependencies": { "@chainsafe/libp2p-noise": "^15.1.0", - "@libp2p/bootstrap": "^10.1.2", + "@libp2p/bootstrap": "^10", "@libp2p/identify": "^2.1.2", "@libp2p/mplex": "^10.1.2", "@libp2p/ping": "^1.1.2", "@libp2p/websockets": "^8.1.4", "@noble/hashes": "^1.3.3", - "@waku/core": "0.0.32", - "@waku/discovery": "0.0.5", - "@waku/interfaces": "0.0.27", - "@waku/message-hash": "0.1.16", - "@waku/proto": "^0.0.8", - "@waku/utils": "0.0.20", + "@waku/core": "0.0.33-f599932.0", + "@waku/discovery": "0.0.6-f599932.0", + "@waku/interfaces": "0.0.28-f599932.0", + "@waku/message-hash": "0.1.17-f599932.0", + "@waku/proto": "0.0.9-f599932.0", + "@waku/utils": "0.0.21-f599932.0", + "async-mutex": "^0.5.0", "libp2p": "^1.8.1" }, "engines": { @@ -5642,13 +5643,13 @@ } }, "node_modules/@waku/utils": { - "version": "0.0.20", - "resolved": "https://registry.npmjs.org/@waku/utils/-/utils-0.0.20.tgz", - "integrity": "sha512-10s/1Mqnyc24ckJ5Abbg510KmQZRavVw4WF5LynR1nL4VwDQkJn9o1szzysLn+j+DwXtYWM5PDXspu7uHcXGcw==", + "version": "0.0.21-f599932.0", + "resolved": "https://registry.npmjs.org/@waku/utils/-/utils-0.0.21-f599932.0.tgz", + "integrity": "sha512-oAipWO4k6df5RMI2eOfSrbyN9NkNhKFpTHupg1sIpw5vA9jWbhl9+S08wcgV3bI7oRZYqbc8dylh+/cqo/r8gQ==", "license": "MIT OR Apache-2.0", "dependencies": { "@noble/hashes": "^1.3.2", - "@waku/interfaces": "0.0.27", + "@waku/interfaces": "0.0.28-f599932.0", "chai": "^4.3.10", "debug": "^4.3.4", "uint8arrays": "^5.0.1" @@ -6334,6 +6335,15 @@ "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", "license": "MIT" }, + "node_modules/async-mutex": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.5.0.tgz", + "integrity": "sha512-1A94B18jkJ3DYq284ohPxoXbfTA5HsQ7/Mf4DEhcyLx3Bz27Rh59iScbB6EPiP+B+joue6YCxcMXSbFC1tZKwA==", + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", diff --git a/examples/message-monitor/package.json b/examples/message-monitor/package.json index bb3f458..7eca65e 100644 --- a/examples/message-monitor/package.json +++ b/examples/message-monitor/package.json @@ -10,7 +10,7 @@ "@types/node": "^16.18.111", "@types/react": "^18.3.9", "@types/react-dom": "^18.3.0", - "@waku/sdk": "^0.0.28", + "@waku/sdk": "^0.0.29-338250a.0", "protobufjs": "^7.4.0", "react": "^18.3.1", "react-dom": "^18.3.1",