diff --git a/.github/workflows/add-action-project.yml b/.github/workflows/add-action-project.yml index 8943db61f5..1f476465a2 100644 --- a/.github/workflows/add-action-project.yml +++ b/.github/workflows/add-action-project.yml @@ -9,7 +9,7 @@ jobs: name: Add issue to project runs-on: ubuntu-latest steps: - - uses: actions/add-to-project@v0.3.0 + - uses: actions/add-to-project@v0.5.0 with: project-url: https://github.com/orgs/waku-org/projects/2 github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea0530434c..bbeb2fd93b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: node: runs-on: ubuntu-latest env: - WAKUNODE_IMAGE: "statusteam/nim-waku:v0.17.0" + WAKUNODE_IMAGE: "statusteam/nim-waku:v0.18.0" steps: - uses: actions/checkout@v3 diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0bc8573814..9f93e74882 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,12 +1,13 @@ { - "packages/utils": "0.0.7", + "packages/utils": "0.0.8", "packages/proto": "0.0.5", - "packages/interfaces": "0.0.14", - "packages/message-hash": "0.1.3", - "packages/enr": "0.0.13", - "packages/peer-exchange": "0.0.12", - "packages/core": "0.0.19", - "packages/dns-discovery": "0.0.13", - "packages/message-encryption": "0.0.17", - "packages/relay": "0.0.2" + "packages/interfaces": "0.0.15", + "packages/message-hash": "0.1.4", + "packages/enr": "0.0.14", + "packages/peer-exchange": "0.0.13", + "packages/core": "0.0.20", + "packages/dns-discovery": "0.0.14", + "packages/message-encryption": "0.0.18", + "packages/relay": "0.0.3", + "packages/sdk": "0.0.16" } diff --git a/nwaku b/nwaku deleted file mode 160000 index 03f0de365c..0000000000 --- a/nwaku +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 03f0de365cfee3a946257a6ce8a61fe19284976c diff --git a/package-lock.json b/package-lock.json index c5de31d045..248227722f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30907,13 +30907,13 @@ }, "packages/core": { "name": "@waku/core", - "version": "0.0.19", + "version": "0.0.20", "license": "MIT OR Apache-2.0", "dependencies": { "@noble/hashes": "^1.3.0", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "it-all": "^3.0.2", "it-length-prefixed": "^9.0.1", @@ -31033,13 +31033,13 @@ }, "packages/dns-discovery": { "name": "@waku/dns-discovery", - "version": "0.0.13", + "version": "0.0.14", "license": "MIT OR Apache-2.0", "dependencies": { "@libp2p/interface-peer-discovery": "^1.0.5", "@libp2p/interfaces": "^3.3.1", - "@waku/enr": "0.0.13", - "@waku/utils": "0.0.7", + "@waku/enr": "0.0.14", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "dns-query": "^0.11.2", "hi-base32": "^0.5.1", @@ -31056,7 +31056,7 @@ "@rollup/plugin-node-resolve": "^15.0.2", "@types/chai": "^4.3.4", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "chai": "^4.3.7", "cspell": "^6.31.1", "karma": "^6.4.1", @@ -31076,7 +31076,7 @@ }, "packages/enr": { "name": "@waku/enr", - "version": "0.0.13", + "version": "0.0.14", "license": "MIT OR Apache-2.0", "dependencies": { "@ethersproject/rlp": "^5.7.0", @@ -31084,7 +31084,7 @@ "@libp2p/peer-id": "^2.0.3", "@multiformats/multiaddr": "^12.0.0", "@noble/secp256k1": "^1.7.1", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "js-sha3": "^0.8.0" }, @@ -31098,7 +31098,7 @@ "@types/chai": "^4.3.4", "@types/mocha": "^10.0.1", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "chai": "^4.3.7", "cspell": "^6.31.1", "karma": "^6.4.1", @@ -31121,7 +31121,7 @@ }, "packages/interfaces": { "name": "@waku/interfaces", - "version": "0.0.14", + "version": "0.0.15", "license": "MIT OR Apache-2.0", "devDependencies": { "@chainsafe/libp2p-gossipsub": "^6.1.0", @@ -31144,14 +31144,14 @@ }, "packages/message-encryption": { "name": "@waku/message-encryption", - "version": "0.0.17", + "version": "0.0.18", "license": "MIT OR Apache-2.0", "dependencies": { "@noble/secp256k1": "^1.7.1", - "@waku/core": "0.0.19", - "@waku/interfaces": "0.0.14", + "@waku/core": "0.0.20", + "@waku/interfaces": "0.0.15", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "js-sha3": "^0.8.0" }, @@ -31190,11 +31190,11 @@ }, "packages/message-hash": { "name": "@waku/message-hash", - "version": "0.1.3", + "version": "0.1.4", "license": "MIT OR Apache-2.0", "dependencies": { "@noble/hashes": "^1.2.0", - "@waku/utils": "0.0.7" + "@waku/utils": "0.0.8" }, "devDependencies": { "@rollup/plugin-commonjs": "^24.0.1", @@ -31204,7 +31204,7 @@ "@types/debug": "^4.1.7", "@types/mocha": "^10.0.1", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "chai": "^4.3.7", "cspell": "^6.28.0", "fast-check": "^3.7.0", @@ -31230,15 +31230,15 @@ }, "packages/peer-exchange": { "name": "@waku/peer-exchange", - "version": "0.0.12", + "version": "0.0.13", "license": "MIT OR Apache-2.0", "dependencies": { "@libp2p/interface-peer-discovery": "^1.0.5", "@libp2p/interfaces": "^3.3.1", - "@waku/core": "0.0.19", - "@waku/enr": "0.0.13", + "@waku/core": "0.0.20", + "@waku/enr": "0.0.14", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "it-all": "^3.0.2", "it-length-prefixed": "^9.0.1", @@ -31254,7 +31254,7 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "chai": "^4.3.7", "cspell": "^6.31.1", "npm-run-all": "^4.1.5", @@ -31337,15 +31337,15 @@ }, "packages/relay": { "name": "@waku/relay", - "version": "0.0.2", + "version": "0.0.3", "license": "MIT OR Apache-2.0", "dependencies": { "@chainsafe/libp2p-gossipsub": "^6.1.0", "@noble/hashes": "^1.3.0", - "@waku/core": "0.0.19", - "@waku/interfaces": "0.0.14", + "@waku/core": "0.0.20", + "@waku/interfaces": "0.0.15", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "chai": "^4.3.7", "debug": "^4.3.4", "fast-check": "^3.8.1" @@ -31372,10 +31372,11 @@ "@chainsafe/libp2p-noise": "^11.0.0", "@libp2p/mplex": "^7.1.1", "@libp2p/websockets": "^5.0.3", - "@waku/core": "0.0.19", - "@waku/dns-discovery": "0.0.13", - "@waku/relay": "0.0.2", - "@waku/utils": "*", + "@waku/core": "0.0.20", + "@waku/dns-discovery": "0.0.14", + "@waku/interfaces": "0.0.15", + "@waku/relay": "0.0.3", + "@waku/utils": "0.0.8", "libp2p": "^0.42.2" }, "devDependencies": { @@ -31397,7 +31398,6 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", "cspell": "^6.31.1", "interface-datastore": "^7.0.4", "npm-run-all": "^4.1.5", @@ -31484,7 +31484,7 @@ }, "packages/utils": { "name": "@waku/utils", - "version": "0.0.7", + "version": "0.0.8", "license": "MIT OR Apache-2.0", "dependencies": { "debug": "^4.3.4", @@ -31498,7 +31498,7 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "cspell": "^6.31.1", "npm-run-all": "^4.1.5", "prettier": "^2.8.8", @@ -36884,9 +36884,9 @@ "@typescript-eslint/eslint-plugin": "^5.57.0", "@typescript-eslint/parser": "^5.59.8", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "chai": "^4.3.7", "cspell": "^6.31.1", "debug": "^4.3.4", @@ -36934,9 +36934,9 @@ "@rollup/plugin-node-resolve": "^15.0.2", "@types/chai": "^4.3.4", "@waku/build-utils": "*", - "@waku/enr": "0.0.13", - "@waku/interfaces": "0.0.14", - "@waku/utils": "0.0.7", + "@waku/enr": "0.0.14", + "@waku/interfaces": "0.0.15", + "@waku/utils": "0.0.8", "chai": "^4.3.7", "cspell": "^6.31.1", "debug": "^4.3.4", @@ -36972,8 +36972,8 @@ "@types/chai": "^4.3.4", "@types/mocha": "^10.0.1", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", - "@waku/utils": "0.0.7", + "@waku/interfaces": "0.0.15", + "@waku/utils": "0.0.8", "chai": "^4.3.7", "cspell": "^6.31.1", "debug": "^4.3.4", @@ -37027,10 +37027,10 @@ "@types/chai": "^4.3.4", "@types/mocha": "^10.0.1", "@waku/build-utils": "*", - "@waku/core": "0.0.19", - "@waku/interfaces": "0.0.14", + "@waku/core": "0.0.20", + "@waku/interfaces": "0.0.15", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "chai": "^4.3.7", "cspell": "^6.31.1", "debug": "^4.3.4", @@ -37061,8 +37061,8 @@ "@types/debug": "^4.1.7", "@types/mocha": "^10.0.1", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", - "@waku/utils": "0.0.7", + "@waku/interfaces": "0.0.15", + "@waku/utils": "0.0.8", "chai": "^4.3.7", "cspell": "^6.28.0", "fast-check": "^3.7.0", @@ -37097,11 +37097,11 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@waku/build-utils": "*", - "@waku/core": "0.0.19", - "@waku/enr": "0.0.13", - "@waku/interfaces": "0.0.14", + "@waku/core": "0.0.20", + "@waku/enr": "0.0.14", + "@waku/interfaces": "0.0.15", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "chai": "^4.3.7", "cspell": "^6.31.1", "debug": "^4.3.4", @@ -37173,10 +37173,10 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@waku/build-utils": "*", - "@waku/core": "0.0.19", - "@waku/interfaces": "0.0.14", + "@waku/core": "0.0.20", + "@waku/interfaces": "0.0.15", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "chai": "^4.3.7", "debug": "^4.3.4", "fast-check": "^3.8.1", @@ -37210,11 +37210,11 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@waku/build-utils": "*", - "@waku/core": "0.0.19", - "@waku/dns-discovery": "0.0.13", - "@waku/interfaces": "0.0.14", - "@waku/relay": "0.0.2", - "@waku/utils": "*", + "@waku/core": "0.0.20", + "@waku/dns-discovery": "0.0.14", + "@waku/interfaces": "0.0.15", + "@waku/relay": "0.0.3", + "@waku/utils": "0.0.8", "cspell": "^6.31.1", "interface-datastore": "^7.0.4", "libp2p": "^0.42.2", @@ -37295,7 +37295,7 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "cspell": "^6.31.1", "debug": "^4.3.4", "npm-run-all": "^4.1.5", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 547f7917ca..5b5f33e947 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file. The file is maintained by [Release Please](https://github.com/googleapis/release-please) based on [Conventional Commits](https://www.conventionalcommits.org) specification, and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.20](https://github.com/waku-org/js-waku/compare/core-v0.0.19...core-v0.0.20) (2023-06-08) + + +### ⚠ BREAKING CHANGES + +* rename package from @waku/create to @waku/sdk ([#1386](https://github.com/waku-org/js-waku/issues/1386)) + +### Features + +* Allow passing of multiple ENR URLs to DNS Discovery & dial multiple peers in parallel ([#1379](https://github.com/waku-org/js-waku/issues/1379)) ([f32d7d9](https://github.com/waku-org/js-waku/commit/f32d7d9fe0b930b4fa9c46b8644e6d21be45d5c1)) +* Rename package from @waku/create to @waku/sdk ([#1386](https://github.com/waku-org/js-waku/issues/1386)) ([951ebda](https://github.com/waku-org/js-waku/commit/951ebdac9d5b594583acf5e4a21f6471fa81ff74)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/interfaces bumped from 0.0.14 to 0.0.15 + * @waku/utils bumped from 0.0.7 to 0.0.8 + ## [0.0.19](https://github.com/waku-org/js-waku/compare/core-v0.0.18...core-v0.0.19) (2023-05-26) diff --git a/packages/core/package.json b/packages/core/package.json index 24789086d8..9828d30105 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@waku/core", - "version": "0.0.19", + "version": "0.0.20", "description": "TypeScript implementation of the Waku v2 protocol", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -73,9 +73,9 @@ }, "dependencies": { "@noble/hashes": "^1.3.0", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "it-all": "^3.0.2", "it-length-prefixed": "^9.0.1", diff --git a/packages/core/src/lib/predefined_bootstrap_nodes.ts b/packages/core/src/lib/predefined_bootstrap_nodes.ts index 3606297f21..2fe84270d6 100644 --- a/packages/core/src/lib/predefined_bootstrap_nodes.ts +++ b/packages/core/src/lib/predefined_bootstrap_nodes.ts @@ -47,21 +47,21 @@ export const fleets = { "wakuv2.prod": { "waku-websocket": { "node-01.ac-cn-hongkong-c.wakuv2.prod": - "/dns4/node-01.ac-cn-hongkong-c.wakuv2.prod.statusim.net/tcp/443/wss/p2p/16Uiu2HAm4v86W3bmT1BiH6oSPzcsSr24iDQpSN5Qa992BCjjwgrD", + "/dns4/node-01.ac-cn-hongkong-c.wakuv2.prod.statusim.net/tcp/8000/wss/p2p/16Uiu2HAm4v86W3bmT1BiH6oSPzcsSr24iDQpSN5Qa992BCjjwgrD", "node-01.do-ams3.wakuv2.prod": - "/dns4/node-01.do-ams3.wakuv2.prod.statusim.net/tcp/443/wss/p2p/16Uiu2HAmL5okWopX7NqZWBUKVqW8iUxCEmd5GMHLVPwCgzYzQv3e", + "/dns4/node-01.do-ams3.wakuv2.prod.statusim.net/tcp/8000/wss/p2p/16Uiu2HAmL5okWopX7NqZWBUKVqW8iUxCEmd5GMHLVPwCgzYzQv3e", "node-01.gc-us-central1-a.wakuv2.prod": - "/dns4/node-01.gc-us-central1-a.wakuv2.prod.statusim.net/tcp/443/wss/p2p/16Uiu2HAmVkKntsECaYfefR1V2yCR79CegLATuTPE6B9TxgxBiiiA", + "/dns4/node-01.gc-us-central1-a.wakuv2.prod.statusim.net/tcp/8000/wss/p2p/16Uiu2HAmVkKntsECaYfefR1V2yCR79CegLATuTPE6B9TxgxBiiiA", }, }, "wakuv2.test": { "waku-websocket": { "node-01.ac-cn-hongkong-c.wakuv2.test": - "/dns4/node-01.ac-cn-hongkong-c.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm", + "/dns4/node-01.ac-cn-hongkong-c.wakuv2.test.statusim.net/tcp/8000/wss/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm", "node-01.do-ams3.wakuv2.test": - "/dns4/node-01.do-ams3.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ", + "/dns4/node-01.do-ams3.wakuv2.test.statusim.net/tcp/8000/wss/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ", "node-01.gc-us-central1-a.wakuv2.test": - "/dns4/node-01.gc-us-central1-a.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS", + "/dns4/node-01.gc-us-central1-a.wakuv2.test.statusim.net/tcp/8000/wss/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS", }, }, }, diff --git a/packages/dns-discovery/CHANGELOG.md b/packages/dns-discovery/CHANGELOG.md index e51b2002fa..8905195b13 100644 --- a/packages/dns-discovery/CHANGELOG.md +++ b/packages/dns-discovery/CHANGELOG.md @@ -46,6 +46,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * devDependencies * @waku/interfaces bumped from 0.0.13 to 0.0.14 +## [0.0.14](https://github.com/waku-org/js-waku/compare/dns-discovery-v0.0.13...dns-discovery-v0.0.14) (2023-06-08) + + +### Features + +* Allow passing of multiple ENR URLs to DNS Discovery & dial multiple peers in parallel ([#1379](https://github.com/waku-org/js-waku/issues/1379)) ([f32d7d9](https://github.com/waku-org/js-waku/commit/f32d7d9fe0b930b4fa9c46b8644e6d21be45d5c1)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/enr bumped from 0.0.13 to 0.0.14 + * @waku/utils bumped from 0.0.7 to 0.0.8 + * devDependencies + * @waku/interfaces bumped from 0.0.14 to 0.0.15 + ## [0.0.12](https://github.com/waku-org/js-waku/compare/dns-discovery-v0.0.11...dns-discovery-v0.0.12) (2023-05-18) diff --git a/packages/dns-discovery/package.json b/packages/dns-discovery/package.json index f318267845..ba55f85a23 100644 --- a/packages/dns-discovery/package.json +++ b/packages/dns-discovery/package.json @@ -1,6 +1,6 @@ { "name": "@waku/dns-discovery", - "version": "0.0.13", + "version": "0.0.14", "description": "DNS Peer Discovery (EIP-1459)", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -53,8 +53,8 @@ "dependencies": { "@libp2p/interface-peer-discovery": "^1.0.5", "@libp2p/interfaces": "^3.3.1", - "@waku/enr": "0.0.13", - "@waku/utils": "0.0.7", + "@waku/enr": "0.0.14", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "dns-query": "^0.11.2", "hi-base32": "^0.5.1", @@ -71,7 +71,7 @@ "@rollup/plugin-node-resolve": "^15.0.2", "@types/chai": "^4.3.4", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "chai": "^4.3.7", "cspell": "^6.31.1", "karma": "^6.4.1", diff --git a/packages/enr/CHANGELOG.md b/packages/enr/CHANGELOG.md index dcd78f0036..91d521d2e6 100644 --- a/packages/enr/CHANGELOG.md +++ b/packages/enr/CHANGELOG.md @@ -43,6 +43,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * devDependencies * @waku/interfaces bumped from 0.0.13 to 0.0.14 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/utils bumped from 0.0.7 to 0.0.8 + * devDependencies + * @waku/interfaces bumped from 0.0.14 to 0.0.15 + ## [0.0.12](https://github.com/waku-org/js-waku/compare/enr-v0.0.11...enr-v0.0.12) (2023-05-18) diff --git a/packages/enr/package.json b/packages/enr/package.json index 7d7e33d437..3918613582 100644 --- a/packages/enr/package.json +++ b/packages/enr/package.json @@ -1,6 +1,6 @@ { "name": "@waku/enr", - "version": "0.0.13", + "version": "0.0.14", "description": "ENR (EIP-778) for Waku", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -56,7 +56,7 @@ "@libp2p/peer-id": "^2.0.3", "@multiformats/multiaddr": "^12.0.0", "@noble/secp256k1": "^1.7.1", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "js-sha3": "^0.8.0" }, @@ -70,7 +70,7 @@ "@types/chai": "^4.3.4", "@types/mocha": "^10.0.1", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "chai": "^4.3.7", "cspell": "^6.31.1", "karma": "^6.4.1", diff --git a/packages/interfaces/CHANGELOG.md b/packages/interfaces/CHANGELOG.md index 546b39de40..a40812439f 100644 --- a/packages/interfaces/CHANGELOG.md +++ b/packages/interfaces/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The file is maintained by [Release Please](https://github.com/googleapis/release-please) based on [Conventional Commits](https://www.conventionalcommits.org) specification, and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.15](https://github.com/waku-org/js-waku/compare/interfaces-v0.0.14...interfaces-v0.0.15) (2023-06-08) + + +### Features + +* Allow passing of multiple ENR URLs to DNS Discovery & dial multiple peers in parallel ([#1379](https://github.com/waku-org/js-waku/issues/1379)) ([f32d7d9](https://github.com/waku-org/js-waku/commit/f32d7d9fe0b930b4fa9c46b8644e6d21be45d5c1)) + ## [0.0.14](https://github.com/waku-org/js-waku/compare/interfaces-v0.0.13...interfaces-v0.0.14) (2023-05-26) diff --git a/packages/interfaces/package.json b/packages/interfaces/package.json index 8286aedc39..d7cf73fdd0 100644 --- a/packages/interfaces/package.json +++ b/packages/interfaces/package.json @@ -1,6 +1,6 @@ { "name": "@waku/interfaces", - "version": "0.0.14", + "version": "0.0.15", "description": "Definition of Waku interfaces", "types": "./dist/index.d.ts", "module": "./dist/index.js", diff --git a/packages/message-encryption/CHANGELOG.md b/packages/message-encryption/CHANGELOG.md index defbaf65d2..f33acb1230 100644 --- a/packages/message-encryption/CHANGELOG.md +++ b/packages/message-encryption/CHANGELOG.md @@ -44,6 +44,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * @waku/proto bumped from * to 0.0.5 * @waku/utils bumped from 0.0.6 to 0.0.7 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/core bumped from 0.0.19 to 0.0.20 + * @waku/interfaces bumped from 0.0.14 to 0.0.15 + * @waku/utils bumped from 0.0.7 to 0.0.8 + ## [0.0.16](https://github.com/waku-org/js-waku/compare/message-encryption-v0.0.15...message-encryption-v0.0.16) (2023-05-18) diff --git a/packages/message-encryption/package.json b/packages/message-encryption/package.json index c341b992b0..addd735a23 100644 --- a/packages/message-encryption/package.json +++ b/packages/message-encryption/package.json @@ -1,6 +1,6 @@ { "name": "@waku/message-encryption", - "version": "0.0.17", + "version": "0.0.18", "description": "Waku Message Payload Encryption", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -72,10 +72,10 @@ }, "dependencies": { "@noble/secp256k1": "^1.7.1", - "@waku/core": "0.0.19", - "@waku/interfaces": "0.0.14", + "@waku/core": "0.0.20", + "@waku/interfaces": "0.0.15", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "js-sha3": "^0.8.0" }, diff --git a/packages/message-hash/CHANGELOG.md b/packages/message-hash/CHANGELOG.md index c4a0fcbcf4..91ccdbb468 100644 --- a/packages/message-hash/CHANGELOG.md +++ b/packages/message-hash/CHANGELOG.md @@ -8,6 +8,14 @@ * devDependencies * @waku/interfaces bumped from 0.0.13 to 0.0.14 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/utils bumped from 0.0.7 to 0.0.8 + * devDependencies + * @waku/interfaces bumped from 0.0.14 to 0.0.15 + ## [0.1.2](https://github.com/waku-org/js-waku/compare/message-hash-v0.1.1...message-hash-v0.1.2) (2023-05-18) diff --git a/packages/message-hash/package.json b/packages/message-hash/package.json index c9ef3331c4..81199a97c3 100644 --- a/packages/message-hash/package.json +++ b/packages/message-hash/package.json @@ -1,6 +1,6 @@ { "name": "@waku/message-hash", - "version": "0.1.3", + "version": "0.1.4", "description": "TypeScript implementation of the Deterministic Message Hashing as specified in 14/WAKU2-MESSAGE", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -53,7 +53,7 @@ }, "dependencies": { "@noble/hashes": "^1.2.0", - "@waku/utils": "0.0.7" + "@waku/utils": "0.0.8" }, "devDependencies": { "@rollup/plugin-commonjs": "^24.0.1", @@ -63,7 +63,7 @@ "@types/debug": "^4.1.7", "@types/mocha": "^10.0.1", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "chai": "^4.3.7", "cspell": "^6.28.0", "fast-check": "^3.7.0", diff --git a/packages/peer-exchange/CHANGELOG.md b/packages/peer-exchange/CHANGELOG.md index c17602d33a..8db40fa9d7 100644 --- a/packages/peer-exchange/CHANGELOG.md +++ b/packages/peer-exchange/CHANGELOG.md @@ -54,6 +54,16 @@ * devDependencies * @waku/interfaces bumped from 0.0.13 to 0.0.14 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/core bumped from 0.0.19 to 0.0.20 + * @waku/enr bumped from 0.0.13 to 0.0.14 + * @waku/utils bumped from 0.0.7 to 0.0.8 + * devDependencies + * @waku/interfaces bumped from 0.0.14 to 0.0.15 + ## [0.0.11](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.10...peer-exchange-v0.0.11) (2023-05-18) diff --git a/packages/peer-exchange/package.json b/packages/peer-exchange/package.json index f088372fe8..80dbf19e5a 100644 --- a/packages/peer-exchange/package.json +++ b/packages/peer-exchange/package.json @@ -1,6 +1,6 @@ { "name": "@waku/peer-exchange", - "version": "0.0.12", + "version": "0.0.13", "description": "Peer Exchange (https://rfc.vac.dev/spec/34/) protocol for Waku", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -50,10 +50,10 @@ "dependencies": { "@libp2p/interface-peer-discovery": "^1.0.5", "@libp2p/interfaces": "^3.3.1", - "@waku/core": "0.0.19", - "@waku/enr": "0.0.13", + "@waku/core": "0.0.20", + "@waku/enr": "0.0.14", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "debug": "^4.3.4", "it-all": "^3.0.2", "it-length-prefixed": "^9.0.1", @@ -69,7 +69,7 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "chai": "^4.3.7", "cspell": "^6.31.1", "npm-run-all": "^4.1.5", diff --git a/packages/relay/CHANGELOG.md b/packages/relay/CHANGELOG.md index 5eaa8b336c..52705c3a4b 100644 --- a/packages/relay/CHANGELOG.md +++ b/packages/relay/CHANGELOG.md @@ -9,6 +9,14 @@ * @waku/proto bumped from * to 0.0.5 * @waku/utils bumped from 0.0.6 to 0.0.7 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/core bumped from 0.0.19 to 0.0.20 + * @waku/interfaces bumped from 0.0.14 to 0.0.15 + * @waku/utils bumped from 0.0.7 to 0.0.8 + ## 0.0.1 (2023-05-18) diff --git a/packages/relay/package.json b/packages/relay/package.json index ba3c3606db..082e5be934 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -1,6 +1,6 @@ { "name": "@waku/relay", - "version": "0.0.2", + "version": "0.0.3", "description": "Relay Protocol for Waku", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -51,10 +51,10 @@ "dependencies": { "@chainsafe/libp2p-gossipsub": "^6.1.0", "@noble/hashes": "^1.3.0", - "@waku/core": "0.0.19", - "@waku/interfaces": "0.0.14", + "@waku/core": "0.0.20", + "@waku/interfaces": "0.0.15", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.7", + "@waku/utils": "0.0.8", "chai": "^4.3.7", "debug": "^4.3.4", "fast-check": "^3.8.1" diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 2c9967b5f1..c4894557b2 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -26,6 +26,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * devDependencies * @waku/interfaces bumped from 0.0.11 to 0.0.12 +## 0.0.16 (2023-06-08) + + +### ⚠ BREAKING CHANGES + +* rename package from @waku/create to @waku/sdk ([#1386](https://github.com/waku-org/js-waku/issues/1386)) + +### Features + +* Allow passing of multiple ENR URLs to DNS Discovery & dial multiple peers in parallel ([#1379](https://github.com/waku-org/js-waku/issues/1379)) ([f32d7d9](https://github.com/waku-org/js-waku/commit/f32d7d9fe0b930b4fa9c46b8644e6d21be45d5c1)) +* Rename package from @waku/create to @waku/sdk ([#1386](https://github.com/waku-org/js-waku/issues/1386)) ([951ebda](https://github.com/waku-org/js-waku/commit/951ebdac9d5b594583acf5e4a21f6471fa81ff74)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/utils bumped from * to 0.0.8 + * @waku/relay bumped from 0.0.2 to 0.0.3 + * @waku/core bumped from 0.0.19 to 0.0.20 + * @waku/dns-discovery bumped from 0.0.13 to 0.0.14 + * devDependencies + * @waku/interfaces bumped from 0.0.14 to 0.0.15 + ## [0.0.15](https://github.com/waku-org/js-waku/compare/create-v0.0.14...create-v0.0.15) (2023-05-26) diff --git a/packages/sdk/package.json b/packages/sdk/package.json index c4bd76be8e..f79a43a377 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -51,10 +51,11 @@ "@chainsafe/libp2p-noise": "^11.0.0", "@libp2p/mplex": "^7.1.1", "@libp2p/websockets": "^5.0.3", - "@waku/utils": "*", - "@waku/relay": "0.0.2", - "@waku/core": "0.0.19", - "@waku/dns-discovery": "0.0.13", + "@waku/utils": "0.0.8", + "@waku/relay": "0.0.3", + "@waku/core": "0.0.20", + "@waku/interfaces": "0.0.15", + "@waku/dns-discovery": "0.0.14", "libp2p": "^0.42.2" }, "devDependencies": { @@ -76,7 +77,6 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", "cspell": "^6.31.1", "interface-datastore": "^7.0.4", "npm-run-all": "^4.1.5", diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index 5be26e5a8c..f65e9af97e 100644 --- a/packages/sdk/src/index.ts +++ b/packages/sdk/src/index.ts @@ -15,3 +15,5 @@ export { utf8ToBytes, bytesToUtf8 } from "@waku/utils/bytes"; export * from "./create.js"; export * as waku from "@waku/core"; export * as utils from "@waku/utils"; +export * from "@waku/interfaces"; +export * as relay from "@waku/relay"; diff --git a/packages/tests/src/node/interfaces.ts b/packages/tests/src/node/interfaces.ts index dceb75427f..62fc205a94 100644 --- a/packages/tests/src/node/interfaces.ts +++ b/packages/tests/src/node/interfaces.ts @@ -14,7 +14,7 @@ export interface Args { peerExchange?: boolean; discv5Discovery?: boolean; storeMessageDbUrl?: string; - topics?: string; + topic?: string; rpcPrivate?: boolean; websocketSupport?: boolean; tcpPort?: number; diff --git a/packages/tests/src/node/node.ts b/packages/tests/src/node/node.ts index fe269eb125..e2cc8f4b97 100644 --- a/packages/tests/src/node/node.ts +++ b/packages/tests/src/node/node.ts @@ -27,7 +27,7 @@ const WAKU_SERVICE_NODE_PARAMS = const NODE_READY_LOG_LINE = "Node setup complete"; const DOCKER_IMAGE_NAME = - process.env.WAKUNODE_IMAGE || "statusteam/nim-waku:v0.17.0"; + process.env.WAKUNODE_IMAGE || "statusteam/nim-waku:v0.18.0"; const isGoWaku = DOCKER_IMAGE_NAME.includes("go-waku"); diff --git a/packages/tests/src/run-tests.js b/packages/tests/src/run-tests.js index 9cd1e144f7..86cb17153a 100644 --- a/packages/tests/src/run-tests.js +++ b/packages/tests/src/run-tests.js @@ -4,7 +4,7 @@ import { promisify } from "util"; const execAsync = promisify(exec); const WAKUNODE_IMAGE = - process.env.WAKUNODE_IMAGE || "statusteam/nim-waku:v0.17.0"; + process.env.WAKUNODE_IMAGE || "statusteam/nim-waku:v0.18.0"; async function main() { try { diff --git a/packages/tests/tests/light_push.node.spec.ts b/packages/tests/tests/light_push.node.spec.ts index 81b534055e..153edc6642 100644 --- a/packages/tests/tests/light_push.node.spec.ts +++ b/packages/tests/tests/light_push.node.spec.ts @@ -23,34 +23,36 @@ const TestEncoder = createEncoder({ contentTopic: TestContentTopic, }); +async function runNodes( + context: Mocha.Context, + pubSubTopic?: string +): Promise<[NimGoNode, LightNode]> { + const nwakuOptional = pubSubTopic ? { topic: pubSubTopic } : {}; + const nwaku = new NimGoNode(makeLogFileName(context)); + await nwaku.start({ + lightpush: true, + relay: true, + ...nwakuOptional, + }); + + const waku = await createLightNode({ + pubSubTopic, + staticNoiseKey: NOISE_KEY_1, + }); + await waku.start(); + await waku.dial(await nwaku.getMultiaddrWithId()); + await waitForRemotePeer(waku, [Protocols.LightPush]); + + return [nwaku, waku]; +} + describe("Waku Light Push [node only]", () => { let waku: LightNode; let nwaku: NimGoNode; - const runNodes = async ( - context: Mocha.Context, - pubSubTopic?: string - ): Promise => { - const nwakuOptional = pubSubTopic ? { topics: pubSubTopic } : {}; - nwaku = new NimGoNode(makeLogFileName(context)); - await nwaku.start({ - lightpush: true, - relay: true, - ...nwakuOptional, - }); - - waku = await createLightNode({ - pubSubTopic, - staticNoiseKey: NOISE_KEY_1, - }); - await waku.start(); - await waku.dial(await nwaku.getMultiaddrWithId()); - await waitForRemotePeer(waku, [Protocols.LightPush]); - }; - beforeEach(async function () { this.timeout(15_000); - await runNodes(this); + [nwaku, waku] = await runNodes(this); }); afterEach(async function () { @@ -108,12 +110,29 @@ describe("Waku Light Push [node only]", () => { expect(pushResponse.recipients.length).to.eq(0); expect(pushResponse.error).to.eq(SendError.SIZE_TOO_BIG); }); +}); - it("Push on custom pubsub topic", async function () { +describe("Waku Light Push [node only] - custom pubsub topic", () => { + let waku: LightNode; + let nwaku: NimGoNode; + const customPubSubTopic = "/waku/2/custom-dapp/proto"; + + beforeEach(async function () { this.timeout(15_000); + [nwaku, waku] = await runNodes(this, customPubSubTopic); + }); - const customPubSubTopic = "/waku/2/custom-dapp/proto"; - await runNodes(this, customPubSubTopic); + afterEach(async function () { + try { + nwaku?.stop(); + waku?.stop(); + } catch (e) { + console.error("Failed to stop nodes: ", e); + } + }); + + it("Push message", async function () { + this.timeout(15_000); const nimPeerId = await nwaku.getPeerId(); const messageText = "Light Push works!"; diff --git a/packages/tests/tests/store.node.spec.ts b/packages/tests/tests/store.node.spec.ts index e4410f5d6f..59cb0c84da 100644 --- a/packages/tests/tests/store.node.spec.ts +++ b/packages/tests/tests/store.node.spec.ts @@ -575,7 +575,7 @@ describe("Waku Store, custom pubsub topic", () => { nwaku = new NimGoNode(makeLogFileName(this)); await nwaku.start({ store: true, - topics: customPubSubTopic, + topic: customPubSubTopic, relay: true, }); }); diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 00a741a8d0..0d8ed85457 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +### Dependencies + +* The following workspace dependencies were updated + * devDependencies + * @waku/interfaces bumped from 0.0.14 to 0.0.15 + ## [0.0.7](https://github.com/waku-org/js-waku/compare/utils-v0.0.6...utils-v0.0.7) (2023-05-26) diff --git a/packages/utils/package.json b/packages/utils/package.json index 21f2249304..fd0750fe44 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@waku/utils", - "version": "0.0.7", + "version": "0.0.8", "description": "Different utilities for Waku", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -76,7 +76,7 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.0.2", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.14", + "@waku/interfaces": "0.0.15", "cspell": "^6.31.1", "npm-run-all": "^4.1.5", "prettier": "^2.8.8", diff --git a/release-please-config.json b/release-please-config.json index 2b46a832ed..ad90b40a44 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -15,9 +15,7 @@ "packages/core": {}, "packages/dns-discovery": {}, "packages/message-encryption": {}, - "packages/sdk": { - "release-as": "0.0.16" - }, + "packages/sdk": {}, "packages/relay": {} } }