mirror of https://github.com/waku-org/waku-lab.git
feat: use latest filter improvements from RC (#99)
This commit is contained in:
parent
7c522a5e45
commit
0643f41aa2
|
@ -11,7 +11,7 @@
|
|||
"@libp2p/crypto": "^4.0.1",
|
||||
"@libp2p/peer-id-factory": "^4.2.4",
|
||||
"@multiformats/multiaddr": "^12.3.1",
|
||||
"@waku/sdk": "0.0.29-b93134a.0",
|
||||
"@waku/sdk": "0.0.29-11bf1c1.0",
|
||||
"libp2p": "^1.8.3",
|
||||
"protobufjs": "^7.3.0",
|
||||
"uint8arrays": "^5.1.0"
|
||||
|
@ -652,9 +652,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@multiformats/multiaddr-matcher": {
|
||||
"version": "1.2.6",
|
||||
"resolved": "https://registry.npmjs.org/@multiformats/multiaddr-matcher/-/multiaddr-matcher-1.2.6.tgz",
|
||||
"integrity": "sha512-lqD3BqVs0ee1YUMY6am2HTJq6TYf3sQaVK8s+0Ns7FbbOsFv5j76cBkP3BSET6vIO+SGx6/K6Ns8zQI5ofiQUA==",
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@multiformats/multiaddr-matcher/-/multiaddr-matcher-1.3.0.tgz",
|
||||
"integrity": "sha512-D0zKDNwLp279uEjPEVQCWej3X+ugcV93JqQ7OQzve4NiML/C7pZoYefoM+Exb25VZd+6agdIshxs+4D7E5jIhg==",
|
||||
"license": "Apache-2.0 OR MIT",
|
||||
"dependencies": {
|
||||
"@chainsafe/is-ip": "^2.0.1",
|
||||
|
@ -1009,9 +1009,9 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "20.16.10",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.10.tgz",
|
||||
"integrity": "sha512-vQUKgWTjEIRFCvK6CyriPH3MZYiYlNy0fKiEYHWbcoWLEgs4opurGGKlebrTLqdSMIbXImH6XExNiIyNUv3WpA==",
|
||||
"version": "20.16.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.11.tgz",
|
||||
"integrity": "sha512-y+cTCACu92FyA5fgQSAI8A1H429g7aSK2HsO7K4XYUWc4dY5IUz55JSDIYT6/VsOLfGy8vmvQYC2hfb0iF16Uw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~6.19.2"
|
||||
|
@ -1273,21 +1273,20 @@
|
|||
"license": "ISC"
|
||||
},
|
||||
"node_modules/@waku/core": {
|
||||
"version": "0.0.33-b93134a.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/core/-/core-0.0.33-b93134a.0.tgz",
|
||||
"integrity": "sha512-f3Wjhyku4TBAcg7Uigu7XSsDIyPyo0FPm4G+sWBWCbzedZhF4CUdTg5vavPqCxMbET7qfUChhZd51GqXI2wBXg==",
|
||||
"version": "0.0.33-11bf1c1.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/core/-/core-0.0.33-11bf1c1.0.tgz",
|
||||
"integrity": "sha512-iM8jZB5BKRQyPn3J2mjhC3obIU7P2TcWwX9eLFqBhpyoiP4no6JMklz5HOixmsOL9d7EwHIDUBKB19jT1H6+TQ==",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@libp2p/ping": "^1.1.2",
|
||||
"@waku/enr": "0.0.27-b93134a.0",
|
||||
"@waku/interfaces": "0.0.28-b93134a.0",
|
||||
"@waku/proto": "0.0.9-b93134a.0",
|
||||
"@waku/utils": "0.0.21-b93134a.0",
|
||||
"@waku/enr": "0.0.27-11bf1c1.0",
|
||||
"@waku/interfaces": "0.0.28-11bf1c1.0",
|
||||
"@waku/proto": "0.0.9-11bf1c1.0",
|
||||
"@waku/utils": "0.0.21-11bf1c1.0",
|
||||
"debug": "^4.3.4",
|
||||
"it-all": "^3.0.4",
|
||||
"it-length-prefixed": "^9.0.4",
|
||||
"it-pipe": "^3.0.1",
|
||||
"p-event": "^6.0.1",
|
||||
"uint8arraylist": "^2.4.3",
|
||||
"uuid": "^9.0.0"
|
||||
},
|
||||
|
@ -1308,16 +1307,16 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@waku/discovery": {
|
||||
"version": "0.0.6-b93134a.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/discovery/-/discovery-0.0.6-b93134a.0.tgz",
|
||||
"integrity": "sha512-CefFPtPlJnBWOalNDIZlBrb2Y7Gs39J6EtVcLlXezA4uZMfzcK1N1xs3aN0vKd2OnkaYrMU1qQekv5XD44/JlQ==",
|
||||
"version": "0.0.6-11bf1c1.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/discovery/-/discovery-0.0.6-11bf1c1.0.tgz",
|
||||
"integrity": "sha512-3Ygwk/3BK5ZNdWnebCLB+DxOAOzx4OcFkzwiLMpBE5yjH6tpPz/jZPwYoz9ENFuIStj5vSe7y13xD0pIOJ7J+g==",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@waku/core": "0.0.33-b93134a.0",
|
||||
"@waku/enr": "0.0.27-b93134a.0",
|
||||
"@waku/interfaces": "0.0.28-b93134a.0",
|
||||
"@waku/proto": "0.0.9-b93134a.0",
|
||||
"@waku/utils": "0.0.21-b93134a.0",
|
||||
"@waku/core": "0.0.33-11bf1c1.0",
|
||||
"@waku/enr": "0.0.27-11bf1c1.0",
|
||||
"@waku/interfaces": "0.0.28-11bf1c1.0",
|
||||
"@waku/proto": "0.0.9-11bf1c1.0",
|
||||
"@waku/utils": "0.0.21-11bf1c1.0",
|
||||
"debug": "^4.3.4",
|
||||
"dns-query": "^0.11.2",
|
||||
"hi-base32": "^0.5.1",
|
||||
|
@ -1336,9 +1335,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@waku/enr": {
|
||||
"version": "0.0.27-b93134a.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.27-b93134a.0.tgz",
|
||||
"integrity": "sha512-80p3HVVX6bmaMUgEZASe+QzUvC/DtjggPUiIXmwLorIfRvGWbvDBDkMJ/YLmYdOHbu0Y/bV4B+nQBRxfZ8l4Nw==",
|
||||
"version": "0.0.27-11bf1c1.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/enr/-/enr-0.0.27-11bf1c1.0.tgz",
|
||||
"integrity": "sha512-HRgIvJltXSpc7FzQFs+uPwnVHiPwZjtnlHMwhqWYPVVi9u0fGNAQkmasIkMxFE2twWviEn61scZ7hyqN2OIJVQ==",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@ethersproject/rlp": "^5.7.0",
|
||||
|
@ -1346,7 +1345,7 @@
|
|||
"@libp2p/peer-id": "^4.2.1",
|
||||
"@multiformats/multiaddr": "^12.0.0",
|
||||
"@noble/secp256k1": "^1.7.1",
|
||||
"@waku/utils": "0.0.21-b93134a.0",
|
||||
"@waku/utils": "0.0.21-11bf1c1.0",
|
||||
"debug": "^4.3.4",
|
||||
"js-sha3": "^0.9.2"
|
||||
},
|
||||
|
@ -1363,34 +1362,34 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@waku/interfaces": {
|
||||
"version": "0.0.28-b93134a.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/interfaces/-/interfaces-0.0.28-b93134a.0.tgz",
|
||||
"integrity": "sha512-mzfWwjUmlJ/RZ0HeNC8cC7rcnnpZBSsYlhoaQS3Sy07Xdqx8PuzG0eRVlhKiXlHNJ79QkM0Q0kLuZKJhU5Kdog==",
|
||||
"version": "0.0.28-11bf1c1.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/interfaces/-/interfaces-0.0.28-11bf1c1.0.tgz",
|
||||
"integrity": "sha512-20QFZiC4NVgwxwaEsNKUnsWuaiQyLCp4uorQQSEnWotFP015DjItd6V1MirP4SWlfvhqFqPONUHglSzeQ0o4fQ==",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@waku/proto": "0.0.9-b93134a.0"
|
||||
"@waku/proto": "0.0.9-11bf1c1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@waku/message-hash": {
|
||||
"version": "0.1.17-b93134a.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/message-hash/-/message-hash-0.1.17-b93134a.0.tgz",
|
||||
"integrity": "sha512-u6gaAwwmst3bg4vzpUrUIGQLwM4e7lUA2rP3kfEEByDsA7D/1UdKvw2zD6ToRbxE7CJFQzRi8+WCnYdP+jSILA==",
|
||||
"version": "0.1.17-11bf1c1.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/message-hash/-/message-hash-0.1.17-11bf1c1.0.tgz",
|
||||
"integrity": "sha512-VP3dBNKtRJ/WsVm4N944Z7p+9+AfkpGj3pJEvVoPAxcwhzxnjI5G2NkWJjiihK800YbgyTifX90GUOr8faEzxQ==",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@noble/hashes": "^1.3.2",
|
||||
"@waku/utils": "0.0.21-b93134a.0"
|
||||
"@waku/utils": "0.0.21-11bf1c1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@waku/proto": {
|
||||
"version": "0.0.9-b93134a.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/proto/-/proto-0.0.9-b93134a.0.tgz",
|
||||
"integrity": "sha512-WhRvpNtT0+FXmjWKTot1+hIdVEc2RbwsCcQFNdpJw33M1lGozaM8U10p9pGT88iYuGNi/4LUY2RCHJTJLiGTaA==",
|
||||
"version": "0.0.9-11bf1c1.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/proto/-/proto-0.0.9-11bf1c1.0.tgz",
|
||||
"integrity": "sha512-JUkKaWV4pGwb80TFL7sEQjxji5rOaHeg9RGRUxFFiQMatJly8NFrJD5OzBJk5/tTE/P80SZqproWq1dIg3Q0Tg==",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"protons-runtime": "^5.4.0"
|
||||
|
@ -1400,24 +1399,25 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@waku/sdk": {
|
||||
"version": "0.0.29-b93134a.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/sdk/-/sdk-0.0.29-b93134a.0.tgz",
|
||||
"integrity": "sha512-PNG1ks53BGnS2FD0C+dJt2+aE02XhVFs7PJsfeGckVqX+BXiioKkRNFrdpqC5YME3gjbSt99NkzG6gO4tiTypg==",
|
||||
"version": "0.0.29-11bf1c1.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/sdk/-/sdk-0.0.29-11bf1c1.0.tgz",
|
||||
"integrity": "sha512-5hqxB4WDoJKrM3gCkb5jB3IaxFIokVAgyz8Du3IJBJTV9ka1fBnKWfR4KjR8uWB8717pMo2yCVcrmRoLNMDozA==",
|
||||
"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.33-b93134a.0",
|
||||
"@waku/discovery": "0.0.6-b93134a.0",
|
||||
"@waku/interfaces": "0.0.28-b93134a.0",
|
||||
"@waku/message-hash": "0.1.17-b93134a.0",
|
||||
"@waku/proto": "0.0.9-b93134a.0",
|
||||
"@waku/utils": "0.0.21-b93134a.0",
|
||||
"@waku/core": "0.0.33-11bf1c1.0",
|
||||
"@waku/discovery": "0.0.6-11bf1c1.0",
|
||||
"@waku/interfaces": "0.0.28-11bf1c1.0",
|
||||
"@waku/message-hash": "0.1.17-11bf1c1.0",
|
||||
"@waku/proto": "0.0.9-11bf1c1.0",
|
||||
"@waku/utils": "0.0.21-11bf1c1.0",
|
||||
"async-mutex": "^0.5.0",
|
||||
"libp2p": "^1.8.1"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -1433,13 +1433,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@waku/utils": {
|
||||
"version": "0.0.21-b93134a.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/utils/-/utils-0.0.21-b93134a.0.tgz",
|
||||
"integrity": "sha512-FuZqhXwPcJtYIQosaAGoQpFK1ZnP7gyODUPdjDblU5l0gPFABYNiXvQLGHet44VVC8bKZed5tBivL+xIArFZbg==",
|
||||
"version": "0.0.21-11bf1c1.0",
|
||||
"resolved": "https://registry.npmjs.org/@waku/utils/-/utils-0.0.21-11bf1c1.0.tgz",
|
||||
"integrity": "sha512-19YD0pXEd9OoYVIXZhK8IP2Pl9P77dxAT+o7Brw9TNOYNDny5qsJxqi6wJHg36IFwKbDBiqTE+YKONsKLKoSgA==",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@noble/hashes": "^1.3.2",
|
||||
"@waku/interfaces": "0.0.28-b93134a.0",
|
||||
"@waku/interfaces": "0.0.28-11bf1c1.0",
|
||||
"chai": "^4.3.10",
|
||||
"debug": "^4.3.4",
|
||||
"uint8arrays": "^5.0.1"
|
||||
|
@ -2063,6 +2063,15 @@
|
|||
"dev": true,
|
||||
"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/available-typed-arrays": {
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
|
||||
|
@ -2344,9 +2353,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/caniuse-lite": {
|
||||
"version": "1.0.30001664",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001664.tgz",
|
||||
"integrity": "sha512-AmE7k4dXiNKQipgn7a2xg558IRqPN3jMQY/rOsbxDhrd0tyChwbITBfiwtnqz8bi2M5mIWbxAYBvk7W7QBUS2g==",
|
||||
"version": "1.0.30001668",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001668.tgz",
|
||||
"integrity": "sha512-nWLrdxqCdblixUO+27JtGJJE/txpJlyUy5YN1u53wLZkP0emYCo5zgS6QYft7VUYR42LGgi/S5hdLZTrnyIddw==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
|
@ -2605,9 +2614,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/cookie": {
|
||||
"version": "0.6.0",
|
||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",
|
||||
"integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",
|
||||
"version": "0.7.1",
|
||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
|
||||
"integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
|
@ -2985,9 +2994,9 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/electron-to-chromium": {
|
||||
"version": "1.5.29",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.29.tgz",
|
||||
"integrity": "sha512-PF8n2AlIhCKXQ+gTpiJi0VhcHDb69kYX4MtCiivctc2QD3XuNZ/XIOlbGzt7WAjjEev0TtaH6Cu3arZExm5DOw==",
|
||||
"version": "1.5.38",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.38.tgz",
|
||||
"integrity": "sha512-VbeVexmZ1IFh+5EfrYz1I0HTzHVIlJa112UEWhciPyeOcKJGeTv6N8WnG4wsQB81DGCaVEGhpSb6o6a8WYFXXg==",
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
|
@ -3147,9 +3156,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/es-iterator-helpers": {
|
||||
"version": "1.0.19",
|
||||
"resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.19.tgz",
|
||||
"integrity": "sha512-zoMwbCcH5hwUkKJkT8kDIBZSz9I6mVG//+lDCinLCGov4+r7NIy0ld8o03M0cJxl2spVf6ESYVS6/gpIfq1FFw==",
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.1.0.tgz",
|
||||
"integrity": "sha512-/SurEfycdyssORP/E+bj4sEu1CWw4EmLDsHynHwSXQ7utgbrMRWW195pTrCjFgFCddf/UkYm3oqKPRq5i8bJbw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -3160,12 +3169,12 @@
|
|||
"es-set-tostringtag": "^2.0.3",
|
||||
"function-bind": "^1.1.2",
|
||||
"get-intrinsic": "^1.2.4",
|
||||
"globalthis": "^1.0.3",
|
||||
"globalthis": "^1.0.4",
|
||||
"has-property-descriptors": "^1.0.2",
|
||||
"has-proto": "^1.0.3",
|
||||
"has-symbols": "^1.0.3",
|
||||
"internal-slot": "^1.0.7",
|
||||
"iterator.prototype": "^1.1.2",
|
||||
"iterator.prototype": "^1.1.3",
|
||||
"safe-array-concat": "^1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -3269,6 +3278,7 @@
|
|||
"version": "8.57.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",
|
||||
"integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",
|
||||
"deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -3435,9 +3445,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-import": {
|
||||
"version": "2.30.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.30.0.tgz",
|
||||
"integrity": "sha512-/mHNE9jINJfiD2EKkg1BKyPyUk4zdnT54YgbOgfjSakWT5oyX/qQLVNTkehyfpcMxZXMy1zyonZ2v7hZTX43Yw==",
|
||||
"version": "2.31.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz",
|
||||
"integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -3449,7 +3459,7 @@
|
|||
"debug": "^3.2.7",
|
||||
"doctrine": "^2.1.0",
|
||||
"eslint-import-resolver-node": "^0.3.9",
|
||||
"eslint-module-utils": "^2.9.0",
|
||||
"eslint-module-utils": "^2.12.0",
|
||||
"hasown": "^2.0.2",
|
||||
"is-core-module": "^2.15.1",
|
||||
"is-glob": "^4.0.3",
|
||||
|
@ -3458,13 +3468,14 @@
|
|||
"object.groupby": "^1.0.3",
|
||||
"object.values": "^1.2.0",
|
||||
"semver": "^6.3.1",
|
||||
"string.prototype.trimend": "^1.0.8",
|
||||
"tsconfig-paths": "^3.15.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8"
|
||||
"eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9"
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-import/node_modules/debug": {
|
||||
|
@ -3532,9 +3543,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-react": {
|
||||
"version": "7.37.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.0.tgz",
|
||||
"integrity": "sha512-IHBePmfWH5lKhJnJ7WB1V+v/GolbB0rjS8XYVCSQCZKaQCAUhMoVoOEn1Ef8Z8Wf0a7l8KTJvuZg5/e4qrZ6nA==",
|
||||
"version": "7.37.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.1.tgz",
|
||||
"integrity": "sha512-xwTnwDqzbDRA8uJ7BMxPs/EXRB3i8ZfnOIp8BsxEQkT0nHPp+WWceqGgo6rKb9ctNi8GJLDT4Go5HAWELa/WMg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -3565,9 +3576,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-react-hooks": {
|
||||
"version": "4.6.2",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz",
|
||||
"integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==",
|
||||
"version": "5.0.0-canary-7118f5dd7-20230705",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.0.0-canary-7118f5dd7-20230705.tgz",
|
||||
"integrity": "sha512-AZYbMo/NW9chdL7vk6HQzQhT+PvTAEVqWk9ziruUoW2kAOcN5qNyelv70e0F1VNQAbvutOC9oc+xfWycI9FxDw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
|
@ -3769,9 +3780,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/express": {
|
||||
"version": "4.21.0",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-4.21.0.tgz",
|
||||
"integrity": "sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng==",
|
||||
"version": "4.21.1",
|
||||
"resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz",
|
||||
"integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -3780,7 +3791,7 @@
|
|||
"body-parser": "1.20.3",
|
||||
"content-disposition": "0.5.4",
|
||||
"content-type": "~1.0.4",
|
||||
"cookie": "0.6.0",
|
||||
"cookie": "0.7.1",
|
||||
"cookie-signature": "1.0.6",
|
||||
"debug": "2.6.9",
|
||||
"depd": "2.0.0",
|
||||
|
@ -3880,11 +3891,11 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/fast-uri": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.2.tgz",
|
||||
"integrity": "sha512-GR6f0hD7XXyNJa25Tb9BuIdN0tdr+0BMi6/CJPH3wJO1JjNG3n/VsSw38AwRdKZABm8lGbPfakLRkYzx2V9row==",
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz",
|
||||
"integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/fastest-levenshtein": {
|
||||
"version": "1.0.16",
|
||||
|
@ -4574,9 +4585,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/http-proxy-middleware": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz",
|
||||
"integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==",
|
||||
"version": "2.0.7",
|
||||
"resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz",
|
||||
"integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -5515,9 +5526,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/iterator.prototype": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz",
|
||||
"integrity": "sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==",
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.3.tgz",
|
||||
"integrity": "sha512-FW5iMbeQ6rBGm/oKgzq2aW4KvAGpxPzYES8N4g4xNXUKpL1mclMvOe+76AcLDTvD+Ze+sOpVhgdAQEKF4L9iGQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -5526,6 +5537,9 @@
|
|||
"has-symbols": "^1.0.3",
|
||||
"reflect.getprototypeof": "^1.0.4",
|
||||
"set-function-name": "^2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/jest-worker": {
|
||||
|
@ -6333,21 +6347,6 @@
|
|||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/p-event": {
|
||||
"version": "6.0.1",
|
||||
"resolved": "https://registry.npmjs.org/p-event/-/p-event-6.0.1.tgz",
|
||||
"integrity": "sha512-Q6Bekk5wpzW5qIyUP4gdMEujObYstZl6DMMOSenwBvV0BlE5LkDwkjs5yHbZmdCEq2o4RJx4tE1vwxFVf2FG1w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"p-timeout": "^6.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.17"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/p-limit": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
|
||||
|
@ -6905,16 +6904,16 @@
|
|||
}
|
||||
},
|
||||
"node_modules/regexp.prototype.flags": {
|
||||
"version": "1.5.2",
|
||||
"resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz",
|
||||
"integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==",
|
||||
"version": "1.5.3",
|
||||
"resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.3.tgz",
|
||||
"integrity": "sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bind": "^1.0.6",
|
||||
"call-bind": "^1.0.7",
|
||||
"define-properties": "^1.2.1",
|
||||
"es-errors": "^1.3.0",
|
||||
"set-function-name": "^2.0.1"
|
||||
"set-function-name": "^2.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
|
@ -7628,14 +7627,18 @@
|
|||
}
|
||||
},
|
||||
"node_modules/string.prototype.includes": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.0.tgz",
|
||||
"integrity": "sha512-E34CkBgyeqNDcrbU76cDjL5JLcVrtSdYq0MEh/B10r17pRP4ciHLwTgnuLV8Ay6cgEMLkcBkFCKyFZ43YldYzg==",
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz",
|
||||
"integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"define-properties": "^1.1.3",
|
||||
"es-abstract": "^1.17.5"
|
||||
"call-bind": "^1.0.7",
|
||||
"define-properties": "^1.2.1",
|
||||
"es-abstract": "^1.23.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/string.prototype.matchall": {
|
||||
|
@ -7968,9 +7971,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/tslib": {
|
||||
"version": "2.7.0",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz",
|
||||
"integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==",
|
||||
"version": "2.8.0",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz",
|
||||
"integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==",
|
||||
"license": "0BSD"
|
||||
},
|
||||
"node_modules/type-check": {
|
||||
|
@ -8100,9 +8103,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.6.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz",
|
||||
"integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==",
|
||||
"version": "5.6.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
|
||||
"integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
|
@ -8303,9 +8306,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/weald": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/weald/-/weald-1.0.3.tgz",
|
||||
"integrity": "sha512-h5pTSGRApQotfZ8Goqe5Jrg6iOjx4uXB55I00A+WRMZbhbiWfUatr6fMLt6UNrURzqXaX/ZDhIvcDzs1TEzz4Q==",
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/weald/-/weald-1.0.4.tgz",
|
||||
"integrity": "sha512-+kYTuHonJBwmFhP1Z4YQK/dGi3jAnJGCYhyODFpHK73rbxnp9lnZQj7a2m+WVgn8fXr5bJaxUpF6l8qZpPeNWQ==",
|
||||
"license": "Apache-2.0 OR MIT",
|
||||
"dependencies": {
|
||||
"ms": "^3.0.0-canary.1",
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"@libp2p/crypto": "^4.0.1",
|
||||
"@libp2p/peer-id-factory": "^4.2.4",
|
||||
"@multiformats/multiaddr": "^12.3.1",
|
||||
"@waku/sdk": "0.0.29-b93134a.0",
|
||||
"@waku/sdk": "0.0.29-11bf1c1.0",
|
||||
"libp2p": "^1.8.3",
|
||||
"protobufjs": "^7.3.0",
|
||||
"uint8arrays": "^5.1.0"
|
||||
|
|
|
@ -3,7 +3,6 @@ import {
|
|||
createEncoder,
|
||||
createDecoder,
|
||||
DecodedMessage,
|
||||
waitForRemotePeer,
|
||||
LightNode,
|
||||
utils,
|
||||
} from "@waku/sdk";
|
||||
|
@ -48,6 +47,7 @@ const wakuNode = async (): Promise<LightNode> => {
|
|||
networkConfig: {
|
||||
contentTopics: [DEFAULT_CONTENT_TOPIC],
|
||||
},
|
||||
numPeersToUse: 2,
|
||||
defaultBootstrap: true,
|
||||
libp2p: {
|
||||
peerId: await createFromPrivKey(await unmarshalPrivateKey(privateKey.bytes))
|
||||
|
@ -59,10 +59,10 @@ export async function app(telemetryClient: TelemetryClient) {
|
|||
const node = await wakuNode();
|
||||
(window as any).waku = node;
|
||||
|
||||
console.log("DEBUG: your peer ID is:", node.libp2p.peerId.toString());
|
||||
console.log("DEBUG: your peer ID is:", node.peerId.toString());
|
||||
|
||||
await node.start();
|
||||
await waitForRemotePeer(node);
|
||||
await node.waitForPeers();
|
||||
|
||||
const peerId = node.libp2p.peerId.toString();
|
||||
const encoder = createEncoder({
|
||||
|
@ -119,10 +119,10 @@ export async function app(telemetryClient: TelemetryClient) {
|
|||
const result = await node.lightPush.send(encoder, {
|
||||
payload,
|
||||
timestamp: new Date(),
|
||||
});
|
||||
}, {autoRetry: true });
|
||||
|
||||
console.log("DEBUG: light push successes: ", result.successes.length, result.successes);
|
||||
console.log("DEBUG: light push failures: ", result.failures.length, result.failures);
|
||||
console.log("DEBUG: light push successes: ", result.successes.length, result.successes.map(p => p.toString()));
|
||||
console.log("DEBUG: light push failures: ", result.failures.length, result.failures.map(f => ({ error: f.error, peerId: f?.peerId?.toString()})));
|
||||
|
||||
const successEvents = result
|
||||
.successes
|
||||
|
@ -147,14 +147,14 @@ export async function app(telemetryClient: TelemetryClient) {
|
|||
const failureEvents = result
|
||||
.failures
|
||||
.map(async (fail) => {
|
||||
const extraData = await buildExtraData(node, fail.peerId.toString());
|
||||
const extraData = await buildExtraData(node, fail?.peerId?.toString());
|
||||
return {
|
||||
type: TelemetryType.LIGHT_PUSH_FILTER,
|
||||
protocol: "lightPush",
|
||||
timestamp: timestamp,
|
||||
createdAt: timestamp,
|
||||
seenTimestamp: timestamp,
|
||||
peerId: fail.peerId.toString(),
|
||||
peerId: fail?.peerId?.toString(),
|
||||
contentTopic: DEFAULT_CONTENT_TOPIC,
|
||||
pubsubTopic: DEFAULT_PUBSUB_TOPIC,
|
||||
ephemeral: false,
|
||||
|
@ -195,7 +195,7 @@ export async function app(telemetryClient: TelemetryClient) {
|
|||
document.dispatchEvent(sequenceCompletedEvent);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error sending message", error);
|
||||
console.error("DEBUG: Error sending message", error);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -243,7 +243,7 @@ export async function app(telemetryClient: TelemetryClient) {
|
|||
document.dispatchEvent(messageReceivedEvent);
|
||||
};
|
||||
|
||||
const result = await node.filter.subscribe(decoder, subscriptionCallback);
|
||||
const result = await node.filter.subscribe(decoder, subscriptionCallback, {}, { enableLightPushFilterCheck: true });
|
||||
|
||||
let errorEvent = [];
|
||||
if (result.error) {
|
||||
|
@ -265,7 +265,7 @@ export async function app(telemetryClient: TelemetryClient) {
|
|||
}
|
||||
|
||||
const failEvents = result.results.failures.map(async (fail) => {
|
||||
const extraData = await buildExtraData(node, fail.peerId.toString());
|
||||
const extraData = await buildExtraData(node, fail?.peerId?.toString());
|
||||
const timestamp = Math.floor(new Date().getTime() / 1000);
|
||||
return {
|
||||
type: TelemetryType.LIGHT_PUSH_FILTER,
|
||||
|
@ -273,7 +273,7 @@ export async function app(telemetryClient: TelemetryClient) {
|
|||
timestamp,
|
||||
createdAt: timestamp,
|
||||
seenTimestamp: timestamp,
|
||||
peerId: fail.peerId.toString(),
|
||||
peerId: fail?.peerId?.toString(),
|
||||
contentTopic: DEFAULT_CONTENT_TOPIC,
|
||||
pubsubTopic: DEFAULT_PUBSUB_TOPIC,
|
||||
ephemeral: false,
|
||||
|
|
|
@ -57,6 +57,10 @@ export class TelemetryClient {
|
|||
}
|
||||
}
|
||||
private async send<T extends TelemetryMessage>(messages: T[]) {
|
||||
if (!window.location.hostname.includes("lab.waku.org")) {
|
||||
return;
|
||||
}
|
||||
|
||||
const telemetryRequests = messages.map((message) => ({
|
||||
id: ++this.requestId,
|
||||
telemetryType: message.type.toString(),
|
||||
|
@ -69,13 +73,12 @@ export class TelemetryClient {
|
|||
body: JSON.stringify(telemetryRequests),
|
||||
});
|
||||
if (res.status !== 201) {
|
||||
console.error("Error sending messages to telemetry service: ", res.status, res.statusText, res.json);
|
||||
console.log("DEBUG: Error sending messages to telemetry service: ", res.status, res.statusText, res.json);
|
||||
return false
|
||||
}
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.error("Error sending messages to telemetry service: ", e);
|
||||
console.error("Failed trying to send the following messages: ", telemetryRequests);
|
||||
console.log("DEBUG: Error sending messages to telemetry service", e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ export const sha256 = async (number: number | string ): Promise<string> => {
|
|||
.join("");
|
||||
};
|
||||
|
||||
const DEFAULT_EXTRA_DATA = { sdk: "0.0.29" };
|
||||
const DEFAULT_EXTRA_DATA = { sdk: "0.0.29-rc" };
|
||||
export const DEFAULT_EXTRA_DATA_STR = JSON.stringify(DEFAULT_EXTRA_DATA);
|
||||
|
||||
export const buildExtraData = async (node: LightNode, peerId: string): Promise<string> => {
|
||||
|
|
Loading…
Reference in New Issue