From 2ecb761ea7b91ae9ee1d69a2b6f4d65467ad394a Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Mon, 21 Nov 2022 11:02:39 +1100 Subject: [PATCH] feat: add `@multiformats/multiaddr` as peer dep This dep often has breakings changes on type and is used by several APIs. Declaring as an optional peer dependency will hopefully help the user know what version to install. --- package-lock.json | 8 ++++++++ packages/core/CHANGELOG.md | 4 ++++ packages/core/package.json | 8 ++++++++ 3 files changed, 20 insertions(+) diff --git a/package-lock.json b/package-lock.json index 351e8aae3d..ff0c1ce6f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21913,6 +21913,14 @@ }, "engines": { "node": ">=16" + }, + "peerDependencies": { + "@multiformats/multiaddr": "^11.0.6" + }, + "peerDependenciesMeta": { + "@multiformats/multiaddr": { + "optional": true + } } }, "packages/core/node_modules/uuid": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index c839606590..3f3fe3e0e8 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Add `@multiformats/multiaddr` as peer dependency. + ## @waku/core [0.0.6](https://github.com/waku-org/js-waku/compare/@waku/core@0.0.5...@waku/core@0.0.6) (2022-11-18) ### Added diff --git a/packages/core/package.json b/packages/core/package.json index 0f35c16a98..2ff0fa38a9 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -153,6 +153,14 @@ "ts-node": "^10.9.1", "typescript": "^4.6.3" }, + "peerDependencies": { + "@multiformats/multiaddr": "^11.0.6" + }, + "peerDependenciesMeta": { + "@multiformats/multiaddr": { + "optional": true + } + }, "typedoc": { "entryPoint": "./src/index.ts" },