From d5391097b6d7daf24346b3cb2899ae808f1cb0de Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:37:03 +0000 Subject: [PATCH] chore: release main (#2240) * chore: add contents permission to gh token * chore: update token perms * chore: update token perms * chore: release main --------- Co-authored-by: achingbrain Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .release-please-manifest.json | 2 +- interop/CHANGELOG.md | 32 +++- interop/package.json | 20 +-- .../CHANGELOG.md | 38 +++++ .../package.json | 12 +- packages/crypto/CHANGELOG.md | 30 +++- packages/crypto/package.json | 4 +- .../interface-compliance-tests/CHANGELOG.md | 41 ++++- .../interface-compliance-tests/package.json | 18 +-- packages/interface-internal/CHANGELOG.md | 10 ++ packages/interface-internal/package.json | 6 +- packages/interface/CHANGELOG.md | 39 +++++ packages/interface/package.json | 2 +- packages/kad-dht/CHANGELOG.md | 30 +++- packages/kad-dht/package.json | 20 +-- packages/keychain/CHANGELOG.md | 30 +++- packages/keychain/package.json | 12 +- packages/libp2p/CHANGELOG.md | 78 +++++++++- packages/libp2p/package.json | 44 +++--- packages/logger/CHANGELOG.md | 22 +++ packages/logger/package.json | 6 +- packages/metrics-prometheus/CHANGELOG.md | 29 +++- packages/metrics-prometheus/package.json | 10 +- packages/multistream-select/CHANGELOG.md | 20 ++- packages/multistream-select/package.json | 6 +- packages/peer-collections/CHANGELOG.md | 12 ++ packages/peer-collections/package.json | 8 +- .../peer-discovery-bootstrap/CHANGELOG.md | 25 ++- .../peer-discovery-bootstrap/package.json | 10 +- packages/peer-discovery-mdns/CHANGELOG.md | 36 ++++- packages/peer-discovery-mdns/package.json | 16 +- packages/peer-id-factory/CHANGELOG.md | 11 ++ packages/peer-id-factory/package.json | 8 +- packages/peer-id/CHANGELOG.md | 20 ++- packages/peer-id/package.json | 4 +- packages/peer-record/CHANGELOG.md | 14 ++ packages/peer-record/package.json | 12 +- packages/peer-store/CHANGELOG.md | 22 ++- packages/peer-store/package.json | 14 +- packages/protocol-autonat/CHANGELOG.md | 32 ++++ packages/protocol-autonat/package.json | 12 +- packages/protocol-dcutr/CHANGELOG.md | 28 ++++ packages/protocol-dcutr/package.json | 6 +- packages/protocol-fetch/CHANGELOG.md | 29 ++++ packages/protocol-fetch/package.json | 10 +- packages/protocol-identify/CHANGELOG.md | 33 ++++ packages/protocol-identify/package.json | 14 +- packages/protocol-perf/CHANGELOG.md | 29 ++++ packages/protocol-perf/package.json | 10 +- packages/protocol-perf/test/run-client.ts | 61 ++++++++ packages/protocol-perf/test/run-server.ts | 39 +++++ packages/protocol-perf/test/run.ts | 147 ++++++++++++++++++ packages/protocol-ping/CHANGELOG.md | 34 ++++ packages/protocol-ping/package.json | 12 +- packages/pubsub-floodsub/CHANGELOG.md | 22 ++- packages/pubsub-floodsub/package.json | 14 +- packages/pubsub/CHANGELOG.md | 24 ++- packages/pubsub/package.json | 18 +-- .../stream-multiplexer-mplex/CHANGELOG.md | 29 +++- .../stream-multiplexer-mplex/package.json | 10 +- .../transport-circuit-relay-v2/CHANGELOG.md | 35 +++++ .../transport-circuit-relay-v2/package.json | 20 +-- packages/transport-tcp/CHANGELOG.md | 28 ++++ packages/transport-tcp/package.json | 10 +- packages/transport-webrtc/CHANGELOG.md | 42 ++++- packages/transport-webrtc/package.json | 22 +-- packages/transport-websockets/CHANGELOG.md | 27 ++++ packages/transport-websockets/package.json | 10 +- packages/transport-webtransport/CHANGELOG.md | 30 +++- packages/transport-webtransport/package.json | 12 +- packages/upnp-nat/CHANGELOG.md | 32 ++++ packages/upnp-nat/package.json | 12 +- packages/utils/CHANGELOG.md | 36 ++++- packages/utils/package.json | 8 +- 74 files changed, 1475 insertions(+), 235 deletions(-) create mode 100644 packages/connection-encrypter-plaintext/CHANGELOG.md create mode 100644 packages/protocol-autonat/CHANGELOG.md create mode 100644 packages/protocol-dcutr/CHANGELOG.md create mode 100644 packages/protocol-fetch/CHANGELOG.md create mode 100644 packages/protocol-identify/CHANGELOG.md create mode 100644 packages/protocol-perf/test/run-client.ts create mode 100644 packages/protocol-perf/test/run-server.ts create mode 100644 packages/protocol-perf/test/run.ts create mode 100644 packages/protocol-ping/CHANGELOG.md create mode 100644 packages/transport-circuit-relay-v2/CHANGELOG.md create mode 100644 packages/upnp-nat/CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e0d71509d9..3d18c14d7f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1 +1 @@ -{"interop":"1.0.14","packages/crypto":"2.0.8","packages/interface":"0.1.6","packages/interface-compliance-tests":"4.1.5","packages/interface-internal":"0.1.9","packages/kad-dht":"10.0.15","packages/keychain":"3.0.8","packages/libp2p":"0.46.21","packages/logger":"3.1.0","packages/metrics-prometheus":"2.0.12","packages/multistream-select":"4.0.6","packages/peer-collections":"4.0.8","packages/peer-discovery-bootstrap":"9.0.12","packages/peer-discovery-mdns":"9.0.14","packages/peer-id":"3.0.6","packages/peer-id-factory":"3.0.8","packages/peer-record":"6.0.9","packages/peer-store":"9.0.9","packages/protocol-perf":"2.0.1","packages/pubsub":"8.0.10","packages/pubsub-floodsub":"8.0.13","packages/stream-multiplexer-mplex":"9.0.12","packages/transport-tcp":"8.0.13","packages/transport-webrtc":"3.2.11","packages/transport-websockets":"7.0.13","packages/transport-webtransport":"3.1.10","packages/utils":"4.0.7"} \ No newline at end of file +{"interop":"2.0.0","packages/connection-encrypter-plaintext":"1.0.0","packages/crypto":"3.0.0","packages/interface":"1.0.0","packages/interface-compliance-tests":"5.0.0","packages/interface-internal":"0.1.10","packages/kad-dht":"11.0.0","packages/keychain":"4.0.0","packages/libp2p":"1.0.0","packages/logger":"4.0.0","packages/metrics-prometheus":"3.0.0","packages/multistream-select":"4.0.7","packages/peer-collections":"4.0.9","packages/peer-discovery-bootstrap":"10.0.0","packages/peer-discovery-mdns":"10.0.0","packages/peer-id":"4.0.0","packages/peer-id-factory":"3.0.9","packages/peer-record":"6.0.10","packages/peer-store":"9.0.10","packages/protocol-autonat":"1.0.0","packages/protocol-dcutr":"1.0.0","packages/protocol-fetch":"1.0.0","packages/protocol-identify":"1.0.0","packages/protocol-perf":"3.0.0","packages/protocol-ping":"1.0.0","packages/pubsub":"8.0.11","packages/pubsub-floodsub":"8.0.14","packages/stream-multiplexer-mplex":"10.0.0","packages/transport-circuit-relay-v2":"1.0.0","packages/transport-tcp":"9.0.0","packages/transport-webrtc":"4.0.0","packages/transport-websockets":"8.0.0","packages/transport-webtransport":"4.0.0","packages/upnp-nat":"1.0.0","packages/utils":"5.0.0"} \ No newline at end of file diff --git a/interop/CHANGELOG.md b/interop/CHANGELOG.md index 303f416348..98eb776435 100644 --- a/interop/CHANGELOG.md +++ b/interop/CHANGELOG.md @@ -1,5 +1,35 @@ # Changelog +## [2.0.0](https://www.github.com/libp2p/js-libp2p/compare/multidim-interop-v1.0.14...multidim-interop-v2.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* imports from `libp2p/circuit-relay` should be updated to `@libp2p/circuit-relay-v2` +* imports from `libp2p/identify` need to change to `@libp2p/identify` +* imports from `libp2p/ping` must be updated to `@libp2p/ping` + +### Code Refactoring + +* extract circuit relay v2 to separate module ([#2222](https://www.github.com/libp2p/js-libp2p/issues/2222)) ([24afba3](https://www.github.com/libp2p/js-libp2p/commit/24afba30004fb7f24af1f0180229bb164340f00b)) +* extract identify service into separate module ([#2219](https://www.github.com/libp2p/js-libp2p/issues/2219)) ([72c2f77](https://www.github.com/libp2p/js-libp2p/commit/72c2f775bd85bd4928048dda0fd14740d6fb6a69)) +* extract ping service into separate module ([#2218](https://www.github.com/libp2p/js-libp2p/issues/2218)) ([556282a](https://www.github.com/libp2p/js-libp2p/commit/556282afdc9b328fd58df1045dc7c792199be932)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/circuit-relay-v2 bumped from ^0.0.0 to ^1.0.0 + * @libp2p/identify bumped from ^0.0.0 to ^1.0.0 + * @libp2p/mplex bumped from ^9.0.12 to ^10.0.0 + * @libp2p/ping bumped from ^0.0.0 to ^1.0.0 + * @libp2p/tcp bumped from ^8.0.13 to ^9.0.0 + * @libp2p/webrtc bumped from ^3.2.11 to ^4.0.0 + * @libp2p/websockets bumped from ^7.0.13 to ^8.0.0 + * @libp2p/webtransport bumped from ^3.1.10 to ^4.0.0 + * libp2p bumped from ^0.46.21 to ^1.0.0 + ### [1.0.14](https://www.github.com/libp2p/js-libp2p/compare/multidim-interop-v1.0.13...multidim-interop-v1.0.14) (2023-11-10) @@ -172,4 +202,4 @@ * @libp2p/webrtc bumped from ^3.0.0 to ^3.1.10 * @libp2p/websockets bumped from ^7.0.0 to ^7.0.6 * @libp2p/webtransport bumped from ^3.0.0 to ^3.0.10 - * libp2p bumped from ^0.46.0 to ^0.46.10 + * libp2p bumped from ^0.46.0 to ^0.46.10 \ No newline at end of file diff --git a/interop/package.json b/interop/package.json index ceed4a558e..7b78526b48 100644 --- a/interop/package.json +++ b/interop/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/multidim-interop", - "version": "1.0.14", + "version": "2.0.0", "description": "Multidimensional interop tests", "author": "Glen De Cauwsemaecker / @marcopolo", "license": "Apache-2.0 OR MIT", @@ -53,18 +53,18 @@ "dependencies": { "@chainsafe/libp2p-noise": "^13.0.0", "@chainsafe/libp2p-yamux": "^5.0.0", - "@libp2p/circuit-relay-v2": "^0.0.0", - "@libp2p/identify": "^0.0.0", - "@libp2p/mplex": "^9.0.12", - "@libp2p/ping": "^0.0.0", - "@libp2p/tcp": "^8.0.13", - "@libp2p/webrtc": "^3.2.11", - "@libp2p/websockets": "^7.0.13", - "@libp2p/webtransport": "^3.1.10", + "@libp2p/circuit-relay-v2": "^1.0.0", + "@libp2p/identify": "^1.0.0", + "@libp2p/mplex": "^10.0.0", + "@libp2p/ping": "^1.0.0", + "@libp2p/tcp": "^9.0.0", + "@libp2p/webrtc": "^4.0.0", + "@libp2p/websockets": "^8.0.0", + "@libp2p/webtransport": "^4.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.1.10", "aegir": "^41.0.2", - "libp2p": "^0.46.21", + "libp2p": "^1.0.0", "redis": "^4.5.1" }, "browser": { diff --git a/packages/connection-encrypter-plaintext/CHANGELOG.md b/packages/connection-encrypter-plaintext/CHANGELOG.md new file mode 100644 index 0000000000..6d7211f796 --- /dev/null +++ b/packages/connection-encrypter-plaintext/CHANGELOG.md @@ -0,0 +1,38 @@ +# Changelog + +## 1.0.0 (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data +* imports from `libp2p/circuit-relay` should be updated to `@libp2p/circuit-relay-v2` +* imports from `libp2p/plaintext` should be changed to `@libp2p/plaintext` + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) + + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* extract circuit relay v2 to separate module ([#2222](https://www.github.com/libp2p/js-libp2p/issues/2222)) ([24afba3](https://www.github.com/libp2p/js-libp2p/commit/24afba30004fb7f24af1f0180229bb164340f00b)) +* extract plaintext into separate module ([#2221](https://www.github.com/libp2p/js-libp2p/issues/2221)) ([a364d95](https://www.github.com/libp2p/js-libp2p/commit/a364d95bbd7b15a5ce6ce508321e7ff2fa40a5e5)) + + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.2 to ^1.0.0 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 \ No newline at end of file diff --git a/packages/connection-encrypter-plaintext/package.json b/packages/connection-encrypter-plaintext/package.json index 3431dec673..66175642d0 100644 --- a/packages/connection-encrypter-plaintext/package.json +++ b/packages/connection-encrypter-plaintext/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/plaintext", - "version": "0.0.0", + "version": "1.0.0", "description": "An insecure connection encrypter", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/connection-encrypter-plaintext#readme", @@ -51,8 +51,8 @@ "dep-check": "aegir dep-check" }, "dependencies": { - "@libp2p/interface": "^0.1.2", - "@libp2p/peer-id": "^3.0.6", + "@libp2p/interface": "^1.0.0", + "@libp2p/peer-id": "^4.0.0", "@multiformats/multiaddr": "^12.1.10", "it-protobuf-stream": "^1.1.1", "it-stream-types": "^2.0.1", @@ -60,9 +60,9 @@ "uint8arraylist": "^2.4.3" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", "protons": "^7.3.0", "sinon": "^17.0.0" diff --git a/packages/crypto/CHANGELOG.md b/packages/crypto/CHANGELOG.md index cbf0ef2637..fb3b48fc51 100644 --- a/packages/crypto/CHANGELOG.md +++ b/packages/crypto/CHANGELOG.md @@ -5,6 +5,34 @@ * **dev:** bump aegir from 38.1.8 to 39.0.5 ([#320](https://github.com/libp2p/js-libp2p-crypto/issues/320)) ([f0b4c06](https://github.com/libp2p/js-libp2p-crypto/commit/f0b4c068a23d78b1376865c6adf6cce21ab91196)) +## [3.0.0](https://www.github.com/libp2p/js-libp2p/compare/crypto-v2.0.8...crypto-v3.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* remove unnecessary async from crypto methods (#1963) + +### Features + +* support streaming hashes for key sign/verify ([#2255](https://www.github.com/libp2p/js-libp2p/issues/2255)) ([ac7bc38](https://www.github.com/libp2p/js-libp2p/commit/ac7bc3839ae3d8253e9141c52be2c7c0c66a1d60)) + + +### Bug Fixes + +* allow keys to do sync sign/verify ([#2258](https://www.github.com/libp2p/js-libp2p/issues/2258)) ([dd7d17c](https://www.github.com/libp2p/js-libp2p/commit/dd7d17cc478dfcba02211a47789439b7d7ab9627)) + + +### Code Refactoring + +* remove unnecessary async from crypto methods ([#1963](https://www.github.com/libp2p/js-libp2p/issues/1963)) ([e2267d4](https://www.github.com/libp2p/js-libp2p/commit/e2267d437eeda3d964c77874ec757768d838981a)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + ### [2.0.8](https://www.github.com/libp2p/js-libp2p/compare/crypto-v2.0.7...crypto-v2.0.8) (2023-11-07) @@ -832,4 +860,4 @@ chore: update deps ### Features -* **keys:** implement generateKeyPairFromSeed for ed25519 ([e5b7c1f](https://github.com/libp2p/js-libp2p-crypto/commit/e5b7c1f)) +* **keys:** implement generateKeyPairFromSeed for ed25519 ([e5b7c1f](https://github.com/libp2p/js-libp2p-crypto/commit/e5b7c1f)) \ No newline at end of file diff --git a/packages/crypto/package.json b/packages/crypto/package.json index 9b5052ab8c..047a9d22d4 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/crypto", - "version": "2.0.8", + "version": "3.0.0", "description": "Crypto primitives for libp2p", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/crypto#readme", @@ -90,7 +90,7 @@ "generate": "protons ./src/keys/keys.proto" }, "dependencies": { - "@libp2p/interface": "^0.1.6", + "@libp2p/interface": "^1.0.0", "@noble/curves": "^1.1.0", "@noble/hashes": "^1.3.1", "multiformats": "^12.1.3", diff --git a/packages/interface-compliance-tests/CHANGELOG.md b/packages/interface-compliance-tests/CHANGELOG.md index d46b75fbb4..d41188253e 100644 --- a/packages/interface-compliance-tests/CHANGELOG.md +++ b/packages/interface-compliance-tests/CHANGELOG.md @@ -5,6 +5,45 @@ * bump aegir from 38.1.8 to 39.0.5 ([#393](https://github.com/libp2p/js-libp2p-interfaces/issues/393)) ([31f3797](https://github.com/libp2p/js-libp2p-interfaces/commit/31f3797b24f7c23f3f16e9db3a230bd5f7cd5175)) +## [5.0.0](https://www.github.com/libp2p/js-libp2p/compare/interface-compliance-tests-v4.1.5...interface-compliance-tests-v5.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data +* the `isStarted` method has been removed from the `Startable` interface +* the `.protocols` property has been removed from the `PeerInfo` interface + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) + + +### Bug Fixes + +* remove protocols from PeerInfo ([#2166](https://www.github.com/libp2p/js-libp2p/issues/2166)) ([5468cd1](https://www.github.com/libp2p/js-libp2p/commit/5468cd13a76281e46b221fdbd7d4005c0d3f2252)) +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) +* use optimistic protocol negotation ([#2253](https://www.github.com/libp2p/js-libp2p/issues/2253)) ([0b4a2ee](https://www.github.com/libp2p/js-libp2p/commit/0b4a2ee7983b4dc9dc0a7b705a202a4c550e7017)) + + +### Code Refactoring + +* remove isStarted method from Startable ([#2145](https://www.github.com/libp2p/js-libp2p/issues/2145)) ([fca208f](https://www.github.com/libp2p/js-libp2p/commit/fca208f3763af041aa37b1cb915d2bc777acb96d)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.9 to ^0.1.10 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/multistream-select bumped from ^4.0.6 to ^4.0.7 + * @libp2p/peer-collections bumped from ^4.0.8 to ^4.0.9 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + ### [4.1.5](https://www.github.com/libp2p/js-libp2p/compare/interface-compliance-tests-v4.1.4...interface-compliance-tests-v4.1.5) (2023-11-07) @@ -714,4 +753,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### BREAKING CHANGES -* the tests now live in the libp2p-interfaces-compliance-tests module +* the tests now live in the libp2p-interfaces-compliance-tests module \ No newline at end of file diff --git a/packages/interface-compliance-tests/package.json b/packages/interface-compliance-tests/package.json index 909415830b..0a191e855b 100644 --- a/packages/interface-compliance-tests/package.json +++ b/packages/interface-compliance-tests/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/interface-compliance-tests", - "version": "4.1.5", + "version": "5.0.0", "description": "Compliance tests for JS libp2p interfaces", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface-compliance-tests#readme", @@ -103,14 +103,14 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/interface-internal": "^0.1.9", - "@libp2p/logger": "^3.1.0", - "@libp2p/multistream-select": "^4.0.6", - "@libp2p/peer-collections": "^4.0.8", - "@libp2p/peer-id": "^3.0.6", - "@libp2p/peer-id-factory": "^3.0.8", - "@libp2p/utils": "^4.0.7", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/logger": "^4.0.0", + "@libp2p/multistream-select": "^4.0.7", + "@libp2p/peer-collections": "^4.0.9", + "@libp2p/peer-id": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", + "@libp2p/utils": "^5.0.0", "@multiformats/multiaddr": "^12.1.10", "abortable-iterator": "^5.0.1", "aegir": "^41.0.2", diff --git a/packages/interface-internal/CHANGELOG.md b/packages/interface-internal/CHANGELOG.md index c5a2bab6e8..9a18254308 100644 --- a/packages/interface-internal/CHANGELOG.md +++ b/packages/interface-internal/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +### [0.1.10](https://www.github.com/libp2p/js-libp2p/compare/interface-internal-v0.1.9...interface-internal-v0.1.10) (2023-11-28) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/peer-collections bumped from ^4.0.8 to ^4.0.9 + ### [0.1.9](https://www.github.com/libp2p/js-libp2p/compare/interface-internal-v0.1.8...interface-internal-v0.1.9) (2023-11-07) diff --git a/packages/interface-internal/package.json b/packages/interface-internal/package.json index 2b73299e44..a24609b80e 100644 --- a/packages/interface-internal/package.json +++ b/packages/interface-internal/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/interface-internal", - "version": "0.1.9", + "version": "0.1.10", "description": "Interfaces implemented by internal libp2p components", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface-internal#readme", @@ -83,8 +83,8 @@ "build": "aegir build" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/peer-collections": "^4.0.8", + "@libp2p/interface": "^1.0.0", + "@libp2p/peer-collections": "^4.0.9", "@multiformats/multiaddr": "^12.1.10", "uint8arraylist": "^2.4.3" }, diff --git a/packages/interface/CHANGELOG.md b/packages/interface/CHANGELOG.md index b48276c96f..bb508b9eb3 100644 --- a/packages/interface/CHANGELOG.md +++ b/packages/interface/CHANGELOG.md @@ -5,6 +5,45 @@ * add start/stop events to libp2p interface ([#407](https://github.com/libp2p/js-libp2p-interfaces/issues/407)) ([016c1e8](https://github.com/libp2p/js-libp2p-interfaces/commit/016c1e82b060c93c80546cd8c493ec6e6c97cbec)) +## [1.0.0](https://www.github.com/libp2p/js-libp2p/compare/interface-v0.1.6...interface-v1.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data +* removed EventEmitter re-export - please use TypedEventEmitter instead +* imports from `libp2p/dcutr` now need to be from `@libp2p/dcutr` +* imports from `libp2p/identify` need to change to `@libp2p/identify` +* imports from `libp2p/upnp-nat` should be updated to `@libp2p/upnp-nat` +* the `isStarted` method has been removed from the `Startable` interface +* the `.protocols` property has been removed from the `PeerInfo` interface +* move autonat into separate package (#2107) +* remove libp2p.keychain (#2084) +* remove min/max from topologies (#2158) + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) +* support streaming hashes for key sign/verify ([#2255](https://www.github.com/libp2p/js-libp2p/issues/2255)) ([ac7bc38](https://www.github.com/libp2p/js-libp2p/commit/ac7bc3839ae3d8253e9141c52be2c7c0c66a1d60)) + + +### Bug Fixes + +* allow keys to do sync sign/verify ([#2258](https://www.github.com/libp2p/js-libp2p/issues/2258)) ([dd7d17c](https://www.github.com/libp2p/js-libp2p/commit/dd7d17cc478dfcba02211a47789439b7d7ab9627)) +* remove event emitter type from interfaces ([#2196](https://www.github.com/libp2p/js-libp2p/issues/2196)) ([f3ec538](https://www.github.com/libp2p/js-libp2p/commit/f3ec538451afe105a5a4513d66832965ad63debe)) +* remove min/max from topologies ([#2158](https://www.github.com/libp2p/js-libp2p/issues/2158)) ([511359a](https://www.github.com/libp2p/js-libp2p/commit/511359a86235e7abe65887dce7262b34a53bad5a)) +* remove protocols from PeerInfo ([#2166](https://www.github.com/libp2p/js-libp2p/issues/2166)) ([5468cd1](https://www.github.com/libp2p/js-libp2p/commit/5468cd13a76281e46b221fdbd7d4005c0d3f2252)) + + +### Code Refactoring + +* extract DCUtR into separate module ([#2220](https://www.github.com/libp2p/js-libp2p/issues/2220)) ([d2c3e72](https://www.github.com/libp2p/js-libp2p/commit/d2c3e7235b64558c6cace414c54a42659fee2970)) +* extract identify service into separate module ([#2219](https://www.github.com/libp2p/js-libp2p/issues/2219)) ([72c2f77](https://www.github.com/libp2p/js-libp2p/commit/72c2f775bd85bd4928048dda0fd14740d6fb6a69)) +* extract UPnP NAT into separate module ([#2217](https://www.github.com/libp2p/js-libp2p/issues/2217)) ([f29b73f](https://www.github.com/libp2p/js-libp2p/commit/f29b73f781afcea36cba0589aafdd81e1852e194)) +* move autonat into separate package ([#2107](https://www.github.com/libp2p/js-libp2p/issues/2107)) ([b0e8f06](https://www.github.com/libp2p/js-libp2p/commit/b0e8f06f0dcdbda0e367186b093e42e8bff3ee27)) +* remove isStarted method from Startable ([#2145](https://www.github.com/libp2p/js-libp2p/issues/2145)) ([fca208f](https://www.github.com/libp2p/js-libp2p/commit/fca208f3763af041aa37b1cb915d2bc777acb96d)) +* remove libp2p.keychain ([#2084](https://www.github.com/libp2p/js-libp2p/issues/2084)) ([125c84b](https://www.github.com/libp2p/js-libp2p/commit/125c84bb8a30ac986fb5aed0a4de23bc806d3aea)) + ### [0.1.6](https://www.github.com/libp2p/js-libp2p/compare/interface-v0.1.5...interface-v0.1.6) (2023-11-07) diff --git a/packages/interface/package.json b/packages/interface/package.json index 5b6f084303..462e9e9199 100644 --- a/packages/interface/package.json +++ b/packages/interface/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/interface", - "version": "0.1.6", + "version": "1.0.0", "description": "The interface implemented by a libp2p node", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface#readme", diff --git a/packages/kad-dht/CHANGELOG.md b/packages/kad-dht/CHANGELOG.md index 1c29d14721..fb654845ef 100644 --- a/packages/kad-dht/CHANGELOG.md +++ b/packages/kad-dht/CHANGELOG.md @@ -5,6 +5,34 @@ * skip self-query if not running ([#479](https://github.com/libp2p/js-libp2p-kad-dht/issues/479)) ([7095290](https://github.com/libp2p/js-libp2p-kad-dht/commit/70952907a27fd8778773172059879656b4f08855)) +## [11.0.0](https://www.github.com/libp2p/js-libp2p/compare/kad-dht-v10.0.15...kad-dht-v11.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `.protocols` property has been removed from the `PeerInfo` interface + +### Bug Fixes + +* remove protocols from PeerInfo ([#2166](https://www.github.com/libp2p/js-libp2p/issues/2166)) ([5468cd1](https://www.github.com/libp2p/js-libp2p/commit/5468cd13a76281e46b221fdbd7d4005c0d3f2252)) +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^2.0.8 to ^3.0.0 + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.9 to ^0.1.10 + * @libp2p/peer-collections bumped from ^4.0.8 to ^4.0.9 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + * @libp2p/peer-store bumped from ^9.0.9 to ^9.0.10 + ### [10.0.15](https://www.github.com/libp2p/js-libp2p/compare/kad-dht-v10.0.14...kad-dht-v10.0.15) (2023-11-10) @@ -1903,4 +1931,4 @@ Co-Authored-By: vasco-santos ### Features -* v0.1.0 ([4bd1fbc](https://github.com/libp2p/js-libp2p-kad-dht/commit/4bd1fbc)) +* v0.1.0 ([4bd1fbc](https://github.com/libp2p/js-libp2p-kad-dht/commit/4bd1fbc)) \ No newline at end of file diff --git a/packages/kad-dht/package.json b/packages/kad-dht/package.json index 1adc96402f..383888c804 100644 --- a/packages/kad-dht/package.json +++ b/packages/kad-dht/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/kad-dht", - "version": "10.0.15", + "version": "11.0.0", "description": "JavaScript implementation of the Kad-DHT for libp2p", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/kad-dht#readme", @@ -56,11 +56,11 @@ "dep-check": "aegir dep-check" }, "dependencies": { - "@libp2p/crypto": "^2.0.8", - "@libp2p/interface": "^0.1.6", - "@libp2p/interface-internal": "^0.1.9", - "@libp2p/peer-collections": "^4.0.8", - "@libp2p/peer-id": "^3.0.6", + "@libp2p/crypto": "^3.0.0", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/peer-collections": "^4.0.9", + "@libp2p/peer-id": "^4.0.0", "@multiformats/multiaddr": "^12.1.10", "@types/sinon": "^17.0.0", "any-signal": "^4.1.1", @@ -91,10 +91,10 @@ "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", - "@libp2p/peer-store": "^9.0.9", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", + "@libp2p/peer-store": "^9.0.10", "@types/lodash.random": "^3.2.6", "@types/lodash.range": "^3.2.6", "@types/which": "^3.0.0", diff --git a/packages/keychain/CHANGELOG.md b/packages/keychain/CHANGELOG.md index 7003201689..80a1f6deaa 100644 --- a/packages/keychain/CHANGELOG.md +++ b/packages/keychain/CHANGELOG.md @@ -11,6 +11,34 @@ * **dev:** bump aegir from 38.1.8 to 39.0.10 ([#70](https://github.com/libp2p/js-libp2p-keychain/issues/70)) ([4da4a08](https://github.com/libp2p/js-libp2p-keychain/commit/4da4a08b86f436c36e2fae48ecc48817e9b8066f)) +## [4.0.0](https://www.github.com/libp2p/js-libp2p/compare/keychain-v3.0.8...keychain-v4.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* remove libp2p.keychain (#2084) + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* remove libp2p.keychain ([#2084](https://www.github.com/libp2p/js-libp2p/issues/2084)) ([125c84b](https://www.github.com/libp2p/js-libp2p/commit/125c84bb8a30ac986fb5aed0a4de23bc806d3aea)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^2.0.8 to ^3.0.0 + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + ### [3.0.8](https://www.github.com/libp2p/js-libp2p/compare/keychain-v3.0.7...keychain-v3.0.8) (2023-11-07) @@ -341,4 +369,4 @@ Co-Authored-By: Vasco Santos ### Features * move bits from https://github.com/richardschneider/ipfs-encryption ([1a96ae8](https://github.com/libp2p/js-libp2p-keychain/commit/1a96ae8)) -* use libp2p-crypto ([#18](https://github.com/libp2p/js-libp2p-keychain/issues/18)) ([c1627a9](https://github.com/libp2p/js-libp2p-keychain/commit/c1627a9)) +* use libp2p-crypto ([#18](https://github.com/libp2p/js-libp2p-keychain/issues/18)) ([c1627a9](https://github.com/libp2p/js-libp2p-keychain/commit/c1627a9)) \ No newline at end of file diff --git a/packages/keychain/package.json b/packages/keychain/package.json index 4706e94f1b..0535acffd9 100644 --- a/packages/keychain/package.json +++ b/packages/keychain/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/keychain", - "version": "3.0.8", + "version": "4.0.0", "description": "Key management and cryptographically protected messages", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/keychain#readme", @@ -58,17 +58,17 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^2.0.8", - "@libp2p/interface": "^0.1.6", - "@libp2p/peer-id": "^3.0.6", + "@libp2p/crypto": "^3.0.0", + "@libp2p/interface": "^1.0.0", + "@libp2p/peer-id": "^4.0.0", "interface-datastore": "^8.2.0", "merge-options": "^3.0.4", "sanitize-filename": "^1.6.3", "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", "datastore-core": "^9.1.1", "multiformats": "^12.1.3" diff --git a/packages/libp2p/CHANGELOG.md b/packages/libp2p/CHANGELOG.md index 275cce352f..b6167bf4cd 100644 --- a/packages/libp2p/CHANGELOG.md +++ b/packages/libp2p/CHANGELOG.md @@ -20,6 +20,82 @@ * @libp2p/tcp bumped from ^8.0.5 to ^8.0.6 * @libp2p/websockets bumped from ^7.0.5 to ^7.0.6 +## [1.0.0](https://www.github.com/libp2p/js-libp2p/compare/libp2p-v0.46.21...libp2p-v1.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data +* remove per-peer parallel dialling (#2090) (#2251) +* imports from `libp2p/fetch` should be updated to `@libp2p/fetch` +* imports from `libp2p/circuit-relay` should be updated to `@libp2p/circuit-relay-v2` +* imports from `libp2p/plaintext` should be changed to `@libp2p/plaintext` +* imports from `libp2p/dcutr` now need to be from `@libp2p/dcutr` +* imports from `libp2p/identify` need to change to `@libp2p/identify` +* imports from `libp2p/ping` must be updated to `@libp2p/ping` +* imports from `libp2p/upnp-nat` should be updated to `@libp2p/upnp-nat` +* the `isStarted` method has been removed from the `Startable` interface +* the `.protocols` property has been removed from the `PeerInfo` interface +* move autonat into separate package (#2107) +* remove libp2p.keychain (#2084) +* remove dialler language (#2143) + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) + + +### Bug Fixes + +* allow mss lazy select on read ([#2246](https://www.github.com/libp2p/js-libp2p/issues/2246)) ([d8f5bc2](https://www.github.com/libp2p/js-libp2p/commit/d8f5bc211185a963c2a5182d58d73629457bc78d)) +* remove dialler language ([#2143](https://www.github.com/libp2p/js-libp2p/issues/2143)) ([a321f15](https://www.github.com/libp2p/js-libp2p/commit/a321f15329ba9b8e6a84a5a7429784edf7fa96e9)) +* remove protocols from PeerInfo ([#2166](https://www.github.com/libp2p/js-libp2p/issues/2166)) ([5468cd1](https://www.github.com/libp2p/js-libp2p/commit/5468cd13a76281e46b221fdbd7d4005c0d3f2252)) +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) +* use optimistic protocol negotation ([#2253](https://www.github.com/libp2p/js-libp2p/issues/2253)) ([0b4a2ee](https://www.github.com/libp2p/js-libp2p/commit/0b4a2ee7983b4dc9dc0a7b705a202a4c550e7017)) + + +### Code Refactoring + +* extract circuit relay v2 to separate module ([#2222](https://www.github.com/libp2p/js-libp2p/issues/2222)) ([24afba3](https://www.github.com/libp2p/js-libp2p/commit/24afba30004fb7f24af1f0180229bb164340f00b)) +* extract DCUtR into separate module ([#2220](https://www.github.com/libp2p/js-libp2p/issues/2220)) ([d2c3e72](https://www.github.com/libp2p/js-libp2p/commit/d2c3e7235b64558c6cace414c54a42659fee2970)) +* extract fetch to separate module ([#2223](https://www.github.com/libp2p/js-libp2p/issues/2223)) ([9b19be2](https://www.github.com/libp2p/js-libp2p/commit/9b19be2796c2dbbe207029199b1ac203647744e3)) +* extract identify service into separate module ([#2219](https://www.github.com/libp2p/js-libp2p/issues/2219)) ([72c2f77](https://www.github.com/libp2p/js-libp2p/commit/72c2f775bd85bd4928048dda0fd14740d6fb6a69)) +* extract ping service into separate module ([#2218](https://www.github.com/libp2p/js-libp2p/issues/2218)) ([556282a](https://www.github.com/libp2p/js-libp2p/commit/556282afdc9b328fd58df1045dc7c792199be932)) +* extract plaintext into separate module ([#2221](https://www.github.com/libp2p/js-libp2p/issues/2221)) ([a364d95](https://www.github.com/libp2p/js-libp2p/commit/a364d95bbd7b15a5ce6ce508321e7ff2fa40a5e5)) +* extract UPnP NAT into separate module ([#2217](https://www.github.com/libp2p/js-libp2p/issues/2217)) ([f29b73f](https://www.github.com/libp2p/js-libp2p/commit/f29b73f781afcea36cba0589aafdd81e1852e194)) +* move autonat into separate package ([#2107](https://www.github.com/libp2p/js-libp2p/issues/2107)) ([b0e8f06](https://www.github.com/libp2p/js-libp2p/commit/b0e8f06f0dcdbda0e367186b093e42e8bff3ee27)) +* remove isStarted method from Startable ([#2145](https://www.github.com/libp2p/js-libp2p/issues/2145)) ([fca208f](https://www.github.com/libp2p/js-libp2p/commit/fca208f3763af041aa37b1cb915d2bc777acb96d)) +* remove libp2p.keychain ([#2084](https://www.github.com/libp2p/js-libp2p/issues/2084)) ([125c84b](https://www.github.com/libp2p/js-libp2p/commit/125c84bb8a30ac986fb5aed0a4de23bc806d3aea)) +* remove per-peer parallel dialling ([#2090](https://www.github.com/libp2p/js-libp2p/issues/2090)) ([#2251](https://www.github.com/libp2p/js-libp2p/issues/2251)) ([bb6ceb1](https://www.github.com/libp2p/js-libp2p/commit/bb6ceb19252de2c1441ef736127d13763837d644)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^2.0.8 to ^3.0.0 + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.9 to ^0.1.10 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/multistream-select bumped from ^4.0.6 to ^4.0.7 + * @libp2p/peer-collections bumped from ^4.0.8 to ^4.0.9 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + * @libp2p/peer-store bumped from ^9.0.9 to ^9.0.10 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + * devDependencies + * @libp2p/bootstrap bumped from ^9.0.12 to ^10.0.0 + * @libp2p/circuit-relay-v2 bumped from ^0.0.0 to ^1.0.0 + * @libp2p/floodsub bumped from ^8.0.13 to ^8.0.14 + * @libp2p/identify bumped from ^0.0.0 to ^1.0.0 + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/kad-dht bumped from ^10.0.15 to ^11.0.0 + * @libp2p/mdns bumped from ^9.0.14 to ^10.0.0 + * @libp2p/mplex bumped from ^9.0.12 to ^10.0.0 + * @libp2p/plaintext bumped from ^0.0.0 to ^1.0.0 + * @libp2p/tcp bumped from ^8.0.13 to ^9.0.0 + * @libp2p/websockets bumped from ^7.0.13 to ^8.0.0 + ### [0.46.21](https://www.github.com/libp2p/js-libp2p/compare/libp2p-v0.46.20...libp2p-v0.46.21) (2023-11-10) @@ -2705,4 +2781,4 @@ for subscribe to see how it should be used. -## [0.5.5](https://github.com/libp2p/js-libp2p/compare/v0.5.4...v0.5.5) (2017-03-21) +## [0.5.5](https://github.com/libp2p/js-libp2p/compare/v0.5.4...v0.5.5) (2017-03-21) \ No newline at end of file diff --git a/packages/libp2p/package.json b/packages/libp2p/package.json index 0258f54943..90eb2fa42b 100644 --- a/packages/libp2p/package.json +++ b/packages/libp2p/package.json @@ -1,6 +1,6 @@ { "name": "libp2p", - "version": "0.46.21", + "version": "1.0.0", "description": "JavaScript implementation of libp2p, a modular peer to peer network stack", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/libp2p#readme", @@ -64,16 +64,16 @@ "test:interop": "aegir test -t node -f dist/test/interop.js" }, "dependencies": { - "@libp2p/crypto": "^2.0.8", - "@libp2p/interface": "^0.1.6", - "@libp2p/interface-internal": "^0.1.9", - "@libp2p/logger": "^3.1.0", - "@libp2p/multistream-select": "^4.0.6", - "@libp2p/peer-collections": "^4.0.8", - "@libp2p/peer-id": "^3.0.6", - "@libp2p/peer-id-factory": "^3.0.8", - "@libp2p/peer-store": "^9.0.9", - "@libp2p/utils": "^4.0.7", + "@libp2p/crypto": "^3.0.0", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/logger": "^4.0.0", + "@libp2p/multistream-select": "^4.0.7", + "@libp2p/peer-collections": "^4.0.9", + "@libp2p/peer-id": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", + "@libp2p/peer-store": "^9.0.10", + "@libp2p/utils": "^5.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.1.10", "@multiformats/multiaddr-matcher": "^1.1.0", @@ -102,20 +102,20 @@ "@chainsafe/libp2p-gossipsub": "^10.0.0", "@chainsafe/libp2p-noise": "^13.0.2", "@chainsafe/libp2p-yamux": "^5.0.0", - "@libp2p/bootstrap": "^9.0.12", - "@libp2p/circuit-relay-v2": "^0.0.0", + "@libp2p/bootstrap": "^10.0.0", + "@libp2p/circuit-relay-v2": "^1.0.0", "@libp2p/daemon-client": "^7.0.0", "@libp2p/daemon-server": "^6.0.0", - "@libp2p/floodsub": "^8.0.13", - "@libp2p/identify": "^0.0.0", - "@libp2p/interface-compliance-tests": "^4.1.5", + "@libp2p/floodsub": "^8.0.14", + "@libp2p/identify": "^1.0.0", + "@libp2p/interface-compliance-tests": "^5.0.0", "@libp2p/interop": "^9.0.0", - "@libp2p/kad-dht": "^10.0.15", - "@libp2p/mdns": "^9.0.14", - "@libp2p/mplex": "^9.0.12", - "@libp2p/plaintext": "^0.0.0", - "@libp2p/tcp": "^8.0.13", - "@libp2p/websockets": "^7.0.13", + "@libp2p/kad-dht": "^11.0.0", + "@libp2p/mdns": "^10.0.0", + "@libp2p/mplex": "^10.0.0", + "@libp2p/plaintext": "^1.0.0", + "@libp2p/tcp": "^9.0.0", + "@libp2p/websockets": "^8.0.0", "aegir": "^41.0.2", "execa": "^8.0.1", "go-libp2p": "^1.1.1", diff --git a/packages/logger/CHANGELOG.md b/packages/logger/CHANGELOG.md index c75a0b4e65..422924f09a 100644 --- a/packages/logger/CHANGELOG.md +++ b/packages/logger/CHANGELOG.md @@ -5,6 +5,28 @@ * specify updated formatter for multiaddrs ([#36](https://github.com/libp2p/js-libp2p-logger/issues/36)) ([abaefb4](https://github.com/libp2p/js-libp2p-logger/commit/abaefb490a0d9464a23b422d9fc5b80051532d10)) +## [4.0.0](https://www.github.com/libp2p/js-libp2p/compare/logger-v3.1.0...logger-v4.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* imports from `libp2p/dcutr` now need to be from `@libp2p/dcutr` +* imports from `libp2p/identify` need to change to `@libp2p/identify` + +### Code Refactoring + +* extract DCUtR into separate module ([#2220](https://www.github.com/libp2p/js-libp2p/issues/2220)) ([d2c3e72](https://www.github.com/libp2p/js-libp2p/commit/d2c3e7235b64558c6cace414c54a42659fee2970)) +* extract identify service into separate module ([#2219](https://www.github.com/libp2p/js-libp2p/issues/2219)) ([72c2f77](https://www.github.com/libp2p/js-libp2p/commit/72c2f775bd85bd4928048dda0fd14740d6fb6a69)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * devDependencies + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + ## [3.1.0](https://www.github.com/libp2p/js-libp2p/compare/logger-v3.0.5...logger-v3.1.0) (2023-11-07) diff --git a/packages/logger/package.json b/packages/logger/package.json index 2c96cd7799..1d81762345 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/logger", - "version": "3.1.0", + "version": "4.0.0", "description": "A logging component for use in js-libp2p modules", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/logger#readme", @@ -53,14 +53,14 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", + "@libp2p/interface": "^1.0.0", "@multiformats/multiaddr": "^12.1.10", "debug": "^4.3.4", "interface-datastore": "^8.2.0", "multiformats": "^12.1.3" }, "devDependencies": { - "@libp2p/peer-id": "^3.0.6", + "@libp2p/peer-id": "^4.0.0", "@types/debug": "^4.1.7", "aegir": "^41.0.2", "sinon": "^17.0.0", diff --git a/packages/metrics-prometheus/CHANGELOG.md b/packages/metrics-prometheus/CHANGELOG.md index 452ba7a5a7..5a4b756755 100644 --- a/packages/metrics-prometheus/CHANGELOG.md +++ b/packages/metrics-prometheus/CHANGELOG.md @@ -5,6 +5,33 @@ * move prom-client to deps ([#32](https://github.com/libp2p/js-libp2p-prometheus-metrics/issues/32)) ([73acad0](https://github.com/libp2p/js-libp2p-prometheus-metrics/commit/73acad0a20a9a0ad024cd47a53f154668dbae77b)) +## [3.0.0](https://www.github.com/libp2p/js-libp2p/compare/prometheus-metrics-v2.0.12...prometheus-metrics-v3.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) + + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + ### [2.0.12](https://www.github.com/libp2p/js-libp2p/compare/prometheus-metrics-v2.0.11...prometheus-metrics-v2.0.12) (2023-11-07) @@ -250,4 +277,4 @@ ### Documentation -* update readme to link to correct branch ([1a7565b](https://github.com/libp2p/js-libp2p-prometheus-metrics/commit/1a7565b5986ba689eb7a6d555b15ca1a4e4d3f31)) +* update readme to link to correct branch ([1a7565b](https://github.com/libp2p/js-libp2p-prometheus-metrics/commit/1a7565b5986ba689eb7a6d555b15ca1a4e4d3f31)) \ No newline at end of file diff --git a/packages/metrics-prometheus/package.json b/packages/metrics-prometheus/package.json index 45074e85c3..e551357f59 100644 --- a/packages/metrics-prometheus/package.json +++ b/packages/metrics-prometheus/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/prometheus-metrics", - "version": "2.0.12", + "version": "3.0.0", "description": "Collect libp2p metrics for scraping by Prometheus or Graphana", "author": "", "license": "Apache-2.0 OR MIT", @@ -47,16 +47,16 @@ "test:electron-main": "aegir test -t electron-main --cov" }, "dependencies": { - "@libp2p/interface": "^0.1.6", + "@libp2p/interface": "^1.0.0", "it-foreach": "^2.0.3", "it-stream-types": "^2.0.1", "prom-client": "^15.0.0", "uint8arraylist": "^2.4.3" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "@multiformats/multiaddr": "^12.1.10", "aegir": "^41.0.2", "it-drain": "^3.0.3", diff --git a/packages/multistream-select/CHANGELOG.md b/packages/multistream-select/CHANGELOG.md index 3d32480085..8cac64b5ea 100644 --- a/packages/multistream-select/CHANGELOG.md +++ b/packages/multistream-select/CHANGELOG.md @@ -11,6 +11,24 @@ * **dev:** bump aegir from 38.1.8 to 39.0.10 ([#70](https://github.com/libp2p/js-libp2p-multistream-select/issues/70)) ([f87b1c3](https://github.com/libp2p/js-libp2p-multistream-select/commit/f87b1c3505934ebeed6eff018af8d3042e7e6e06)) +### [4.0.7](https://www.github.com/libp2p/js-libp2p/compare/multistream-select-v4.0.6...multistream-select-v4.0.7) (2023-11-28) + + +### Bug Fixes + +* allow mss lazy select on read ([#2246](https://www.github.com/libp2p/js-libp2p/issues/2246)) ([d8f5bc2](https://www.github.com/libp2p/js-libp2p/commit/d8f5bc211185a963c2a5182d58d73629457bc78d)) +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) +* use optimistic protocol negotation ([#2253](https://www.github.com/libp2p/js-libp2p/issues/2253)) ([0b4a2ee](https://www.github.com/libp2p/js-libp2p/commit/0b4a2ee7983b4dc9dc0a7b705a202a4c550e7017)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + ### [4.0.6](https://www.github.com/libp2p/js-libp2p/compare/multistream-select-v4.0.5...multistream-select-v4.0.6) (2023-11-07) @@ -289,4 +307,4 @@ ### Bug Fixes -* add multistream-select and update pubsub types ([#170](https://github.com/libp2p/js-libp2p-interfaces/issues/170)) ([b9ecb2b](https://github.com/libp2p/js-libp2p-interfaces/commit/b9ecb2bee8f2abc0c41bfcf7bf2025894e37ddc2)) +* add multistream-select and update pubsub types ([#170](https://github.com/libp2p/js-libp2p-interfaces/issues/170)) ([b9ecb2b](https://github.com/libp2p/js-libp2p-interfaces/commit/b9ecb2bee8f2abc0c41bfcf7bf2025894e37ddc2)) \ No newline at end of file diff --git a/packages/multistream-select/package.json b/packages/multistream-select/package.json index 361b91e3a7..d238332659 100644 --- a/packages/multistream-select/package.json +++ b/packages/multistream-select/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/multistream-select", - "version": "4.0.6", + "version": "4.0.7", "description": "JavaScript implementation of multistream-select", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/multistream-select#readme", @@ -57,7 +57,7 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", + "@libp2p/interface": "^1.0.0", "it-length-prefixed": "^9.0.3", "it-length-prefixed-stream": "^1.1.1", "it-pipe": "^3.0.1", @@ -68,7 +68,7 @@ "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", + "@libp2p/logger": "^4.0.0", "aegir": "^41.0.2", "iso-random-stream": "^2.0.2", "it-all": "^3.0.3", diff --git a/packages/peer-collections/CHANGELOG.md b/packages/peer-collections/CHANGELOG.md index abbe86db54..f0c844f00d 100644 --- a/packages/peer-collections/CHANGELOG.md +++ b/packages/peer-collections/CHANGELOG.md @@ -11,6 +11,18 @@ * **dev:** bump aegir from 38.1.8 to 39.0.10 ([#36](https://github.com/libp2p/js-libp2p-peer-collections/issues/36)) ([9fa3de6](https://github.com/libp2p/js-libp2p-peer-collections/commit/9fa3de6d85dbe1ade54fda86b597ed9ffe6d71d5)) +### [4.0.9](https://www.github.com/libp2p/js-libp2p/compare/peer-collections-v4.0.8...peer-collections-v4.0.9) (2023-11-28) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * devDependencies + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + ### [4.0.8](https://www.github.com/libp2p/js-libp2p/compare/peer-collections-v4.0.7...peer-collections-v4.0.8) (2023-11-07) diff --git a/packages/peer-collections/package.json b/packages/peer-collections/package.json index dacfb4a198..d5497d68d5 100644 --- a/packages/peer-collections/package.json +++ b/packages/peer-collections/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/peer-collections", - "version": "4.0.8", + "version": "4.0.9", "description": "Stores values against a peer id", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-collections#readme", @@ -53,11 +53,11 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/peer-id": "^3.0.6" + "@libp2p/interface": "^1.0.0", + "@libp2p/peer-id": "^4.0.0" }, "devDependencies": { - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2" } } diff --git a/packages/peer-discovery-bootstrap/CHANGELOG.md b/packages/peer-discovery-bootstrap/CHANGELOG.md index 0bcaee6923..6e79dcbde6 100644 --- a/packages/peer-discovery-bootstrap/CHANGELOG.md +++ b/packages/peer-discovery-bootstrap/CHANGELOG.md @@ -9,6 +9,29 @@ * update @libp2p/interface-peer-discovery to 2.0.0 ([#176](https://github.com/libp2p/js-libp2p-bootstrap/issues/176)) ([1954e75](https://github.com/libp2p/js-libp2p-bootstrap/commit/1954e75fa4b1e6b3b42f885f663f989fd0e422ab)) +## [10.0.0](https://www.github.com/libp2p/js-libp2p/compare/bootstrap-v9.0.12...bootstrap-v10.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `.protocols` property has been removed from the `PeerInfo` interface + +### Bug Fixes + +* remove protocols from PeerInfo ([#2166](https://www.github.com/libp2p/js-libp2p/issues/2166)) ([5468cd1](https://www.github.com/libp2p/js-libp2p/commit/5468cd13a76281e46b221fdbd7d4005c0d3f2252)) +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + ### [9.0.12](https://www.github.com/libp2p/js-libp2p/compare/bootstrap-v9.0.11...bootstrap-v9.0.12) (2023-11-07) @@ -645,4 +668,4 @@ Co-authored-by: Alan Shaw -## [0.4.2](https://github.com/libp2p/js-ipfs-railing/compare/v0.4.1...v0.4.2) (2017-03-21) +## [0.4.2](https://github.com/libp2p/js-ipfs-railing/compare/v0.4.1...v0.4.2) (2017-03-21) \ No newline at end of file diff --git a/packages/peer-discovery-bootstrap/package.json b/packages/peer-discovery-bootstrap/package.json index d48171833a..304a3c1399 100644 --- a/packages/peer-discovery-bootstrap/package.json +++ b/packages/peer-discovery-bootstrap/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/bootstrap", - "version": "9.0.12", + "version": "10.0.0", "description": "Peer discovery via a list of bootstrap peers", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-discovery-bootstrap#readme", @@ -53,14 +53,14 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/peer-id": "^3.0.6", + "@libp2p/interface": "^1.0.0", + "@libp2p/peer-id": "^4.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.1.10" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/logger": "^3.1.0", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/logger": "^4.0.0", "aegir": "^41.0.2", "sinon-ts": "^2.0.0" } diff --git a/packages/peer-discovery-mdns/CHANGELOG.md b/packages/peer-discovery-mdns/CHANGELOG.md index 05f60040b3..59623e1024 100644 --- a/packages/peer-discovery-mdns/CHANGELOG.md +++ b/packages/peer-discovery-mdns/CHANGELOG.md @@ -9,6 +9,40 @@ * update @libp2p/interface-peer-discovery to 2.0.0 ([#197](https://github.com/libp2p/js-libp2p-mdns/issues/197)) ([e8172af](https://github.com/libp2p/js-libp2p-mdns/commit/e8172af8b9856a934327195238b00e5fbba436a4)) +## [10.0.0](https://www.github.com/libp2p/js-libp2p/compare/mdns-v9.0.14...mdns-v10.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* removed EventEmitter re-export - please use TypedEventEmitter instead +* the `isStarted` method has been removed from the `Startable` interface +* the `.protocols` property has been removed from the `PeerInfo` interface + +### Bug Fixes + +* remove event emitter type from interfaces ([#2196](https://www.github.com/libp2p/js-libp2p/issues/2196)) ([f3ec538](https://www.github.com/libp2p/js-libp2p/commit/f3ec538451afe105a5a4513d66832965ad63debe)) +* remove protocols from PeerInfo ([#2166](https://www.github.com/libp2p/js-libp2p/issues/2166)) ([5468cd1](https://www.github.com/libp2p/js-libp2p/commit/5468cd13a76281e46b221fdbd7d4005c0d3f2252)) +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* remove isStarted method from Startable ([#2145](https://www.github.com/libp2p/js-libp2p/issues/2145)) ([fca208f](https://www.github.com/libp2p/js-libp2p/commit/fca208f3763af041aa37b1cb915d2bc777acb96d)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/interface-internal bumped from ^0.1.9 to ^0.1.10 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + ### [9.0.14](https://www.github.com/libp2p/js-libp2p/compare/mdns-v9.0.13...mdns-v9.0.14) (2023-11-07) @@ -708,4 +742,4 @@ Co-authored-by: Jacob Heun -## [0.6.2](https://github.com/libp2p/js-libp2p-mdns/compare/v0.6.1...v0.6.2) (2017-03-21) +## [0.6.2](https://github.com/libp2p/js-libp2p-mdns/compare/v0.6.1...v0.6.2) (2017-03-21) \ No newline at end of file diff --git a/packages/peer-discovery-mdns/package.json b/packages/peer-discovery-mdns/package.json index 3eb021c180..3fd59b7d84 100644 --- a/packages/peer-discovery-mdns/package.json +++ b/packages/peer-discovery-mdns/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/mdns", - "version": "9.0.14", + "version": "10.0.0", "description": "Node.js libp2p mDNS discovery implementation for peer discovery", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-discovery-mdns#readme", @@ -49,19 +49,19 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/peer-id": "^3.0.6", - "@libp2p/utils": "^4.0.7", + "@libp2p/interface": "^1.0.0", + "@libp2p/peer-id": "^4.0.0", + "@libp2p/utils": "^5.0.0", "@multiformats/multiaddr": "^12.1.10", "@types/multicast-dns": "^7.2.1", "dns-packet": "^5.4.0", "multicast-dns": "^7.2.5" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/interface-internal": "^0.1.9", - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", "p-wait-for": "^5.0.2", "ts-sinon": "^2.0.2" diff --git a/packages/peer-id-factory/CHANGELOG.md b/packages/peer-id-factory/CHANGELOG.md index bc2e1a418a..b4d7231a3e 100644 --- a/packages/peer-id-factory/CHANGELOG.md +++ b/packages/peer-id-factory/CHANGELOG.md @@ -5,6 +5,17 @@ * update README.md ([#59](https://github.com/libp2p/js-libp2p-peer-id/issues/59)) ([aba6483](https://github.com/libp2p/js-libp2p-peer-id/commit/aba6483dad028ee5c24bfc01135b77568666cfd3)) +### [3.0.9](https://www.github.com/libp2p/js-libp2p/compare/peer-id-factory-v3.0.8...peer-id-factory-v3.0.9) (2023-11-28) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^2.0.8 to ^3.0.0 + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + ### [3.0.8](https://www.github.com/libp2p/js-libp2p/compare/peer-id-factory-v3.0.7...peer-id-factory-v3.0.8) (2023-11-07) diff --git a/packages/peer-id-factory/package.json b/packages/peer-id-factory/package.json index 42608233f3..a5eccdcf2d 100644 --- a/packages/peer-id-factory/package.json +++ b/packages/peer-id-factory/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/peer-id-factory", - "version": "3.0.8", + "version": "3.0.9", "description": "Create PeerId instances", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-id-factory#readme", @@ -57,9 +57,9 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^2.0.8", - "@libp2p/interface": "^0.1.6", - "@libp2p/peer-id": "^3.0.6", + "@libp2p/crypto": "^3.0.0", + "@libp2p/interface": "^1.0.0", + "@libp2p/peer-id": "^4.0.0", "multiformats": "^12.1.3", "protons-runtime": "^5.0.0", "uint8arraylist": "^2.4.3", diff --git a/packages/peer-id/CHANGELOG.md b/packages/peer-id/CHANGELOG.md index c7d4f15918..cc5d08e3ab 100644 --- a/packages/peer-id/CHANGELOG.md +++ b/packages/peer-id/CHANGELOG.md @@ -5,6 +5,24 @@ * update README.md ([#59](https://github.com/libp2p/js-libp2p-peer-id/issues/59)) ([aba6483](https://github.com/libp2p/js-libp2p-peer-id/commit/aba6483dad028ee5c24bfc01135b77568666cfd3)) +## [4.0.0](https://www.github.com/libp2p/js-libp2p/compare/peer-id-v3.0.6...peer-id-v4.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* imports from `libp2p/identify` need to change to `@libp2p/identify` + +### Code Refactoring + +* extract identify service into separate module ([#2219](https://www.github.com/libp2p/js-libp2p/issues/2219)) ([72c2f77](https://www.github.com/libp2p/js-libp2p/commit/72c2f775bd85bd4928048dda0fd14740d6fb6a69)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + ### [3.0.6](https://www.github.com/libp2p/js-libp2p/compare/peer-id-v3.0.5...peer-id-v3.0.6) (2023-11-07) @@ -316,4 +334,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* simpler peer id ([#117](https://github.com/libp2p/js-libp2p-interfaces/issues/117)) ([fa2c4f5](https://github.com/libp2p/js-libp2p-interfaces/commit/fa2c4f5be74a5cfc11489771881e57b4e53bf174)) +* simpler peer id ([#117](https://github.com/libp2p/js-libp2p-interfaces/issues/117)) ([fa2c4f5](https://github.com/libp2p/js-libp2p-interfaces/commit/fa2c4f5be74a5cfc11489771881e57b4e53bf174)) \ No newline at end of file diff --git a/packages/peer-id/package.json b/packages/peer-id/package.json index 2e76faa9f2..33faccbe8a 100644 --- a/packages/peer-id/package.json +++ b/packages/peer-id/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/peer-id", - "version": "3.0.6", + "version": "4.0.0", "description": "Implementation of @libp2p/interface-peer-id", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-id#readme", @@ -53,7 +53,7 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", + "@libp2p/interface": "^1.0.0", "multiformats": "^12.1.3", "uint8arrays": "^4.0.6" }, diff --git a/packages/peer-record/CHANGELOG.md b/packages/peer-record/CHANGELOG.md index da770b5656..1b3feff8f2 100644 --- a/packages/peer-record/CHANGELOG.md +++ b/packages/peer-record/CHANGELOG.md @@ -11,6 +11,20 @@ * **dev:** bump aegir from 38.1.8 to 39.0.10 ([#64](https://github.com/libp2p/js-libp2p-peer-record/issues/64)) ([ba3ac38](https://github.com/libp2p/js-libp2p-peer-record/commit/ba3ac38c79e9449a75c0a54fefe289ee9e2c78fb)) +### [6.0.10](https://www.github.com/libp2p/js-libp2p/compare/peer-record-v6.0.9...peer-record-v6.0.10) (2023-11-28) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^2.0.8 to ^3.0.0 + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + * devDependencies + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + ### [6.0.9](https://www.github.com/libp2p/js-libp2p/compare/peer-record-v6.0.8...peer-record-v6.0.9) (2023-11-07) diff --git a/packages/peer-record/package.json b/packages/peer-record/package.json index 347d3fa663..44ece18a9b 100644 --- a/packages/peer-record/package.json +++ b/packages/peer-record/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/peer-record", - "version": "6.0.9", + "version": "6.0.10", "description": "Used to transfer signed peer data across the network", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-record#readme", @@ -60,10 +60,10 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^2.0.8", - "@libp2p/interface": "^0.1.6", - "@libp2p/peer-id": "^3.0.6", - "@libp2p/utils": "^4.0.7", + "@libp2p/crypto": "^3.0.0", + "@libp2p/interface": "^1.0.0", + "@libp2p/peer-id": "^4.0.0", + "@libp2p/utils": "^5.0.0", "@multiformats/multiaddr": "^12.1.10", "protons-runtime": "^5.0.0", "uint8-varint": "^2.0.0", @@ -71,7 +71,7 @@ "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", "protons": "^7.3.0" } diff --git a/packages/peer-store/CHANGELOG.md b/packages/peer-store/CHANGELOG.md index 5c14e7c502..16adc67606 100644 --- a/packages/peer-store/CHANGELOG.md +++ b/packages/peer-store/CHANGELOG.md @@ -11,6 +11,26 @@ * **dev:** bump p-event from 5.0.1 to 6.0.0 ([#89](https://github.com/libp2p/js-libp2p-peer-store/issues/89)) ([9d96700](https://github.com/libp2p/js-libp2p-peer-store/commit/9d9670048b5e8feeac656cba92cb2e513e4a77be)) +### [9.0.10](https://www.github.com/libp2p/js-libp2p/compare/peer-store-v9.0.9...peer-store-v9.0.10) (2023-11-28) + + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/peer-collections bumped from ^4.0.8 to ^4.0.9 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + * @libp2p/peer-record bumped from ^6.0.9 to ^6.0.10 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + ### [9.0.9](https://www.github.com/libp2p/js-libp2p/compare/peer-store-v9.0.8...peer-store-v9.0.9) (2023-11-07) @@ -546,4 +566,4 @@ Co-authored-by: Alex Potsides ### Features -* add peer store/records, and streams are just streams ([#160](https://github.com/libp2p/js-libp2p-interfaces/issues/160)) ([8860a0c](https://github.com/libp2p/js-libp2p-interfaces/commit/8860a0cd46b359a5648402d83870f7ff957222fe)) +* add peer store/records, and streams are just streams ([#160](https://github.com/libp2p/js-libp2p-interfaces/issues/160)) ([8860a0c](https://github.com/libp2p/js-libp2p-interfaces/commit/8860a0cd46b359a5648402d83870f7ff957222fe)) \ No newline at end of file diff --git a/packages/peer-store/package.json b/packages/peer-store/package.json index ca82f1f55a..4cdf78ff9d 100644 --- a/packages/peer-store/package.json +++ b/packages/peer-store/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/peer-store", - "version": "9.0.9", + "version": "9.0.10", "description": "Stores information about peers libp2p knows on the network", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-store#readme", @@ -58,11 +58,11 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/peer-collections": "^4.0.8", - "@libp2p/peer-id": "^3.0.6", - "@libp2p/peer-id-factory": "^3.0.8", - "@libp2p/peer-record": "^6.0.9", + "@libp2p/interface": "^1.0.0", + "@libp2p/peer-collections": "^4.0.9", + "@libp2p/peer-id": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", + "@libp2p/peer-record": "^6.0.10", "@multiformats/multiaddr": "^12.1.10", "interface-datastore": "^8.2.0", "it-all": "^3.0.2", @@ -73,7 +73,7 @@ "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", + "@libp2p/logger": "^4.0.0", "@types/sinon": "^17.0.0", "aegir": "^41.0.2", "datastore-core": "^9.1.1", diff --git a/packages/protocol-autonat/CHANGELOG.md b/packages/protocol-autonat/CHANGELOG.md new file mode 100644 index 0000000000..a140c3f244 --- /dev/null +++ b/packages/protocol-autonat/CHANGELOG.md @@ -0,0 +1,32 @@ +# Changelog + +## 1.0.0 (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* imports from `libp2p/identify` need to change to `@libp2p/identify` +* move autonat into separate package (#2107) + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* extract identify service into separate module ([#2219](https://www.github.com/libp2p/js-libp2p/issues/2219)) ([72c2f77](https://www.github.com/libp2p/js-libp2p/commit/72c2f775bd85bd4928048dda0fd14740d6fb6a69)) +* move autonat into separate package ([#2107](https://www.github.com/libp2p/js-libp2p/issues/2107)) ([b0e8f06](https://www.github.com/libp2p/js-libp2p/commit/b0e8f06f0dcdbda0e367186b093e42e8bff3ee27)) + + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.2 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.5 to ^0.1.10 + * @libp2p/peer-id bumped from ^3.0.2 to ^4.0.0 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.4 to ^3.0.9 \ No newline at end of file diff --git a/packages/protocol-autonat/package.json b/packages/protocol-autonat/package.json index 3007008697..2707681f8b 100644 --- a/packages/protocol-autonat/package.json +++ b/packages/protocol-autonat/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/autonat", - "version": "0.0.0", + "version": "1.0.0", "description": "Implementation of Autonat Protocol", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-autonat#readme", @@ -51,9 +51,9 @@ "dep-check": "aegir dep-check" }, "dependencies": { - "@libp2p/interface": "^0.1.2", - "@libp2p/interface-internal": "^0.1.5", - "@libp2p/peer-id": "^3.0.2", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/peer-id": "^4.0.0", "@multiformats/multiaddr": "^12.1.10", "it-first": "^3.0.3", "it-length-prefixed": "^9.0.3", @@ -65,8 +65,8 @@ "uint8arraylist": "^2.4.3" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.4", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", "it-all": "^3.0.3", "it-pushable": "^3.2.1", diff --git a/packages/protocol-dcutr/CHANGELOG.md b/packages/protocol-dcutr/CHANGELOG.md new file mode 100644 index 0000000000..9952269fb9 --- /dev/null +++ b/packages/protocol-dcutr/CHANGELOG.md @@ -0,0 +1,28 @@ +# Changelog + +## 1.0.0 (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* imports from `libp2p/circuit-relay` should be updated to `@libp2p/circuit-relay-v2` +* imports from `libp2p/dcutr` now need to be from `@libp2p/dcutr` + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* extract circuit relay v2 to separate module ([#2222](https://www.github.com/libp2p/js-libp2p/issues/2222)) ([24afba3](https://www.github.com/libp2p/js-libp2p/commit/24afba30004fb7f24af1f0180229bb164340f00b)) +* extract DCUtR into separate module ([#2220](https://www.github.com/libp2p/js-libp2p/issues/2220)) ([d2c3e72](https://www.github.com/libp2p/js-libp2p/commit/d2c3e7235b64558c6cace414c54a42659fee2970)) + + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.2 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.5 to ^0.1.10 \ No newline at end of file diff --git a/packages/protocol-dcutr/package.json b/packages/protocol-dcutr/package.json index 3082571c09..ee32167f6a 100644 --- a/packages/protocol-dcutr/package.json +++ b/packages/protocol-dcutr/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/dcutr", - "version": "0.0.0", + "version": "1.0.0", "description": "Implementation of the DCUtR Protocol", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-dcutr#readme", @@ -51,8 +51,8 @@ "dep-check": "aegir dep-check" }, "dependencies": { - "@libp2p/interface": "^0.1.2", - "@libp2p/interface-internal": "^0.1.5", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", "@multiformats/multiaddr": "^12.1.10", "@multiformats/multiaddr-matcher": "^1.1.0", "delay": "^6.0.0", diff --git a/packages/protocol-fetch/CHANGELOG.md b/packages/protocol-fetch/CHANGELOG.md new file mode 100644 index 0000000000..b9a851fc90 --- /dev/null +++ b/packages/protocol-fetch/CHANGELOG.md @@ -0,0 +1,29 @@ +# Changelog + +## 1.0.0 (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* imports from `libp2p/fetch` should be updated to `@libp2p/fetch` + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* extract fetch to separate module ([#2223](https://www.github.com/libp2p/js-libp2p/issues/2223)) ([9b19be2](https://www.github.com/libp2p/js-libp2p/commit/9b19be2796c2dbbe207029199b1ac203647744e3)) + + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.2 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.5 to ^0.1.10 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 \ No newline at end of file diff --git a/packages/protocol-fetch/package.json b/packages/protocol-fetch/package.json index f43e1c9b12..9dc63a5966 100644 --- a/packages/protocol-fetch/package.json +++ b/packages/protocol-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/fetch", - "version": "0.0.0", + "version": "1.0.0", "description": "Implementation of the Fetch Protocol", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-fetch#readme", @@ -51,16 +51,16 @@ "dep-check": "aegir dep-check" }, "dependencies": { - "@libp2p/interface": "^0.1.2", - "@libp2p/interface-internal": "^0.1.5", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", "it-protobuf-stream": "^1.0.2", "protons-runtime": "^5.0.0", "uint8arraylist": "^2.4.3", "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", "it-pair": "^2.0.6", "protons": "^7.3.0", diff --git a/packages/protocol-identify/CHANGELOG.md b/packages/protocol-identify/CHANGELOG.md new file mode 100644 index 0000000000..2401bbe910 --- /dev/null +++ b/packages/protocol-identify/CHANGELOG.md @@ -0,0 +1,33 @@ +# Changelog + +## 1.0.0 (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* imports from `libp2p/dcutr` now need to be from `@libp2p/dcutr` +* imports from `libp2p/identify` need to change to `@libp2p/identify` + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* extract DCUtR into separate module ([#2220](https://www.github.com/libp2p/js-libp2p/issues/2220)) ([d2c3e72](https://www.github.com/libp2p/js-libp2p/commit/d2c3e7235b64558c6cace414c54a42659fee2970)) +* extract identify service into separate module ([#2219](https://www.github.com/libp2p/js-libp2p/issues/2219)) ([72c2f77](https://www.github.com/libp2p/js-libp2p/commit/72c2f775bd85bd4928048dda0fd14740d6fb6a69)) + + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.2 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.5 to ^0.1.10 + * @libp2p/peer-id bumped from ^3.0.2 to ^4.0.0 + * @libp2p/peer-record bumped from ^6.0.9 to ^6.0.10 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.4 to ^3.0.9 \ No newline at end of file diff --git a/packages/protocol-identify/package.json b/packages/protocol-identify/package.json index 46fa464edb..7de535a2f4 100644 --- a/packages/protocol-identify/package.json +++ b/packages/protocol-identify/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/identify", - "version": "0.0.0", + "version": "1.0.0", "description": "Implementation of the Identify Protocol", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-identify#readme", @@ -51,10 +51,10 @@ "dep-check": "aegir dep-check" }, "dependencies": { - "@libp2p/interface": "^0.1.2", - "@libp2p/interface-internal": "^0.1.5", - "@libp2p/peer-id": "^3.0.2", - "@libp2p/peer-record": "^6.0.9", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/peer-id": "^4.0.0", + "@libp2p/peer-record": "^6.0.10", "@multiformats/multiaddr": "^12.1.10", "@multiformats/multiaddr-matcher": "^1.1.0", "it-length-prefixed": "^9.0.3", @@ -65,8 +65,8 @@ "wherearewe": "^2.0.1" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.4", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", "delay": "^6.0.0", "it-drain": "^3.0.3", diff --git a/packages/protocol-perf/CHANGELOG.md b/packages/protocol-perf/CHANGELOG.md index 41e59eca22..45754b5b0d 100644 --- a/packages/protocol-perf/CHANGELOG.md +++ b/packages/protocol-perf/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## [3.0.0](https://www.github.com/libp2p/js-libp2p/compare/perf-v2.0.1...perf-v3.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `perfService` export is now just `perf` +* imports from `libp2p/plaintext` should be changed to `@libp2p/plaintext` + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* extract plaintext into separate module ([#2221](https://www.github.com/libp2p/js-libp2p/issues/2221)) ([a364d95](https://www.github.com/libp2p/js-libp2p/commit/a364d95bbd7b15a5ce6ce508321e7ff2fa40a5e5)) +* rename perf exports to remove Service ([#2227](https://www.github.com/libp2p/js-libp2p/issues/2227)) ([1034416](https://www.github.com/libp2p/js-libp2p/commit/10344168fe5f56c08a21d6b35468817e17ab0b25)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.9 to ^0.1.10 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + ### [2.0.1](https://www.github.com/libp2p/js-libp2p/compare/perf-v2.0.0...perf-v2.0.1) (2023-11-07) diff --git a/packages/protocol-perf/package.json b/packages/protocol-perf/package.json index 6f8ec43ec8..d2d5eba9f1 100644 --- a/packages/protocol-perf/package.json +++ b/packages/protocol-perf/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/perf", - "version": "2.0.1", + "version": "3.0.0", "description": "Implementation of Perf Protocol", "author": "@maschad / @marcopolo", "license": "Apache-2.0 OR MIT", @@ -52,14 +52,14 @@ "renderResults": "node dist/src/renderResults.js" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/interface-internal": "^0.1.9", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", "@multiformats/multiaddr": "^12.1.10", "it-pushable": "^3.2.3" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/logger": "^3.1.0", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/logger": "^4.0.0", "aegir": "^41.0.2", "it-last": "^3.0.3", "it-pair": "^2.0.6", diff --git a/packages/protocol-perf/test/run-client.ts b/packages/protocol-perf/test/run-client.ts new file mode 100644 index 0000000000..90380ae35a --- /dev/null +++ b/packages/protocol-perf/test/run-client.ts @@ -0,0 +1,61 @@ +/* eslint-disable no-console */ +import { noise } from '@chainsafe/libp2p-noise' +import { yamux } from '@chainsafe/libp2p-yamux' +import { mplex } from '@libp2p/mplex' +import { plaintext } from '@libp2p/plaintext' +import { tcp } from '@libp2p/tcp' +import { multiaddr } from '@multiformats/multiaddr' +import { createLibp2p, type Libp2p } from 'libp2p' +import { perf, type PerfOutput, type Perf } from '../src/index.js' + +const ONE_MEG = 1024 * 1024 +const DOWNLOAD_BYTES = ONE_MEG * 1024 * 5 + +async function createNode (): Promise> { + return createLibp2p({ + transports: [ + tcp() + ], + connectionEncryption: [ + noise(), plaintext() + ], + streamMuxers: [ + yamux(), mplex() + ], + services: { + perf: perf({ + writeBlockSize: 1024 * 1024 + }) + }, + connectionManager: { + minConnections: 0 + } + }) +} + +const libp2p1 = await createNode() + +let last: PerfOutput | undefined + +const ma = multiaddr('/ip4/127.0.0.1/tcp/59032') + +for await (const output of libp2p1.services.perf.measurePerformance(ma, 0, DOWNLOAD_BYTES)) { + last = output + console.info(output) + + console.info((output.downloadBytes / (1024 * 1024)) / output.timeSeconds, 'MB/s') +} + +if (last?.type === 'final') { + console.info((last.downloadBytes / (1024 * 1024)) / last.timeSeconds, 'MB/s') +} + +await libp2p1.stop() + +// plaintext/yamux - 1354 MB/s +// plaintext/mplex - 34478 MB/s +// noise/yamux - 60 MB/s +// noise/mplex - 62 MB/s + +// noise/yamux/native crypto - 282 MB/s +// noise/mplex/native crypto - 420 MB/s diff --git a/packages/protocol-perf/test/run-server.ts b/packages/protocol-perf/test/run-server.ts new file mode 100644 index 0000000000..8d6d569994 --- /dev/null +++ b/packages/protocol-perf/test/run-server.ts @@ -0,0 +1,39 @@ +/* eslint-disable no-console */ +import { noise } from '@chainsafe/libp2p-noise' +import { yamux } from '@chainsafe/libp2p-yamux' +import { mplex } from '@libp2p/mplex' +import { plaintext } from '@libp2p/plaintext' +import { tcp } from '@libp2p/tcp' +import { createLibp2p, type Libp2p } from 'libp2p' +import { perf, type Perf } from '../src/index.js' + +async function createNode (): Promise> { + return createLibp2p({ + addresses: { + listen: [ + '/ip4/0.0.0.0/tcp/59032' + ] + }, + transports: [ + tcp() + ], + connectionEncryption: [ + noise(), plaintext() + ], + streamMuxers: [ + yamux(), mplex() + ], + services: { + perf: perf({ + writeBlockSize: 1024 * 1024 + }) + }, + connectionManager: { + minConnections: 0 + } + }) +} + +const server = await createNode() + +console.info(server.getMultiaddrs()) diff --git a/packages/protocol-perf/test/run.ts b/packages/protocol-perf/test/run.ts new file mode 100644 index 0000000000..37fac789f8 --- /dev/null +++ b/packages/protocol-perf/test/run.ts @@ -0,0 +1,147 @@ +/* eslint-disable no-console */ +import { noise } from '@chainsafe/libp2p-noise' +import { yamux } from '@chainsafe/libp2p-yamux' +import { mplex } from '@libp2p/mplex' +import { plaintext } from '@libp2p/plaintext' +import { tcp } from '@libp2p/tcp' +import last from 'it-last' +import { createLibp2p, type Libp2p } from 'libp2p' +import { perf, type PerfOutput, type Perf } from '../src/index.js' + +const ONE_MEG = 1024 * 1024 +const DOWNLOAD_BYTES = ONE_MEG * 1024 * 5 +const REPEAT = 10 + +// plaintext/yamux - 1354 MB/s +// plaintext/mplex - 34478 MB/s +// noise/yamux - 60 MB/s +// noise/mplex - 62 MB/s + +// noise/yamux/native crypto - 282 MB/s +// noise/mplex/native crypto - 420 MB/s + +const sizes = [ + 64, 128, 256, 384, 512, 640, 768, 896, 1024, 1152, 1280, 1408, 1536 +] + +for (let i = 0; i < sizes.length; i++) { + const size = sizes[i] + + const measurements: PerfOutput[] = [] + + for (let n = 0; n < REPEAT; n++) { + async function createNode (): Promise> { + return createLibp2p({ + addresses: { + listen: [ + '/ip4/0.0.0.0/tcp/0' + ] + }, + transports: [ + tcp() + ], + connectionEncryption: [ + noise(), plaintext() + ], + streamMuxers: [ + yamux(), mplex() + ], + services: { + perf: perf({ + writeBlockSize: size * 1024 + }) + }, + connectionManager: { + minConnections: 0 + } + }) + } + + const libp2p1 = await createNode() + const libp2p2 = await createNode() + + const result = await last( + libp2p1.services.perf.measurePerformance(libp2p2.getMultiaddrs()[0], 0, DOWNLOAD_BYTES) + ) + + if (result != null) { + measurements.push(result) + } + + await libp2p1.stop() + await libp2p2.stop() + } + + const downloadBytes = measurements + .map(m => { + if (m.type === 'final') { + return m.downloadBytes + } + + return 0 + }) + .filter(outliers()) + .reduce((acc, curr) => acc + curr, 0) + + const timeSeconds = measurements + .map(m => { + if (m.type === 'final') { + return m.timeSeconds + } + + return 0 + }) + .filter(outliers()) + .reduce((acc, curr) => acc + curr, 0) + + console.info(size, 'kb', (downloadBytes / (1024 * 1024)) / timeSeconds, 'MB/s') +} + +function outliers() { + let o: number[] + + return function(v: number, i: number, a: number[]) { + if (o == null) { + o = calc(a) + } + + return !~o.indexOf(v); + } +} + +function calc(arr: number[]): number[] { + arr = arr.slice(0); + + arr = arr.sort(function(a, b) { + return a - b; + }); + + var len = arr.length; + var middle = median(arr); + var range = iqr(arr); + var outliers = []; + + for (var i = 0; i < len; i++) { + Math.abs(arr[i] - middle) > range && outliers.push(arr[i]); + } + + return outliers; +} + +function median(arr: number[]): number { + var len = arr.length; + var half = ~~(len / 2); + + return len % 2 + ? arr[half] + : (arr[half - 1] + arr[half]) / 2; +} + +function iqr(arr: number[]): number { + var len = arr.length; + var q1 = median(arr.slice(0, ~~(len / 2))); + var q3 = median(arr.slice(Math.ceil(len / 2))); + var g = 1.5; + + return (q3 - q1) * g; +} diff --git a/packages/protocol-ping/CHANGELOG.md b/packages/protocol-ping/CHANGELOG.md new file mode 100644 index 0000000000..edb279fa43 --- /dev/null +++ b/packages/protocol-ping/CHANGELOG.md @@ -0,0 +1,34 @@ +# Changelog + +## 1.0.0 (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* imports from `libp2p/dcutr` now need to be from `@libp2p/dcutr` +* imports from `libp2p/identify` need to change to `@libp2p/identify` +* imports from `libp2p/ping` must be updated to `@libp2p/ping` + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* extract DCUtR into separate module ([#2220](https://www.github.com/libp2p/js-libp2p/issues/2220)) ([d2c3e72](https://www.github.com/libp2p/js-libp2p/commit/d2c3e7235b64558c6cace414c54a42659fee2970)) +* extract identify service into separate module ([#2219](https://www.github.com/libp2p/js-libp2p/issues/2219)) ([72c2f77](https://www.github.com/libp2p/js-libp2p/commit/72c2f775bd85bd4928048dda0fd14740d6fb6a69)) +* extract ping service into separate module ([#2218](https://www.github.com/libp2p/js-libp2p/issues/2218)) ([556282a](https://www.github.com/libp2p/js-libp2p/commit/556282afdc9b328fd58df1045dc7c792199be932)) + + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^2.0.8 to ^3.0.0 + * @libp2p/interface bumped from ^0.1.2 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.5 to ^0.1.10 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 \ No newline at end of file diff --git a/packages/protocol-ping/package.json b/packages/protocol-ping/package.json index 39390fba8e..cecc956772 100644 --- a/packages/protocol-ping/package.json +++ b/packages/protocol-ping/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/ping", - "version": "0.0.0", + "version": "1.0.0", "description": "Implementation of Ping Protocol", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-ping#readme", @@ -49,17 +49,17 @@ "dep-check": "aegir dep-check" }, "dependencies": { - "@libp2p/crypto": "^2.0.8", - "@libp2p/interface": "^0.1.2", - "@libp2p/interface-internal": "^0.1.5", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/crypto": "^3.0.0", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/peer-id-factory": "^3.0.9", "@multiformats/multiaddr": "^12.1.10", "it-first": "^3.0.3", "it-pipe": "^3.0.1", "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", + "@libp2p/logger": "^4.0.0", "aegir": "^41.0.2", "it-byte-stream": "^1.0.1", "it-pair": "^2.0.6", diff --git a/packages/pubsub-floodsub/CHANGELOG.md b/packages/pubsub-floodsub/CHANGELOG.md index c085c9c741..b338cfef50 100644 --- a/packages/pubsub-floodsub/CHANGELOG.md +++ b/packages/pubsub-floodsub/CHANGELOG.md @@ -11,6 +11,26 @@ * **dev:** bump aegir from 38.1.8 to 39.0.10 ([#233](https://github.com/libp2p/js-libp2p-floodsub/issues/233)) ([e073298](https://github.com/libp2p/js-libp2p-floodsub/commit/e073298f324a89656b0ca6d9a629e60eaedc7873)) +### [8.0.14](https://www.github.com/libp2p/js-libp2p/compare/floodsub-v8.0.13...floodsub-v8.0.14) (2023-11-28) + + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/pubsub bumped from ^8.0.10 to ^8.0.11 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-collections bumped from ^4.0.8 to ^4.0.9 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + ### [8.0.13](https://www.github.com/libp2p/js-libp2p/compare/floodsub-v8.0.12...floodsub-v8.0.13) (2023-11-07) @@ -1055,4 +1075,4 @@ -# 0.1.0 (2016-09-14) +# 0.1.0 (2016-09-14) \ No newline at end of file diff --git a/packages/pubsub-floodsub/package.json b/packages/pubsub-floodsub/package.json index f1c738e34b..ec759e888a 100644 --- a/packages/pubsub-floodsub/package.json +++ b/packages/pubsub-floodsub/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/floodsub", - "version": "8.0.13", + "version": "8.0.14", "description": "libp2p-floodsub, also known as pubsub-flood or just dumbsub, this implementation of pubsub focused on delivering an API for Publish/Subscribe, but with no CastTree Forming (it just floods the network).", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub#readme", @@ -59,17 +59,17 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/pubsub": "^8.0.10", + "@libp2p/interface": "^1.0.0", + "@libp2p/pubsub": "^8.0.11", "protons-runtime": "^5.0.0", "uint8arraylist": "^2.4.3", "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-collections": "^4.0.8", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-collections": "^4.0.9", + "@libp2p/peer-id-factory": "^3.0.9", "@multiformats/multiaddr": "^12.1.10", "@types/sinon": "^17.0.0", "aegir": "^41.0.2", diff --git a/packages/pubsub/CHANGELOG.md b/packages/pubsub/CHANGELOG.md index d7cf64cd82..b868964c38 100644 --- a/packages/pubsub/CHANGELOG.md +++ b/packages/pubsub/CHANGELOG.md @@ -5,6 +5,28 @@ * **dev:** bump delay from 5.0.0 to 6.0.0 ([#144](https://github.com/libp2p/js-libp2p-pubsub/issues/144)) ([1364ce4](https://github.com/libp2p/js-libp2p-pubsub/commit/1364ce41815d3392cfca61169e113cc5414ac2d9)) +### [8.0.11](https://www.github.com/libp2p/js-libp2p/compare/pubsub-v8.0.10...pubsub-v8.0.11) (2023-11-28) + + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^2.0.8 to ^3.0.0 + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.9 to ^0.1.10 + * @libp2p/peer-collections bumped from ^4.0.8 to ^4.0.9 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + ### [8.0.10](https://www.github.com/libp2p/js-libp2p/compare/pubsub-v8.0.9...pubsub-v8.0.10) (2023-11-07) @@ -701,4 +723,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### BREAKING CHANGES -* not all fields from concrete classes have been added to the interfaces, some adjustment may be necessary as this gets rolled out +* not all fields from concrete classes have been added to the interfaces, some adjustment may be necessary as this gets rolled out \ No newline at end of file diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 0ae6b3d144..3389b22174 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/pubsub", - "version": "8.0.10", + "version": "8.0.11", "description": "libp2p pubsub base class", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/pubsub#readme", @@ -83,12 +83,12 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^2.0.8", - "@libp2p/interface": "^0.1.6", - "@libp2p/interface-internal": "^0.1.9", - "@libp2p/peer-collections": "^4.0.8", - "@libp2p/peer-id": "^3.0.6", - "@libp2p/utils": "^4.0.7", + "@libp2p/crypto": "^3.0.0", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/peer-collections": "^4.0.9", + "@libp2p/peer-id": "^4.0.0", + "@libp2p/utils": "^5.0.0", "it-length-prefixed": "^9.0.3", "it-pipe": "^3.0.1", "it-pushable": "^3.2.1", @@ -98,8 +98,8 @@ "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "@types/sinon": "^17.0.0", "aegir": "^41.0.2", "delay": "^6.0.0", diff --git a/packages/stream-multiplexer-mplex/CHANGELOG.md b/packages/stream-multiplexer-mplex/CHANGELOG.md index 5f4056d77e..c6623d112d 100644 --- a/packages/stream-multiplexer-mplex/CHANGELOG.md +++ b/packages/stream-multiplexer-mplex/CHANGELOG.md @@ -12,6 +12,33 @@ * **dev:** bump cborg from 1.10.2 to 2.0.1 ([#282](https://github.com/libp2p/js-libp2p-mplex/issues/282)) ([4dbc590](https://github.com/libp2p/js-libp2p-mplex/commit/4dbc590d1ac92581fe2e937757567eef3854acf4)) * **dev:** bump delay from 5.0.0 to 6.0.0 ([#281](https://github.com/libp2p/js-libp2p-mplex/issues/281)) ([1e03e75](https://github.com/libp2p/js-libp2p-mplex/commit/1e03e75369722be9872f747cd83f555bc08d49fe)) +## [10.0.0](https://www.github.com/libp2p/js-libp2p/compare/mplex-v9.0.12...mplex-v10.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) + + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + ### [9.0.12](https://www.github.com/libp2p/js-libp2p/compare/mplex-v9.0.11...mplex-v9.0.12) (2023-11-07) @@ -922,4 +949,4 @@ Signed-off-by: Alan Shaw -# 0.1.0 (2016-03-07) +# 0.1.0 (2016-03-07) \ No newline at end of file diff --git a/packages/stream-multiplexer-mplex/package.json b/packages/stream-multiplexer-mplex/package.json index 3321c915c1..4a102dfe2e 100644 --- a/packages/stream-multiplexer-mplex/package.json +++ b/packages/stream-multiplexer-mplex/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/mplex", - "version": "9.0.12", + "version": "10.0.0", "description": "JavaScript implementation of https://github.com/libp2p/mplex", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/stream-multiplexer-mplex#readme", @@ -61,8 +61,8 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/utils": "^4.0.7", + "@libp2p/interface": "^1.0.0", + "@libp2p/utils": "^5.0.0", "benchmark": "^2.1.4", "it-pushable": "^3.2.1", "it-stream-types": "^2.0.1", @@ -72,8 +72,8 @@ "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/logger": "^3.1.0", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/logger": "^4.0.0", "aegir": "^41.0.2", "cborg": "^4.0.3", "delay": "^6.0.0", diff --git a/packages/transport-circuit-relay-v2/CHANGELOG.md b/packages/transport-circuit-relay-v2/CHANGELOG.md new file mode 100644 index 0000000000..13e1231703 --- /dev/null +++ b/packages/transport-circuit-relay-v2/CHANGELOG.md @@ -0,0 +1,35 @@ +# Changelog + +## 1.0.0 (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* imports from `libp2p/circuit-relay` should be updated to `@libp2p/circuit-relay-v2` + +### Bug Fixes + +* dial relay when we are dialed via it but have no reservation ([#2252](https://www.github.com/libp2p/js-libp2p/issues/2252)) ([d729d66](https://www.github.com/libp2p/js-libp2p/commit/d729d66a54a272dfe11eda8836a555a187cc9c39)) +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* extract circuit relay v2 to separate module ([#2222](https://www.github.com/libp2p/js-libp2p/issues/2222)) ([24afba3](https://www.github.com/libp2p/js-libp2p/commit/24afba30004fb7f24af1f0180229bb164340f00b)) + + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.2 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.5 to ^0.1.10 + * @libp2p/peer-collections bumped from ^4.0.8 to ^4.0.9 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * @libp2p/peer-record bumped from ^6.0.9 to ^6.0.10 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 \ No newline at end of file diff --git a/packages/transport-circuit-relay-v2/package.json b/packages/transport-circuit-relay-v2/package.json index 388edddeab..a387f080d2 100644 --- a/packages/transport-circuit-relay-v2/package.json +++ b/packages/transport-circuit-relay-v2/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/circuit-relay-v2", - "version": "0.0.0", + "version": "1.0.0", "description": "Implementation of Circuit Relay v2", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-circuit-relay-v2#readme", @@ -51,12 +51,12 @@ "dep-check": "aegir dep-check" }, "dependencies": { - "@libp2p/interface": "^0.1.2", - "@libp2p/interface-internal": "^0.1.5", - "@libp2p/peer-collections": "^4.0.8", - "@libp2p/peer-id": "^3.0.6", - "@libp2p/peer-record": "^6.0.9", - "@libp2p/utils": "^4.0.7", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/peer-collections": "^4.0.9", + "@libp2p/peer-id": "^4.0.0", + "@libp2p/peer-record": "^6.0.10", + "@libp2p/utils": "^5.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.1.10", "any-signal": "^4.1.1", @@ -72,9 +72,9 @@ "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", "it-drain": "^3.0.3", "it-pair": "^2.0.6", diff --git a/packages/transport-tcp/CHANGELOG.md b/packages/transport-tcp/CHANGELOG.md index dc8dc9d651..4b82fcf10a 100644 --- a/packages/transport-tcp/CHANGELOG.md +++ b/packages/transport-tcp/CHANGELOG.md @@ -5,6 +5,34 @@ * **dev:** bump aegir from 38.1.8 to 39.0.10 ([#279](https://github.com/libp2p/js-libp2p-tcp/issues/279)) ([3ed1235](https://github.com/libp2p/js-libp2p-tcp/commit/3ed12353aa48b5a933f80042846a8f1c2337fa47)) +## [9.0.0](https://www.github.com/libp2p/js-libp2p/compare/tcp-v8.0.13...tcp-v9.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) + + +### Bug Fixes + +* disable Nagle's algorithm by default ([#2242](https://www.github.com/libp2p/js-libp2p/issues/2242)) ([13a870c](https://www.github.com/libp2p/js-libp2p/commit/13a870cbef326a3a3b3c55b886c2109feaa2b628)) +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + ### [8.0.13](https://www.github.com/libp2p/js-libp2p/compare/tcp-v8.0.12...tcp-v8.0.13) (2023-11-07) diff --git a/packages/transport-tcp/package.json b/packages/transport-tcp/package.json index 6b68440798..ec1c38e92d 100644 --- a/packages/transport-tcp/package.json +++ b/packages/transport-tcp/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/tcp", - "version": "8.0.13", + "version": "9.0.0", "description": "A TCP transport for libp2p", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-tcp#readme", @@ -55,16 +55,16 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/utils": "^4.0.7", + "@libp2p/interface": "^1.0.0", + "@libp2p/utils": "^5.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.1.10", "@types/sinon": "^17.0.0", "stream-to-it": "^0.2.2" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/logger": "^3.1.0", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/logger": "^4.0.0", "aegir": "^41.0.2", "it-all": "^3.0.3", "it-pipe": "^3.0.1", diff --git a/packages/transport-webrtc/CHANGELOG.md b/packages/transport-webrtc/CHANGELOG.md index 2deffc4935..fc58781f40 100644 --- a/packages/transport-webrtc/CHANGELOG.md +++ b/packages/transport-webrtc/CHANGELOG.md @@ -5,6 +5,46 @@ * add browser-to-browser test for bi-directional communication ([#172](https://github.com/libp2p/js-libp2p-webrtc/issues/172)) ([1ec3d8a](https://github.com/libp2p/js-libp2p-webrtc/commit/1ec3d8a8b611d5227f430037e2547fd86d115eaa)) +## [4.0.0](https://www.github.com/libp2p/js-libp2p/compare/webrtc-v3.2.11...webrtc-v4.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data +* imports from `libp2p/circuit-relay` should be updated to `@libp2p/circuit-relay-v2` + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) + + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) +* use optimistic protocol negotation ([#2253](https://www.github.com/libp2p/js-libp2p/issues/2253)) ([0b4a2ee](https://www.github.com/libp2p/js-libp2p/commit/0b4a2ee7983b4dc9dc0a7b705a202a4c550e7017)) + + +### Code Refactoring + +* extract circuit relay v2 to separate module ([#2222](https://www.github.com/libp2p/js-libp2p/issues/2222)) ([24afba3](https://www.github.com/libp2p/js-libp2p/commit/24afba30004fb7f24af1f0180229bb164340f00b)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.9 to ^0.1.10 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + * devDependencies + * @libp2p/circuit-relay-v2 bumped from ^0.0.0 to ^1.0.0 + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + * @libp2p/websockets bumped from ^7.0.13 to ^8.0.0 + * libp2p bumped from ^0.46.21 to ^1.0.0 + ### [3.2.11](https://www.github.com/libp2p/js-libp2p/compare/webrtc-v3.2.10...webrtc-v3.2.11) (2023-11-10) @@ -604,4 +644,4 @@ ### Documentation -* fix 'browser to server' build config ([#66](https://github.com/libp2p/js-libp2p-webrtc/issues/66)) ([b54132c](https://github.com/libp2p/js-libp2p-webrtc/commit/b54132cecac180f0577a1b7905f79b20207c3647)) +* fix 'browser to server' build config ([#66](https://github.com/libp2p/js-libp2p-webrtc/issues/66)) ([b54132c](https://github.com/libp2p/js-libp2p-webrtc/commit/b54132cecac180f0577a1b7905f79b20207c3647)) \ No newline at end of file diff --git a/packages/transport-webrtc/package.json b/packages/transport-webrtc/package.json index 95c4c620a7..4653567a04 100644 --- a/packages/transport-webrtc/package.json +++ b/packages/transport-webrtc/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/webrtc", - "version": "3.2.11", + "version": "4.0.0", "description": "A libp2p transport using WebRTC connections", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-webrtc#readme", @@ -50,11 +50,11 @@ }, "dependencies": { "@chainsafe/libp2p-noise": "^13.0.0", - "@libp2p/interface": "^0.1.6", - "@libp2p/interface-internal": "^0.1.9", - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id": "^3.0.6", - "@libp2p/utils": "^4.0.7", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id": "^4.0.0", + "@libp2p/utils": "^5.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.1.10", "@multiformats/multiaddr-matcher": "^1.1.0", @@ -79,10 +79,10 @@ }, "devDependencies": { "@chainsafe/libp2p-yamux": "^5.0.0", - "@libp2p/circuit-relay-v2": "^0.0.0", - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/peer-id-factory": "^3.0.8", - "@libp2p/websockets": "^7.0.13", + "@libp2p/circuit-relay-v2": "^1.0.0", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/peer-id-factory": "^3.0.9", + "@libp2p/websockets": "^8.0.0", "@types/sinon": "^17.0.0", "aegir": "^41.0.2", "delay": "^6.0.0", @@ -90,7 +90,7 @@ "it-length": "^3.0.2", "it-map": "^3.0.3", "it-pair": "^2.0.6", - "libp2p": "^0.46.21", + "libp2p": "^1.0.0", "p-retry": "^6.1.0", "protons": "^7.3.0", "sinon": "^17.0.0", diff --git a/packages/transport-websockets/CHANGELOG.md b/packages/transport-websockets/CHANGELOG.md index 6721cd64bd..adc512bb6a 100644 --- a/packages/transport-websockets/CHANGELOG.md +++ b/packages/transport-websockets/CHANGELOG.md @@ -6,6 +6,33 @@ * **dev:** bump @libp2p/interface-mocks from 11.0.3 to 12.0.1 ([#241](https://github.com/libp2p/js-libp2p-websockets/issues/241)) ([f956836](https://github.com/libp2p/js-libp2p-websockets/commit/f95683641bda2f9b250768768451e0c121afc2a0)) * **dev:** bump aegir from 38.1.8 to 39.0.9 ([#245](https://github.com/libp2p/js-libp2p-websockets/issues/245)) ([4a35f6b](https://github.com/libp2p/js-libp2p-websockets/commit/4a35f6b39a918fb7ef779292553cb452a543afb0)) +## [8.0.0](https://www.github.com/libp2p/js-libp2p/compare/websockets-v7.0.13...websockets-v8.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) + + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^4.1.5 to ^5.0.0 + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + ### [7.0.13](https://www.github.com/libp2p/js-libp2p/compare/websockets-v7.0.12...websockets-v7.0.13) (2023-11-07) diff --git a/packages/transport-websockets/package.json b/packages/transport-websockets/package.json index dee47d3902..ca3a2b6e5f 100644 --- a/packages/transport-websockets/package.json +++ b/packages/transport-websockets/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/websockets", - "version": "7.0.13", + "version": "8.0.0", "description": "JavaScript implementation of the WebSockets module that libp2p uses and that implements the interface-transport spec", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-websockets#readme", @@ -73,8 +73,8 @@ "test:electron-main": "aegir test -t electron-main -f ./dist/test/node.js --cov" }, "dependencies": { - "@libp2p/interface": "^0.1.6", - "@libp2p/utils": "^4.0.7", + "@libp2p/interface": "^1.0.0", + "@libp2p/utils": "^5.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.1.10", "@multiformats/multiaddr-to-uri": "^9.0.2", @@ -85,8 +85,8 @@ "ws": "^8.12.1" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^4.1.5", - "@libp2p/logger": "^3.1.0", + "@libp2p/interface-compliance-tests": "^5.0.0", + "@libp2p/logger": "^4.0.0", "aegir": "^41.0.2", "is-loopback-addr": "^2.0.1", "it-all": "^3.0.3", diff --git a/packages/transport-webtransport/CHANGELOG.md b/packages/transport-webtransport/CHANGELOG.md index 6147279d50..196c74190c 100644 --- a/packages/transport-webtransport/CHANGELOG.md +++ b/packages/transport-webtransport/CHANGELOG.md @@ -11,6 +11,34 @@ * bump @chainsafe/libp2p-noise from 11.0.4 to 12.0.1 ([#80](https://github.com/libp2p/js-libp2p-webtransport/issues/80)) ([599dab1](https://github.com/libp2p/js-libp2p-webtransport/commit/599dab1b4f6ae816b0c0feefc926c1b38d24b676)) +## [4.0.0](https://www.github.com/libp2p/js-libp2p/compare/webtransport-v3.1.10...webtransport-v4.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) + + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/peer-id bumped from ^3.0.6 to ^4.0.0 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + * libp2p bumped from ^0.46.21 to ^1.0.0 + ### [3.1.10](https://www.github.com/libp2p/js-libp2p/compare/webtransport-v3.1.9...webtransport-v3.1.10) (2023-11-10) @@ -424,4 +452,4 @@ * bump protons-runtime from 3.1.0 to 4.0.1 ([a7ef395](https://github.com/libp2p/js-libp2p-webtransport/commit/a7ef3959d024813caa327afdd502d5bcb91a15e3)) * **dev:** bump @libp2p/interface-mocks from 4.0.3 to 7.0.1 ([85a492d](https://github.com/libp2p/js-libp2p-webtransport/commit/85a492da5b8df76d710dd21dd4b8bf59df4e1184)) -* **dev:** bump uint8arrays from 3.1.1 to 4.0.2 ([cb554e8](https://github.com/libp2p/js-libp2p-webtransport/commit/cb554e8dbb19a6ec5b085307f4c04c04ae313d2d)) +* **dev:** bump uint8arrays from 3.1.1 to 4.0.2 ([cb554e8](https://github.com/libp2p/js-libp2p-webtransport/commit/cb554e8dbb19a6ec5b085307f4c04c04ae313d2d)) \ No newline at end of file diff --git a/packages/transport-webtransport/package.json b/packages/transport-webtransport/package.json index 2eb0d7eae5..dc3544adae 100644 --- a/packages/transport-webtransport/package.json +++ b/packages/transport-webtransport/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/webtransport", - "version": "3.1.10", + "version": "4.0.0", "description": "JavaScript implementation of the WebTransport module that libp2p uses and that implements the interface-transport spec", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-webtransport#readme", @@ -50,8 +50,8 @@ }, "dependencies": { "@chainsafe/libp2p-noise": "^13.0.0", - "@libp2p/interface": "^0.1.6", - "@libp2p/peer-id": "^3.0.6", + "@libp2p/interface": "^1.0.0", + "@libp2p/peer-id": "^4.0.0", "@multiformats/multiaddr": "^12.1.10", "@multiformats/multiaddr-matcher": "^1.1.0", "it-stream-types": "^2.0.1", @@ -60,10 +60,10 @@ "uint8arrays": "^4.0.6" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", - "libp2p": "^0.46.21", + "libp2p": "^1.0.0", "p-defer": "^4.0.0" }, "browser": { diff --git a/packages/upnp-nat/CHANGELOG.md b/packages/upnp-nat/CHANGELOG.md new file mode 100644 index 0000000000..df12e73ac3 --- /dev/null +++ b/packages/upnp-nat/CHANGELOG.md @@ -0,0 +1,32 @@ +# Changelog + +## 1.0.0 (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* imports from `libp2p/identify` need to change to `@libp2p/identify` +* imports from `libp2p/upnp-nat` should be updated to `@libp2p/upnp-nat` + +### Bug Fixes + +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Code Refactoring + +* extract identify service into separate module ([#2219](https://www.github.com/libp2p/js-libp2p/issues/2219)) ([72c2f77](https://www.github.com/libp2p/js-libp2p/commit/72c2f775bd85bd4928048dda0fd14740d6fb6a69)) +* extract UPnP NAT into separate module ([#2217](https://www.github.com/libp2p/js-libp2p/issues/2217)) ([f29b73f](https://www.github.com/libp2p/js-libp2p/commit/f29b73f781afcea36cba0589aafdd81e1852e194)) + + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * @libp2p/interface-internal bumped from ^0.1.9 to ^0.1.10 + * @libp2p/utils bumped from ^4.0.7 to ^5.0.0 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 \ No newline at end of file diff --git a/packages/upnp-nat/package.json b/packages/upnp-nat/package.json index 0134605f5b..992b975121 100644 --- a/packages/upnp-nat/package.json +++ b/packages/upnp-nat/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/upnp-nat", - "version": "0.0.0", + "version": "1.0.0", "description": "UPnP NAT hole punching", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/upnp-nat#readme", @@ -50,16 +50,16 @@ }, "dependencies": { "@achingbrain/nat-port-mapper": "^1.0.12", - "@libp2p/interface": "^0.1.6", - "@libp2p/interface-internal": "^0.1.9", - "@libp2p/utils": "^4.0.7", + "@libp2p/interface": "^1.0.0", + "@libp2p/interface-internal": "^0.1.10", + "@libp2p/utils": "^5.0.0", "@multiformats/multiaddr": "^12.1.10", "private-ip": "^3.0.1", "wherearewe": "^2.0.1" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", "sinon-ts": "^2.0.0" } diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index aa832e665c..c94be265db 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -11,6 +11,40 @@ * **dev:** bump aegir from 38.1.8 to 39.0.10 ([#100](https://github.com/libp2p/js-libp2p-utils/issues/100)) ([da6547c](https://github.com/libp2p/js-libp2p-utils/commit/da6547cdd073ba1a4225be5a419c6776c4ebe6f1)) +## [5.0.0](https://www.github.com/libp2p/js-libp2p/compare/utils-v4.0.7...utils-v5.0.0) (2023-11-28) + + +### ⚠ BREAKING CHANGES + +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data +* imports from `libp2p/circuit-relay` should be updated to `@libp2p/circuit-relay-v2` + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://www.github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://www.github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) + + +### Bug Fixes + +* close maconn stream after reading/writing ([#2236](https://www.github.com/libp2p/js-libp2p/issues/2236)) ([9c67c5b](https://www.github.com/libp2p/js-libp2p/commit/9c67c5b3d0ab63c7a1a62f363ae732b300ef6b87)) +* use logging component everywhere ([#2228](https://www.github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://www.github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) +* use optimistic protocol negotation ([#2253](https://www.github.com/libp2p/js-libp2p/issues/2253)) ([0b4a2ee](https://www.github.com/libp2p/js-libp2p/commit/0b4a2ee7983b4dc9dc0a7b705a202a4c550e7017)) + + +### Code Refactoring + +* extract circuit relay v2 to separate module ([#2222](https://www.github.com/libp2p/js-libp2p/issues/2222)) ([24afba3](https://www.github.com/libp2p/js-libp2p/commit/24afba30004fb7f24af1f0180229bb164340f00b)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^0.1.6 to ^1.0.0 + * devDependencies + * @libp2p/logger bumped from ^3.1.0 to ^4.0.0 + * @libp2p/peer-id-factory bumped from ^3.0.8 to ^3.0.9 + ### [4.0.7](https://www.github.com/libp2p/js-libp2p/compare/utils-v4.0.6...utils-v4.0.7) (2023-11-07) @@ -421,4 +455,4 @@ ### Features -* ip port to multiaddr ([#1](https://github.com/libp2p/js-libp2p-utils/issues/1)) ([426b421](https://github.com/libp2p/js-libp2p-utils/commit/426b421)) +* ip port to multiaddr ([#1](https://github.com/libp2p/js-libp2p-utils/issues/1)) ([426b421](https://github.com/libp2p/js-libp2p-utils/commit/426b421)) \ No newline at end of file diff --git a/packages/utils/package.json b/packages/utils/package.json index 899e981570..6928013013 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/utils", - "version": "4.0.7", + "version": "5.0.0", "description": "Package to aggregate shared logic and dependencies for the libp2p ecosystem", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/utils#readme", @@ -107,7 +107,7 @@ }, "dependencies": { "@chainsafe/is-ip": "^2.0.2", - "@libp2p/interface": "^0.1.6", + "@libp2p/interface": "^1.0.0", "@multiformats/multiaddr": "^12.1.10", "@multiformats/multiaddr-matcher": "^1.1.0", "get-iterator": "^2.0.1", @@ -120,8 +120,8 @@ "uint8arraylist": "^2.4.3" }, "devDependencies": { - "@libp2p/logger": "^3.1.0", - "@libp2p/peer-id-factory": "^3.0.8", + "@libp2p/logger": "^4.0.0", + "@libp2p/peer-id-factory": "^3.0.9", "aegir": "^41.0.2", "delay": "^6.0.0", "it-all": "^3.0.3",