diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 358cc17260..63438805ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,9 +7,16 @@ on: - "staging" - "trying" pull_request: + workflow_dispatch: + inputs: + nim_wakunode_image: + description: "Docker hub image name taken from https://hub.docker.com/r/statusteam/nim-waku/tags. Format: statusteam/nim-waku:v0.19.0" + required: false + type: string env: NODE_JS: "18" + RETRY_ATTEMPTS: 3 jobs: check: @@ -57,7 +64,7 @@ jobs: node: runs-on: ubuntu-latest env: - WAKUNODE_IMAGE: "statusteam/nim-waku:v0.19.0" + WAKUNODE_IMAGE: ${{ github.event.inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }} steps: - uses: actions/checkout@v3 @@ -66,10 +73,15 @@ jobs: node-version: ${{ env.NODE_JS }} - uses: ./.github/actions/npm + - run: npm run build:esm - - run: npm run test:node - env: - DEBUG: "" + + - uses: Wandalen/wretry.action@master + with: + attempt_limit: ${{ env.RETRY_ATTEMPTS }} + command: npm run test:node + with: | + DEBUG: "" - name: Upload debug logs on failure uses: actions/upload-artifact@v3 @@ -88,7 +100,8 @@ jobs: node_optional: runs-on: ubuntu-latest env: - WAKUNODE_IMAGE: "statusteam/nim-waku:v0.19.0" + WAKUNODE_IMAGE: ${{ github.event.inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }} + steps: - uses: actions/checkout@v3 @@ -97,10 +110,15 @@ jobs: node-version: ${{ env.NODE_JS }} - uses: ./.github/actions/npm + - run: npm run build:esm - - run: npm run test:optional --workspace=@waku/tests - env: - DEBUG: "" + + - uses: Wandalen/wretry.action@master + with: + attempt_limit: ${{ env.RETRY_ATTEMPTS }} + command: npm run test:optional --workspace=@waku/tests + with: | + DEBUG: "" node_with_go_waku_master: runs-on: ubuntu-latest @@ -117,10 +135,15 @@ jobs: node-version: ${{ env.NODE_JS }} - uses: ./.github/actions/npm + - run: npm run build:esm - - run: npm run test:node - env: - DEBUG: "waku:nwaku*,waku:test*" + + - uses: Wandalen/wretry.action@master + with: + attempt_limit: ${{ env.RETRY_ATTEMPTS }} + command: npm run test:node + with: | + DEBUG: "waku:nwaku*,waku:test*" - name: Upload debug logs on failure uses: actions/upload-artifact@v3 @@ -149,10 +172,15 @@ jobs: node-version: ${{ env.NODE_JS }} - uses: ./.github/actions/npm + - run: npm run build:esm - - run: npm run test:node - env: - DEBUG: "waku:nwaku*,waku:test*" + + - uses: Wandalen/wretry.action@master + with: + attempt_limit: ${{ env.RETRY_ATTEMPTS }} + command: npm run test:node + with: | + DEBUG: "waku:nwaku*,waku:test*" - name: Upload debug logs on failure uses: actions/upload-artifact@v3 diff --git a/package-lock.json b/package-lock.json index 96f4abb246..f020db9898 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1395,8 +1395,9 @@ "license": "MIT" }, "node_modules/@chainsafe/libp2p-gossipsub": { - "version": "10.0.0", - "license": "Apache-2.0", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-gossipsub/-/libp2p-gossipsub-10.1.0.tgz", + "integrity": "sha512-mOVYJAvxYRkh2HeggNFW/7ukEccQDVEI9LPhvlnJk7gnJhyJJ6mhZxUAaytfp3v3qTkmeBRnEL0eJOQBm+MoOA==", "dependencies": { "@libp2p/crypto": "^2.0.0", "@libp2p/interface": "^0.1.0", @@ -1444,15 +1445,6 @@ "multiformats": "^12.0.1" } }, - "node_modules/@chainsafe/libp2p-gossipsub/node_modules/@libp2p/peer-id": { - "version": "3.0.1", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "node_modules/@chainsafe/libp2p-gossipsub/node_modules/multiformats": { "version": "12.0.1", "license": "Apache-2.0 OR MIT", @@ -1553,24 +1545,25 @@ } }, "node_modules/@cspell/cspell-bundled-dicts": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-7.3.2.tgz", + "integrity": "sha512-mmb9gi2/jTj983ijgVsdsQ4FM5Bv/lKslgJt4jDUm6SOtQYW4geCJNl5/MbMzcMQUWSJouS0w4C55AyrJmq0iw==", "dev": true, - "license": "MIT", "dependencies": { "@cspell/dict-ada": "^4.0.2", "@cspell/dict-aws": "^4.0.0", "@cspell/dict-bash": "^4.1.1", - "@cspell/dict-companies": "^3.0.19", + "@cspell/dict-companies": "^3.0.20", "@cspell/dict-cpp": "^5.0.4", - "@cspell/dict-cryptocurrencies": "^3.0.1", + "@cspell/dict-cryptocurrencies": "^4.0.0", "@cspell/dict-csharp": "^4.0.2", - "@cspell/dict-css": "^4.0.6", + "@cspell/dict-css": "^4.0.7", "@cspell/dict-dart": "^2.0.3", "@cspell/dict-django": "^4.1.0", "@cspell/dict-docker": "^1.1.7", "@cspell/dict-dotnet": "^5.0.0", "@cspell/dict-elixir": "^4.0.3", - "@cspell/dict-en_us": "^4.3.6", + "@cspell/dict-en_us": "^4.3.7", "@cspell/dict-en-common-misspellings": "^1.0.2", "@cspell/dict-en-gb": "1.1.33", "@cspell/dict-filetypes": "^3.0.1", @@ -1590,15 +1583,15 @@ "@cspell/dict-lua": "^4.0.1", "@cspell/dict-node": "^4.0.2", "@cspell/dict-npm": "^5.0.8", - "@cspell/dict-php": "^4.0.1", + "@cspell/dict-php": "^4.0.2", "@cspell/dict-powershell": "^5.0.2", "@cspell/dict-public-licenses": "^2.0.3", - "@cspell/dict-python": "^4.1.5", + "@cspell/dict-python": "^4.1.7", "@cspell/dict-r": "^2.0.1", "@cspell/dict-ruby": "^5.0.0", "@cspell/dict-rust": "^4.0.1", "@cspell/dict-scala": "^5.0.0", - "@cspell/dict-software-terms": "^3.2.1", + "@cspell/dict-software-terms": "^3.2.2", "@cspell/dict-sql": "^2.1.1", "@cspell/dict-svelte": "^1.0.2", "@cspell/dict-swift": "^2.0.1", @@ -1610,36 +1603,52 @@ } }, "node_modules/@cspell/cspell-json-reporter": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-json-reporter/-/cspell-json-reporter-7.3.2.tgz", + "integrity": "sha512-5j1CX2OXkQGO3ljMBzfHjDzEiixodjfxVGR3VKkQX1vxTUMTIkPgt4BsgOVCQtqTiO21Dd2Bzn+H0/Jf4OL37g==", "dev": true, - "license": "MIT", "dependencies": { - "@cspell/cspell-types": "7.0.0" + "@cspell/cspell-types": "7.3.2" }, "engines": { "node": ">=16" } }, "node_modules/@cspell/cspell-pipe": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-pipe/-/cspell-pipe-7.3.2.tgz", + "integrity": "sha512-ZKOkb6IxuEXRXtjVAlZ41+4SXhyiGqrQ3FW16iZlCbM9Mp9WJAw2MOVh6wvpXmfKcM5/3jK1A4rFylB7b0QBHw==", "dev": true, - "license": "MIT", + "engines": { + "node": ">=16" + } + }, + "node_modules/@cspell/cspell-resolver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-resolver/-/cspell-resolver-7.3.2.tgz", + "integrity": "sha512-3gvZPlYLkjuPezF2VyCVurEJiJnb3sbr32Jp3MfvpO7x026RXMbetkdH87MKoiSAThxSiyG+qi/jvUeDYY/Wtg==", + "dev": true, + "dependencies": { + "global-dirs": "^3.0.1" + }, "engines": { "node": ">=16" } }, "node_modules/@cspell/cspell-service-bus": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-service-bus/-/cspell-service-bus-7.3.2.tgz", + "integrity": "sha512-i2sPnUSsFJXc5afijbUsUtv1YEXyO8EbJbXV0kdE6KVu7I0CSMV8jprJaG3X1m5HE6lGftNcpLKLHjSlFOFvsA==", "dev": true, - "license": "MIT", "engines": { "node": ">=16" } }, "node_modules/@cspell/cspell-types": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-types/-/cspell-types-7.3.2.tgz", + "integrity": "sha512-2lvRUfIgH9TvqGEDpuukuD6J84XPP8KFxR/qphtPZAzwg9SEpiagdN79eFlPe4ZI2xHNvwEsPDJUxuvxXu15wQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=16" } @@ -1660,9 +1669,10 @@ "license": "MIT" }, "node_modules/@cspell/dict-companies": { - "version": "3.0.19", - "dev": true, - "license": "MIT" + "version": "3.0.21", + "resolved": "https://registry.npmjs.org/@cspell/dict-companies/-/dict-companies-3.0.21.tgz", + "integrity": "sha512-u9b7qtCWYS728WqiJeAucJcjRs16Y1yGGwagS/w59SV25R0rXbXbPbQuX8wYDcaeIO8uRHGkbSWngx6O4qFoCQ==", + "dev": true }, "node_modules/@cspell/dict-cpp": { "version": "5.0.4", @@ -1670,9 +1680,10 @@ "license": "MIT" }, "node_modules/@cspell/dict-cryptocurrencies": { - "version": "3.0.1", - "dev": true, - "license": "MIT" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@cspell/dict-cryptocurrencies/-/dict-cryptocurrencies-4.0.0.tgz", + "integrity": "sha512-EiZp91ATyRxTmauIQfOX9adLYCunKjHEh092rrM7o2eMXP9n7zpXAL9BK7LviL+LbB8VDOm21q+s83cKrrRrsg==", + "dev": true }, "node_modules/@cspell/dict-csharp": { "version": "4.0.2", @@ -1680,9 +1691,10 @@ "license": "MIT" }, "node_modules/@cspell/dict-css": { - "version": "4.0.6", - "dev": true, - "license": "MIT" + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/@cspell/dict-css/-/dict-css-4.0.7.tgz", + "integrity": "sha512-NNlUTx/sYg+74kC0EtRewb7pjkEtPlIsu9JFNWAXa0JMTqqpQXqM3aEO4QJvUZFZF09bObeCAvzzxemAwxej7Q==", + "dev": true }, "node_modules/@cspell/dict-dart": { "version": "2.0.3", @@ -1690,9 +1702,10 @@ "license": "MIT" }, "node_modules/@cspell/dict-data-science": { - "version": "1.0.10", - "dev": true, - "license": "MIT" + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@cspell/dict-data-science/-/dict-data-science-1.0.11.tgz", + "integrity": "sha512-TaHAZRVe0Zlcc3C23StZqqbzC0NrodRwoSAc8dis+5qLeLLnOCtagYQeROQvDlcDg3X/VVEO9Whh4W/z4PAmYQ==", + "dev": true }, "node_modules/@cspell/dict-django": { "version": "4.1.0", @@ -1715,9 +1728,10 @@ "license": "MIT" }, "node_modules/@cspell/dict-en_us": { - "version": "4.3.6", - "dev": true, - "license": "MIT" + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/@cspell/dict-en_us/-/dict-en_us-4.3.7.tgz", + "integrity": "sha512-83V0XXqiXJvXa1pj5cVpviYKeLTN2Dxvouz8ullrwgcfPtY57pYBy+3ACVAMYK0eGByhRPc/xVXlIgv4o0BNZw==", + "dev": true }, "node_modules/@cspell/dict-en-common-misspellings": { "version": "1.0.2", @@ -1815,9 +1829,10 @@ "license": "MIT" }, "node_modules/@cspell/dict-php": { - "version": "4.0.1", - "dev": true, - "license": "MIT" + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@cspell/dict-php/-/dict-php-4.0.2.tgz", + "integrity": "sha512-7yglcmMoFHDPQXHW+9QAl8YjAToMm1qOi+4x/yGY1FSIEjZbCpjeDgyKMGg/NgpooQQceEN38AR59Pn23EDriA==", + "dev": true }, "node_modules/@cspell/dict-powershell": { "version": "5.0.2", @@ -1830,11 +1845,12 @@ "license": "MIT" }, "node_modules/@cspell/dict-python": { - "version": "4.1.5", + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/@cspell/dict-python/-/dict-python-4.1.7.tgz", + "integrity": "sha512-8GkO7/w1QEpu4Y1GTHGYHrwfc/ZdiBRw7D/BGYCIiOoQPLi0YxMke7wzRC3j246yrzLt28ntDBjr4fB3+uFZtQ==", "dev": true, - "license": "MIT", "dependencies": { - "@cspell/dict-data-science": "^1.0.0" + "@cspell/dict-data-science": "^1.0.11" } }, "node_modules/@cspell/dict-r": { @@ -1858,9 +1874,10 @@ "license": "MIT" }, "node_modules/@cspell/dict-software-terms": { - "version": "3.2.1", - "dev": true, - "license": "MIT" + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@cspell/dict-software-terms/-/dict-software-terms-3.2.2.tgz", + "integrity": "sha512-DmdS/qAyJVmKKku4ab89HVZhsvRIk84HoPUVIZ/zJhmuCO+LF45Ylzy1/7G32MYLjbG/o1Ze3UvbaE9HY4FKKA==", + "dev": true }, "node_modules/@cspell/dict-sql": { "version": "2.1.1", @@ -1888,9 +1905,10 @@ "license": "MIT" }, "node_modules/@cspell/dynamic-import": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/dynamic-import/-/dynamic-import-7.3.2.tgz", + "integrity": "sha512-G2ZBPC08X3lUQmHRobGdFYxb3oTSuSIfpW1P/oTMovqbuVoQh108W2WXv0Va40LVGkQD9OS31ZafHbcLELANeA==", "dev": true, - "license": "MIT", "dependencies": { "import-meta-resolve": "^3.0.0" }, @@ -1899,9 +1917,10 @@ } }, "node_modules/@cspell/strong-weak-map": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/strong-weak-map/-/strong-weak-map-7.3.2.tgz", + "integrity": "sha512-Y2JL8A/CG37NnreVtU3DhvcOuYWNEAKUmOSU9NfBeOoptWwTMBvbNF5UbOpmZrf2BXc8OmdHIogIWHXYIESiyg==", "dev": true, - "license": "MIT", "engines": { "node": ">=16" } @@ -2620,17 +2639,13 @@ } }, "node_modules/@libp2p/peer-id": { - "version": "2.0.4", - "license": "Apache-2.0 OR MIT", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.2.tgz", + "integrity": "sha512-133qGXu9UBiqsYm7nBDJaAh4eiKe79DPLKF+/aRu0Z7gKcX7I0+LewEky4kBt3olhYQSF1CAnJIzD8Dmsn40Yw==", "dependencies": { - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interfaces": "^3.2.0", - "multiformats": "^11.0.0", - "uint8arrays": "^4.0.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "@libp2p/interface": "^0.1.2", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@libp2p/peer-id-factory": { @@ -2685,6 +2700,15 @@ "npm": ">=7.0.0" } }, + "node_modules/@libp2p/peer-id/node_modules/multiformats": { + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.0.tgz", + "integrity": "sha512-/qTOKKnU8nwcVURjRcS+UN0QYgdS5BPZzY10Aiciu2SqncyCVMGV8KtD83EBFmsuJDsSEmT4sGvzcTkCoMw0sQ==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, "node_modules/@libp2p/peer-store": { "version": "9.0.2", "license": "Apache-2.0 OR MIT", @@ -3026,6 +3050,17 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/@noble/curves/node_modules/@noble/hashes": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", + "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@noble/ed25519": { "version": "1.7.3", "funding": [ @@ -3037,8 +3072,9 @@ "license": "MIT" }, "node_modules/@noble/hashes": { - "version": "1.3.1", - "license": "MIT", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", "engines": { "node": ">= 16" }, @@ -3368,15 +3404,16 @@ "license": "BSD-3-Clause" }, "node_modules/@puppeteer/browsers": { - "version": "1.4.0", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.7.0.tgz", + "integrity": "sha512-sl7zI0IkbQGak/+IE3VEEZab5SSOlI5F6558WvzWGC1n3+C722rfewC1ZIkcF9dsoGSsxhsONoseVlNQG4wWvQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "debug": "4.3.4", "extract-zip": "2.0.1", "progress": "2.0.3", - "proxy-agent": "6.2.0", - "tar-fs": "2.1.1", + "proxy-agent": "6.3.0", + "tar-fs": "3.0.4", "unbzip2-stream": "1.4.3", "yargs": "17.7.1" }, @@ -3384,15 +3421,29 @@ "browsers": "lib/cjs/main-cli.js" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "typescript": ">= 4.7.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=16.3.0" + } + }, + "node_modules/@puppeteer/browsers/node_modules/tar-fs": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.4.tgz", + "integrity": "sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==", + "dev": true, + "dependencies": { + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^3.1.5" + } + }, + "node_modules/@puppeteer/browsers/node_modules/tar-stream": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.6.tgz", + "integrity": "sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==", + "dev": true, + "dependencies": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" } }, "node_modules/@rollup/plugin-commonjs": { @@ -4247,6 +4298,12 @@ "node": ">=10" } }, + "node_modules/@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "dev": true + }, "node_modules/@tsconfig/node10": { "version": "1.0.9", "dev": true, @@ -6594,8 +6651,9 @@ }, "node_modules/array-timsort": { "version": "1.0.3", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/array-timsort/-/array-timsort-1.0.3.tgz", + "integrity": "sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==", + "dev": true }, "node_modules/array-union": { "version": "1.0.2", @@ -6697,8 +6755,9 @@ }, "node_modules/ast-types": { "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.1" }, @@ -6738,6 +6797,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/b4a": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", + "integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==", + "dev": true + }, "node_modules/babel-plugin-polyfill-corejs2": { "version": "0.4.5", "dev": true, @@ -6820,8 +6885,9 @@ }, "node_modules/basic-ftp": { "version": "5.0.3", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.3.tgz", + "integrity": "sha512-QHX8HLlncOLpy54mh+k/sWIFd0ThmRqwe9ZjELybGZK+tZ8rUb9VO0saKJUROTbE+KhzDUT7xziGpGrW8Kmd+g==", "dev": true, - "license": "MIT", "engines": { "node": ">=10.0.0" } @@ -7625,11 +7691,12 @@ } }, "node_modules/chromium-bidi": { - "version": "0.4.10", + "version": "0.4.22", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.22.tgz", + "integrity": "sha512-wR7Y9Ioez+cNXT4ZP7VNM1HRTljpNnMSLw4/RnwhhZUP4yCU7kIQND00YiktuHekch68jklGPK1q9Jkb29+fQg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "mitt": "3.0.0" + "mitt": "3.0.1" }, "peerDependencies": { "devtools-protocol": "*" @@ -7650,8 +7717,9 @@ }, "node_modules/clear-module": { "version": "4.1.2", + "resolved": "https://registry.npmjs.org/clear-module/-/clear-module-4.1.2.tgz", + "integrity": "sha512-LWAxzHqdHsAZlPlEyJ2Poz6AIs384mPeqLVCru2p0BrP9G/kVGuhNyZYClLO6cXlnuJjzC8xtsJIuMjKqLXoAw==", "dev": true, - "license": "MIT", "dependencies": { "parent-module": "^2.0.0", "resolve-from": "^5.0.0" @@ -7894,8 +7962,9 @@ }, "node_modules/comment-json": { "version": "4.2.3", + "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-4.2.3.tgz", + "integrity": "sha512-SsxdiOf064DWoZLH799Ata6u7iV658A11PlWtZATDlXPpKGJnbJZ5Z24ybixAi+LUUqJ/GKowAejtC5GFUG7Tw==", "dev": true, - "license": "MIT", "dependencies": { "array-timsort": "^1.0.3", "core-util-is": "^1.0.3", @@ -8124,9 +8193,10 @@ } }, "node_modules/cosmiconfig": { - "version": "8.1.3", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.2.0.tgz", + "integrity": "sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==", "dev": true, - "license": "MIT", "dependencies": { "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -8291,21 +8361,22 @@ } }, "node_modules/cspell": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell/-/cspell-7.3.2.tgz", + "integrity": "sha512-/YY1C0CYBP+GueFon1BUgcDGc1YXDCyAIjuebvRygjt1cXwCklQVF5bZIGCrimgjzTrY+wx0ePgzuVQ9RyJnOQ==", "dev": true, - "license": "MIT", "dependencies": { - "@cspell/cspell-json-reporter": "7.0.0", - "@cspell/cspell-pipe": "7.0.0", - "@cspell/cspell-types": "7.0.0", - "@cspell/dynamic-import": "7.0.0", + "@cspell/cspell-json-reporter": "7.3.2", + "@cspell/cspell-pipe": "7.3.2", + "@cspell/cspell-types": "7.3.2", + "@cspell/dynamic-import": "7.3.2", "chalk": "^5.3.0", "chalk-template": "^1.1.0", - "commander": "^10.0.1", - "cspell-gitignore": "7.0.0", - "cspell-glob": "7.0.0", - "cspell-io": "7.0.0", - "cspell-lib": "7.0.0", + "commander": "^11.0.0", + "cspell-gitignore": "7.3.2", + "cspell-glob": "7.3.2", + "cspell-io": "7.3.2", + "cspell-lib": "7.3.2", "fast-glob": "^3.3.1", "fast-json-stable-stringify": "^2.1.0", "file-entry-cache": "^6.0.1", @@ -8326,13 +8397,14 @@ } }, "node_modules/cspell-dictionary": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-dictionary/-/cspell-dictionary-7.3.2.tgz", + "integrity": "sha512-hL8fOZ7zTkUuE6jq2CUObxUp0fSLsNQyMo+HAkpg0w6ssHvbgnP6HP8kyEN641L/F0X/Ow2vo3CaRBadvyyzCA==", "dev": true, - "license": "MIT", "dependencies": { - "@cspell/cspell-pipe": "7.0.0", - "@cspell/cspell-types": "7.0.0", - "cspell-trie-lib": "7.0.0", + "@cspell/cspell-pipe": "7.3.2", + "@cspell/cspell-types": "7.3.2", + "cspell-trie-lib": "7.3.2", "fast-equals": "^4.0.3", "gensequence": "^5.0.2" }, @@ -8346,11 +8418,12 @@ "license": "MIT" }, "node_modules/cspell-gitignore": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-gitignore/-/cspell-gitignore-7.3.2.tgz", + "integrity": "sha512-NWxxFcf4wwKbRInkZK/p/BrPR2ElCpcB8DLcrBxRkiI4uX7yCX8v5QjI8ZpTyuaUTl9aFqJFYtj9Q7GqkBnPzA==", "dev": true, - "license": "MIT", "dependencies": { - "cspell-glob": "7.0.0", + "cspell-glob": "7.3.2", "find-up": "^5.0.0" }, "bin": { @@ -8362,8 +8435,9 @@ }, "node_modules/cspell-gitignore/node_modules/find-up": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -8377,8 +8451,9 @@ }, "node_modules/cspell-gitignore/node_modules/locate-path": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^5.0.0" }, @@ -8391,8 +8466,9 @@ }, "node_modules/cspell-gitignore/node_modules/p-limit": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -8405,8 +8481,9 @@ }, "node_modules/cspell-gitignore/node_modules/p-locate": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, @@ -8418,9 +8495,10 @@ } }, "node_modules/cspell-glob": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-glob/-/cspell-glob-7.3.2.tgz", + "integrity": "sha512-R/YwtBN5ApOTONkBoTOSCKDMmnRRA1fF9prkaFMfE0aT5oC2VF0N7hLCSYjpQM+kYsXeqLDc13vxFBOnHRuc3g==", "dev": true, - "license": "MIT", "dependencies": { "micromatch": "^4.0.5" }, @@ -8429,12 +8507,13 @@ } }, "node_modules/cspell-grammar": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-grammar/-/cspell-grammar-7.3.2.tgz", + "integrity": "sha512-ale40T4M0jHmwQsPjIbpZKzaRxMVy5dnpyvplwj7ExX4sp2Grt1wcqxk2ELS4r4bsaIap+iIfeYYhoXqYq1dQg==", "dev": true, - "license": "MIT", "dependencies": { - "@cspell/cspell-pipe": "7.0.0", - "@cspell/cspell-types": "7.0.0" + "@cspell/cspell-pipe": "7.3.2", + "@cspell/cspell-types": "7.3.2" }, "bin": { "cspell-grammar": "bin.mjs" @@ -8444,21 +8523,23 @@ } }, "node_modules/cspell-io": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-io/-/cspell-io-7.3.2.tgz", + "integrity": "sha512-nul6K4YUMe1VdxuJDDOMvWUw/hIS2UZkvJLDo5GkAus7YmGSR0knfDueU+hebYszRa0LxjrduuPNcNJE/ZWUFg==", "dev": true, - "license": "MIT", "dependencies": { - "@cspell/cspell-service-bus": "7.0.0", - "node-fetch": "^2.6.12" + "@cspell/cspell-service-bus": "7.3.2", + "node-fetch": "^2.7.0" }, "engines": { "node": ">=16" } }, "node_modules/cspell-io/node_modules/node-fetch": { - "version": "2.6.12", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dev": true, - "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -8475,29 +8556,31 @@ } }, "node_modules/cspell-lib": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-lib/-/cspell-lib-7.3.2.tgz", + "integrity": "sha512-cbo0TSL2JnM/GdiutH193aynxdxSnxBR1DYJ1/8ycIWDU0p4AHO0EZ+5L5MkBFwpM20OicuXvLrAem9WjYVDBQ==", "dev": true, - "license": "MIT", "dependencies": { - "@cspell/cspell-bundled-dicts": "7.0.0", - "@cspell/cspell-pipe": "7.0.0", - "@cspell/cspell-types": "7.0.0", - "@cspell/strong-weak-map": "7.0.0", + "@cspell/cspell-bundled-dicts": "7.3.2", + "@cspell/cspell-pipe": "7.3.2", + "@cspell/cspell-resolver": "7.3.2", + "@cspell/cspell-types": "7.3.2", + "@cspell/dynamic-import": "7.3.2", + "@cspell/strong-weak-map": "7.3.2", "clear-module": "^4.1.2", "comment-json": "^4.2.3", "configstore": "^6.0.0", "cosmiconfig": "8.0.0", - "cspell-dictionary": "7.0.0", - "cspell-glob": "7.0.0", - "cspell-grammar": "7.0.0", - "cspell-io": "7.0.0", - "cspell-trie-lib": "7.0.0", + "cspell-dictionary": "7.3.2", + "cspell-glob": "7.3.2", + "cspell-grammar": "7.3.2", + "cspell-io": "7.3.2", + "cspell-trie-lib": "7.3.2", "fast-equals": "^5.0.1", "find-up": "^6.3.0", "gensequence": "^5.0.2", "import-fresh": "^3.3.0", "resolve-from": "^5.0.0", - "resolve-global": "^1.0.0", "vscode-languageserver-textdocument": "^1.0.8", "vscode-uri": "^3.0.7" }, @@ -8507,8 +8590,9 @@ }, "node_modules/cspell-lib/node_modules/cosmiconfig": { "version": "8.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.0.0.tgz", + "integrity": "sha512-da1EafcpH6b/TD8vDRaWV7xFINlHlF6zKsGwS1TsuVJTZRkquaS5HTMq7uq6h31619QjbsYl21gVDOm32KM1vQ==", "dev": true, - "license": "MIT", "dependencies": { "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -8521,8 +8605,9 @@ }, "node_modules/cspell-lib/node_modules/find-up": { "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^7.1.0", "path-exists": "^5.0.0" @@ -8536,8 +8621,9 @@ }, "node_modules/cspell-lib/node_modules/locate-path": { "version": "7.2.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz", + "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^6.0.0" }, @@ -8550,8 +8636,9 @@ }, "node_modules/cspell-lib/node_modules/p-limit": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", + "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", "dev": true, - "license": "MIT", "dependencies": { "yocto-queue": "^1.0.0" }, @@ -8564,8 +8651,9 @@ }, "node_modules/cspell-lib/node_modules/p-locate": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", + "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^4.0.0" }, @@ -8578,16 +8666,18 @@ }, "node_modules/cspell-lib/node_modules/path-exists": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", "dev": true, - "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, "node_modules/cspell-lib/node_modules/yocto-queue": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", + "integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", "dev": true, - "license": "MIT", "engines": { "node": ">=12.20" }, @@ -8596,12 +8686,13 @@ } }, "node_modules/cspell-trie-lib": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-trie-lib/-/cspell-trie-lib-7.3.2.tgz", + "integrity": "sha512-IXNCWBw4UDZuY6MB+j7YNdcDpTdcfElsLkwTV8fEmNfUeClJacn2mQicQ/LKZJLvOc1TNbcSPWSCe3kQA+uxNw==", "dev": true, - "license": "MIT", "dependencies": { - "@cspell/cspell-pipe": "7.0.0", - "@cspell/cspell-types": "7.0.0", + "@cspell/cspell-pipe": "7.3.2", + "@cspell/cspell-types": "7.3.2", "gensequence": "^5.0.2" }, "engines": { @@ -8620,11 +8711,12 @@ } }, "node_modules/cspell/node_modules/commander": { - "version": "10.0.1", + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.0.0.tgz", + "integrity": "sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">=14" + "node": ">=16" } }, "node_modules/cspell/node_modules/semver": { @@ -8655,8 +8747,9 @@ }, "node_modules/data-uri-to-buffer": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-5.0.1.tgz", + "integrity": "sha512-a9l6T1qqDogvvnw0nKlfZzqsyikEBZBClF39V3TFoKhDtGBqHu2HkuomJc02j5zft8zrUaXEuoicLeW54RkzPg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 14" } @@ -9045,19 +9138,49 @@ } }, "node_modules/degenerator": { - "version": "4.0.2", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", "dev": true, - "license": "MIT", "dependencies": { - "ast-types": "^0.13.2", - "escodegen": "^1.8.1", - "esprima": "^4.0.0", - "vm2": "^3.9.17" + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" }, "engines": { "node": ">= 14" } }, + "node_modules/degenerator/node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/degenerator/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/del": { "version": "6.1.1", "dev": true, @@ -11447,7 +11570,9 @@ } }, "node_modules/fast-check": { - "version": "3.8.1", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.12.0.tgz", + "integrity": "sha512-SqahE9mlL3+lhjJ39joMLwcj6F+24hfZdf/tchlNO8sHcTdrUUdA5P/ZbSFZM9Xpzs36XaneGwE0FWepm/zyOA==", "funding": [ { "type": "individual", @@ -11458,7 +11583,6 @@ "url": "https://opencollective.com/fast-check" } ], - "license": "MIT", "dependencies": { "pure-rand": "^6.0.0" }, @@ -11478,12 +11602,19 @@ }, "node_modules/fast-equals": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.0.1.tgz", + "integrity": "sha512-WF1Wi8PwwSY7/6Kx0vKXtw8RwuSGoM1bvDaJbu7MxDlR1vovZjIAKrnzyrThgAjm6JDTu0fVgWXDlMGspodfoQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "dev": true + }, "node_modules/fast-glob": { "version": "3.3.1", "dev": true, @@ -11983,8 +12114,9 @@ }, "node_modules/get-uri": { "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.1.tgz", + "integrity": "sha512-7ZqONUVqaabogsYNWlYj0t3YZaL6dhuEueZXGF+/YVmf6dHmaFg8/6psJKqhx9QykIDKzpGcy2cn4oV4YC7V/Q==", "dev": true, - "license": "MIT", "dependencies": { "basic-ftp": "^5.0.2", "data-uri-to-buffer": "^5.0.1", @@ -12101,13 +12233,27 @@ }, "node_modules/global-dirs": { "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", + "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", "dev": true, "license": "MIT", "dependencies": { - "ini": "^1.3.4" + "ini": "2.0.0" }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/global-dirs/node_modules/ini": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "dev": true, + "engines": { + "node": ">=10" } }, "node_modules/globals": { @@ -12292,8 +12438,9 @@ }, "node_modules/has-own-prop": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-own-prop/-/has-own-prop-2.0.0.tgz", + "integrity": "sha512-Pq0h+hvsVm6dDEa8x82GnLSYHOzNDt7f0ddFa3FqcQlgzEiptPqL+XrOJNavjOzSYiYWIrgeVYYgGlLmnxwilQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -12640,8 +12787,9 @@ }, "node_modules/import-meta-resolve": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-3.0.0.tgz", + "integrity": "sha512-4IwhLhNNA8yy445rPjD/lWh++7hMDOml2eHtd58eG7h+qK3EryMuuRbsHGPikCoAgIkkDnckKfWSk2iDla/ejg==", "dev": true, - "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -12750,8 +12898,9 @@ }, "node_modules/ip": { "version": "1.1.8", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "dev": true }, "node_modules/ip-regex": { "version": "5.0.0", @@ -13554,12 +13703,9 @@ } }, "node_modules/it-all": { - "version": "3.0.2", - "license": "Apache-2.0 OR MIT", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/it-all/-/it-all-3.0.3.tgz", + "integrity": "sha512-LwEVD1d0b1O5mDwumnZk+80jSBn5sXDxQ41xiD6j6l2lRiWH6lBLdxXx1C6mlKrXQwRHzUQagOZUmqttDUwb0A==" }, "node_modules/it-batched-bytes": { "version": "2.0.3", @@ -16682,9 +16828,10 @@ } }, "node_modules/mitt": { - "version": "3.0.0", - "dev": true, - "license": "MIT" + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "dev": true }, "node_modules/mkdirp": { "version": "0.5.6", @@ -21660,16 +21807,18 @@ } }, "node_modules/pac-proxy-agent": { - "version": "6.0.3", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.0.tgz", + "integrity": "sha512-t4tRAMx0uphnZrio0S0Jw9zg3oDbz1zVhQ/Vy18FjLfP1XOLNUEjaVxYCYRI6NS+BsMBXKIzV6cTLOkO9AtywA==", "dev": true, - "license": "MIT", "dependencies": { + "@tootallnate/quickjs-emscripten": "^0.23.0", "agent-base": "^7.0.2", "debug": "^4.3.4", "get-uri": "^6.0.1", "http-proxy-agent": "^7.0.0", "https-proxy-agent": "^7.0.0", - "pac-resolver": "^6.0.1", + "pac-resolver": "^7.0.0", "socks-proxy-agent": "^8.0.1" }, "engines": { @@ -21678,8 +21827,9 @@ }, "node_modules/pac-proxy-agent/node_modules/agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -21688,9 +21838,10 @@ } }, "node_modules/pac-proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.0", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", + "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", "dev": true, - "license": "MIT", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -21700,12 +21851,13 @@ } }, "node_modules/pac-resolver": { - "version": "6.0.1", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", + "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", "dev": true, - "license": "MIT", "dependencies": { - "degenerator": "^4.0.1", - "ip": "^1.1.5", + "degenerator": "^5.0.0", + "ip": "^1.1.8", "netmask": "^2.0.2" }, "engines": { @@ -21872,8 +22024,9 @@ }, "node_modules/parent-module": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-2.0.0.tgz", + "integrity": "sha512-uo0Z9JJeWzv8BG+tRcapBKNJ0dro9cLyczGzulS6EfeyAdeC9sbojtW6XwvYxJkEne9En+J2XEl4zyglVeIwFg==", "dev": true, - "license": "MIT", "dependencies": { "callsites": "^3.1.0" }, @@ -23222,16 +23375,17 @@ } }, "node_modules/proxy-agent": { - "version": "6.2.0", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.0.tgz", + "integrity": "sha512-0LdR757eTj/JfuU7TL2YCuAZnxWXu3tkJbg4Oq3geW/qFNT/32T0sp2HnZ9O0lMR4q3vwAt0+xCA8SR0WAD0og==", "dev": true, - "license": "MIT", "dependencies": { - "agent-base": "^7.0.1", + "agent-base": "^7.0.2", "debug": "^4.3.4", - "http-proxy-agent": "^6.0.1", - "https-proxy-agent": "^6.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", "lru-cache": "^7.14.1", - "pac-proxy-agent": "^6.0.2", + "pac-proxy-agent": "^7.0.0", "proxy-from-env": "^1.1.0", "socks-proxy-agent": "^8.0.1" }, @@ -23241,8 +23395,9 @@ }, "node_modules/proxy-agent/node_modules/agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -23250,22 +23405,11 @@ "node": ">= 14" } }, - "node_modules/proxy-agent/node_modules/http-proxy-agent": { - "version": "6.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/proxy-agent/node_modules/https-proxy-agent": { - "version": "6.2.1", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", + "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", "dev": true, - "license": "MIT", "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -23276,8 +23420,9 @@ }, "node_modules/proxy-agent/node_modules/lru-cache": { "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } @@ -23323,14 +23468,18 @@ } }, "node_modules/puppeteer": { - "version": "20.4.0", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.1.1.tgz", + "integrity": "sha512-2TLntjGA4qLrI9/8N0UK/5OoZJ2Ue7QgphN2SD+RsaHiha12AEiVyMGsB+i6LY1IoPAtEgYIjblQ7lw3kWDNRw==", "dev": true, "hasInstallScript": true, - "license": "Apache-2.0", "dependencies": { - "@puppeteer/browsers": "1.4.0", - "cosmiconfig": "8.1.3", - "puppeteer-core": "20.4.0" + "@puppeteer/browsers": "1.7.0", + "cosmiconfig": "8.2.0", + "puppeteer-core": "21.1.1" + }, + "engines": { + "node": ">=16.3.0" } }, "node_modules/puppeteer-core": { @@ -23356,22 +23505,25 @@ } }, "node_modules/puppeteer/node_modules/cross-fetch": { - "version": "3.1.6", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", + "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", "dev": true, - "license": "MIT", "dependencies": { - "node-fetch": "^2.6.11" + "node-fetch": "^2.6.12" } }, "node_modules/puppeteer/node_modules/devtools-protocol": { - "version": "0.0.1120988", - "dev": true, - "license": "BSD-3-Clause" + "version": "0.0.1159816", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1159816.tgz", + "integrity": "sha512-2cZlHxC5IlgkIWe2pSDmCrDiTzbSJWywjbDDnupOImEBcG31CQgBLV8wWE+5t+C4rimcjHsbzy7CBzf9oFjboA==", + "dev": true }, "node_modules/puppeteer/node_modules/node-fetch": { - "version": "2.6.11", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dev": true, - "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -23388,33 +23540,27 @@ } }, "node_modules/puppeteer/node_modules/puppeteer-core": { - "version": "20.4.0", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.1.1.tgz", + "integrity": "sha512-Tlcajcf44zwfa9Sbwv3T8BtaNMJ69wtpHIxwl2NOBTyTK3D1wppQovXTjfw0TDOm3a16eCfQ+5BMi3vRQ4kuAQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@puppeteer/browsers": "1.4.0", - "chromium-bidi": "0.4.10", - "cross-fetch": "3.1.6", + "@puppeteer/browsers": "1.7.0", + "chromium-bidi": "0.4.22", + "cross-fetch": "4.0.0", "debug": "4.3.4", - "devtools-protocol": "0.0.1120988", + "devtools-protocol": "0.0.1159816", "ws": "8.13.0" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "typescript": ">= 4.7.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "node": ">=16.3.0" } }, "node_modules/puppeteer/node_modules/ws": { "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", "dev": true, - "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -23495,6 +23641,12 @@ ], "license": "MIT" }, + "node_modules/queue-tick": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", + "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==", + "dev": true + }, "node_modules/quick-lru": { "version": "5.1.1", "dev": true, @@ -24473,8 +24625,9 @@ }, "node_modules/repeat-string": { "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10" } @@ -24547,17 +24700,6 @@ "node": ">=8" } }, - "node_modules/resolve-global": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "global-dirs": "^0.1.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/responselike": { "version": "2.0.1", "dev": true, @@ -24664,9 +24806,10 @@ } }, "node_modules/rollup": { - "version": "3.21.3", + "version": "3.28.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.28.0.tgz", + "integrity": "sha512-d7zhvo1OUY2SXSM6pfNjgD5+d0Nz87CUp4mt8l/GgVP3oBsPwzNvSzyu1me6BSG9JIgWNTVcafIXBIyM8yQ3yw==", "dev": true, - "license": "MIT", "bin": { "rollup": "dist/bin/rollup" }, @@ -25826,8 +25969,9 @@ }, "node_modules/smart-buffer": { "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 6.0.0", "npm": ">= 3.0.0" @@ -25891,8 +26035,9 @@ }, "node_modules/socks": { "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", "dev": true, - "license": "MIT", "dependencies": { "ip": "^2.0.0", "smart-buffer": "^4.2.0" @@ -25904,8 +26049,9 @@ }, "node_modules/socks-proxy-agent": { "version": "8.0.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.1.tgz", + "integrity": "sha512-59EjPbbgg8U3x62hhKOFVAmySQUcfRQ4C7Q/D5sEHnZTQRrQlNKINks44DMR1gwXp0p4LaVIeccX2KHTTcHVqQ==", "dev": true, - "license": "MIT", "dependencies": { "agent-base": "^7.0.1", "debug": "^4.3.4", @@ -25917,8 +26063,9 @@ }, "node_modules/socks-proxy-agent/node_modules/agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^4.3.4" }, @@ -25928,8 +26075,9 @@ }, "node_modules/socks/node_modules/ip": { "version": "2.0.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", + "dev": true }, "node_modules/source-map": { "version": "0.6.1", @@ -26176,6 +26324,16 @@ "node": ">=10.0.0" } }, + "node_modules/streamx": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.1.tgz", + "integrity": "sha512-fQMzy2O/Q47rgwErk/eGeLu/roaFWV0jVsogDmrszM9uIw8L5OA+t+V93MgYlufNptfjmYR1tOMWhei/Eh7TQA==", + "dev": true, + "dependencies": { + "fast-fifo": "^1.1.0", + "queue-tick": "^1.0.1" + } + }, "node_modules/string_decoder": { "version": "1.3.0", "license": "MIT", @@ -27864,21 +28022,6 @@ "node": ">= 0.8" } }, - "node_modules/vm2": { - "version": "3.9.19", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.7.0", - "acorn-walk": "^8.2.0" - }, - "bin": { - "vm2": "bin/vm2" - }, - "engines": { - "node": ">=6.0" - } - }, "node_modules/void-elements": { "version": "2.0.1", "dev": true, @@ -27889,8 +28032,9 @@ }, "node_modules/vscode-languageserver-textdocument": { "version": "1.0.8", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.8.tgz", + "integrity": "sha512-1bonkGqQs5/fxGT5UchTgjGVnfysL0O8v1AYMBjqTbWQTFn721zaPGDYFkOKtfDgFiSgXM3KwaG3FMGfW4Ed9Q==", + "dev": true }, "node_modules/vscode-oniguruma": { "version": "1.7.0", @@ -27904,8 +28048,9 @@ }, "node_modules/vscode-uri": { "version": "3.0.7", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.7.tgz", + "integrity": "sha512-eOpPHogvorZRobNqJGhapa0JdwaxpjVvyBp0QIUMRMSf8ZAlqOdEquKuRmw9Qwu0qXtJIWqFtMkmvJjUZmMjVA==", + "dev": true }, "node_modules/watchpack": { "version": "2.4.0", @@ -28521,12 +28666,12 @@ "version": "0.0.22", "license": "MIT OR Apache-2.0", "dependencies": { - "@noble/hashes": "^1.3.0", + "@noble/hashes": "^1.3.2", "@waku/interfaces": "0.0.17", "@waku/proto": "0.0.5", "@waku/utils": "0.0.10", "debug": "^4.3.4", - "it-all": "^3.0.2", + "it-all": "^3.0.3", "it-length-prefixed": "^9.0.1", "it-pipe": "^3.0.1", "p-event": "^5.0.1", @@ -28544,8 +28689,8 @@ "@types/uuid": "^9.0.1", "@waku/build-utils": "*", "chai": "^4.3.7", - "cspell": "^7.0.0", - "fast-check": "^3.8.1", + "cspell": "^7.0.1", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "karma": "^6.4.1", @@ -28555,8 +28700,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.21.3", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typescript": "^5.0.4" @@ -28594,7 +28739,7 @@ "uint8arrays": "^4.0.4" }, "devDependencies": { - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@libp2p/peer-id-factory": "^3.0.3", "@multiformats/multiaddr": "^12.0.0", "@rollup/plugin-commonjs": "^24.0.1", @@ -28604,14 +28749,14 @@ "@waku/build-utils": "*", "@waku/interfaces": "0.0.17", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "karma": "^6.4.1", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4" }, @@ -28626,7 +28771,7 @@ "dependencies": { "@ethersproject/rlp": "^5.7.0", "@libp2p/crypto": "^1.0.17", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@multiformats/multiaddr": "^12.0.0", "@noble/secp256k1": "^2.0.0", "@waku/utils": "0.0.10", @@ -28643,7 +28788,7 @@ "@waku/build-utils": "*", "@waku/interfaces": "0.0.17", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "karma": "^6.4.1", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", @@ -28651,8 +28796,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.21.3", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4", "uint8arrays": "^4.0.4" @@ -28677,9 +28822,9 @@ "version": "0.0.17", "license": "MIT OR Apache-2.0", "devDependencies": { - "@chainsafe/libp2p-gossipsub": "^10.0.0", + "@chainsafe/libp2p-gossipsub": "^10.1.0", "@multiformats/multiaddr": "^12.0.0", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "libp2p": "^0.46.3", "npm-run-all": "^4.1.5", "typescript": "^5.0.4" @@ -28709,8 +28854,8 @@ "@types/mocha": "^10.0.1", "@waku/build-utils": "*", "chai": "^4.3.7", - "cspell": "^7.0.0", - "fast-check": "^3.8.1", + "cspell": "^7.0.1", + "fast-check": "^3.12.0", "karma": "^6.4.1", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", @@ -28718,8 +28863,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.21.3", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4" }, @@ -28743,7 +28888,7 @@ "version": "0.1.6", "license": "MIT OR Apache-2.0", "dependencies": { - "@noble/hashes": "^1.2.0", + "@noble/hashes": "^1.3.2", "@waku/utils": "0.0.10" }, "devDependencies": { @@ -28756,8 +28901,8 @@ "@waku/build-utils": "*", "@waku/interfaces": "0.0.17", "chai": "^4.3.7", - "cspell": "^7.0.0", - "fast-check": "^3.7.0", + "cspell": "^7.0.1", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "karma": "^6.4.1", @@ -28767,8 +28912,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.15.0", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typescript": "^5.0.4" @@ -28789,7 +28934,7 @@ "@waku/proto": "0.0.5", "@waku/utils": "0.0.10", "debug": "^4.3.4", - "it-all": "^3.0.2", + "it-all": "^3.0.3", "it-length-prefixed": "^9.0.1", "it-pipe": "^3.0.1" }, @@ -28799,9 +28944,9 @@ "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4", "uint8arraylist": "^2.4.3" @@ -28822,10 +28967,10 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "npm-run-all": "^4.1.5", "protons": "^7.0.2", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "typescript": "^5.0.4", "uint8arraylist": "^2.4.3" }, @@ -28838,22 +28983,22 @@ "version": "0.0.5", "license": "MIT OR Apache-2.0", "dependencies": { - "@chainsafe/libp2p-gossipsub": "^10.0.0", - "@noble/hashes": "^1.3.0", + "@chainsafe/libp2p-gossipsub": "^10.1.0", + "@noble/hashes": "^1.3.2", "@waku/core": "0.0.22", "@waku/interfaces": "0.0.17", "@waku/proto": "0.0.5", "@waku/utils": "0.0.10", "chai": "^4.3.7", "debug": "^4.3.4", - "fast-check": "^3.8.1" + "fast-check": "^3.12.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^24.1.0", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", - "rollup": "^3.15.0", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typescript": "^5.0.4" @@ -28878,15 +29023,15 @@ "libp2p": "^0.46.3" }, "devDependencies": { - "@chainsafe/libp2p-gossipsub": "^10.0.0", + "@chainsafe/libp2p-gossipsub": "^10.1.0", "@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "interface-datastore": "^7.0.4", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "typescript": "^5.0.4" }, "engines": { @@ -28939,7 +29084,7 @@ "license": "MIT OR Apache-2.0", "dependencies": { "@libp2p/interface-compliance-tests": "^4.0.2", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@waku/core": "*", "@waku/enr": "*", "@waku/interfaces": "*", @@ -28967,7 +29112,7 @@ "@waku/sdk": "*", "aegir": "^40.0.11", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "datastore-core": "^9.2.2", "debug": "^4.3.4", "interface-datastore": "^8.2.3", @@ -29398,9 +29543,9 @@ "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", "@waku/interfaces": "0.0.17", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "typescript": "^5.0.4" }, "engines": { @@ -30236,7 +30381,9 @@ "version": "2.0.2" }, "@chainsafe/libp2p-gossipsub": { - "version": "10.0.0", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-gossipsub/-/libp2p-gossipsub-10.1.0.tgz", + "integrity": "sha512-mOVYJAvxYRkh2HeggNFW/7ukEccQDVEI9LPhvlnJk7gnJhyJJ6mhZxUAaytfp3v3qTkmeBRnEL0eJOQBm+MoOA==", "requires": { "@libp2p/crypto": "^2.0.0", "@libp2p/interface": "^0.1.0", @@ -30279,14 +30426,6 @@ "multiformats": "^12.0.1" } }, - "@libp2p/peer-id": { - "version": "3.0.1", - "requires": { - "@libp2p/interface": "^0.1.1", - "multiformats": "^12.0.1", - "uint8arrays": "^4.0.4" - } - }, "multiformats": { "version": "12.0.1" } @@ -30363,23 +30502,25 @@ "dev": true }, "@cspell/cspell-bundled-dicts": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-7.3.2.tgz", + "integrity": "sha512-mmb9gi2/jTj983ijgVsdsQ4FM5Bv/lKslgJt4jDUm6SOtQYW4geCJNl5/MbMzcMQUWSJouS0w4C55AyrJmq0iw==", "dev": true, "requires": { "@cspell/dict-ada": "^4.0.2", "@cspell/dict-aws": "^4.0.0", "@cspell/dict-bash": "^4.1.1", - "@cspell/dict-companies": "^3.0.19", + "@cspell/dict-companies": "^3.0.20", "@cspell/dict-cpp": "^5.0.4", - "@cspell/dict-cryptocurrencies": "^3.0.1", + "@cspell/dict-cryptocurrencies": "^4.0.0", "@cspell/dict-csharp": "^4.0.2", - "@cspell/dict-css": "^4.0.6", + "@cspell/dict-css": "^4.0.7", "@cspell/dict-dart": "^2.0.3", "@cspell/dict-django": "^4.1.0", "@cspell/dict-docker": "^1.1.7", "@cspell/dict-dotnet": "^5.0.0", "@cspell/dict-elixir": "^4.0.3", - "@cspell/dict-en_us": "^4.3.6", + "@cspell/dict-en_us": "^4.3.7", "@cspell/dict-en-common-misspellings": "^1.0.2", "@cspell/dict-en-gb": "1.1.33", "@cspell/dict-filetypes": "^3.0.1", @@ -30399,15 +30540,15 @@ "@cspell/dict-lua": "^4.0.1", "@cspell/dict-node": "^4.0.2", "@cspell/dict-npm": "^5.0.8", - "@cspell/dict-php": "^4.0.1", + "@cspell/dict-php": "^4.0.2", "@cspell/dict-powershell": "^5.0.2", "@cspell/dict-public-licenses": "^2.0.3", - "@cspell/dict-python": "^4.1.5", + "@cspell/dict-python": "^4.1.7", "@cspell/dict-r": "^2.0.1", "@cspell/dict-ruby": "^5.0.0", "@cspell/dict-rust": "^4.0.1", "@cspell/dict-scala": "^5.0.0", - "@cspell/dict-software-terms": "^3.2.1", + "@cspell/dict-software-terms": "^3.2.2", "@cspell/dict-sql": "^2.1.1", "@cspell/dict-svelte": "^1.0.2", "@cspell/dict-swift": "^2.0.1", @@ -30416,22 +30557,39 @@ } }, "@cspell/cspell-json-reporter": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-json-reporter/-/cspell-json-reporter-7.3.2.tgz", + "integrity": "sha512-5j1CX2OXkQGO3ljMBzfHjDzEiixodjfxVGR3VKkQX1vxTUMTIkPgt4BsgOVCQtqTiO21Dd2Bzn+H0/Jf4OL37g==", "dev": true, "requires": { - "@cspell/cspell-types": "7.0.0" + "@cspell/cspell-types": "7.3.2" } }, "@cspell/cspell-pipe": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-pipe/-/cspell-pipe-7.3.2.tgz", + "integrity": "sha512-ZKOkb6IxuEXRXtjVAlZ41+4SXhyiGqrQ3FW16iZlCbM9Mp9WJAw2MOVh6wvpXmfKcM5/3jK1A4rFylB7b0QBHw==", "dev": true }, + "@cspell/cspell-resolver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-resolver/-/cspell-resolver-7.3.2.tgz", + "integrity": "sha512-3gvZPlYLkjuPezF2VyCVurEJiJnb3sbr32Jp3MfvpO7x026RXMbetkdH87MKoiSAThxSiyG+qi/jvUeDYY/Wtg==", + "dev": true, + "requires": { + "global-dirs": "^3.0.1" + } + }, "@cspell/cspell-service-bus": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-service-bus/-/cspell-service-bus-7.3.2.tgz", + "integrity": "sha512-i2sPnUSsFJXc5afijbUsUtv1YEXyO8EbJbXV0kdE6KVu7I0CSMV8jprJaG3X1m5HE6lGftNcpLKLHjSlFOFvsA==", "dev": true }, "@cspell/cspell-types": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/cspell-types/-/cspell-types-7.3.2.tgz", + "integrity": "sha512-2lvRUfIgH9TvqGEDpuukuD6J84XPP8KFxR/qphtPZAzwg9SEpiagdN79eFlPe4ZI2xHNvwEsPDJUxuvxXu15wQ==", "dev": true }, "@cspell/dict-ada": { @@ -30447,7 +30605,9 @@ "dev": true }, "@cspell/dict-companies": { - "version": "3.0.19", + "version": "3.0.21", + "resolved": "https://registry.npmjs.org/@cspell/dict-companies/-/dict-companies-3.0.21.tgz", + "integrity": "sha512-u9b7qtCWYS728WqiJeAucJcjRs16Y1yGGwagS/w59SV25R0rXbXbPbQuX8wYDcaeIO8uRHGkbSWngx6O4qFoCQ==", "dev": true }, "@cspell/dict-cpp": { @@ -30455,7 +30615,9 @@ "dev": true }, "@cspell/dict-cryptocurrencies": { - "version": "3.0.1", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@cspell/dict-cryptocurrencies/-/dict-cryptocurrencies-4.0.0.tgz", + "integrity": "sha512-EiZp91ATyRxTmauIQfOX9adLYCunKjHEh092rrM7o2eMXP9n7zpXAL9BK7LviL+LbB8VDOm21q+s83cKrrRrsg==", "dev": true }, "@cspell/dict-csharp": { @@ -30463,7 +30625,9 @@ "dev": true }, "@cspell/dict-css": { - "version": "4.0.6", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/@cspell/dict-css/-/dict-css-4.0.7.tgz", + "integrity": "sha512-NNlUTx/sYg+74kC0EtRewb7pjkEtPlIsu9JFNWAXa0JMTqqpQXqM3aEO4QJvUZFZF09bObeCAvzzxemAwxej7Q==", "dev": true }, "@cspell/dict-dart": { @@ -30471,7 +30635,9 @@ "dev": true }, "@cspell/dict-data-science": { - "version": "1.0.10", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@cspell/dict-data-science/-/dict-data-science-1.0.11.tgz", + "integrity": "sha512-TaHAZRVe0Zlcc3C23StZqqbzC0NrodRwoSAc8dis+5qLeLLnOCtagYQeROQvDlcDg3X/VVEO9Whh4W/z4PAmYQ==", "dev": true }, "@cspell/dict-django": { @@ -30491,7 +30657,9 @@ "dev": true }, "@cspell/dict-en_us": { - "version": "4.3.6", + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/@cspell/dict-en_us/-/dict-en_us-4.3.7.tgz", + "integrity": "sha512-83V0XXqiXJvXa1pj5cVpviYKeLTN2Dxvouz8ullrwgcfPtY57pYBy+3ACVAMYK0eGByhRPc/xVXlIgv4o0BNZw==", "dev": true }, "@cspell/dict-en-common-misspellings": { @@ -30571,7 +30739,9 @@ "dev": true }, "@cspell/dict-php": { - "version": "4.0.1", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@cspell/dict-php/-/dict-php-4.0.2.tgz", + "integrity": "sha512-7yglcmMoFHDPQXHW+9QAl8YjAToMm1qOi+4x/yGY1FSIEjZbCpjeDgyKMGg/NgpooQQceEN38AR59Pn23EDriA==", "dev": true }, "@cspell/dict-powershell": { @@ -30583,10 +30753,12 @@ "dev": true }, "@cspell/dict-python": { - "version": "4.1.5", + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/@cspell/dict-python/-/dict-python-4.1.7.tgz", + "integrity": "sha512-8GkO7/w1QEpu4Y1GTHGYHrwfc/ZdiBRw7D/BGYCIiOoQPLi0YxMke7wzRC3j246yrzLt28ntDBjr4fB3+uFZtQ==", "dev": true, "requires": { - "@cspell/dict-data-science": "^1.0.0" + "@cspell/dict-data-science": "^1.0.11" } }, "@cspell/dict-r": { @@ -30606,7 +30778,9 @@ "dev": true }, "@cspell/dict-software-terms": { - "version": "3.2.1", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@cspell/dict-software-terms/-/dict-software-terms-3.2.2.tgz", + "integrity": "sha512-DmdS/qAyJVmKKku4ab89HVZhsvRIk84HoPUVIZ/zJhmuCO+LF45Ylzy1/7G32MYLjbG/o1Ze3UvbaE9HY4FKKA==", "dev": true }, "@cspell/dict-sql": { @@ -30630,14 +30804,18 @@ "dev": true }, "@cspell/dynamic-import": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/dynamic-import/-/dynamic-import-7.3.2.tgz", + "integrity": "sha512-G2ZBPC08X3lUQmHRobGdFYxb3oTSuSIfpW1P/oTMovqbuVoQh108W2WXv0Va40LVGkQD9OS31ZafHbcLELANeA==", "dev": true, "requires": { "import-meta-resolve": "^3.0.0" } }, "@cspell/strong-weak-map": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@cspell/strong-weak-map/-/strong-weak-map-7.3.2.tgz", + "integrity": "sha512-Y2JL8A/CG37NnreVtU3DhvcOuYWNEAKUmOSU9NfBeOoptWwTMBvbNF5UbOpmZrf2BXc8OmdHIogIWHXYIESiyg==", "dev": true }, "@cspotcode/source-map-support": { @@ -31130,12 +31308,20 @@ } }, "@libp2p/peer-id": { - "version": "2.0.4", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.2.tgz", + "integrity": "sha512-133qGXu9UBiqsYm7nBDJaAh4eiKe79DPLKF+/aRu0Z7gKcX7I0+LewEky4kBt3olhYQSF1CAnJIzD8Dmsn40Yw==", "requires": { - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interfaces": "^3.2.0", - "multiformats": "^11.0.0", - "uint8arrays": "^4.0.2" + "@libp2p/interface": "^0.1.2", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" + }, + "dependencies": { + "multiformats": { + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.0.tgz", + "integrity": "sha512-/qTOKKnU8nwcVURjRcS+UN0QYgdS5BPZzY10Aiciu2SqncyCVMGV8KtD83EBFmsuJDsSEmT4sGvzcTkCoMw0sQ==" + } } }, "@libp2p/peer-id-factory": { @@ -31454,13 +31640,22 @@ "version": "1.1.0", "requires": { "@noble/hashes": "1.3.1" + }, + "dependencies": { + "@noble/hashes": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", + "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==" + } } }, "@noble/ed25519": { "version": "1.7.3" }, "@noble/hashes": { - "version": "1.3.1" + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==" }, "@noble/secp256k1": { "version": "1.7.1" @@ -31674,16 +31869,42 @@ "version": "1.1.0" }, "@puppeteer/browsers": { - "version": "1.4.0", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.7.0.tgz", + "integrity": "sha512-sl7zI0IkbQGak/+IE3VEEZab5SSOlI5F6558WvzWGC1n3+C722rfewC1ZIkcF9dsoGSsxhsONoseVlNQG4wWvQ==", "dev": true, "requires": { "debug": "4.3.4", "extract-zip": "2.0.1", "progress": "2.0.3", - "proxy-agent": "6.2.0", - "tar-fs": "2.1.1", + "proxy-agent": "6.3.0", + "tar-fs": "3.0.4", "unbzip2-stream": "1.4.3", "yargs": "17.7.1" + }, + "dependencies": { + "tar-fs": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.4.tgz", + "integrity": "sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==", + "dev": true, + "requires": { + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^3.1.5" + } + }, + "tar-stream": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.6.tgz", + "integrity": "sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==", + "dev": true, + "requires": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" + } + } } }, "@rollup/plugin-commonjs": { @@ -32184,6 +32405,12 @@ "defer-to-connect": "^2.0.0" } }, + "@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "dev": true + }, "@tsconfig/node10": { "version": "1.0.9", "dev": true @@ -32889,7 +33116,7 @@ "version": "file:packages/core", "requires": { "@multiformats/multiaddr": "^12.0.0", - "@noble/hashes": "^1.3.0", + "@noble/hashes": "^1.3.2", "@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", @@ -32902,12 +33129,12 @@ "@waku/proto": "0.0.5", "@waku/utils": "0.0.10", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "debug": "^4.3.4", - "fast-check": "^3.8.1", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", - "it-all": "^3.0.2", + "it-all": "^3.0.3", "it-length-prefixed": "^9.0.1", "it-pipe": "^3.0.1", "karma": "^6.4.1", @@ -32918,8 +33145,8 @@ "npm-run-all": "^4.1.5", "p-event": "^5.0.1", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.21.3", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typescript": "^5.0.4", @@ -32935,7 +33162,7 @@ "@waku/dns-discovery": { "version": "file:packages/dns-discovery", "requires": { - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@libp2p/peer-id-factory": "^3.0.3", "@multiformats/multiaddr": "^12.0.0", "@rollup/plugin-commonjs": "^24.0.1", @@ -32947,7 +33174,7 @@ "@waku/interfaces": "0.0.17", "@waku/utils": "0.0.10", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "debug": "^4.3.4", "dns-query": "^0.11.2", "hi-base32": "^0.5.1", @@ -32957,7 +33184,7 @@ "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4", "uint8arrays": "^4.0.4" @@ -32968,7 +33195,7 @@ "requires": { "@ethersproject/rlp": "^5.7.0", "@libp2p/crypto": "^1.0.17", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@libp2p/peer-id-factory": "^3.0.3", "@multiformats/multiaddr": "^12.0.0", "@noble/secp256k1": "^2.0.0", @@ -32981,7 +33208,7 @@ "@waku/interfaces": "0.0.17", "@waku/utils": "0.0.10", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "debug": "^4.3.4", "js-sha3": "^0.8.0", "karma": "^6.4.1", @@ -32991,8 +33218,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.21.3", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4", "uint8arrays": "^4.0.4" @@ -33008,9 +33235,9 @@ "@waku/interfaces": { "version": "file:packages/interfaces", "requires": { - "@chainsafe/libp2p-gossipsub": "^10.0.0", + "@chainsafe/libp2p-gossipsub": "^10.1.0", "@multiformats/multiaddr": "^12.0.0", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "libp2p": "^0.46.3", "npm-run-all": "^4.1.5", "typescript": "^5.0.4" @@ -33031,9 +33258,9 @@ "@waku/proto": "0.0.5", "@waku/utils": "0.0.10", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "debug": "^4.3.4", - "fast-check": "^3.8.1", + "fast-check": "^3.12.0", "js-sha3": "^0.8.0", "karma": "^6.4.1", "karma-chrome-launcher": "^3.2.0", @@ -33042,8 +33269,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.21.3", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4" }, @@ -33058,7 +33285,7 @@ "@waku/message-hash": { "version": "file:packages/message-hash", "requires": { - "@noble/hashes": "^1.2.0", + "@noble/hashes": "^1.3.2", "@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", @@ -33069,8 +33296,8 @@ "@waku/interfaces": "0.0.17", "@waku/utils": "0.0.10", "chai": "^4.3.7", - "cspell": "^7.0.0", - "fast-check": "^3.7.0", + "cspell": "^7.0.1", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "karma": "^6.4.1", @@ -33080,8 +33307,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.15.0", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typescript": "^5.0.4" @@ -33101,13 +33328,13 @@ "@waku/proto": "0.0.5", "@waku/utils": "0.0.10", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "debug": "^4.3.4", - "it-all": "^3.0.2", + "it-all": "^3.0.3", "it-length-prefixed": "^9.0.1", "it-pipe": "^3.0.1", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4", "uint8arraylist": "^2.4.3" @@ -33120,11 +33347,11 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "npm-run-all": "^4.1.5", "protons": "^7.0.2", "protons-runtime": "^5.0.0", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "typescript": "^5.0.4", "uint8arraylist": "^2.4.3" } @@ -33132,8 +33359,8 @@ "@waku/relay": { "version": "file:packages/relay", "requires": { - "@chainsafe/libp2p-gossipsub": "^10.0.0", - "@noble/hashes": "^1.3.0", + "@chainsafe/libp2p-gossipsub": "^10.1.0", + "@noble/hashes": "^1.3.2", "@rollup/plugin-commonjs": "^24.1.0", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", @@ -33144,8 +33371,8 @@ "@waku/utils": "0.0.10", "chai": "^4.3.7", "debug": "^4.3.4", - "fast-check": "^3.8.1", - "rollup": "^3.15.0", + "fast-check": "^3.12.0", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typescript": "^5.0.4" @@ -33154,7 +33381,7 @@ "@waku/sdk": { "version": "file:packages/sdk", "requires": { - "@chainsafe/libp2p-gossipsub": "^10.0.0", + "@chainsafe/libp2p-gossipsub": "^10.1.0", "@chainsafe/libp2p-noise": "^13.0.0", "@libp2p/mplex": "^9.0.2", "@libp2p/websockets": "^7.0.3", @@ -33167,11 +33394,11 @@ "@waku/interfaces": "0.0.17", "@waku/relay": "0.0.5", "@waku/utils": "0.0.10", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "interface-datastore": "^7.0.4", "libp2p": "^0.46.3", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "typescript": "^5.0.4" }, "dependencies": { @@ -33199,7 +33426,7 @@ "requires": { "@libp2p/bootstrap": "^9.0.2", "@libp2p/interface-compliance-tests": "^4.0.2", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@types/chai": "^4.3.5", "@types/dockerode": "^3.3.19", "@types/mocha": "^10.0.1", @@ -33218,7 +33445,7 @@ "aegir": "^40.0.11", "app-root-path": "^3.1.0", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "datastore-core": "^9.2.2", "debug": "^4.3.4", "dockerode": "^3.3.5", @@ -33499,10 +33726,10 @@ "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", "@waku/interfaces": "0.0.17", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "debug": "^4.3.4", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "typescript": "^5.0.4", "uint8arrays": "^4.0.4" } @@ -34260,6 +34487,8 @@ }, "array-timsort": { "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-timsort/-/array-timsort-1.0.3.tgz", + "integrity": "sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==", "dev": true }, "array-union": { @@ -34331,6 +34560,8 @@ }, "ast-types": { "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", "dev": true, "requires": { "tslib": "^2.0.1" @@ -34352,6 +34583,12 @@ "version": "1.0.5", "dev": true }, + "b4a": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", + "integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==", + "dev": true + }, "babel-plugin-polyfill-corejs2": { "version": "0.4.5", "dev": true, @@ -34399,6 +34636,8 @@ }, "basic-ftp": { "version": "5.0.3", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.3.tgz", + "integrity": "sha512-QHX8HLlncOLpy54mh+k/sWIFd0ThmRqwe9ZjELybGZK+tZ8rUb9VO0saKJUROTbE+KhzDUT7xziGpGrW8Kmd+g==", "dev": true }, "bcrypt-pbkdf": { @@ -34872,10 +35111,12 @@ "dev": true }, "chromium-bidi": { - "version": "0.4.10", + "version": "0.4.22", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.22.tgz", + "integrity": "sha512-wR7Y9Ioez+cNXT4ZP7VNM1HRTljpNnMSLw4/RnwhhZUP4yCU7kIQND00YiktuHekch68jklGPK1q9Jkb29+fQg==", "dev": true, "requires": { - "mitt": "3.0.0" + "mitt": "3.0.1" } }, "ci-info": { @@ -34888,6 +35129,8 @@ }, "clear-module": { "version": "4.1.2", + "resolved": "https://registry.npmjs.org/clear-module/-/clear-module-4.1.2.tgz", + "integrity": "sha512-LWAxzHqdHsAZlPlEyJ2Poz6AIs384mPeqLVCru2p0BrP9G/kVGuhNyZYClLO6cXlnuJjzC8xtsJIuMjKqLXoAw==", "dev": true, "requires": { "parent-module": "^2.0.0", @@ -35034,6 +35277,8 @@ }, "comment-json": { "version": "4.2.3", + "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-4.2.3.tgz", + "integrity": "sha512-SsxdiOf064DWoZLH799Ata6u7iV658A11PlWtZATDlXPpKGJnbJZ5Z24ybixAi+LUUqJ/GKowAejtC5GFUG7Tw==", "dev": true, "requires": { "array-timsort": "^1.0.3", @@ -35191,7 +35436,9 @@ } }, "cosmiconfig": { - "version": "8.1.3", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.2.0.tgz", + "integrity": "sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==", "dev": true, "requires": { "import-fresh": "^3.2.1", @@ -35289,20 +35536,22 @@ } }, "cspell": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell/-/cspell-7.3.2.tgz", + "integrity": "sha512-/YY1C0CYBP+GueFon1BUgcDGc1YXDCyAIjuebvRygjt1cXwCklQVF5bZIGCrimgjzTrY+wx0ePgzuVQ9RyJnOQ==", "dev": true, "requires": { - "@cspell/cspell-json-reporter": "7.0.0", - "@cspell/cspell-pipe": "7.0.0", - "@cspell/cspell-types": "7.0.0", - "@cspell/dynamic-import": "7.0.0", + "@cspell/cspell-json-reporter": "7.3.2", + "@cspell/cspell-pipe": "7.3.2", + "@cspell/cspell-types": "7.3.2", + "@cspell/dynamic-import": "7.3.2", "chalk": "^5.3.0", "chalk-template": "^1.1.0", - "commander": "^10.0.1", - "cspell-gitignore": "7.0.0", - "cspell-glob": "7.0.0", - "cspell-io": "7.0.0", - "cspell-lib": "7.0.0", + "commander": "^11.0.0", + "cspell-gitignore": "7.3.2", + "cspell-glob": "7.3.2", + "cspell-io": "7.3.2", + "cspell-lib": "7.3.2", "fast-glob": "^3.3.1", "fast-json-stable-stringify": "^2.1.0", "file-entry-cache": "^6.0.1", @@ -35317,7 +35566,9 @@ "dev": true }, "commander": { - "version": "10.0.1", + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.0.0.tgz", + "integrity": "sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ==", "dev": true }, "semver": { @@ -35330,12 +35581,14 @@ } }, "cspell-dictionary": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-dictionary/-/cspell-dictionary-7.3.2.tgz", + "integrity": "sha512-hL8fOZ7zTkUuE6jq2CUObxUp0fSLsNQyMo+HAkpg0w6ssHvbgnP6HP8kyEN641L/F0X/Ow2vo3CaRBadvyyzCA==", "dev": true, "requires": { - "@cspell/cspell-pipe": "7.0.0", - "@cspell/cspell-types": "7.0.0", - "cspell-trie-lib": "7.0.0", + "@cspell/cspell-pipe": "7.3.2", + "@cspell/cspell-types": "7.3.2", + "cspell-trie-lib": "7.3.2", "fast-equals": "^4.0.3", "gensequence": "^5.0.2" }, @@ -35347,15 +35600,19 @@ } }, "cspell-gitignore": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-gitignore/-/cspell-gitignore-7.3.2.tgz", + "integrity": "sha512-NWxxFcf4wwKbRInkZK/p/BrPR2ElCpcB8DLcrBxRkiI4uX7yCX8v5QjI8ZpTyuaUTl9aFqJFYtj9Q7GqkBnPzA==", "dev": true, "requires": { - "cspell-glob": "7.0.0", + "cspell-glob": "7.3.2", "find-up": "^5.0.0" }, "dependencies": { "find-up": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, "requires": { "locate-path": "^6.0.0", @@ -35364,6 +35621,8 @@ }, "locate-path": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, "requires": { "p-locate": "^5.0.0" @@ -35371,6 +35630,8 @@ }, "p-limit": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { "yocto-queue": "^0.1.0" @@ -35378,6 +35639,8 @@ }, "p-locate": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, "requires": { "p-limit": "^3.0.2" @@ -35386,30 +35649,38 @@ } }, "cspell-glob": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-glob/-/cspell-glob-7.3.2.tgz", + "integrity": "sha512-R/YwtBN5ApOTONkBoTOSCKDMmnRRA1fF9prkaFMfE0aT5oC2VF0N7hLCSYjpQM+kYsXeqLDc13vxFBOnHRuc3g==", "dev": true, "requires": { "micromatch": "^4.0.5" } }, "cspell-grammar": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-grammar/-/cspell-grammar-7.3.2.tgz", + "integrity": "sha512-ale40T4M0jHmwQsPjIbpZKzaRxMVy5dnpyvplwj7ExX4sp2Grt1wcqxk2ELS4r4bsaIap+iIfeYYhoXqYq1dQg==", "dev": true, "requires": { - "@cspell/cspell-pipe": "7.0.0", - "@cspell/cspell-types": "7.0.0" + "@cspell/cspell-pipe": "7.3.2", + "@cspell/cspell-types": "7.3.2" } }, "cspell-io": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-io/-/cspell-io-7.3.2.tgz", + "integrity": "sha512-nul6K4YUMe1VdxuJDDOMvWUw/hIS2UZkvJLDo5GkAus7YmGSR0knfDueU+hebYszRa0LxjrduuPNcNJE/ZWUFg==", "dev": true, "requires": { - "@cspell/cspell-service-bus": "7.0.0", - "node-fetch": "^2.6.12" + "@cspell/cspell-service-bus": "7.3.2", + "node-fetch": "^2.7.0" }, "dependencies": { "node-fetch": { - "version": "2.6.12", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dev": true, "requires": { "whatwg-url": "^5.0.0" @@ -35418,34 +35689,39 @@ } }, "cspell-lib": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-lib/-/cspell-lib-7.3.2.tgz", + "integrity": "sha512-cbo0TSL2JnM/GdiutH193aynxdxSnxBR1DYJ1/8ycIWDU0p4AHO0EZ+5L5MkBFwpM20OicuXvLrAem9WjYVDBQ==", "dev": true, "requires": { - "@cspell/cspell-bundled-dicts": "7.0.0", - "@cspell/cspell-pipe": "7.0.0", - "@cspell/cspell-types": "7.0.0", - "@cspell/strong-weak-map": "7.0.0", + "@cspell/cspell-bundled-dicts": "7.3.2", + "@cspell/cspell-pipe": "7.3.2", + "@cspell/cspell-resolver": "7.3.2", + "@cspell/cspell-types": "7.3.2", + "@cspell/dynamic-import": "7.3.2", + "@cspell/strong-weak-map": "7.3.2", "clear-module": "^4.1.2", "comment-json": "^4.2.3", "configstore": "^6.0.0", "cosmiconfig": "8.0.0", - "cspell-dictionary": "7.0.0", - "cspell-glob": "7.0.0", - "cspell-grammar": "7.0.0", - "cspell-io": "7.0.0", - "cspell-trie-lib": "7.0.0", + "cspell-dictionary": "7.3.2", + "cspell-glob": "7.3.2", + "cspell-grammar": "7.3.2", + "cspell-io": "7.3.2", + "cspell-trie-lib": "7.3.2", "fast-equals": "^5.0.1", "find-up": "^6.3.0", "gensequence": "^5.0.2", "import-fresh": "^3.3.0", "resolve-from": "^5.0.0", - "resolve-global": "^1.0.0", "vscode-languageserver-textdocument": "^1.0.8", "vscode-uri": "^3.0.7" }, "dependencies": { "cosmiconfig": { "version": "8.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.0.0.tgz", + "integrity": "sha512-da1EafcpH6b/TD8vDRaWV7xFINlHlF6zKsGwS1TsuVJTZRkquaS5HTMq7uq6h31619QjbsYl21gVDOm32KM1vQ==", "dev": true, "requires": { "import-fresh": "^3.2.1", @@ -35456,6 +35732,8 @@ }, "find-up": { "version": "6.3.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", + "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", "dev": true, "requires": { "locate-path": "^7.1.0", @@ -35464,6 +35742,8 @@ }, "locate-path": { "version": "7.2.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz", + "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==", "dev": true, "requires": { "p-locate": "^6.0.0" @@ -35471,6 +35751,8 @@ }, "p-limit": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", + "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", "dev": true, "requires": { "yocto-queue": "^1.0.0" @@ -35478,6 +35760,8 @@ }, "p-locate": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", + "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", "dev": true, "requires": { "p-limit": "^4.0.0" @@ -35485,20 +35769,26 @@ }, "path-exists": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", + "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", "dev": true }, "yocto-queue": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", + "integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", "dev": true } } }, "cspell-trie-lib": { - "version": "7.0.0", + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/cspell-trie-lib/-/cspell-trie-lib-7.3.2.tgz", + "integrity": "sha512-IXNCWBw4UDZuY6MB+j7YNdcDpTdcfElsLkwTV8fEmNfUeClJacn2mQicQ/LKZJLvOc1TNbcSPWSCe3kQA+uxNw==", "dev": true, "requires": { - "@cspell/cspell-pipe": "7.0.0", - "@cspell/cspell-types": "7.0.0", + "@cspell/cspell-pipe": "7.3.2", + "@cspell/cspell-types": "7.3.2", "gensequence": "^5.0.2" } }, @@ -35512,6 +35802,8 @@ }, "data-uri-to-buffer": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-5.0.1.tgz", + "integrity": "sha512-a9l6T1qqDogvvnw0nKlfZzqsyikEBZBClF39V3TFoKhDtGBqHu2HkuomJc02j5zft8zrUaXEuoicLeW54RkzPg==", "dev": true }, "datastore-core": { @@ -35738,13 +36030,34 @@ } }, "degenerator": { - "version": "4.0.2", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", "dev": true, "requires": { - "ast-types": "^0.13.2", - "escodegen": "^1.8.1", - "esprima": "^4.0.0", - "vm2": "^3.9.17" + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + }, + "dependencies": { + "escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "requires": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "source-map": "~0.6.1" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } } }, "del": { @@ -37220,7 +37533,9 @@ "dev": true }, "fast-check": { - "version": "3.8.1", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.12.0.tgz", + "integrity": "sha512-SqahE9mlL3+lhjJ39joMLwcj6F+24hfZdf/tchlNO8sHcTdrUUdA5P/ZbSFZM9Xpzs36XaneGwE0FWepm/zyOA==", "requires": { "pure-rand": "^6.0.0" } @@ -37235,6 +37550,14 @@ }, "fast-equals": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.0.1.tgz", + "integrity": "sha512-WF1Wi8PwwSY7/6Kx0vKXtw8RwuSGoM1bvDaJbu7MxDlR1vovZjIAKrnzyrThgAjm6JDTu0fVgWXDlMGspodfoQ==", + "dev": true + }, + "fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", "dev": true }, "fast-glob": { @@ -37544,6 +37867,8 @@ }, "get-uri": { "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.1.tgz", + "integrity": "sha512-7ZqONUVqaabogsYNWlYj0t3YZaL6dhuEueZXGF+/YVmf6dHmaFg8/6psJKqhx9QykIDKzpGcy2cn4oV4YC7V/Q==", "dev": true, "requires": { "basic-ftp": "^5.0.2", @@ -37633,10 +37958,19 @@ } }, "global-dirs": { - "version": "0.1.1", + "version": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", + "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", "dev": true, "requires": { - "ini": "^1.3.4" + "ini": "2.0.0" + }, + "dependencies": { + "ini": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "dev": true + } } }, "globals": { @@ -37750,6 +38084,8 @@ }, "has-own-prop": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-own-prop/-/has-own-prop-2.0.0.tgz", + "integrity": "sha512-Pq0h+hvsVm6dDEa8x82GnLSYHOzNDt7f0ddFa3FqcQlgzEiptPqL+XrOJNavjOzSYiYWIrgeVYYgGlLmnxwilQ==", "dev": true }, "has-property-descriptors": { @@ -37942,6 +38278,8 @@ }, "import-meta-resolve": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-3.0.0.tgz", + "integrity": "sha512-4IwhLhNNA8yy445rPjD/lWh++7hMDOml2eHtd58eG7h+qK3EryMuuRbsHGPikCoAgIkkDnckKfWSk2iDla/ejg==", "dev": true }, "imurmurhash": { @@ -38009,6 +38347,8 @@ }, "ip": { "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", "dev": true }, "ip-regex": { @@ -38466,7 +38806,9 @@ } }, "it-all": { - "version": "3.0.2" + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/it-all/-/it-all-3.0.3.tgz", + "integrity": "sha512-LwEVD1d0b1O5mDwumnZk+80jSBn5sXDxQ41xiD6j6l2lRiWH6lBLdxXx1C6mlKrXQwRHzUQagOZUmqttDUwb0A==" }, "it-batched-bytes": { "version": "2.0.3", @@ -40432,7 +40774,9 @@ } }, "mitt": { - "version": "3.0.0", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", "dev": true }, "mkdirp": { @@ -43621,27 +43965,34 @@ } }, "pac-proxy-agent": { - "version": "6.0.3", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.0.tgz", + "integrity": "sha512-t4tRAMx0uphnZrio0S0Jw9zg3oDbz1zVhQ/Vy18FjLfP1XOLNUEjaVxYCYRI6NS+BsMBXKIzV6cTLOkO9AtywA==", "dev": true, "requires": { + "@tootallnate/quickjs-emscripten": "^0.23.0", "agent-base": "^7.0.2", "debug": "^4.3.4", "get-uri": "^6.0.1", "http-proxy-agent": "^7.0.0", "https-proxy-agent": "^7.0.0", - "pac-resolver": "^6.0.1", + "pac-resolver": "^7.0.0", "socks-proxy-agent": "^8.0.1" }, "dependencies": { "agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, "requires": { "debug": "^4.3.4" } }, "https-proxy-agent": { - "version": "7.0.0", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", + "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", "dev": true, "requires": { "agent-base": "^7.0.2", @@ -43651,11 +44002,13 @@ } }, "pac-resolver": { - "version": "6.0.1", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", + "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", "dev": true, "requires": { - "degenerator": "^4.0.1", - "ip": "^1.1.5", + "degenerator": "^5.0.0", + "ip": "^1.1.8", "netmask": "^2.0.2" } }, @@ -43755,6 +44108,8 @@ }, "parent-module": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-2.0.0.tgz", + "integrity": "sha512-uo0Z9JJeWzv8BG+tRcapBKNJ0dro9cLyczGzulS6EfeyAdeC9sbojtW6XwvYxJkEne9En+J2XEl4zyglVeIwFg==", "dev": true, "requires": { "callsites": "^3.1.0" @@ -44566,36 +44921,34 @@ } }, "proxy-agent": { - "version": "6.2.0", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.0.tgz", + "integrity": "sha512-0LdR757eTj/JfuU7TL2YCuAZnxWXu3tkJbg4Oq3geW/qFNT/32T0sp2HnZ9O0lMR4q3vwAt0+xCA8SR0WAD0og==", "dev": true, "requires": { - "agent-base": "^7.0.1", + "agent-base": "^7.0.2", "debug": "^4.3.4", - "http-proxy-agent": "^6.0.1", - "https-proxy-agent": "^6.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", "lru-cache": "^7.14.1", - "pac-proxy-agent": "^6.0.2", + "pac-proxy-agent": "^7.0.0", "proxy-from-env": "^1.1.0", "socks-proxy-agent": "^8.0.1" }, "dependencies": { "agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, "requires": { "debug": "^4.3.4" } }, - "http-proxy-agent": { - "version": "6.1.1", - "dev": true, - "requires": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - } - }, "https-proxy-agent": { - "version": "6.2.1", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.1.tgz", + "integrity": "sha512-Eun8zV0kcYS1g19r78osiQLEFIRspRUDd9tIfBCTBPBeMieF/EsJNL8VI3xOIdYRDEkjQnqOYPsZ2DsWsVsFwQ==", "dev": true, "requires": { "agent-base": "^7.0.2", @@ -44604,6 +44957,8 @@ }, "lru-cache": { "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", "dev": true } } @@ -44635,46 +44990,58 @@ } }, "puppeteer": { - "version": "20.4.0", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-21.1.1.tgz", + "integrity": "sha512-2TLntjGA4qLrI9/8N0UK/5OoZJ2Ue7QgphN2SD+RsaHiha12AEiVyMGsB+i6LY1IoPAtEgYIjblQ7lw3kWDNRw==", "dev": true, "requires": { - "@puppeteer/browsers": "1.4.0", - "cosmiconfig": "8.1.3", - "puppeteer-core": "20.4.0" + "@puppeteer/browsers": "1.7.0", + "cosmiconfig": "8.2.0", + "puppeteer-core": "21.1.1" }, "dependencies": { "cross-fetch": { - "version": "3.1.6", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", + "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", "dev": true, "requires": { - "node-fetch": "^2.6.11" + "node-fetch": "^2.6.12" } }, "devtools-protocol": { - "version": "0.0.1120988", + "version": "0.0.1159816", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1159816.tgz", + "integrity": "sha512-2cZlHxC5IlgkIWe2pSDmCrDiTzbSJWywjbDDnupOImEBcG31CQgBLV8wWE+5t+C4rimcjHsbzy7CBzf9oFjboA==", "dev": true }, "node-fetch": { - "version": "2.6.11", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dev": true, "requires": { "whatwg-url": "^5.0.0" } }, "puppeteer-core": { - "version": "20.4.0", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.1.1.tgz", + "integrity": "sha512-Tlcajcf44zwfa9Sbwv3T8BtaNMJ69wtpHIxwl2NOBTyTK3D1wppQovXTjfw0TDOm3a16eCfQ+5BMi3vRQ4kuAQ==", "dev": true, "requires": { - "@puppeteer/browsers": "1.4.0", - "chromium-bidi": "0.4.10", - "cross-fetch": "3.1.6", + "@puppeteer/browsers": "1.7.0", + "chromium-bidi": "0.4.22", + "cross-fetch": "4.0.0", "debug": "4.3.4", - "devtools-protocol": "0.0.1120988", + "devtools-protocol": "0.0.1159816", "ws": "8.13.0" } }, "ws": { "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", "dev": true, "requires": {} } @@ -44724,6 +45091,12 @@ "version": "1.2.3", "dev": true }, + "queue-tick": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", + "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==", + "dev": true + }, "quick-lru": { "version": "5.1.1", "dev": true @@ -45319,6 +45692,8 @@ }, "repeat-string": { "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", "dev": true }, "require-directory": { @@ -45365,13 +45740,6 @@ "version": "5.0.0", "dev": true }, - "resolve-global": { - "version": "1.0.0", - "dev": true, - "requires": { - "global-dirs": "^0.1.1" - } - }, "responselike": { "version": "2.0.1", "dev": true, @@ -45436,7 +45804,9 @@ } }, "rollup": { - "version": "3.21.3", + "version": "3.28.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.28.0.tgz", + "integrity": "sha512-d7zhvo1OUY2SXSM6pfNjgD5+d0Nz87CUp4mt8l/GgVP3oBsPwzNvSzyu1me6BSG9JIgWNTVcafIXBIyM8yQ3yw==", "dev": true, "requires": { "fsevents": "~2.3.2" @@ -46139,6 +46509,8 @@ }, "smart-buffer": { "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", "dev": true }, "socket.io": { @@ -46177,6 +46549,8 @@ }, "socks": { "version": "2.7.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", + "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", "dev": true, "requires": { "ip": "^2.0.0", @@ -46185,12 +46559,16 @@ "dependencies": { "ip": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", + "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", "dev": true } } }, "socks-proxy-agent": { "version": "8.0.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.1.tgz", + "integrity": "sha512-59EjPbbgg8U3x62hhKOFVAmySQUcfRQ4C7Q/D5sEHnZTQRrQlNKINks44DMR1gwXp0p4LaVIeccX2KHTTcHVqQ==", "dev": true, "requires": { "agent-base": "^7.0.1", @@ -46200,6 +46578,8 @@ "dependencies": { "agent-base": { "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dev": true, "requires": { "debug": "^4.3.4" @@ -46382,6 +46762,16 @@ "streamsearch": { "version": "1.1.0" }, + "streamx": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.1.tgz", + "integrity": "sha512-fQMzy2O/Q47rgwErk/eGeLu/roaFWV0jVsogDmrszM9uIw8L5OA+t+V93MgYlufNptfjmYR1tOMWhei/Eh7TQA==", + "dev": true, + "requires": { + "fast-fifo": "^1.1.0", + "queue-tick": "^1.0.1" + } + }, "string_decoder": { "version": "1.3.0", "requires": { @@ -47414,20 +47804,14 @@ "version": "1.1.2", "dev": true }, - "vm2": { - "version": "3.9.19", - "dev": true, - "requires": { - "acorn": "^8.7.0", - "acorn-walk": "^8.2.0" - } - }, "void-elements": { "version": "2.0.1", "dev": true }, "vscode-languageserver-textdocument": { "version": "1.0.8", + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.8.tgz", + "integrity": "sha512-1bonkGqQs5/fxGT5UchTgjGVnfysL0O8v1AYMBjqTbWQTFn721zaPGDYFkOKtfDgFiSgXM3KwaG3FMGfW4Ed9Q==", "dev": true }, "vscode-oniguruma": { @@ -47440,6 +47824,8 @@ }, "vscode-uri": { "version": "3.0.7", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.7.tgz", + "integrity": "sha512-eOpPHogvorZRobNqJGhapa0JdwaxpjVvyBp0QIUMRMSf8ZAlqOdEquKuRmw9Qwu0qXtJIWqFtMkmvJjUZmMjVA==", "dev": true }, "watchpack": { diff --git a/packages/core/package.json b/packages/core/package.json index 2c8b2b6f70..7e081925dc 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -72,12 +72,12 @@ "node": ">=16" }, "dependencies": { - "@noble/hashes": "^1.3.0", + "@noble/hashes": "^1.3.2", "@waku/interfaces": "0.0.17", "@waku/proto": "0.0.5", "@waku/utils": "0.0.10", "debug": "^4.3.4", - "it-all": "^3.0.2", + "it-all": "^3.0.3", "it-length-prefixed": "^9.0.1", "it-pipe": "^3.0.1", "p-event": "^5.0.1", @@ -95,8 +95,8 @@ "@types/uuid": "^9.0.1", "@waku/build-utils": "*", "chai": "^4.3.7", - "cspell": "^7.0.0", - "fast-check": "^3.8.1", + "cspell": "^7.0.1", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "karma": "^6.4.1", @@ -106,8 +106,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.21.3", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typescript": "^5.0.4" diff --git a/packages/core/src/lib/light_push/index.ts b/packages/core/src/lib/light_push/index.ts index bca6cd9ea9..ce886410ea 100644 --- a/packages/core/src/lib/light_push/index.ts +++ b/packages/core/src/lib/light_push/index.ts @@ -27,6 +27,16 @@ const log = debug("waku:light-push"); export const LightPushCodec = "/vac/waku/lightpush/2.0.0-beta1"; export { PushResponse }; +type PreparePushMessageResult = + | { + query: PushRpc; + error: null; + } + | { + query: null; + error: SendError; + }; + /** * Implements the [Waku v2 Light Push protocol](https://rfc.vac.dev/spec/19/). */ @@ -38,37 +48,64 @@ class LightPush extends BaseProtocol implements ILightPush { this.options = options || {}; } - async send( + private async preparePushMessage( encoder: IEncoder, message: IMessage, - opts?: ProtocolOptions - ): Promise { - const { pubSubTopic = DefaultPubSubTopic } = this.options; - - const peer = await this.getPeer(opts?.peerId); - const stream = await this.newStream(peer); - - const recipients: PeerId[] = []; - let error: undefined | SendError = undefined; - + pubSubTopic: string + ): Promise { try { if (!isSizeValid(message.payload)) { - log("Failed to send waku light push: message is bigger that 1MB"); - return { - recipients, - error: SendError.SIZE_TOO_BIG - }; + log("Failed to send waku light push: message is bigger than 1MB"); + return { query: null, error: SendError.SIZE_TOO_BIG }; } const protoMessage = await encoder.toProtoObj(message); if (!protoMessage) { log("Failed to encode to protoMessage, aborting push"); return { - recipients, + query: null, error: SendError.ENCODE_FAILED }; } + const query = PushRpc.createRequest(protoMessage, pubSubTopic); + return { query, error: null }; + } catch (error) { + log("Failed to prepare push message", error); + + return { + query: null, + error: SendError.GENERIC_FAIL + }; + } + } + + async send( + encoder: IEncoder, + message: IMessage, + opts?: ProtocolOptions + ): Promise { + const { pubSubTopic = DefaultPubSubTopic } = this.options; + const recipients: PeerId[] = []; + + const { query, error: preparationError } = await this.preparePushMessage( + encoder, + message, + pubSubTopic + ); + + if (preparationError || !query) { + return { + recipients, + error: preparationError + }; + } + + let error: undefined | SendError = undefined; + const peer = await this.getPeer(opts?.peerId); + const stream = await this.newStream(peer); + + try { const res = await pipe( [query.encode()], lp.encode, @@ -76,6 +113,7 @@ class LightPush extends BaseProtocol implements ILightPush { lp.decode, async (source) => await all(source) ); + try { const bytes = new Uint8ArrayList(); res.forEach((chunk) => { @@ -98,9 +136,10 @@ class LightPush extends BaseProtocol implements ILightPush { log("Failed to send waku light push request", err); error = SendError.GENERIC_FAIL; } + return { - error, - recipients + recipients, + error }; } } diff --git a/packages/core/src/lib/store/index.ts b/packages/core/src/lib/store/index.ts index 7583caac72..05068c1358 100644 --- a/packages/core/src/lib/store/index.ts +++ b/packages/core/src/lib/store/index.ts @@ -86,6 +86,54 @@ class Store extends BaseProtocol implements IStore { this.options = options ?? {}; } + /** + * Processes messages based on the provided callback and options. + * @private + */ + private async processMessages( + messages: Promise[], + callback: (message: T) => Promise | boolean | void, + options?: QueryOptions + ): Promise { + let abort = false; + const messagesOrUndef: Array = await Promise.all(messages); + let processedMessages: Array = messagesOrUndef.filter(isDefined); + + if (this.shouldReverseOrder(options)) { + processedMessages = processedMessages.reverse(); + } + + await Promise.all( + processedMessages.map(async (msg) => { + if (msg && !abort) { + abort = Boolean(await callback(msg)); + } + }) + ); + + return abort; + } + + /** + * Determines whether to reverse the order of messages based on the provided options. + * + * Messages in pages are ordered from oldest (first) to most recent (last). + * https://github.com/vacp2p/rfc/issues/533 + * + * @private + */ + private shouldReverseOrder(options?: QueryOptions): boolean { + return ( + typeof options?.pageDirection === "undefined" || + options?.pageDirection === PageDirection.BACKWARD + ); + } + + /** + * @deprecated Use `queryWithOrderedCallback` instead + **/ + queryOrderedCallback = this.queryWithOrderedCallback; + /** * Do a query to a Waku Store to retrieve historical/missed messages. * @@ -103,42 +151,20 @@ class Store extends BaseProtocol implements IStore { * or if an error is encountered when processing the reply, * or if two decoders with the same content topic are passed. */ - async queryOrderedCallback( + async queryWithOrderedCallback( decoders: IDecoder[], callback: (message: T) => Promise | boolean | void, options?: QueryOptions ): Promise { - let abort = false; for await (const promises of this.queryGenerator(decoders, options)) { - if (abort) break; - const messagesOrUndef: Array = await Promise.all(promises); - - let messages: Array = messagesOrUndef.filter(isDefined); - - // Messages in pages are ordered from oldest (first) to most recent (last). - // https://github.com/vacp2p/rfc/issues/533 - if ( - typeof options?.pageDirection === "undefined" || - options?.pageDirection === PageDirection.BACKWARD - ) { - messages = messages.reverse(); - } - - await Promise.all( - messages.map(async (msg) => { - if (msg && !abort) { - abort = Boolean(await callback(msg)); - } - }) - ); + if (await this.processMessages(promises, callback, options)) break; } } /** * Do a query to a Waku Store to retrieve historical/missed messages. - * * The callback function takes a `Promise` in input, - * useful if messages needs to be decrypted and performance matters. + * useful if messages need to be decrypted and performance matters. * * The order of the messages passed to the callback is as follows: * - within a page, messages are expected to be ordered from oldest to most recent @@ -152,7 +178,7 @@ class Store extends BaseProtocol implements IStore { * or if an error is encountered when processing the reply, * or if two decoders with the same content topic are passed. */ - async queryCallbackOnPromise( + async queryWithPromiseCallback( decoders: IDecoder[], callback: ( message: Promise @@ -160,17 +186,15 @@ class Store extends BaseProtocol implements IStore { options?: QueryOptions ): Promise { let abort = false; - let promises: Promise[] = []; for await (const page of this.queryGenerator(decoders, options)) { - const _promises = page.map(async (msg) => { - if (!abort) { - abort = Boolean(await callback(msg)); - } + const _promises = page.map(async (msgPromise) => { + if (abort) return; + abort = Boolean(await callback(msgPromise)); }); - promises = promises.concat(_promises); + await Promise.all(_promises); + if (abort) break; } - await Promise.all(promises); } /** @@ -183,9 +207,6 @@ class Store extends BaseProtocol implements IStore { * as follows: * - within a page, messages SHOULD be ordered from oldest to most recent * - pages direction depends on { @link QueryOptions.pageDirection } - * - * However, there is no way to guarantee the behavior of the remote node. - * * @throws If not able to reach a Waku Store peer to query, * or if an error is encountered when processing the reply, * or if two decoders with the same content topic are passed. diff --git a/packages/dns-discovery/package.json b/packages/dns-discovery/package.json index 62664041ac..3300efe886 100644 --- a/packages/dns-discovery/package.json +++ b/packages/dns-discovery/package.json @@ -59,7 +59,7 @@ "uint8arrays": "^4.0.4" }, "devDependencies": { - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@libp2p/peer-id-factory": "^3.0.3", "@multiformats/multiaddr": "^12.0.0", "@rollup/plugin-commonjs": "^24.0.1", @@ -69,14 +69,14 @@ "@waku/build-utils": "*", "@waku/interfaces": "0.0.17", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "karma": "^6.4.1", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", "karma-webpack": "^5.0.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4" }, diff --git a/packages/enr/package.json b/packages/enr/package.json index 72bf35b04f..39c7d76833 100644 --- a/packages/enr/package.json +++ b/packages/enr/package.json @@ -53,7 +53,7 @@ "dependencies": { "@ethersproject/rlp": "^5.7.0", "@libp2p/crypto": "^1.0.17", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@multiformats/multiaddr": "^12.0.0", "@noble/secp256k1": "^2.0.0", "@waku/utils": "0.0.10", @@ -70,7 +70,7 @@ "@waku/build-utils": "*", "@waku/interfaces": "0.0.17", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "karma": "^6.4.1", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", @@ -78,8 +78,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.21.3", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4", "uint8arrays": "^4.0.4" diff --git a/packages/interfaces/package.json b/packages/interfaces/package.json index ae0740379f..edb914cb49 100644 --- a/packages/interfaces/package.json +++ b/packages/interfaces/package.json @@ -47,9 +47,9 @@ "node": ">=16" }, "devDependencies": { - "@chainsafe/libp2p-gossipsub": "^10.0.0", + "@chainsafe/libp2p-gossipsub": "^10.1.0", "@multiformats/multiaddr": "^12.0.0", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "npm-run-all": "^4.1.5", "typescript": "^5.0.4", "libp2p": "^0.46.3" diff --git a/packages/interfaces/src/store.ts b/packages/interfaces/src/store.ts index e3ad74c74d..aea825b3b2 100644 --- a/packages/interfaces/src/store.ts +++ b/packages/interfaces/src/store.ts @@ -46,12 +46,12 @@ export type StoreQueryOptions = { } & ProtocolOptions; export interface IStore extends IBaseProtocol { - queryOrderedCallback: ( + queryWithOrderedCallback: ( decoders: IDecoder[], callback: (message: T) => Promise | boolean | void, options?: StoreQueryOptions ) => Promise; - queryCallbackOnPromise: ( + queryWithPromiseCallback: ( decoders: IDecoder[], callback: ( message: Promise diff --git a/packages/message-encryption/package.json b/packages/message-encryption/package.json index 0739b7ab95..7c5f3f02b2 100644 --- a/packages/message-encryption/package.json +++ b/packages/message-encryption/package.json @@ -87,8 +87,8 @@ "@types/mocha": "^10.0.1", "@waku/build-utils": "*", "chai": "^4.3.7", - "cspell": "^7.0.0", - "fast-check": "^3.8.1", + "cspell": "^7.0.1", + "fast-check": "^3.12.0", "karma": "^6.4.1", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", @@ -96,8 +96,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.21.3", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4" }, diff --git a/packages/message-hash/package.json b/packages/message-hash/package.json index 858733169f..a3b368d544 100644 --- a/packages/message-hash/package.json +++ b/packages/message-hash/package.json @@ -50,7 +50,7 @@ "node": ">=16" }, "dependencies": { - "@noble/hashes": "^1.2.0", + "@noble/hashes": "^1.3.2", "@waku/utils": "0.0.10" }, "devDependencies": { @@ -63,8 +63,8 @@ "@waku/build-utils": "*", "@waku/interfaces": "0.0.17", "chai": "^4.3.7", - "cspell": "^7.0.0", - "fast-check": "^3.7.0", + "cspell": "^7.0.1", + "fast-check": "^3.12.0", "ignore-loader": "^0.1.2", "isomorphic-fetch": "^3.0.0", "karma": "^6.4.1", @@ -74,8 +74,8 @@ "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "process": "^0.11.10", - "puppeteer": "^20.4.0", - "rollup": "^3.15.0", + "puppeteer": "^21.1.1", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typescript": "^5.0.4" diff --git a/packages/peer-exchange/package.json b/packages/peer-exchange/package.json index cef5fd63e1..980db03fd6 100644 --- a/packages/peer-exchange/package.json +++ b/packages/peer-exchange/package.json @@ -55,7 +55,7 @@ "@waku/proto": "0.0.5", "@waku/utils": "0.0.10", "debug": "^4.3.4", - "it-all": "^3.0.2", + "it-all": "^3.0.3", "it-length-prefixed": "^9.0.1", "it-pipe": "^3.0.1" }, @@ -65,9 +65,9 @@ "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", "chai": "^4.3.7", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "typescript": "^5.0.4", "uint8arraylist": "^2.4.3" diff --git a/packages/proto/package.json b/packages/proto/package.json index aa36416383..b136594f92 100644 --- a/packages/proto/package.json +++ b/packages/proto/package.json @@ -51,10 +51,10 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "npm-run-all": "^4.1.5", "protons": "^7.0.2", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "typescript": "^5.0.4", "uint8arraylist": "^2.4.3" }, diff --git a/packages/relay/package.json b/packages/relay/package.json index 7e3b4b52c8..d2e0d9579d 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -49,22 +49,22 @@ "node": ">=16" }, "dependencies": { - "@chainsafe/libp2p-gossipsub": "^10.0.0", - "@noble/hashes": "^1.3.0", + "@chainsafe/libp2p-gossipsub": "^10.1.0", + "@noble/hashes": "^1.3.2", "@waku/core": "0.0.22", "@waku/interfaces": "0.0.17", "@waku/proto": "0.0.5", "@waku/utils": "0.0.10", "chai": "^4.3.7", "debug": "^4.3.4", - "fast-check": "^3.8.1" + "fast-check": "^3.12.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^24.1.0", "@waku/build-utils": "*", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", - "rollup": "^3.15.0", + "rollup": "^3.28.0", "ts-loader": "^9.4.2", "ts-node": "^10.9.1", "typescript": "^5.0.4" diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 9c9a7b6a12..5c90f15744 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -59,15 +59,15 @@ "libp2p": "^0.46.3" }, "devDependencies": { - "@chainsafe/libp2p-gossipsub": "^10.0.0", + "@chainsafe/libp2p-gossipsub": "^10.1.0", "@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "interface-datastore": "^7.0.4", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "typescript": "^5.0.4" }, "typedoc": { diff --git a/packages/tests/package.json b/packages/tests/package.json index 25d4445c60..2baebffbcd 100644 --- a/packages/tests/package.json +++ b/packages/tests/package.json @@ -51,7 +51,7 @@ }, "dependencies": { "@libp2p/interface-compliance-tests": "^4.0.2", - "@libp2p/peer-id": "^2.0.4", + "@libp2p/peer-id": "^3.0.2", "@waku/core": "*", "@waku/enr": "*", "@waku/interfaces": "*", @@ -80,7 +80,7 @@ "@waku/peer-exchange": "*", "chai": "^4.3.7", "datastore-core": "^9.2.2", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "debug": "^4.3.4", "interface-datastore": "^8.2.3", "libp2p": "^0.46.3", diff --git a/packages/tests/src/run-tests.js b/packages/tests/src/run-tests.js index 775a6add36..4adb866386 100644 --- a/packages/tests/src/run-tests.js +++ b/packages/tests/src/run-tests.js @@ -9,9 +9,9 @@ const WAKUNODE_IMAGE = async function main() { try { await execAsync(`docker inspect ${WAKUNODE_IMAGE}`); - console.log("Using local image"); + console.log(`Using local image ${WAKUNODE_IMAGE}`); } catch (error) { - console.log("Pulling image..."); + console.log(`Pulling image ${WAKUNODE_IMAGE}`); await execAsync(`docker pull ${WAKUNODE_IMAGE}`); console.log("Image pulled"); } diff --git a/packages/tests/tests/store.node.spec.ts b/packages/tests/tests/store.node.spec.ts index f75d1b5935..cde93d098c 100644 --- a/packages/tests/tests/store.node.spec.ts +++ b/packages/tests/tests/store.node.spec.ts @@ -204,7 +204,7 @@ describe("Waku Store", () => { await waitForRemotePeer(waku, [Protocols.Store]); const messages: IMessage[] = []; - await waku.store.queryCallbackOnPromise( + await waku.store.queryWithPromiseCallback( [TestDecoder], async (msgPromise) => { const msg = await msgPromise; @@ -246,7 +246,7 @@ describe("Waku Store", () => { const desiredMsgs = 14; const messages: IMessage[] = []; - await waku.store.queryCallbackOnPromise( + await waku.store.queryWithPromiseCallback( [TestDecoder], async (msgPromise) => { const msg = await msgPromise; @@ -285,7 +285,7 @@ describe("Waku Store", () => { await waitForRemotePeer(waku, [Protocols.Store]); const messages: IMessage[] = []; - await waku.store.queryOrderedCallback( + await waku.store.queryWithOrderedCallback( [TestDecoder], async (msg) => { messages.push(msg); @@ -324,7 +324,7 @@ describe("Waku Store", () => { await waitForRemotePeer(waku, [Protocols.Store]); let messages: IMessage[] = []; - await waku.store.queryOrderedCallback( + await waku.store.queryWithOrderedCallback( [TestDecoder], async (msg) => { messages.push(msg); @@ -491,7 +491,7 @@ describe("Waku Store", () => { const nwakuPeerId = await nwaku.getPeerId(); const firstMessages: IMessage[] = []; - await waku.store.queryOrderedCallback( + await waku.store.queryWithOrderedCallback( [TestDecoder], (msg) => { if (msg) { @@ -505,7 +505,7 @@ describe("Waku Store", () => { ); const bothMessages: IMessage[] = []; - await waku.store.queryOrderedCallback( + await waku.store.queryWithOrderedCallback( [TestDecoder], async (msg) => { bothMessages.push(msg); @@ -552,7 +552,7 @@ describe("Waku Store", () => { const desiredMsgs = 14; const messages: IMessage[] = []; - await waku.store.queryOrderedCallback( + await waku.store.queryWithOrderedCallback( [TestDecoder], async (msg) => { messages.push(msg); diff --git a/packages/utils/package.json b/packages/utils/package.json index 3bc8b8e56f..c4804421a2 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -74,9 +74,9 @@ "@rollup/plugin-node-resolve": "^15.1.0", "@waku/build-utils": "*", "@waku/interfaces": "0.0.17", - "cspell": "^7.0.0", + "cspell": "^7.0.1", "npm-run-all": "^4.1.5", - "rollup": "^3.21.3", + "rollup": "^3.28.0", "typescript": "^5.0.4" }, "typedoc": {