diff --git a/.eslintrc.json b/.eslintrc.json index e4c3c97e83..b2b2fd5968 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -99,6 +99,12 @@ } ] } + }, + { + "files": ["**/ci/*.js"], + "rules": { + "no-undef": "off" + } } ] } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dac1e009da..46988480ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,14 +87,37 @@ jobs: with: nim_wakunode_image: wakuorg/go-waku:latest test_type: go-waku-master - debug: js-waku* + debug: waku* node_with_nwaku_master: uses: ./.github/workflows/test-node.yml with: nim_wakunode_image: wakuorg/nwaku:deploy-wakuv2-test test_type: nwaku-master - debug: js-waku* + debug: waku* + + pre-release: + name: pre-release + runs-on: ubuntu-latest + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + needs: [check, proto, browser, node] + steps: + - uses: actions/checkout@v3 + with: + repository: waku-org/js-waku + + - uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_JS }} + registry-url: "https://registry.npmjs.org" + + - run: npm install + + - run: npm run build + + - run: npm run publish -- --tag next + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_JS_WAKU_PUBLISH }} maybe-release: name: release diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f6f0bdf5cd..f7ea4b3f79 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,13 +1,13 @@ { - "packages/utils": "0.0.12", + "packages/utils": "0.0.13", "packages/proto": "0.0.5", - "packages/interfaces": "0.0.19", - "packages/message-hash": "0.1.8", - "packages/enr": "0.0.18", - "packages/peer-exchange": "0.0.17", - "packages/core": "0.0.24", - "packages/dns-discovery": "0.0.18", - "packages/message-encryption": "0.0.22", - "packages/relay": "0.0.7", - "packages/sdk": "0.0.20" + "packages/interfaces": "0.0.20", + "packages/message-hash": "0.1.9", + "packages/enr": "0.0.19", + "packages/peer-exchange": "0.0.18", + "packages/core": "0.0.25", + "packages/dns-discovery": "0.0.19", + "packages/message-encryption": "0.0.23", + "packages/relay": "0.0.8", + "packages/sdk": "0.0.21" } diff --git a/ci/publish.js b/ci/publish.js index 179558059a..9fc5f288bd 100644 --- a/ci/publish.js +++ b/ci/publish.js @@ -8,8 +8,13 @@ const PACKAGE_JSON = "package.json"; // hack to get __dirname const DIR = path.dirname(fileURLToPath(import.meta.url)); +const NEXT_TAG = "next"; +const LATEST_TAG = "latest"; +const CURRENT_TAG = readPublishTag(); + const exec = promisify(cp.exec); const readFile = promisify(fs.readFile); +const writeFile = promisify(fs.writeFile); run() .then(() => { @@ -23,26 +28,31 @@ async function run() { const rootPackage = await readJSON(path.resolve(DIR, "../", PACKAGE_JSON)); const workspacePaths = rootPackage.workspaces; - const workspaces = await Promise.all( - workspacePaths.map(async (workspacePath) => { - const workspaceInfo = await readWorkspace(workspacePath); - const allowPublishing = await shouldBePublished(workspaceInfo); + if (CURRENT_TAG === NEXT_TAG) { + await makeReleaseCandidate(); + } - if (allowPublishing) { - return workspaceInfo; - } + const workspaces = await Promise.all(workspacePaths.map(readWorkspace)); - return; - }) - ); + if (CURRENT_TAG === NEXT_TAG) { + await upgradeWakuDependencies(workspaces); + } await Promise.all( workspaces - .filter((v) => !!v) + .filter(async (info) => { + const allowPublishing = await shouldBePublished(info); + + if (allowPublishing) { + return true; + } + + return false; + }) .map(async (info) => { try { await exec( - `npm publish --workspace ${info.workspace} --tag latest --access public` + `npm publish --workspace ${info.workspace} --tag ${CURRENT_TAG} --access public` ); console.info( `Successfully published ${info.workspace} with version ${info.version}.` @@ -61,6 +71,11 @@ async function readJSON(path) { return JSON.parse(rawJSON); } +async function writeWorkspace(packagePath, text) { + const resolvedPath = path.resolve(DIR, "../", packagePath, PACKAGE_JSON); + await writeFile(resolvedPath, text); +} + async function readWorkspace(packagePath) { const json = await readJSON( path.resolve(DIR, "../", packagePath, PACKAGE_JSON) @@ -70,13 +85,14 @@ async function readWorkspace(packagePath) { name: json.name, private: !!json.private, version: json.version, - workspace: packagePath + workspace: packagePath, + rawPackageJson: json }; } async function shouldBePublished(info) { if (info.private) { - console.info(`Skipping ${info.path} because it is private.`); + console.info(`Skipping ${info.name} because it is private.`); return false; } @@ -99,3 +115,60 @@ async function shouldBePublished(info) { ); } } + +async function makeReleaseCandidate() { + try { + console.info("Marking workspace versions as release candidates."); + await exec( + `npm version prerelease --preid $(git rev-parse --short HEAD) --workspaces true` + ); + } catch (e) { + console.error("Failed to mark release candidate versions.", e); + } +} + +function readPublishTag() { + const args = process.argv.slice(2); + const tagIndex = args.indexOf("--tag"); + + if (tagIndex !== -1 && args[tagIndex + 1]) { + return args[tagIndex + 1]; + } + + return LATEST_TAG; +} + +async function upgradeWakuDependencies(workspaces) { + console.log("Upgrading Waku dependencies in workspaces."); + const map = workspaces.reduce((acc, item) => { + if (!item.private) { + acc[item.name] = item; + } + return acc; + }, {}); + const packageNames = Object.keys(map); + workspaces.forEach(async (info) => { + if (info.private) { + return; + } + ["dependencies", "devDependencies", "peerDependencies"].forEach((type) => { + const deps = info.rawPackageJson[type]; + if (!deps) { + return; + } + packageNames.forEach((name) => { + if (deps[name]) { + deps[name] = map[name].version; + } + }); + }); + try { + await writeWorkspace(info.workspace, JSON.stringify(info.rawPackageJson)); + } catch (error) { + console.error( + `Failed to update package.json for ${info.name} with: `, + error + ); + } + }); +} diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index ed9980b39d..0b2c396fc6 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -5,6 +5,31 @@ 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.25](https://github.com/waku-org/js-waku/compare/core-v0.0.24...core-v0.0.25) (2023-11-01) + + +### Features + +* Fail early when trying to send empty payload ([#1642](https://github.com/waku-org/js-waku/issues/1642)) ([6bad4ea](https://github.com/waku-org/js-waku/commit/6bad4ea7d1dee79c296c550390da57ffa824e2cf)) +* Logger with log levels ([#1672](https://github.com/waku-org/js-waku/issues/1672)) ([0f7d63e](https://github.com/waku-org/js-waku/commit/0f7d63ef93716223dc8fea7e8cb09e12e267b386)) + + +### Bug Fixes + +* Don't dial discovered peers if have already been attempted dial ([#1657](https://github.com/waku-org/js-waku/issues/1657)) ([1892f50](https://github.com/waku-org/js-waku/commit/1892f5093da540530d7ee5640178ebaa46cf769f)) +* Filter subscription with `pubsubTopic1` and decoder with `pubsubTopic2` ([#1675](https://github.com/waku-org/js-waku/issues/1675)) ([491366b](https://github.com/waku-org/js-waku/commit/491366bd4f96d5b72f83ca47dea5a93389ec5a27)) +* Handle all empty responses in filter ([#1688](https://github.com/waku-org/js-waku/issues/1688)) ([b3864f8](https://github.com/waku-org/js-waku/commit/b3864f8772b072e804954c1096510554ea578424)) +* Measure total message size ([#1643](https://github.com/waku-org/js-waku/issues/1643)) ([b7dc3d7](https://github.com/waku-org/js-waku/commit/b7dc3d7576e9444a5acbb036812c05cfccb25815)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/enr bumped from ^0.0.18 to ^0.0.19 + * @waku/interfaces bumped from 0.0.19 to 0.0.20 + * @waku/utils bumped from 0.0.12 to 0.0.13 + ## [0.0.24](https://github.com/waku-org/js-waku/compare/core-v0.0.23...core-v0.0.24) (2023-10-16) diff --git a/packages/core/package.json b/packages/core/package.json index 0dff039760..2ff3b6a4cd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@waku/core", - "version": "0.0.24", + "version": "0.0.25", "description": "TypeScript implementation of the Waku v2 protocol", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -73,10 +73,10 @@ }, "dependencies": { "@noble/hashes": "^1.3.2", - "@waku/enr": "^0.0.18", - "@waku/interfaces": "0.0.19", + "@waku/enr": "^0.0.19", + "@waku/interfaces": "0.0.20", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.12", + "@waku/utils": "0.0.13", "debug": "^4.3.4", "it-all": "^3.0.3", "it-length-prefixed": "^9.0.1", diff --git a/packages/dns-discovery/CHANGELOG.md b/packages/dns-discovery/CHANGELOG.md index e0ccf2e5da..04d7fc7f83 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.19](https://github.com/waku-org/js-waku/compare/dns-discovery-v0.0.18...dns-discovery-v0.0.19) (2023-11-01) + + +### Features + +* Logger with log levels ([#1672](https://github.com/waku-org/js-waku/issues/1672)) ([0f7d63e](https://github.com/waku-org/js-waku/commit/0f7d63ef93716223dc8fea7e8cb09e12e267b386)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/enr bumped from 0.0.18 to 0.0.19 + * @waku/utils bumped from 0.0.12 to 0.0.13 + * devDependencies + * @waku/interfaces bumped from 0.0.19 to 0.0.20 + ## [0.0.18](https://github.com/waku-org/js-waku/compare/dns-discovery-v0.0.17...dns-discovery-v0.0.18) (2023-10-16) diff --git a/packages/dns-discovery/package.json b/packages/dns-discovery/package.json index 87353b4d0e..3f1b645671 100644 --- a/packages/dns-discovery/package.json +++ b/packages/dns-discovery/package.json @@ -1,6 +1,6 @@ { "name": "@waku/dns-discovery", - "version": "0.0.18", + "version": "0.0.19", "description": "DNS Peer Discovery (EIP-1459)", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -51,8 +51,8 @@ "node": ">=18" }, "dependencies": { - "@waku/enr": "0.0.18", - "@waku/utils": "0.0.12", + "@waku/enr": "0.0.19", + "@waku/utils": "0.0.13", "debug": "^4.3.4", "dns-query": "^0.11.2", "hi-base32": "^0.5.1", @@ -67,7 +67,7 @@ "@rollup/plugin-node-resolve": "^15.2.3", "@types/chai": "^4.3.5", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.19", + "@waku/interfaces": "0.0.20", "chai": "^4.3.7", "cspell": "^7.3.2", "mocha": "^10.2.0", diff --git a/packages/enr/CHANGELOG.md b/packages/enr/CHANGELOG.md index 2724f33876..c971b4978e 100644 --- a/packages/enr/CHANGELOG.md +++ b/packages/enr/CHANGELOG.md @@ -59,6 +59,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * devDependencies * @waku/interfaces bumped from 0.0.16 to 0.0.17 +## [0.0.19](https://github.com/waku-org/js-waku/compare/enr-v0.0.18...enr-v0.0.19) (2023-11-01) + + +### Features + +* Logger with log levels ([#1672](https://github.com/waku-org/js-waku/issues/1672)) ([0f7d63e](https://github.com/waku-org/js-waku/commit/0f7d63ef93716223dc8fea7e8cb09e12e267b386)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/utils bumped from 0.0.12 to 0.0.13 + * devDependencies + * @waku/interfaces bumped from 0.0.19 to 0.0.20 + ## [0.0.18](https://github.com/waku-org/js-waku/compare/enr-v0.0.17...enr-v0.0.18) (2023-10-16) diff --git a/packages/enr/package.json b/packages/enr/package.json index f547a04654..790dbb61ec 100644 --- a/packages/enr/package.json +++ b/packages/enr/package.json @@ -1,6 +1,6 @@ { "name": "@waku/enr", - "version": "0.0.18", + "version": "0.0.19", "description": "ENR (EIP-778) for Waku", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -56,7 +56,7 @@ "@libp2p/peer-id": "^3.0.3", "@multiformats/multiaddr": "^12.0.0", "@noble/secp256k1": "^1.7.1", - "@waku/utils": "0.0.12", + "@waku/utils": "0.0.13", "debug": "^4.3.4", "js-sha3": "^0.9.2" }, @@ -68,7 +68,7 @@ "@types/chai": "^4.3.5", "@types/mocha": "^10.0.1", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.19", + "@waku/interfaces": "0.0.20", "chai": "^4.3.7", "cspell": "^7.3.2", "fast-check": "^3.13.1", diff --git a/packages/interfaces/CHANGELOG.md b/packages/interfaces/CHANGELOG.md index 822d1acbb3..73553c6ee7 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.20](https://github.com/waku-org/js-waku/compare/interfaces-v0.0.19...interfaces-v0.0.20) (2023-11-01) + + +### Features + +* Fail early when trying to send empty payload ([#1642](https://github.com/waku-org/js-waku/issues/1642)) ([6bad4ea](https://github.com/waku-org/js-waku/commit/6bad4ea7d1dee79c296c550390da57ffa824e2cf)) + ## [0.0.19](https://github.com/waku-org/js-waku/compare/interfaces-v0.0.18...interfaces-v0.0.19) (2023-10-16) diff --git a/packages/interfaces/package.json b/packages/interfaces/package.json index f62e5eeca4..fcd88f479d 100644 --- a/packages/interfaces/package.json +++ b/packages/interfaces/package.json @@ -1,6 +1,6 @@ { "name": "@waku/interfaces", - "version": "0.0.19", + "version": "0.0.20", "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 f33dbe4413..82b90abf86 100644 --- a/packages/message-encryption/CHANGELOG.md +++ b/packages/message-encryption/CHANGELOG.md @@ -68,6 +68,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * @waku/interfaces bumped from 0.0.17 to 0.0.18 * @waku/utils bumped from 0.0.10 to 0.0.11 +## [0.0.23](https://github.com/waku-org/js-waku/compare/message-encryption-v0.0.22...message-encryption-v0.0.23) (2023-11-01) + + +### Features + +* Logger with log levels ([#1672](https://github.com/waku-org/js-waku/issues/1672)) ([0f7d63e](https://github.com/waku-org/js-waku/commit/0f7d63ef93716223dc8fea7e8cb09e12e267b386)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/core bumped from 0.0.24 to 0.0.25 + * @waku/interfaces bumped from 0.0.19 to 0.0.20 + * @waku/utils bumped from 0.0.12 to 0.0.13 + ## [0.0.22](https://github.com/waku-org/js-waku/compare/message-encryption-v0.0.21...message-encryption-v0.0.22) (2023-10-16) diff --git a/packages/message-encryption/package.json b/packages/message-encryption/package.json index 976980e9bd..b932093fb6 100644 --- a/packages/message-encryption/package.json +++ b/packages/message-encryption/package.json @@ -1,6 +1,6 @@ { "name": "@waku/message-encryption", - "version": "0.0.22", + "version": "0.0.23", "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.24", - "@waku/interfaces": "0.0.19", + "@waku/core": "0.0.25", + "@waku/interfaces": "0.0.20", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.12", + "@waku/utils": "0.0.13", "debug": "^4.3.4", "js-sha3": "^0.9.2" }, diff --git a/packages/message-hash/CHANGELOG.md b/packages/message-hash/CHANGELOG.md index 84bcc4ef32..2f5120b4ae 100644 --- a/packages/message-hash/CHANGELOG.md +++ b/packages/message-hash/CHANGELOG.md @@ -32,6 +32,14 @@ * devDependencies * @waku/interfaces bumped from 0.0.16 to 0.0.17 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/utils bumped from 0.0.12 to 0.0.13 + * devDependencies + * @waku/interfaces bumped from 0.0.19 to 0.0.20 + ## [0.1.8](https://github.com/waku-org/js-waku/compare/message-hash-v0.1.7...message-hash-v0.1.8) (2023-10-16) diff --git a/packages/message-hash/package.json b/packages/message-hash/package.json index 449725fb2c..7925ee83e2 100644 --- a/packages/message-hash/package.json +++ b/packages/message-hash/package.json @@ -1,6 +1,6 @@ { "name": "@waku/message-hash", - "version": "0.1.8", + "version": "0.1.9", "description": "TypeScript implementation of the Deterministic Message Hashing as specified in 14/WAKU2-MESSAGE", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -51,7 +51,7 @@ }, "dependencies": { "@noble/hashes": "^1.3.2", - "@waku/utils": "0.0.12" + "@waku/utils": "0.0.13" }, "devDependencies": { "@rollup/plugin-commonjs": "^25.0.4", @@ -61,7 +61,7 @@ "@types/debug": "^4.1.10", "@types/mocha": "^10.0.1", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.19", + "@waku/interfaces": "0.0.20", "chai": "^4.3.7", "cspell": "^7.3.2", "fast-check": "^3.13.1", diff --git a/packages/peer-exchange/CHANGELOG.md b/packages/peer-exchange/CHANGELOG.md index dbe7ffe61f..544702b445 100644 --- a/packages/peer-exchange/CHANGELOG.md +++ b/packages/peer-exchange/CHANGELOG.md @@ -64,6 +64,23 @@ * devDependencies * @waku/interfaces bumped from 0.0.14 to 0.0.15 +## [0.0.18](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.17...peer-exchange-v0.0.18) (2023-11-01) + + +### Features + +* Logger with log levels ([#1672](https://github.com/waku-org/js-waku/issues/1672)) ([0f7d63e](https://github.com/waku-org/js-waku/commit/0f7d63ef93716223dc8fea7e8cb09e12e267b386)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/core bumped from 0.0.24 to 0.0.25 + * @waku/enr bumped from 0.0.18 to 0.0.19 + * @waku/interfaces bumped from 0.0.19 to 0.0.20 + * @waku/utils bumped from 0.0.12 to 0.0.13 + ## [0.0.17](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.16...peer-exchange-v0.0.17) (2023-10-16) diff --git a/packages/peer-exchange/package.json b/packages/peer-exchange/package.json index 53022cea06..56c3a641df 100644 --- a/packages/peer-exchange/package.json +++ b/packages/peer-exchange/package.json @@ -1,6 +1,6 @@ { "name": "@waku/peer-exchange", - "version": "0.0.17", + "version": "0.0.18", "description": "Peer Exchange (https://rfc.vac.dev/spec/34/) protocol for Waku", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -49,11 +49,11 @@ }, "dependencies": { "@libp2p/interfaces": "^3.3.2", - "@waku/core": "0.0.24", - "@waku/enr": "0.0.18", - "@waku/interfaces": "0.0.19", + "@waku/core": "0.0.25", + "@waku/enr": "0.0.19", + "@waku/interfaces": "0.0.20", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.12", + "@waku/utils": "0.0.13", "debug": "^4.3.4", "it-all": "^3.0.3", "it-length-prefixed": "^9.0.1", diff --git a/packages/relay/CHANGELOG.md b/packages/relay/CHANGELOG.md index abeb8b67e3..1342721de3 100644 --- a/packages/relay/CHANGELOG.md +++ b/packages/relay/CHANGELOG.md @@ -25,6 +25,28 @@ * @waku/interfaces bumped from 0.0.16 to 0.0.17 * @waku/utils bumped from 0.0.9 to 0.0.10 +## [0.0.8](https://github.com/waku-org/js-waku/compare/relay-v0.0.7...relay-v0.0.8) (2023-11-01) + + +### Features + +* Fail early when trying to send empty payload ([#1642](https://github.com/waku-org/js-waku/issues/1642)) ([6bad4ea](https://github.com/waku-org/js-waku/commit/6bad4ea7d1dee79c296c550390da57ffa824e2cf)) +* Logger with log levels ([#1672](https://github.com/waku-org/js-waku/issues/1672)) ([0f7d63e](https://github.com/waku-org/js-waku/commit/0f7d63ef93716223dc8fea7e8cb09e12e267b386)) + + +### Bug Fixes + +* Measure total message size ([#1643](https://github.com/waku-org/js-waku/issues/1643)) ([b7dc3d7](https://github.com/waku-org/js-waku/commit/b7dc3d7576e9444a5acbb036812c05cfccb25815)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/core bumped from 0.0.24 to 0.0.25 + * @waku/interfaces bumped from 0.0.19 to 0.0.20 + * @waku/utils bumped from 0.0.12 to 0.0.13 + ## [0.0.7](https://github.com/waku-org/js-waku/compare/relay-v0.0.6...relay-v0.0.7) (2023-10-16) diff --git a/packages/relay/package.json b/packages/relay/package.json index 9088638ecf..28247e3f8b 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -1,6 +1,6 @@ { "name": "@waku/relay", - "version": "0.0.7", + "version": "0.0.8", "description": "Relay Protocol for Waku", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -51,10 +51,10 @@ "dependencies": { "@chainsafe/libp2p-gossipsub": "^10.1.0", "@noble/hashes": "^1.3.2", - "@waku/core": "0.0.24", - "@waku/interfaces": "0.0.19", + "@waku/core": "0.0.25", + "@waku/interfaces": "0.0.20", "@waku/proto": "0.0.5", - "@waku/utils": "0.0.12", + "@waku/utils": "0.0.13", "chai": "^4.3.7", "debug": "^4.3.4", "fast-check": "^3.13.1" diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 2006cdb8d5..fd3b27e072 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -36,6 +36,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * @waku/interfaces bumped from 0.0.16 to 0.0.17 * @waku/dns-discovery bumped from 0.0.15 to 0.0.16 +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @waku/utils bumped from 0.0.12 to 0.0.13 + * @waku/relay bumped from 0.0.7 to 0.0.8 + * @waku/core bumped from 0.0.24 to 0.0.25 + * @waku/dns-discovery bumped from 0.0.18 to 0.0.19 + * @waku/interfaces bumped from 0.0.19 to 0.0.20 + * @waku/peer-exchange bumped from ^0.0.17 to ^0.0.18 + ## [0.0.20](https://github.com/waku-org/js-waku/compare/sdk-v0.0.19...sdk-v0.0.20) (2023-10-16) diff --git a/packages/sdk/package.json b/packages/sdk/package.json index f03a64b2d5..96fdecf864 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@waku/sdk", - "version": "0.0.20", + "version": "0.0.21", "description": "A unified SDK for easy creation and management of js-waku nodes.", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -51,12 +51,12 @@ "@chainsafe/libp2p-noise": "^13.0.0", "@libp2p/mplex": "^9.0.5", "@libp2p/websockets": "^7.0.5", - "@waku/utils": "0.0.12", - "@waku/relay": "0.0.7", - "@waku/core": "0.0.24", - "@waku/dns-discovery": "0.0.18", - "@waku/interfaces": "0.0.19", - "@waku/peer-exchange": "^0.0.17", + "@waku/utils": "0.0.13", + "@waku/relay": "0.0.8", + "@waku/core": "0.0.25", + "@waku/dns-discovery": "0.0.19", + "@waku/interfaces": "0.0.20", + "@waku/peer-exchange": "^0.0.18", "libp2p": "^0.46.14" }, "devDependencies": { diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index cb6ae809ef..fcb5eeedfd 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -12,6 +12,26 @@ * devDependencies * @waku/interfaces bumped from 0.0.16 to 0.0.17 +## [0.0.13](https://github.com/waku-org/js-waku/compare/utils-v0.0.12...utils-v0.0.13) (2023-11-01) + + +### Features + +* Fail early when trying to send empty payload ([#1642](https://github.com/waku-org/js-waku/issues/1642)) ([6bad4ea](https://github.com/waku-org/js-waku/commit/6bad4ea7d1dee79c296c550390da57ffa824e2cf)) +* Logger with log levels ([#1672](https://github.com/waku-org/js-waku/issues/1672)) ([0f7d63e](https://github.com/waku-org/js-waku/commit/0f7d63ef93716223dc8fea7e8cb09e12e267b386)) + + +### Bug Fixes + +* Measure total message size ([#1643](https://github.com/waku-org/js-waku/issues/1643)) ([b7dc3d7](https://github.com/waku-org/js-waku/commit/b7dc3d7576e9444a5acbb036812c05cfccb25815)) + + +### Dependencies + +* The following workspace dependencies were updated + * devDependencies + * @waku/interfaces bumped from 0.0.19 to 0.0.20 + ## [0.0.12](https://github.com/waku-org/js-waku/compare/utils-v0.0.11...utils-v0.0.12) (2023-10-16) diff --git a/packages/utils/package.json b/packages/utils/package.json index b4a731a990..77d5a3de92 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@waku/utils", - "version": "0.0.12", + "version": "0.0.13", "description": "Different utilities for Waku", "types": "./dist/index.d.ts", "module": "./dist/index.js", @@ -74,7 +74,7 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.2.3", "@waku/build-utils": "*", - "@waku/interfaces": "0.0.19", + "@waku/interfaces": "0.0.20", "cspell": "^7.3.2", "npm-run-all": "^4.1.5", "rollup": "^3.29.2" diff --git a/packages/utils/src/logger/index.ts b/packages/utils/src/logger/index.ts index e7fff19a3a..02ccec66d3 100644 --- a/packages/utils/src/logger/index.ts +++ b/packages/utils/src/logger/index.ts @@ -1,6 +1,6 @@ import debug, { Debugger } from "debug"; -const APP_NAME = "js-waku"; +const APP_NAME = "waku"; export class Logger { private _info: Debugger;