From cb9f3fffb76fc1367777d88a3fafc38d7a324ee7 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 11 Sep 2024 10:43:26 +0100 Subject: [PATCH] chore: release main (#2693) --- .release-please-manifest.json | 2 +- interop/package.json | 20 ++-- .../CHANGELOG.md | 36 +++++++ .../package.json | 14 +-- .../connection-encrypter-tls/CHANGELOG.md | 35 ++++++ .../connection-encrypter-tls/package.json | 12 +-- packages/crypto/CHANGELOG.md | 24 +++++ packages/crypto/package.json | 4 +- packages/integration-tests/package.json | 48 ++++----- .../interface-compliance-tests/CHANGELOG.md | 39 +++++++ .../interface-compliance-tests/package.json | 18 ++-- packages/interface-internal/CHANGELOG.md | 19 ++++ packages/interface-internal/package.json | 6 +- packages/interface/CHANGELOG.md | 28 +++++ packages/interface/package.json | 2 +- packages/kad-dht/CHANGELOG.md | 35 ++++++ packages/kad-dht/package.json | 20 ++-- packages/keychain/CHANGELOG.md | 27 +++++ packages/keychain/package.json | 8 +- packages/libp2p/CHANGELOG.md | 60 +++++++++++ packages/libp2p/package.json | 34 +++--- packages/logger/CHANGELOG.md | 26 +++++ packages/logger/package.json | 6 +- packages/metrics-devtools/CHANGELOG.md | 24 +++++ packages/metrics-devtools/package.json | 14 +-- packages/metrics-prometheus/CHANGELOG.md | 24 +++++ packages/metrics-prometheus/package.json | 12 +-- packages/metrics-simple/CHANGELOG.md | 10 ++ packages/metrics-simple/package.json | 6 +- packages/multistream-select/CHANGELOG.md | 20 ++++ packages/multistream-select/package.json | 6 +- packages/peer-collections/CHANGELOG.md | 22 ++++ packages/peer-collections/package.json | 10 +- .../peer-discovery-bootstrap/CHANGELOG.md | 23 ++++ .../peer-discovery-bootstrap/package.json | 12 +-- packages/peer-discovery-mdns/CHANGELOG.md | 27 +++++ packages/peer-discovery-mdns/package.json | 16 +-- packages/peer-id/CHANGELOG.md | 25 +++++ packages/peer-id/package.json | 6 +- packages/peer-record/CHANGELOG.md | 27 +++++ packages/peer-record/package.json | 10 +- packages/peer-store/CHANGELOG.md | 30 ++++++ packages/peer-store/package.json | 14 +-- packages/pnet/CHANGELOG.md | 102 ++++++++++++++++++ packages/pnet/package.json | 12 +-- packages/protocol-autonat/CHANGELOG.md | 30 ++++++ packages/protocol-autonat/package.json | 14 +-- packages/protocol-dcutr/CHANGELOG.md | 28 +++++ packages/protocol-dcutr/package.json | 8 +- packages/protocol-echo/CHANGELOG.md | 27 +++++ packages/protocol-echo/package.json | 8 +- packages/protocol-fetch/CHANGELOG.md | 29 +++++ packages/protocol-fetch/package.json | 12 +-- packages/protocol-identify/CHANGELOG.md | 33 ++++++ packages/protocol-identify/package.json | 16 +-- packages/protocol-perf/CHANGELOG.md | 29 +++++ packages/protocol-perf/package.json | 10 +- packages/protocol-ping/CHANGELOG.md | 31 ++++++ packages/protocol-ping/package.json | 12 +-- packages/pubsub-floodsub/CHANGELOG.md | 31 ++++++ packages/pubsub-floodsub/package.json | 16 +-- packages/pubsub/CHANGELOG.md | 33 ++++++ packages/pubsub/package.json | 16 +-- .../stream-multiplexer-mplex/CHANGELOG.md | 29 +++++ .../stream-multiplexer-mplex/package.json | 10 +- .../transport-circuit-relay-v2/CHANGELOG.md | 33 ++++++ .../transport-circuit-relay-v2/package.json | 16 +-- packages/transport-tcp/CHANGELOG.md | 29 +++++ packages/transport-tcp/package.json | 10 +- packages/transport-webrtc/CHANGELOG.md | 46 ++++++++ packages/transport-webrtc/package.json | 24 ++--- packages/transport-websockets/CHANGELOG.md | 22 ++++ packages/transport-websockets/package.json | 10 +- packages/transport-webtransport/CHANGELOG.md | 44 ++++++++ packages/transport-webtransport/package.json | 16 +-- packages/upnp-nat/CHANGELOG.md | 30 ++++++ packages/upnp-nat/package.json | 14 +-- packages/utils/CHANGELOG.md | 29 +++++ packages/utils/package.json | 8 +- 79 files changed, 1462 insertions(+), 266 deletions(-) create mode 100644 packages/pnet/CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 53aa4ae239..fb5a4cc789 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1 +1 @@ -{"packages/connection-encrypter-plaintext":"1.1.6","packages/connection-encrypter-tls":"1.1.5","packages/crypto":"4.1.9","packages/interface":"1.7.0","packages/interface-compliance-tests":"5.4.12","packages/interface-internal":"1.3.4","packages/kad-dht":"12.1.5","packages/keychain":"4.1.6","packages/libp2p":"1.9.4","packages/logger":"4.0.20","packages/metrics-devtools":"0.2.5","packages/metrics-prometheus":"3.1.5","packages/metrics-simple":"1.1.5","packages/multistream-select":"5.1.17","packages/peer-collections":"5.2.9","packages/peer-discovery-bootstrap":"10.1.5","packages/peer-discovery-mdns":"10.1.5","packages/peer-id":"4.2.4","packages/peer-record":"7.0.25","packages/peer-store":"10.1.5","packages/pnet":"1.0.0","packages/protocol-autonat":"1.1.5","packages/protocol-dcutr":"1.1.5","packages/protocol-echo":"1.1.5","packages/protocol-fetch":"1.1.5","packages/protocol-identify":"2.1.5","packages/protocol-perf":"3.1.5","packages/protocol-ping":"1.1.6","packages/pubsub":"9.0.26","packages/pubsub-floodsub":"9.1.5","packages/record":"4.0.4","packages/stream-multiplexer-mplex":"10.1.5","packages/transport-circuit-relay-v2":"1.1.5","packages/transport-tcp":"9.1.6","packages/transport-webrtc":"4.1.10","packages/transport-websockets":"8.2.0","packages/transport-webtransport":"4.1.9","packages/upnp-nat":"1.2.5","packages/utils":"5.4.9"} +{"packages/connection-encrypter-plaintext":"2.0.0","packages/connection-encrypter-tls":"2.0.0","packages/crypto":"5.0.0","packages/interface":"2.0.0","packages/interface-compliance-tests":"6.0.0","packages/interface-internal":"2.0.0","packages/kad-dht":"13.0.0","packages/keychain":"5.0.0","packages/libp2p":"2.0.0","packages/logger":"5.0.0","packages/metrics-devtools":"1.0.0","packages/metrics-prometheus":"4.0.0","packages/metrics-simple":"1.1.6","packages/multistream-select":"6.0.0","packages/peer-collections":"6.0.0","packages/peer-discovery-bootstrap":"11.0.0","packages/peer-discovery-mdns":"11.0.0","packages/peer-id":"5.0.0","packages/peer-record":"8.0.0","packages/peer-store":"11.0.0","packages/pnet":"2.0.0","packages/protocol-autonat":"2.0.0","packages/protocol-dcutr":"2.0.0","packages/protocol-echo":"2.0.0","packages/protocol-fetch":"2.0.0","packages/protocol-identify":"3.0.0","packages/protocol-perf":"4.0.0","packages/protocol-ping":"2.0.0","packages/pubsub":"10.0.0","packages/pubsub-floodsub":"10.0.0","packages/record":"4.0.4","packages/stream-multiplexer-mplex":"11.0.0","packages/transport-circuit-relay-v2":"2.0.0","packages/transport-tcp":"10.0.0","packages/transport-webrtc":"5.0.0","packages/transport-websockets":"9.0.0","packages/transport-webtransport":"5.0.0","packages/upnp-nat":"2.0.0","packages/utils":"6.0.0"} diff --git a/interop/package.json b/interop/package.json index 299ba4742a..7c97584e0e 100644 --- a/interop/package.json +++ b/interop/package.json @@ -20,18 +20,18 @@ "devDependencies": { "@chainsafe/libp2p-noise": "^15.0.0", "@chainsafe/libp2p-yamux": "^6.0.2", - "@libp2p/circuit-relay-v2": "^1.0.24", - "@libp2p/interface": "^1.7.0", - "@libp2p/identify": "^2.0.2", - "@libp2p/mplex": "^10.0.24", - "@libp2p/ping": "^1.0.19", - "@libp2p/tcp": "^9.0.26", - "@libp2p/webrtc": "^4.0.33", - "@libp2p/websockets": "^8.0.24", - "@libp2p/webtransport": "^4.0.32", + "@libp2p/circuit-relay-v2": "^2.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/identify": "^3.0.0", + "@libp2p/mplex": "^11.0.0", + "@libp2p/ping": "^2.0.0", + "@libp2p/tcp": "^10.0.0", + "@libp2p/webrtc": "^5.0.0", + "@libp2p/websockets": "^9.0.0", + "@libp2p/webtransport": "^5.0.0", "@multiformats/multiaddr": "^12.2.3", "aegir": "^44.0.1", - "libp2p": "^1.6.0", + "libp2p": "^2.0.0", "p-event": "^6.0.1", "redis": "^4.6.14" }, diff --git a/packages/connection-encrypter-plaintext/CHANGELOG.md b/packages/connection-encrypter-plaintext/CHANGELOG.md index 5fc67733c0..6b481ba0b1 100644 --- a/packages/connection-encrypter-plaintext/CHANGELOG.md +++ b/packages/connection-encrypter-plaintext/CHANGELOG.md @@ -72,6 +72,42 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/plaintext-v1.1.6...plaintext-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* the `connectionEncryption` option has been renamed `connectionEncrypters` +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* the final argument to `secureOutbound` and `secureInbound` in the `ConnectionEncrypter` interface is now an options object +* The `.code` property has been removed from most errors, use `.name` instead +* removes `localPeer: PeerId` first parameter from `secureInbound` and `secureOutbound` in `ConnectionEncrypter` + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* make connection securing abortable ([#2662](https://github.com/libp2p/js-libp2p/issues/2662)) ([51f7b57](https://github.com/libp2p/js-libp2p/commit/51f7b570c3a5bae8dd7da7edbc4145893328400e)) +* remove localPeer from secureInbound and secureOutbound ([#2304](https://github.com/libp2p/js-libp2p/issues/2304)) ([b435a21](https://github.com/libp2p/js-libp2p/commit/b435a214cf342c6015f474d26143fc27f0f673e9)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename connectionEncryption option to connectionEncrypters ([#2691](https://github.com/libp2p/js-libp2p/issues/2691)) ([6d72709](https://github.com/libp2p/js-libp2p/commit/6d72709ba5959388777610e2f71b8ba9522139b6)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * devDependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [1.1.6](https://github.com/libp2p/js-libp2p/compare/plaintext-v1.1.5...plaintext-v1.1.6) (2024-08-16) diff --git a/packages/connection-encrypter-plaintext/package.json b/packages/connection-encrypter-plaintext/package.json index e9e19612af..1603de965e 100644 --- a/packages/connection-encrypter-plaintext/package.json +++ b/packages/connection-encrypter-plaintext/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/plaintext", - "version": "1.1.6", + "version": "2.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", @@ -52,9 +52,9 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/peer-id": "^4.2.4", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/peer-id": "^5.0.0", "it-protobuf-stream": "^1.1.3", "it-stream-types": "^2.0.1", "protons-runtime": "^5.4.0", @@ -62,9 +62,9 @@ "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", "@multiformats/multiaddr": "^12.2.3", "aegir": "^44.0.1", "protons": "^7.5.0", diff --git a/packages/connection-encrypter-tls/CHANGELOG.md b/packages/connection-encrypter-tls/CHANGELOG.md index 8915bb447d..d658092425 100644 --- a/packages/connection-encrypter-tls/CHANGELOG.md +++ b/packages/connection-encrypter-tls/CHANGELOG.md @@ -6,6 +6,41 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/tls-v1.1.5...tls-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* the `connectionEncryption` option has been renamed `connectionEncrypters` +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* the final argument to `secureOutbound` and `secureInbound` in the `ConnectionEncrypter` interface is now an options object +* The `.code` property has been removed from most errors, use `.name` instead +* removes `localPeer: PeerId` first parameter from `secureInbound` and `secureOutbound` in `ConnectionEncrypter` + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* make connection securing abortable ([#2662](https://github.com/libp2p/js-libp2p/issues/2662)) ([51f7b57](https://github.com/libp2p/js-libp2p/commit/51f7b570c3a5bae8dd7da7edbc4145893328400e)) +* remove localPeer from secureInbound and secureOutbound ([#2304](https://github.com/libp2p/js-libp2p/issues/2304)) ([b435a21](https://github.com/libp2p/js-libp2p/commit/b435a214cf342c6015f474d26143fc27f0f673e9)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename connectionEncryption option to connectionEncrypters ([#2691](https://github.com/libp2p/js-libp2p/issues/2691)) ([6d72709](https://github.com/libp2p/js-libp2p/commit/6d72709ba5959388777610e2f71b8ba9522139b6)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [1.1.5](https://github.com/libp2p/js-libp2p/compare/tls-v1.1.4...tls-v1.1.5) (2024-08-15) diff --git a/packages/connection-encrypter-tls/package.json b/packages/connection-encrypter-tls/package.json index e85d5d3274..a6643d9d49 100644 --- a/packages/connection-encrypter-tls/package.json +++ b/packages/connection-encrypter-tls/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/tls", - "version": "1.1.5", + "version": "2.0.0", "description": "A connection encrypter that uses TLS 1.3", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/connection-encrypter-tls#readme", @@ -48,9 +48,9 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/peer-id": "^4.2.4", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/peer-id": "^5.0.0", "@peculiar/asn1-schema": "^2.3.8", "@peculiar/asn1-x509": "^2.3.8", "@peculiar/webcrypto": "^1.4.6", @@ -63,8 +63,8 @@ "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", "@multiformats/multiaddr": "^12.2.3", "aegir": "^44.0.1", "protons": "^7.5.0", diff --git a/packages/crypto/CHANGELOG.md b/packages/crypto/CHANGELOG.md index 4f39c700cb..de6a298fd5 100644 --- a/packages/crypto/CHANGELOG.md +++ b/packages/crypto/CHANGELOG.md @@ -17,6 +17,30 @@ * dependencies * @libp2p/interface bumped from ^1.0.2 to ^1.1.0 +## [5.0.0](https://github.com/libp2p/js-libp2p/compare/crypto-v4.1.9...crypto-v5.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + ## [4.1.9](https://github.com/libp2p/js-libp2p/compare/crypto-v4.1.8...crypto-v4.1.9) (2024-08-15) diff --git a/packages/crypto/package.json b/packages/crypto/package.json index b3bd5e93a7..1f12f91c31 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/crypto", - "version": "4.1.9", + "version": "5.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", @@ -92,7 +92,7 @@ "generate": "protons ./src/keys/keys.proto" }, "dependencies": { - "@libp2p/interface": "^1.7.0", + "@libp2p/interface": "^2.0.0", "@noble/curves": "^1.4.0", "@noble/hashes": "^1.4.0", "asn1js": "^3.0.5", diff --git a/packages/integration-tests/package.json b/packages/integration-tests/package.json index 49e4084f14..277b1f7c3e 100644 --- a/packages/integration-tests/package.json +++ b/packages/integration-tests/package.json @@ -36,32 +36,32 @@ "@chainsafe/libp2p-gossipsub": "^13.0.0", "@chainsafe/libp2p-noise": "^15.0.0", "@chainsafe/libp2p-yamux": "^6.0.2", - "@libp2p/bootstrap": "^10.0.23", - "@libp2p/circuit-relay-v2": "^1.0.23", - "@libp2p/crypto": "^4.1.1", + "@libp2p/bootstrap": "^11.0.0", + "@libp2p/circuit-relay-v2": "^2.0.0", + "@libp2p/crypto": "^5.0.0", "@libp2p/daemon-client": "^8.0.5", "@libp2p/daemon-server": "^7.0.5", - "@libp2p/dcutr": "^1.0.20", - "@libp2p/echo": "^1.0.7", - "@libp2p/fetch": "^1.0.17", - "@libp2p/floodsub": "^9.0.19", - "@libp2p/identify": "^2.0.1", - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-compliance-tests": "^5.4.4", - "@libp2p/interface-internal": "^1.2.1", + "@libp2p/dcutr": "^2.0.0", + "@libp2p/echo": "^2.0.0", + "@libp2p/fetch": "^2.0.0", + "@libp2p/floodsub": "^10.0.0", + "@libp2p/identify": "^3.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/interface-internal": "^2.0.0", "@libp2p/interop": "^12.2.0", - "@libp2p/kad-dht": "^12.0.16", - "@libp2p/logger": "^4.0.12", - "@libp2p/mdns": "^10.0.23", - "@libp2p/mplex": "^10.0.23", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/ping": "^1.0.18", - "@libp2p/plaintext": "^1.1.5", - "@libp2p/tcp": "^9.0.25", - "@libp2p/tls": "^1.0.10", - "@libp2p/webrtc": "^4.0.32", - "@libp2p/websockets": "^8.0.23", - "@libp2p/webtransport": "^4.0.32", + "@libp2p/kad-dht": "^13.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/mdns": "^11.0.0", + "@libp2p/mplex": "^11.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/ping": "^2.0.0", + "@libp2p/plaintext": "^2.0.0", + "@libp2p/tcp": "^10.0.0", + "@libp2p/tls": "^2.0.0", + "@libp2p/webrtc": "^5.0.0", + "@libp2p/websockets": "^9.0.0", + "@libp2p/webtransport": "^5.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.2.3", "@multiformats/multiaddr-matcher": "^1.2.1", @@ -72,7 +72,7 @@ "go-libp2p": "^1.5.0", "it-all": "^3.0.6", "it-pipe": "^3.0.1", - "libp2p": "^1.5.2", + "libp2p": "^2.0.0", "merge-options": "^3.0.4", "multiformats": "^13.1.0", "p-defer": "^4.0.1", diff --git a/packages/interface-compliance-tests/CHANGELOG.md b/packages/interface-compliance-tests/CHANGELOG.md index 68540457e0..120e191033 100644 --- a/packages/interface-compliance-tests/CHANGELOG.md +++ b/packages/interface-compliance-tests/CHANGELOG.md @@ -75,6 +75,45 @@ * dependencies * @libp2p/utils bumped from ^5.2.4 to ^5.2.5 +## [6.0.0](https://github.com/libp2p/js-libp2p/compare/interface-compliance-tests-v5.4.12...interface-compliance-tests-v6.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* the final argument to `secureOutbound` and `secureInbound` in the `ConnectionEncrypter` interface is now an options object +* The `.code` property has been removed from most errors, use `.name` instead +* removes `localPeer: PeerId` first parameter from `secureInbound` and `secureOutbound` in `ConnectionEncrypter` +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` +* `@libp2p/interface` no longer exports a `CustomEvent` polyfill + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* make connection securing abortable ([#2662](https://github.com/libp2p/js-libp2p/issues/2662)) ([51f7b57](https://github.com/libp2p/js-libp2p/commit/51f7b570c3a5bae8dd7da7edbc4145893328400e)) +* remove CustomEvent export from `@libp2p/interface` ([#2656](https://github.com/libp2p/js-libp2p/issues/2656)) ([fab6fc9](https://github.com/libp2p/js-libp2p/commit/fab6fc960b6bc03a6bc00ae5a4b3551d7d080c73)) +* remove localPeer from secureInbound and secureOutbound ([#2304](https://github.com/libp2p/js-libp2p/issues/2304)) ([b435a21](https://github.com/libp2p/js-libp2p/commit/b435a214cf342c6015f474d26143fc27f0f673e9)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/multistream-select bumped from ^5.1.17 to ^6.0.0 + * @libp2p/peer-collections bumped from ^5.2.9 to ^6.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + ## [5.4.12](https://github.com/libp2p/js-libp2p/compare/interface-compliance-tests-v5.4.11...interface-compliance-tests-v5.4.12) (2024-08-15) diff --git a/packages/interface-compliance-tests/package.json b/packages/interface-compliance-tests/package.json index 0804d7013a..11c54c0eb6 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": "5.4.12", + "version": "6.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", @@ -108,14 +108,14 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/logger": "^4.0.20", - "@libp2p/multistream-select": "^5.1.17", - "@libp2p/peer-collections": "^5.2.9", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/multistream-select": "^6.0.0", + "@libp2p/peer-collections": "^6.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.3", "abortable-iterator": "^5.0.1", "aegir": "^44.0.1", diff --git a/packages/interface-internal/CHANGELOG.md b/packages/interface-internal/CHANGELOG.md index 3c7f9a08f0..bee41e3793 100644 --- a/packages/interface-internal/CHANGELOG.md +++ b/packages/interface-internal/CHANGELOG.md @@ -32,6 +32,25 @@ * dependencies * @libp2p/peer-collections bumped from ^5.1.3 to ^5.1.4 +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/interface-internal-v1.3.4...interface-internal-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` + +### Bug Fixes + +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/peer-collections bumped from ^5.2.9 to ^6.0.0 + ## [1.3.4](https://github.com/libp2p/js-libp2p/compare/interface-internal-v1.3.3...interface-internal-v1.3.4) (2024-08-15) diff --git a/packages/interface-internal/package.json b/packages/interface-internal/package.json index 8ac97bbab5..ba1d74aa0d 100644 --- a/packages/interface-internal/package.json +++ b/packages/interface-internal/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/interface-internal", - "version": "1.3.4", + "version": "2.0.0", "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", @@ -48,8 +48,8 @@ "build": "aegir build" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/peer-collections": "^5.2.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/peer-collections": "^6.0.0", "@multiformats/multiaddr": "^12.2.3", "progress-events": "^1.0.0", "uint8arraylist": "^2.4.8" diff --git a/packages/interface/CHANGELOG.md b/packages/interface/CHANGELOG.md index 629d8ad75a..7ecf646c52 100644 --- a/packages/interface/CHANGELOG.md +++ b/packages/interface/CHANGELOG.md @@ -5,6 +5,34 @@ * 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)) +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/interface-v1.7.0...interface-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* instead of `CodeError`, use `TimeoutError`, `UnexpectedPeerError`, etc +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* the final argument to `secureOutbound` and `secureInbound` in the `ConnectionEncrypter` interface is now an options object +* The `.code` property has been removed from most errors, use `.name` instead +* removes `localPeer: PeerId` first parameter from `secureInbound` and `secureOutbound` in `ConnectionEncrypter` +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` +* `@libp2p/interface` no longer exports a `CustomEvent` polyfill + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* add optional generics to metric groups ([#2665](https://github.com/libp2p/js-libp2p/issues/2665)) ([df33069](https://github.com/libp2p/js-libp2p/commit/df330695a0ee627f79c51c1ab737cbf3278a91e8)) +* make connection securing abortable ([#2662](https://github.com/libp2p/js-libp2p/issues/2662)) ([51f7b57](https://github.com/libp2p/js-libp2p/commit/51f7b570c3a5bae8dd7da7edbc4145893328400e)) +* remove CodeError class ([#2688](https://github.com/libp2p/js-libp2p/issues/2688)) ([81ebe4e](https://github.com/libp2p/js-libp2p/commit/81ebe4e47e82508a847bb3af0af36cc249b78765)) +* remove CustomEvent export from `@libp2p/interface` ([#2656](https://github.com/libp2p/js-libp2p/issues/2656)) ([fab6fc9](https://github.com/libp2p/js-libp2p/commit/fab6fc960b6bc03a6bc00ae5a4b3551d7d080c73)) +* remove localPeer from secureInbound and secureOutbound ([#2304](https://github.com/libp2p/js-libp2p/issues/2304)) ([b435a21](https://github.com/libp2p/js-libp2p/commit/b435a214cf342c6015f474d26143fc27f0f673e9)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) + ## [1.7.0](https://github.com/libp2p/js-libp2p/compare/interface-v1.6.3...interface-v1.7.0) (2024-08-15) diff --git a/packages/interface/package.json b/packages/interface/package.json index 10ec90a608..909a0b2ba8 100644 --- a/packages/interface/package.json +++ b/packages/interface/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/interface", - "version": "1.7.0", + "version": "2.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 ea1360d8fe..2c917cee86 100644 --- a/packages/kad-dht/CHANGELOG.md +++ b/packages/kad-dht/CHANGELOG.md @@ -106,6 +106,41 @@ * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 * @libp2p/peer-store bumped from ^10.0.9 to ^10.0.10 +## [13.0.0](https://github.com/libp2p/js-libp2p/compare/kad-dht-v12.1.5...kad-dht-v13.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead +* `@libp2p/interface` no longer exports a `CustomEvent` polyfill + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove CustomEvent export from `@libp2p/interface` ([#2656](https://github.com/libp2p/js-libp2p/issues/2656)) ([fab6fc9](https://github.com/libp2p/js-libp2p/commit/fab6fc960b6bc03a6bc00ae5a4b3551d7d080c73)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/peer-collections bumped from ^5.2.9 to ^6.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/peer-store bumped from ^10.1.5 to ^11.0.0 + ## [12.1.5](https://github.com/libp2p/js-libp2p/compare/kad-dht-v12.1.4...kad-dht-v12.1.5) (2024-08-15) diff --git a/packages/kad-dht/package.json b/packages/kad-dht/package.json index b6281e5e6d..2d1b08440b 100644 --- a/packages/kad-dht/package.json +++ b/packages/kad-dht/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/kad-dht", - "version": "12.1.5", + "version": "13.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", @@ -57,13 +57,13 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/peer-collections": "^5.2.9", - "@libp2p/peer-id": "^4.2.4", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/peer-collections": "^6.0.0", + "@libp2p/peer-id": "^5.0.0", "@libp2p/record": "^4.0.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.3", "any-signal": "^4.1.1", "hashlru": "^2.3.0", @@ -89,9 +89,9 @@ "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", - "@libp2p/peer-store": "^10.1.5", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/peer-store": "^11.0.0", "@types/lodash.random": "^3.2.9", "@types/lodash.range": "^3.2.9", "@types/sinon": "^17.0.3", diff --git a/packages/keychain/CHANGELOG.md b/packages/keychain/CHANGELOG.md index bf78c3db3f..5099ecaa33 100644 --- a/packages/keychain/CHANGELOG.md +++ b/packages/keychain/CHANGELOG.md @@ -47,6 +47,33 @@ * devDependencies * @libp2p/peer-id-factory bumped from ^4.0.3 to ^4.0.4 +## [5.0.0](https://github.com/libp2p/js-libp2p/compare/keychain-v4.1.6...keychain-v5.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * devDependencies + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [4.1.6](https://github.com/libp2p/js-libp2p/compare/keychain-v4.1.5...keychain-v4.1.6) (2024-08-29) diff --git a/packages/keychain/package.json b/packages/keychain/package.json index 34fa086eae..5b03f6562d 100644 --- a/packages/keychain/package.json +++ b/packages/keychain/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/keychain", - "version": "4.1.6", + "version": "5.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", @@ -59,8 +59,8 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", "@noble/hashes": "^1.5.0", "asn1js": "^3.0.5", "interface-datastore": "^8.3.0", @@ -70,7 +70,7 @@ "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/logger": "^4.0.20", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "datastore-core": "^10.0.0" }, diff --git a/packages/libp2p/CHANGELOG.md b/packages/libp2p/CHANGELOG.md index 1132f3ef70..a8d6c57166 100644 --- a/packages/libp2p/CHANGELOG.md +++ b/packages/libp2p/CHANGELOG.md @@ -110,6 +110,66 @@ * @libp2p/tcp bumped from ^9.0.14 to ^9.0.15 * @libp2p/websockets bumped from ^8.0.14 to ^8.0.15 +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/libp2p-v1.9.4...libp2p-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* the `connectionEncryption` option has been renamed `connectionEncrypters` +* instead of `CodeError`, use `TimeoutError`, `UnexpectedPeerError`, etc +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* the final argument to `secureOutbound` and `secureInbound` in the `ConnectionEncrypter` interface is now an options object +* the autodialer has been removed as well as the corresponding config keys +* The `.code` property has been removed from most errors, use `.name` instead +* removes `localPeer: PeerId` first parameter from `secureInbound` and `secureOutbound` in `ConnectionEncrypter` +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` +* `@libp2p/interface` no longer exports a `CustomEvent` polyfill + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* abort connection only when abortConnectionOnPingFailure is true ([#2684](https://github.com/libp2p/js-libp2p/issues/2684)) ([2022036](https://github.com/libp2p/js-libp2p/commit/2022036dfcbbd32289beac28f2fa4c1810f39f2b)) +* make connection securing abortable ([#2662](https://github.com/libp2p/js-libp2p/issues/2662)) ([51f7b57](https://github.com/libp2p/js-libp2p/commit/51f7b570c3a5bae8dd7da7edbc4145893328400e)) +* remove autodialer ([#2639](https://github.com/libp2p/js-libp2p/issues/2639)) ([ab90179](https://github.com/libp2p/js-libp2p/commit/ab901790810d8ce59724af1706c9a9e74341b8ee)) +* remove CodeError class ([#2688](https://github.com/libp2p/js-libp2p/issues/2688)) ([81ebe4e](https://github.com/libp2p/js-libp2p/commit/81ebe4e47e82508a847bb3af0af36cc249b78765)) +* remove CustomEvent export from `@libp2p/interface` ([#2656](https://github.com/libp2p/js-libp2p/issues/2656)) ([fab6fc9](https://github.com/libp2p/js-libp2p/commit/fab6fc960b6bc03a6bc00ae5a4b3551d7d080c73)) +* remove localPeer from secureInbound and secureOutbound ([#2304](https://github.com/libp2p/js-libp2p/issues/2304)) ([b435a21](https://github.com/libp2p/js-libp2p/commit/b435a214cf342c6015f474d26143fc27f0f673e9)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) +* rename connectionEncryption option to connectionEncrypters ([#2691](https://github.com/libp2p/js-libp2p/issues/2691)) ([6d72709](https://github.com/libp2p/js-libp2p/commit/6d72709ba5959388777610e2f71b8ba9522139b6)) + + +### Documentation + +* remove mplex from docs ([b6681bd](https://github.com/libp2p/js-libp2p/commit/b6681bd2505ac2749192042c3f16b14a88a8656d)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/multistream-select bumped from ^5.1.17 to ^6.0.0 + * @libp2p/peer-collections bumped from ^5.2.9 to ^6.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/peer-store bumped from ^10.1.5 to ^11.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/circuit-relay-v2 bumped from ^1.1.5 to ^2.0.0 + * @libp2p/identify bumped from ^2.1.5 to ^3.0.0 + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/mplex bumped from ^10.1.5 to ^11.0.0 + * @libp2p/plaintext bumped from ^1.1.6 to ^2.0.0 + * @libp2p/tcp bumped from ^9.1.6 to ^10.0.0 + * @libp2p/websockets bumped from ^8.2.0 to ^9.0.0 + ## [1.9.4](https://github.com/libp2p/js-libp2p/compare/libp2p-v1.9.3...libp2p-v1.9.4) (2024-09-05) diff --git a/packages/libp2p/package.json b/packages/libp2p/package.json index 32b973c3e0..1e6c058344 100644 --- a/packages/libp2p/package.json +++ b/packages/libp2p/package.json @@ -1,6 +1,6 @@ { "name": "libp2p", - "version": "1.9.4", + "version": "2.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", @@ -85,15 +85,15 @@ "test:webkit": "aegir test -t browser -f \"./dist/test/**/*.spec.js\" -- --browser webkit" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/logger": "^4.0.20", - "@libp2p/multistream-select": "^5.1.17", - "@libp2p/peer-collections": "^5.2.9", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/peer-store": "^10.1.5", - "@libp2p/utils": "^5.4.9", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/multistream-select": "^6.0.0", + "@libp2p/peer-collections": "^6.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/peer-store": "^11.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/dns": "^1.0.6", "@multiformats/multiaddr": "^12.2.3", "@multiformats/multiaddr-matcher": "^1.2.1", @@ -114,13 +114,13 @@ }, "devDependencies": { "@chainsafe/libp2p-yamux": "^6.0.2", - "@libp2p/circuit-relay-v2": "^1.1.5", - "@libp2p/identify": "^2.1.5", - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/mplex": "^10.1.5", - "@libp2p/plaintext": "^1.1.6", - "@libp2p/tcp": "^9.1.6", - "@libp2p/websockets": "^8.2.0", + "@libp2p/circuit-relay-v2": "^2.0.0", + "@libp2p/identify": "^3.0.0", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/mplex": "^11.0.0", + "@libp2p/plaintext": "^2.0.0", + "@libp2p/tcp": "^10.0.0", + "@libp2p/websockets": "^9.0.0", "@multiformats/mafmt": "^12.1.6", "aegir": "^44.0.1", "delay": "^6.0.0", diff --git a/packages/logger/CHANGELOG.md b/packages/logger/CHANGELOG.md index 9c70cc166a..e013817c33 100644 --- a/packages/logger/CHANGELOG.md +++ b/packages/logger/CHANGELOG.md @@ -21,6 +21,32 @@ * devDependencies * @libp2p/peer-id bumped from ^4.0.2 to ^4.0.3 +## [5.0.0](https://github.com/libp2p/js-libp2p/compare/logger-v4.0.20...logger-v5.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * devDependencies + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + ## [4.0.20](https://github.com/libp2p/js-libp2p/compare/logger-v4.0.19...logger-v4.0.20) (2024-08-15) diff --git a/packages/logger/package.json b/packages/logger/package.json index a1e6441d03..60ebaf552b 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/logger", - "version": "4.0.20", + "version": "5.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", @@ -54,14 +54,14 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^1.7.0", + "@libp2p/interface": "^2.0.0", "@multiformats/multiaddr": "^12.2.3", "interface-datastore": "^8.3.0", "multiformats": "^13.1.0", "weald": "^1.0.2" }, "devDependencies": { - "@libp2p/peer-id": "^4.2.4", + "@libp2p/peer-id": "^5.0.0", "aegir": "^44.0.1", "sinon": "^18.0.0", "uint8arrays": "^5.1.0" diff --git a/packages/metrics-devtools/CHANGELOG.md b/packages/metrics-devtools/CHANGELOG.md index 45e82c9562..e3410f4878 100644 --- a/packages/metrics-devtools/CHANGELOG.md +++ b/packages/metrics-devtools/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [1.0.0](https://github.com/libp2p/js-libp2p/compare/devtools-metrics-v0.2.5...devtools-metrics-v1.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/simple-metrics bumped from ^1.1.5 to ^1.1.6 + * devDependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + ## [0.2.5](https://github.com/libp2p/js-libp2p/compare/devtools-metrics-v0.2.4...devtools-metrics-v0.2.5) (2024-08-15) diff --git a/packages/metrics-devtools/package.json b/packages/metrics-devtools/package.json index 17278b20f2..9c0fe76ed7 100644 --- a/packages/metrics-devtools/package.json +++ b/packages/metrics-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/devtools-metrics", - "version": "0.2.5", + "version": "1.0.0", "description": "Collect libp2p metrics and send them to browser DevTools", "author": "", "license": "Apache-2.0 OR MIT", @@ -67,11 +67,11 @@ "test:chrome": "aegir test -t browser --cov" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/logger": "^4.0.20", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/simple-metrics": "^1.1.5", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/simple-metrics": "^1.1.6", "@multiformats/multiaddr": "^12.3.0", "cborg": "^4.2.2", "it-pipe": "^3.0.1", @@ -81,7 +81,7 @@ "progress-events": "^1.0.0" }, "devDependencies": { - "@libp2p/crypto": "^4.1.9", + "@libp2p/crypto": "^5.0.0", "aegir": "^44.0.1", "sinon-ts": "^2.0.0" }, diff --git a/packages/metrics-prometheus/CHANGELOG.md b/packages/metrics-prometheus/CHANGELOG.md index de10351f25..6dec445cff 100644 --- a/packages/metrics-prometheus/CHANGELOG.md +++ b/packages/metrics-prometheus/CHANGELOG.md @@ -81,6 +81,30 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [4.0.0](https://github.com/libp2p/js-libp2p/compare/prometheus-metrics-v3.1.5...prometheus-metrics-v4.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead + +### Bug Fixes + +* add optional generics to metric groups ([#2665](https://github.com/libp2p/js-libp2p/issues/2665)) ([df33069](https://github.com/libp2p/js-libp2p/commit/df330695a0ee627f79c51c1ab737cbf3278a91e8)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * devDependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + ## [3.1.5](https://github.com/libp2p/js-libp2p/compare/prometheus-metrics-v3.1.4...prometheus-metrics-v3.1.5) (2024-08-15) diff --git a/packages/metrics-prometheus/package.json b/packages/metrics-prometheus/package.json index 7f733a38ba..b067b10379 100644 --- a/packages/metrics-prometheus/package.json +++ b/packages/metrics-prometheus/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/prometheus-metrics", - "version": "3.1.5", + "version": "4.0.0", "description": "Collect libp2p metrics for scraping by Prometheus or Graphana", "author": "", "license": "Apache-2.0 OR MIT", @@ -48,17 +48,17 @@ "test:electron-main": "aegir test -t electron-main --cov" }, "dependencies": { - "@libp2p/interface": "^1.7.0", + "@libp2p/interface": "^2.0.0", "it-foreach": "^2.1.0", "it-stream-types": "^2.0.1", "prom-client": "^15.1.2", "uint8arraylist": "^2.4.8" }, "devDependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", - "@libp2p/peer-id": "^4.2.4", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/peer-id": "^5.0.0", "@multiformats/multiaddr": "^12.2.3", "aegir": "^44.0.1", "it-drain": "^3.0.7", diff --git a/packages/metrics-simple/CHANGELOG.md b/packages/metrics-simple/CHANGELOG.md index f4159f7e8e..c612925dfc 100644 --- a/packages/metrics-simple/CHANGELOG.md +++ b/packages/metrics-simple/CHANGELOG.md @@ -5,6 +5,16 @@ * track stream metrics ([#2](https://github.com/libp2p/js-libp2p-simple-metrics/issues/2)) ([caafb3d](https://github.com/libp2p/js-libp2p-simple-metrics/commit/caafb3d103fd7df0a2a4e6b3e800f4bc9c35c58f)) +## [1.1.6](https://github.com/libp2p/js-libp2p/compare/simple-metrics-v1.1.5...simple-metrics-v1.1.6) (2024-09-11) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [1.1.5](https://github.com/libp2p/js-libp2p/compare/simple-metrics-v1.1.4...simple-metrics-v1.1.5) (2024-08-15) diff --git a/packages/metrics-simple/package.json b/packages/metrics-simple/package.json index 58ff83f721..71a4372c0f 100644 --- a/packages/metrics-simple/package.json +++ b/packages/metrics-simple/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/simple-metrics", - "version": "1.1.5", + "version": "1.1.6", "description": "Simple in-memory metrics gathering for libp2p", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/metrics-simple#readme", @@ -50,8 +50,8 @@ "dep-check": "aegir dep-check -i events" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/logger": "^4.0.20", + "@libp2p/interface": "^2.0.0", + "@libp2p/logger": "^5.0.0", "it-foreach": "^2.1.0", "it-stream-types": "^2.0.1" }, diff --git a/packages/multistream-select/CHANGELOG.md b/packages/multistream-select/CHANGELOG.md index 6305b2850d..c71ccd74f3 100644 --- a/packages/multistream-select/CHANGELOG.md +++ b/packages/multistream-select/CHANGELOG.md @@ -19,6 +19,26 @@ * devDependencies * @libp2p/logger bumped from ^4.0.1 to ^4.0.2 +## [6.0.0](https://github.com/libp2p/js-libp2p/compare/multistream-select-v5.1.17...multistream-select-v6.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * devDependencies + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [5.1.17](https://github.com/libp2p/js-libp2p/compare/multistream-select-v5.1.16...multistream-select-v5.1.17) (2024-08-15) diff --git a/packages/multistream-select/package.json b/packages/multistream-select/package.json index 9ff6d31ecf..6449f65cd1 100644 --- a/packages/multistream-select/package.json +++ b/packages/multistream-select/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/multistream-select", - "version": "5.1.17", + "version": "6.0.0", "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", @@ -58,7 +58,7 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^1.7.0", + "@libp2p/interface": "^2.0.0", "it-length-prefixed": "^9.0.4", "it-length-prefixed-stream": "^1.1.7", "it-stream-types": "^2.0.1", @@ -69,7 +69,7 @@ "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/logger": "^4.0.20", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "iso-random-stream": "^2.0.2", "it-all": "^3.0.6", diff --git a/packages/peer-collections/CHANGELOG.md b/packages/peer-collections/CHANGELOG.md index d809cab1e2..8c3022f16c 100644 --- a/packages/peer-collections/CHANGELOG.md +++ b/packages/peer-collections/CHANGELOG.md @@ -35,6 +35,28 @@ * devDependencies * @libp2p/peer-id-factory bumped from ^4.0.3 to ^4.0.4 +## [6.0.0](https://github.com/libp2p/js-libp2p/compare/peer-collections-v5.2.9...peer-collections-v6.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + ## [5.2.9](https://github.com/libp2p/js-libp2p/compare/peer-collections-v5.2.8...peer-collections-v5.2.9) (2024-08-15) diff --git a/packages/peer-collections/package.json b/packages/peer-collections/package.json index e2abc39fe2..d71ab98be4 100644 --- a/packages/peer-collections/package.json +++ b/packages/peer-collections/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/peer-collections", - "version": "5.2.9", + "version": "6.0.0", "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", @@ -54,13 +54,13 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/utils": "^6.0.0", "multiformats": "^13.2.2" }, "devDependencies": { - "@libp2p/crypto": "^4.1.9", + "@libp2p/crypto": "^5.0.0", "@types/sinon": "^17.0.3", "aegir": "^44.0.1", "sinon": "^18.0.0", diff --git a/packages/peer-discovery-bootstrap/CHANGELOG.md b/packages/peer-discovery-bootstrap/CHANGELOG.md index aeb0eeccb2..1460530b97 100644 --- a/packages/peer-discovery-bootstrap/CHANGELOG.md +++ b/packages/peer-discovery-bootstrap/CHANGELOG.md @@ -83,6 +83,29 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [11.0.0](https://github.com/libp2p/js-libp2p/compare/bootstrap-v10.1.5...bootstrap-v11.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* the autodialer has been removed as well as the corresponding config keys + +### Bug Fixes + +* remove autodialer ([#2639](https://github.com/libp2p/js-libp2p/issues/2639)) ([ab90179](https://github.com/libp2p/js-libp2p/commit/ab901790810d8ce59724af1706c9a9e74341b8ee)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.3 to ^2.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [10.1.5](https://github.com/libp2p/js-libp2p/compare/bootstrap-v10.1.4...bootstrap-v10.1.5) (2024-08-15) diff --git a/packages/peer-discovery-bootstrap/package.json b/packages/peer-discovery-bootstrap/package.json index 8c79d45d68..5e41121aa9 100644 --- a/packages/peer-discovery-bootstrap/package.json +++ b/packages/peer-discovery-bootstrap/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/bootstrap", - "version": "10.1.5", + "version": "11.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", @@ -54,15 +54,15 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.3", - "@libp2p/peer-id": "^4.2.4", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/peer-id": "^5.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.2.3" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "sinon-ts": "^2.0.0" }, diff --git a/packages/peer-discovery-mdns/CHANGELOG.md b/packages/peer-discovery-mdns/CHANGELOG.md index 9cd66b1474..aad7e4ea66 100644 --- a/packages/peer-discovery-mdns/CHANGELOG.md +++ b/packages/peer-discovery-mdns/CHANGELOG.md @@ -105,6 +105,33 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [11.0.0](https://github.com/libp2p/js-libp2p/compare/mdns-v10.1.5...mdns-v11.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* `@libp2p/interface` no longer exports a `CustomEvent` polyfill + +### Bug Fixes + +* remove CustomEvent export from `@libp2p/interface` ([#2656](https://github.com/libp2p/js-libp2p/issues/2656)) ([fab6fc9](https://github.com/libp2p/js-libp2p/commit/fab6fc960b6bc03a6bc00ae5a4b3551d7d080c73)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [10.1.5](https://github.com/libp2p/js-libp2p/compare/mdns-v10.1.4...mdns-v10.1.5) (2024-08-15) diff --git a/packages/peer-discovery-mdns/package.json b/packages/peer-discovery-mdns/package.json index dbad664a8e..f876cb435e 100644 --- a/packages/peer-discovery-mdns/package.json +++ b/packages/peer-discovery-mdns/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/mdns", - "version": "10.1.5", + "version": "11.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", @@ -50,19 +50,19 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.3", "@types/multicast-dns": "^7.2.4", "dns-packet": "^5.6.1", "multicast-dns": "^7.2.5" }, "devDependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "p-wait-for": "^5.0.2", "sinon-ts": "^2.0.0" diff --git a/packages/peer-id/CHANGELOG.md b/packages/peer-id/CHANGELOG.md index d834102118..2160fb05f7 100644 --- a/packages/peer-id/CHANGELOG.md +++ b/packages/peer-id/CHANGELOG.md @@ -11,6 +11,31 @@ * dependencies * @libp2p/interface bumped from ^1.0.1 to ^1.0.2 +## [5.0.0](https://github.com/libp2p/js-libp2p/compare/peer-id-v4.2.4...peer-id-v5.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + ## [4.2.4](https://github.com/libp2p/js-libp2p/compare/peer-id-v4.2.3...peer-id-v4.2.4) (2024-08-15) diff --git a/packages/peer-id/package.json b/packages/peer-id/package.json index 66066bd79c..cde2d53500 100644 --- a/packages/peer-id/package.json +++ b/packages/peer-id/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/peer-id", - "version": "4.2.4", + "version": "5.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", @@ -54,8 +54,8 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", "multiformats": "^13.1.0", "uint8arrays": "^5.1.0" }, diff --git a/packages/peer-record/CHANGELOG.md b/packages/peer-record/CHANGELOG.md index 5add25cc14..9ba38a142c 100644 --- a/packages/peer-record/CHANGELOG.md +++ b/packages/peer-record/CHANGELOG.md @@ -60,6 +60,33 @@ * dependencies * @libp2p/utils bumped from ^5.2.4 to ^5.2.5 +## [8.0.0](https://github.com/libp2p/js-libp2p/compare/peer-record-v7.0.25...peer-record-v8.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + ## [7.0.25](https://github.com/libp2p/js-libp2p/compare/peer-record-v7.0.24...peer-record-v7.0.25) (2024-08-15) diff --git a/packages/peer-record/package.json b/packages/peer-record/package.json index 87fa4c3fe8..0e3651781b 100644 --- a/packages/peer-record/package.json +++ b/packages/peer-record/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/peer-record", - "version": "7.0.25", + "version": "8.0.0", "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", @@ -61,10 +61,10 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.3", "multiformats": "^13.2.2", "protons-runtime": "^5.4.0", diff --git a/packages/peer-store/CHANGELOG.md b/packages/peer-store/CHANGELOG.md index 9089806b9e..900abaf747 100644 --- a/packages/peer-store/CHANGELOG.md +++ b/packages/peer-store/CHANGELOG.md @@ -68,6 +68,36 @@ * dependencies * @libp2p/peer-record bumped from ^7.0.8 to ^7.0.9 +## [11.0.0](https://github.com/libp2p/js-libp2p/compare/peer-store-v10.1.5...peer-store-v11.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/peer-collections bumped from ^5.2.9 to ^6.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/peer-record bumped from ^7.0.25 to ^8.0.0 + * devDependencies + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [10.1.5](https://github.com/libp2p/js-libp2p/compare/peer-store-v10.1.4...peer-store-v10.1.5) (2024-08-15) diff --git a/packages/peer-store/package.json b/packages/peer-store/package.json index d8914fbb9d..9af3058b84 100644 --- a/packages/peer-store/package.json +++ b/packages/peer-store/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/peer-store", - "version": "10.1.5", + "version": "11.0.0", "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", @@ -59,11 +59,11 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/peer-collections": "^5.2.9", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/peer-record": "^7.0.25", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/peer-collections": "^6.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/peer-record": "^8.0.0", "@multiformats/multiaddr": "^12.2.3", "interface-datastore": "^8.3.0", "it-all": "^3.0.6", @@ -74,7 +74,7 @@ "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/logger": "^4.0.20", + "@libp2p/logger": "^5.0.0", "@types/sinon": "^17.0.3", "aegir": "^44.0.1", "datastore-core": "^10.0.0", diff --git a/packages/pnet/CHANGELOG.md b/packages/pnet/CHANGELOG.md new file mode 100644 index 0000000000..414c2a1011 --- /dev/null +++ b/packages/pnet/CHANGELOG.md @@ -0,0 +1,102 @@ +# Changelog + +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/pnet-v1.0.0...pnet-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data +* imports from `libp2p/dcutr` now need to be from `@libp2p/dcutr` +* the `isStarted` method has been removed from the `Startable` interface + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) +* check service dependencies on startup ([#2586](https://github.com/libp2p/js-libp2p/issues/2586)) ([d1f1c2b](https://github.com/libp2p/js-libp2p/commit/d1f1c2be78bd195f404e62627c2c9f545845e5f5)) +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* add @libp2p/record module to monorepo ([#2466](https://github.com/libp2p/js-libp2p/issues/2466)) ([3ffecc5](https://github.com/libp2p/js-libp2p/commit/3ffecc5bfe806a678c1b0228ff830f1811630718)) +* align dependency versions and update project config ([#2357](https://github.com/libp2p/js-libp2p/issues/2357)) ([8bbd436](https://github.com/libp2p/js-libp2p/commit/8bbd43628343f995804eea3102d0571ddcebc5c4)) +* do not wait for stream reads and writes at the same time ([#2290](https://github.com/libp2p/js-libp2p/issues/2290)) ([10ea197](https://github.com/libp2p/js-libp2p/commit/10ea19700ae0c464734c88eb5922e2faeb27446a)) +* mark all packages side-effect free ([#2360](https://github.com/libp2p/js-libp2p/issues/2360)) ([3c96210](https://github.com/libp2p/js-libp2p/commit/3c96210cf6343b21199996918bae3a0f60220046)) +* remove extra deps ([#2340](https://github.com/libp2p/js-libp2p/issues/2340)) ([53e83ee](https://github.com/libp2p/js-libp2p/commit/53e83eea50410391ec9cff4cd8097210b93894ff)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* restore lost commits ([#2268](https://github.com/libp2p/js-libp2p/issues/2268)) ([5775f1d](https://github.com/libp2p/js-libp2p/commit/5775f1df4f5561500e622dc0788fdacbc74e2755)) +* update patch versions of deps ([#2397](https://github.com/libp2p/js-libp2p/issues/2397)) ([0321812](https://github.com/libp2p/js-libp2p/commit/0321812e731515558f35ae2d53242035a343a21a)) +* update project config ([48444f7](https://github.com/libp2p/js-libp2p/commit/48444f750ebe3f03290bf70e84d7590edc030ea4)) +* use logging component everywhere ([#2228](https://github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Documentation + +* add doc-check to all modules ([#2419](https://github.com/libp2p/js-libp2p/issues/2419)) ([6cdb243](https://github.com/libp2p/js-libp2p/commit/6cdb24362de9991e749f76b16fcd4c130e8106a0)) +* fix broken links in docs site ([#2497](https://github.com/libp2p/js-libp2p/issues/2497)) ([fd1f834](https://github.com/libp2p/js-libp2p/commit/fd1f8343db030d74cd08bca6a0cffda93532765f)), closes [#2423](https://github.com/libp2p/js-libp2p/issues/2423) + + +### Dependencies + +* bump aegir from 42.2.11 to 43.0.1 ([#2571](https://github.com/libp2p/js-libp2p/issues/2571)) ([757fb26](https://github.com/libp2p/js-libp2p/commit/757fb2674f0a3e06fd46d3ff63f7f461c32d47d2)) +* bump aegir from 43.0.3 to 44.0.1 ([#2603](https://github.com/libp2p/js-libp2p/issues/2603)) ([944935f](https://github.com/libp2p/js-libp2p/commit/944935f8dbcc1083e4cb4a02b49a0aab3083d3d9)) +* bump uint8arrays from 4.0.10 to 5.0.0 ([#2307](https://github.com/libp2p/js-libp2p/issues/2307)) ([6d11e82](https://github.com/libp2p/js-libp2p/commit/6d11e8268b16e0bf4bc520f42abb71a228d5dc57)) +* update sibling dependencies ([178fe26](https://github.com/libp2p/js-libp2p/commit/178fe2671a7af9870bdd111de9073843a2a29b34)) +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/pnet-v1.0.0...pnet-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead +* the `minSendBytes` option has been removed from Mplex since the transport can now decide how to optimise sending data +* imports from `libp2p/dcutr` now need to be from `@libp2p/dcutr` +* the `isStarted` method has been removed from the `Startable` interface + +### Features + +* allow stream muxers and connection encrypters to yield lists ([#2256](https://github.com/libp2p/js-libp2p/issues/2256)) ([4a474d5](https://github.com/libp2p/js-libp2p/commit/4a474d54d3299e0ac30fa143b57436b3cf45e426)) +* check service dependencies on startup ([#2586](https://github.com/libp2p/js-libp2p/issues/2586)) ([d1f1c2b](https://github.com/libp2p/js-libp2p/commit/d1f1c2be78bd195f404e62627c2c9f545845e5f5)) +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* add @libp2p/record module to monorepo ([#2466](https://github.com/libp2p/js-libp2p/issues/2466)) ([3ffecc5](https://github.com/libp2p/js-libp2p/commit/3ffecc5bfe806a678c1b0228ff830f1811630718)) +* align dependency versions and update project config ([#2357](https://github.com/libp2p/js-libp2p/issues/2357)) ([8bbd436](https://github.com/libp2p/js-libp2p/commit/8bbd43628343f995804eea3102d0571ddcebc5c4)) +* do not wait for stream reads and writes at the same time ([#2290](https://github.com/libp2p/js-libp2p/issues/2290)) ([10ea197](https://github.com/libp2p/js-libp2p/commit/10ea19700ae0c464734c88eb5922e2faeb27446a)) +* mark all packages side-effect free ([#2360](https://github.com/libp2p/js-libp2p/issues/2360)) ([3c96210](https://github.com/libp2p/js-libp2p/commit/3c96210cf6343b21199996918bae3a0f60220046)) +* remove extra deps ([#2340](https://github.com/libp2p/js-libp2p/issues/2340)) ([53e83ee](https://github.com/libp2p/js-libp2p/commit/53e83eea50410391ec9cff4cd8097210b93894ff)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* restore lost commits ([#2268](https://github.com/libp2p/js-libp2p/issues/2268)) ([5775f1d](https://github.com/libp2p/js-libp2p/commit/5775f1df4f5561500e622dc0788fdacbc74e2755)) +* update patch versions of deps ([#2397](https://github.com/libp2p/js-libp2p/issues/2397)) ([0321812](https://github.com/libp2p/js-libp2p/commit/0321812e731515558f35ae2d53242035a343a21a)) +* update project config ([48444f7](https://github.com/libp2p/js-libp2p/commit/48444f750ebe3f03290bf70e84d7590edc030ea4)) +* use logging component everywhere ([#2228](https://github.com/libp2p/js-libp2p/issues/2228)) ([e5dfde0](https://github.com/libp2p/js-libp2p/commit/e5dfde0883191c93903ca552433f177d48adf0b3)) + + +### Documentation + +* add doc-check to all modules ([#2419](https://github.com/libp2p/js-libp2p/issues/2419)) ([6cdb243](https://github.com/libp2p/js-libp2p/commit/6cdb24362de9991e749f76b16fcd4c130e8106a0)) +* fix broken links in docs site ([#2497](https://github.com/libp2p/js-libp2p/issues/2497)) ([fd1f834](https://github.com/libp2p/js-libp2p/commit/fd1f8343db030d74cd08bca6a0cffda93532765f)), closes [#2423](https://github.com/libp2p/js-libp2p/issues/2423) + + +### Dependencies + +* bump aegir from 42.2.11 to 43.0.1 ([#2571](https://github.com/libp2p/js-libp2p/issues/2571)) ([757fb26](https://github.com/libp2p/js-libp2p/commit/757fb2674f0a3e06fd46d3ff63f7f461c32d47d2)) +* bump aegir from 43.0.3 to 44.0.1 ([#2603](https://github.com/libp2p/js-libp2p/issues/2603)) ([944935f](https://github.com/libp2p/js-libp2p/commit/944935f8dbcc1083e4cb4a02b49a0aab3083d3d9)) +* bump uint8arrays from 4.0.10 to 5.0.0 ([#2307](https://github.com/libp2p/js-libp2p/issues/2307)) ([6d11e82](https://github.com/libp2p/js-libp2p/commit/6d11e8268b16e0bf4bc520f42abb71a228d5dc57)) +* update sibling dependencies ([178fe26](https://github.com/libp2p/js-libp2p/commit/178fe2671a7af9870bdd111de9073843a2a29b34)) + + +### Refactors + +* extract DCUtR into separate module ([#2220](https://github.com/libp2p/js-libp2p/issues/2220)) ([d2c3e72](https://github.com/libp2p/js-libp2p/commit/d2c3e7235b64558c6cace414c54a42659fee2970)) +* remove isStarted method from Startable ([#2145](https://github.com/libp2p/js-libp2p/issues/2145)) ([fca208f](https://github.com/libp2p/js-libp2p/commit/fca208f3763af041aa37b1cb915d2bc777acb96d)) + + +### Refactors + +* extract DCUtR into separate module ([#2220](https://github.com/libp2p/js-libp2p/issues/2220)) ([d2c3e72](https://github.com/libp2p/js-libp2p/commit/d2c3e7235b64558c6cace414c54a42659fee2970)) +* remove isStarted method from Startable ([#2145](https://github.com/libp2p/js-libp2p/issues/2145)) ([fca208f](https://github.com/libp2p/js-libp2p/commit/fca208f3763af041aa37b1cb915d2bc777acb96d)) diff --git a/packages/pnet/package.json b/packages/pnet/package.json index 4a4eb4ee3d..3102ea8d13 100644 --- a/packages/pnet/package.json +++ b/packages/pnet/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/pnet", - "version": "1.0.0", + "version": "2.0.0", "description": "Implementation of Connection protection management via a shared secret", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/pnet#readme", @@ -50,8 +50,8 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.3.1", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", "it-byte-stream": "^1.0.10", "it-map": "^3.1.0", "it-pair": "^2.0.6", @@ -62,9 +62,9 @@ "xsalsa20": "^1.2.0" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^5.4.4", - "@libp2p/logger": "^4.0.12", - "@libp2p/peer-id": "^4.2.4", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/peer-id": "^5.0.0", "@multiformats/multiaddr": "^12.2.3", "@types/xsalsa20": "^1.1.3", "aegir": "^44.0.1", diff --git a/packages/protocol-autonat/CHANGELOG.md b/packages/protocol-autonat/CHANGELOG.md index f6dab39f3a..56d1f3a53d 100644 --- a/packages/protocol-autonat/CHANGELOG.md +++ b/packages/protocol-autonat/CHANGELOG.md @@ -55,6 +55,36 @@ * dependencies * @libp2p/utils bumped from ^5.2.4 to ^5.2.5 +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/autonat-v1.1.5...autonat-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [1.1.5](https://github.com/libp2p/js-libp2p/compare/autonat-v1.1.4...autonat-v1.1.5) (2024-08-15) diff --git a/packages/protocol-autonat/package.json b/packages/protocol-autonat/package.json index cc9b89f919..f40086742f 100644 --- a/packages/protocol-autonat/package.json +++ b/packages/protocol-autonat/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/autonat", - "version": "1.1.5", + "version": "2.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", @@ -52,10 +52,10 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.3", "it-first": "^3.0.6", "it-length-prefixed": "^9.0.4", @@ -67,8 +67,8 @@ "uint8arraylist": "^2.4.8" }, "devDependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/logger": "^4.0.20", + "@libp2p/crypto": "^5.0.0", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "it-all": "^3.0.6", "it-pushable": "^3.2.3", diff --git a/packages/protocol-dcutr/CHANGELOG.md b/packages/protocol-dcutr/CHANGELOG.md index 0fd6f14b71..2ca3cfae80 100644 --- a/packages/protocol-dcutr/CHANGELOG.md +++ b/packages/protocol-dcutr/CHANGELOG.md @@ -44,6 +44,34 @@ * dependencies * @libp2p/utils bumped from ^5.2.4 to ^5.2.5 +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/dcutr-v1.1.5...dcutr-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + ## [1.1.5](https://github.com/libp2p/js-libp2p/compare/dcutr-v1.1.4...dcutr-v1.1.5) (2024-08-15) diff --git a/packages/protocol-dcutr/package.json b/packages/protocol-dcutr/package.json index 594ba707e0..ca680da2e3 100644 --- a/packages/protocol-dcutr/package.json +++ b/packages/protocol-dcutr/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/dcutr", - "version": "1.1.5", + "version": "2.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", @@ -52,9 +52,9 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.3", "@multiformats/multiaddr-matcher": "^1.2.1", "delay": "^6.0.0", diff --git a/packages/protocol-echo/CHANGELOG.md b/packages/protocol-echo/CHANGELOG.md index 49236f4c4d..ad06841faf 100644 --- a/packages/protocol-echo/CHANGELOG.md +++ b/packages/protocol-echo/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/echo-v1.1.5...echo-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* the `connectionEncryption` option has been renamed `connectionEncrypters` +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* rename connectionEncryption option to connectionEncrypters ([#2691](https://github.com/libp2p/js-libp2p/issues/2691)) ([6d72709](https://github.com/libp2p/js-libp2p/commit/6d72709ba5959388777610e2f71b8ba9522139b6)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * devDependencies + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [1.1.5](https://github.com/libp2p/js-libp2p/compare/echo-v1.1.4...echo-v1.1.5) (2024-08-15) diff --git a/packages/protocol-echo/package.json b/packages/protocol-echo/package.json index 45a2229578..d38b9d1c1c 100644 --- a/packages/protocol-echo/package.json +++ b/packages/protocol-echo/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/echo", - "version": "1.1.5", + "version": "2.0.0", "description": "Implementation of an Echo protocol", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-echo#readme", @@ -51,12 +51,12 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", "it-pipe": "^3.0.1" }, "devDependencies": { - "@libp2p/logger": "^4.0.20", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "it-all": "^3.0.6", "it-pair": "^2.0.6", diff --git a/packages/protocol-fetch/CHANGELOG.md b/packages/protocol-fetch/CHANGELOG.md index 8b05af1ab3..0db0ca916a 100644 --- a/packages/protocol-fetch/CHANGELOG.md +++ b/packages/protocol-fetch/CHANGELOG.md @@ -48,6 +48,35 @@ * devDependencies * @libp2p/peer-id-factory bumped from ^4.0.3 to ^4.0.4 +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/fetch-v1.1.5...fetch-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * devDependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + ## [1.1.5](https://github.com/libp2p/js-libp2p/compare/fetch-v1.1.4...fetch-v1.1.5) (2024-08-15) diff --git a/packages/protocol-fetch/package.json b/packages/protocol-fetch/package.json index 38fafb9c91..518097819a 100644 --- a/packages/protocol-fetch/package.json +++ b/packages/protocol-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/fetch", - "version": "1.1.5", + "version": "2.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", @@ -52,17 +52,17 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", "it-protobuf-stream": "^1.1.3", "protons-runtime": "^5.4.0", "uint8arraylist": "^2.4.8", "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/logger": "^4.0.20", - "@libp2p/peer-id": "^4.2.4", + "@libp2p/crypto": "^5.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/peer-id": "^5.0.0", "aegir": "^44.0.1", "it-pair": "^2.0.6", "protons": "^7.5.0", diff --git a/packages/protocol-identify/CHANGELOG.md b/packages/protocol-identify/CHANGELOG.md index dae089a866..b9caebe462 100644 --- a/packages/protocol-identify/CHANGELOG.md +++ b/packages/protocol-identify/CHANGELOG.md @@ -76,6 +76,39 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [3.0.0](https://github.com/libp2p/js-libp2p/compare/identify-v2.1.5...identify-v3.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/peer-record bumped from ^7.0.25 to ^8.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [2.1.5](https://github.com/libp2p/js-libp2p/compare/identify-v2.1.4...identify-v2.1.5) (2024-08-15) diff --git a/packages/protocol-identify/package.json b/packages/protocol-identify/package.json index cddb2b4c33..60f38ab5e3 100644 --- a/packages/protocol-identify/package.json +++ b/packages/protocol-identify/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/identify", - "version": "2.1.5", + "version": "3.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", @@ -52,11 +52,11 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/peer-record": "^7.0.25", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/peer-record": "^8.0.0", "@multiformats/multiaddr": "^12.2.3", "@multiformats/multiaddr-matcher": "^1.2.1", "it-drain": "^3.0.7", @@ -68,8 +68,8 @@ "wherearewe": "^2.0.1" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "delay": "^6.0.0", "it-length-prefixed": "^9.0.4", diff --git a/packages/protocol-perf/CHANGELOG.md b/packages/protocol-perf/CHANGELOG.md index 6cfb77cda9..406b234ea3 100644 --- a/packages/protocol-perf/CHANGELOG.md +++ b/packages/protocol-perf/CHANGELOG.md @@ -82,6 +82,35 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [4.0.0](https://github.com/libp2p/js-libp2p/compare/perf-v3.1.5...perf-v4.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* the `connectionEncryption` option has been renamed `connectionEncrypters` +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` + +### Bug Fixes + +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) +* rename connectionEncryption option to connectionEncrypters ([#2691](https://github.com/libp2p/js-libp2p/issues/2691)) ([6d72709](https://github.com/libp2p/js-libp2p/commit/6d72709ba5959388777610e2f71b8ba9522139b6)) + + +### Documentation + +* remove mplex from docs ([b6681bd](https://github.com/libp2p/js-libp2p/commit/b6681bd2505ac2749192042c3f16b14a88a8656d)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [3.1.5](https://github.com/libp2p/js-libp2p/compare/perf-v3.1.4...perf-v3.1.5) (2024-08-15) diff --git a/packages/protocol-perf/package.json b/packages/protocol-perf/package.json index 49d001c208..d4e826e0d8 100644 --- a/packages/protocol-perf/package.json +++ b/packages/protocol-perf/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/perf", - "version": "3.1.5", + "version": "4.0.0", "description": "Implementation of Perf Protocol", "author": "@maschad / @marcopolo", "license": "Apache-2.0 OR MIT", @@ -52,14 +52,14 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", "@multiformats/multiaddr": "^12.2.3", "it-pushable": "^3.2.3" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "it-last": "^3.0.6", "it-pair": "^2.0.6", diff --git a/packages/protocol-ping/CHANGELOG.md b/packages/protocol-ping/CHANGELOG.md index c10171b452..bab82b4dee 100644 --- a/packages/protocol-ping/CHANGELOG.md +++ b/packages/protocol-ping/CHANGELOG.md @@ -50,6 +50,37 @@ * devDependencies * @libp2p/peer-id-factory bumped from ^4.0.3 to ^4.0.4 +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/ping-v1.1.6...ping-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * devDependencies + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + ## [1.1.6](https://github.com/libp2p/js-libp2p/compare/ping-v1.1.5...ping-v1.1.6) (2024-08-29) diff --git a/packages/protocol-ping/package.json b/packages/protocol-ping/package.json index 052525192c..2e78294708 100644 --- a/packages/protocol-ping/package.json +++ b/packages/protocol-ping/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/ping", - "version": "1.1.6", + "version": "2.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", @@ -50,17 +50,17 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", "@multiformats/multiaddr": "^12.2.3", "it-first": "^3.0.6", "it-pipe": "^3.0.1", "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/logger": "^4.0.20", - "@libp2p/peer-id": "^4.2.4", + "@libp2p/logger": "^5.0.0", + "@libp2p/peer-id": "^5.0.0", "aegir": "^44.0.1", "it-byte-stream": "^1.0.10", "it-pair": "^2.0.6", diff --git a/packages/pubsub-floodsub/CHANGELOG.md b/packages/pubsub-floodsub/CHANGELOG.md index a0ece2f2d2..a137d7d276 100644 --- a/packages/pubsub-floodsub/CHANGELOG.md +++ b/packages/pubsub-floodsub/CHANGELOG.md @@ -98,6 +98,37 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [10.0.0](https://github.com/libp2p/js-libp2p/compare/floodsub-v9.1.5...floodsub-v10.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/pubsub bumped from ^9.0.26 to ^10.0.0 + * devDependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/peer-collections bumped from ^5.2.9 to ^6.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + ## [9.1.5](https://github.com/libp2p/js-libp2p/compare/floodsub-v9.1.4...floodsub-v9.1.5) (2024-08-15) diff --git a/packages/pubsub-floodsub/package.json b/packages/pubsub-floodsub/package.json index a43bfe1840..9105871be8 100644 --- a/packages/pubsub-floodsub/package.json +++ b/packages/pubsub-floodsub/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/floodsub", - "version": "9.1.5", + "version": "10.0.0", "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", @@ -60,18 +60,18 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/pubsub": "^9.0.26", + "@libp2p/interface": "^2.0.0", + "@libp2p/pubsub": "^10.0.0", "protons-runtime": "^5.4.0", "uint8arraylist": "^2.4.8", "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", - "@libp2p/peer-collections": "^5.2.9", - "@libp2p/peer-id": "^4.2.4", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/peer-collections": "^6.0.0", + "@libp2p/peer-id": "^5.0.0", "@multiformats/multiaddr": "^12.2.3", "@types/sinon": "^17.0.3", "aegir": "^44.0.1", diff --git a/packages/pubsub/CHANGELOG.md b/packages/pubsub/CHANGELOG.md index 3edb254560..03484246e2 100644 --- a/packages/pubsub/CHANGELOG.md +++ b/packages/pubsub/CHANGELOG.md @@ -75,6 +75,39 @@ * dependencies * @libp2p/utils bumped from ^5.2.4 to ^5.2.5 +## [10.0.0](https://github.com/libp2p/js-libp2p/compare/pubsub-v9.0.26...pubsub-v10.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead +* `@libp2p/interface` no longer exports a `CustomEvent` polyfill + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove CustomEvent export from `@libp2p/interface` ([#2656](https://github.com/libp2p/js-libp2p/issues/2656)) ([fab6fc9](https://github.com/libp2p/js-libp2p/commit/fab6fc960b6bc03a6bc00ae5a4b3551d7d080c73)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/peer-collections bumped from ^5.2.9 to ^6.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [9.0.26](https://github.com/libp2p/js-libp2p/compare/pubsub-v9.0.25...pubsub-v9.0.26) (2024-08-15) diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 7e06062740..791ba02a58 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/pubsub", - "version": "9.0.26", + "version": "10.0.0", "description": "libp2p pubsub base class", "license": "Apache-2.0 OR MIT", "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/pubsub#readme", @@ -84,12 +84,12 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/peer-collections": "^5.2.9", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/peer-collections": "^6.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/utils": "^6.0.0", "it-length-prefixed": "^9.0.4", "it-pipe": "^3.0.1", "it-pushable": "^3.2.3", @@ -99,7 +99,7 @@ "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/logger": "^4.0.20", + "@libp2p/logger": "^5.0.0", "@types/sinon": "^17.0.3", "aegir": "^44.0.1", "delay": "^6.0.0", diff --git a/packages/stream-multiplexer-mplex/CHANGELOG.md b/packages/stream-multiplexer-mplex/CHANGELOG.md index 722d0c864b..e27446cca6 100644 --- a/packages/stream-multiplexer-mplex/CHANGELOG.md +++ b/packages/stream-multiplexer-mplex/CHANGELOG.md @@ -78,6 +78,35 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [11.0.0](https://github.com/libp2p/js-libp2p/compare/mplex-v10.1.5...mplex-v11.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* instead of `CodeError`, use `TimeoutError`, `UnexpectedPeerError`, etc +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* add deprecation warning to mplex ([3b43a37](https://github.com/libp2p/js-libp2p/commit/3b43a373dc81f3d4f619e0ff7929161ec5370e97)) +* remove CodeError class ([#2688](https://github.com/libp2p/js-libp2p/issues/2688)) ([81ebe4e](https://github.com/libp2p/js-libp2p/commit/81ebe4e47e82508a847bb3af0af36cc249b78765)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [10.1.5](https://github.com/libp2p/js-libp2p/compare/mplex-v10.1.4...mplex-v10.1.5) (2024-08-15) diff --git a/packages/stream-multiplexer-mplex/package.json b/packages/stream-multiplexer-mplex/package.json index b47a3f0d3a..867b871333 100644 --- a/packages/stream-multiplexer-mplex/package.json +++ b/packages/stream-multiplexer-mplex/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/mplex", - "version": "10.1.5", + "version": "11.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", @@ -62,8 +62,8 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/utils": "^6.0.0", "it-pipe": "^3.0.1", "it-pushable": "^3.2.3", "it-stream-types": "^2.0.1", @@ -72,8 +72,8 @@ "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "benchmark": "^2.1.4", "cborg": "^4.2.0", diff --git a/packages/transport-circuit-relay-v2/CHANGELOG.md b/packages/transport-circuit-relay-v2/CHANGELOG.md index 8be75e7746..2ad4a0a5d5 100644 --- a/packages/transport-circuit-relay-v2/CHANGELOG.md +++ b/packages/transport-circuit-relay-v2/CHANGELOG.md @@ -101,6 +101,39 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/circuit-relay-v2-v1.1.5...circuit-relay-v2-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/peer-collections bumped from ^5.2.9 to ^6.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/peer-record bumped from ^7.0.25 to ^8.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + ## [1.1.5](https://github.com/libp2p/js-libp2p/compare/circuit-relay-v2-v1.1.4...circuit-relay-v2-v1.1.5) (2024-08-15) diff --git a/packages/transport-circuit-relay-v2/package.json b/packages/transport-circuit-relay-v2/package.json index 36d695c186..7b07ab5067 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": "1.1.5", + "version": "2.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", @@ -52,12 +52,12 @@ "doc-check": "aegir doc-check" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/peer-collections": "^5.2.9", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/peer-record": "^7.0.25", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/peer-collections": "^6.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/peer-record": "^8.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.2.3", "any-signal": "^4.1.1", @@ -72,7 +72,7 @@ "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^5.4.12", + "@libp2p/interface-compliance-tests": "^6.0.0", "aegir": "^44.0.1", "delay": "^6.0.0", "it-drain": "^3.0.7", diff --git a/packages/transport-tcp/CHANGELOG.md b/packages/transport-tcp/CHANGELOG.md index f2cdbd59db..89e5089832 100644 --- a/packages/transport-tcp/CHANGELOG.md +++ b/packages/transport-tcp/CHANGELOG.md @@ -89,6 +89,35 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [10.0.0](https://github.com/libp2p/js-libp2p/compare/tcp-v9.1.6...tcp-v10.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* instead of `CodeError`, use `TimeoutError`, `UnexpectedPeerError`, etc +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* add optional generics to metric groups ([#2665](https://github.com/libp2p/js-libp2p/issues/2665)) ([df33069](https://github.com/libp2p/js-libp2p/commit/df330695a0ee627f79c51c1ab737cbf3278a91e8)) +* remove CodeError class ([#2688](https://github.com/libp2p/js-libp2p/issues/2688)) ([81ebe4e](https://github.com/libp2p/js-libp2p/commit/81ebe4e47e82508a847bb3af0af36cc249b78765)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [9.1.6](https://github.com/libp2p/js-libp2p/compare/tcp-v9.1.5...tcp-v9.1.6) (2024-09-05) diff --git a/packages/transport-tcp/package.json b/packages/transport-tcp/package.json index 4cf44e6773..913e170be6 100644 --- a/packages/transport-tcp/package.json +++ b/packages/transport-tcp/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/tcp", - "version": "9.1.6", + "version": "10.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", @@ -60,8 +60,8 @@ "test:electron-main": "aegir test -t electron-main" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.2.3", "@types/sinon": "^17.0.3", @@ -69,8 +69,8 @@ "stream-to-it": "^1.0.1" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "it-all": "^3.0.6", "it-pipe": "^3.0.1", diff --git a/packages/transport-webrtc/CHANGELOG.md b/packages/transport-webrtc/CHANGELOG.md index 87b8a11d00..a95d760764 100644 --- a/packages/transport-webrtc/CHANGELOG.md +++ b/packages/transport-webrtc/CHANGELOG.md @@ -111,6 +111,52 @@ * @libp2p/websockets bumped from ^8.0.14 to ^8.0.15 * libp2p bumped from ^1.2.2 to ^1.2.3 +## [5.0.0](https://github.com/libp2p/js-libp2p/compare/webrtc-v4.1.10...webrtc-v5.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* the `connectionEncryption` option has been renamed `connectionEncrypters` +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* the final argument to `secureOutbound` and `secureInbound` in the `ConnectionEncrypter` interface is now an options object +* the autodialer has been removed as well as the corresponding config keys +* The `.code` property has been removed from most errors, use `.name` instead +* removes `localPeer: PeerId` first parameter from `secureInbound` and `secureOutbound` in `ConnectionEncrypter` +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* make connection securing abortable ([#2662](https://github.com/libp2p/js-libp2p/issues/2662)) ([51f7b57](https://github.com/libp2p/js-libp2p/commit/51f7b570c3a5bae8dd7da7edbc4145893328400e)) +* remove autodialer ([#2639](https://github.com/libp2p/js-libp2p/issues/2639)) ([ab90179](https://github.com/libp2p/js-libp2p/commit/ab901790810d8ce59724af1706c9a9e74341b8ee)) +* remove localPeer from secureInbound and secureOutbound ([#2304](https://github.com/libp2p/js-libp2p/issues/2304)) ([b435a21](https://github.com/libp2p/js-libp2p/commit/b435a214cf342c6015f474d26143fc27f0f673e9)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) +* rename connectionEncryption option to connectionEncrypters ([#2691](https://github.com/libp2p/js-libp2p/issues/2691)) ([6d72709](https://github.com/libp2p/js-libp2p/commit/6d72709ba5959388777610e2f71b8ba9522139b6)) + + +### Dependencies + +* bump react-native-webrtc from 118.0.7 to 124.0.4 ([#2685](https://github.com/libp2p/js-libp2p/issues/2685)) ([5214dec](https://github.com/libp2p/js-libp2p/commit/5214dec4a0b7e7cb82056b9a681f1c77e82d34a2)) +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/circuit-relay-v2 bumped from ^1.1.5 to ^2.0.0 + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/identify bumped from ^2.1.5 to ^3.0.0 + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/websockets bumped from ^8.2.0 to ^9.0.0 + * libp2p bumped from ^1.9.4 to ^2.0.0 + ## [4.1.10](https://github.com/libp2p/js-libp2p/compare/webrtc-v4.1.9...webrtc-v4.1.10) (2024-09-05) diff --git a/packages/transport-webrtc/package.json b/packages/transport-webrtc/package.json index 83c7f81e67..d6d403d70b 100644 --- a/packages/transport-webrtc/package.json +++ b/packages/transport-webrtc/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/webrtc", - "version": "4.1.10", + "version": "5.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", @@ -51,10 +51,10 @@ }, "dependencies": { "@chainsafe/libp2p-noise": "^15.0.0", - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.2.3", "@multiformats/multiaddr-matcher": "^1.2.1", @@ -78,12 +78,12 @@ }, "devDependencies": { "@chainsafe/libp2p-yamux": "^6.0.2", - "@libp2p/circuit-relay-v2": "^1.1.5", - "@libp2p/crypto": "^4.1.9", - "@libp2p/identify": "^2.1.5", - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", - "@libp2p/websockets": "^8.2.0", + "@libp2p/circuit-relay-v2": "^2.0.0", + "@libp2p/crypto": "^5.0.0", + "@libp2p/identify": "^3.0.0", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/websockets": "^9.0.0", "@types/sinon": "^17.0.3", "aegir": "^44.0.1", "delay": "^6.0.0", @@ -93,7 +93,7 @@ "it-pair": "^2.0.6", "it-pipe": "^3.0.1", "it-to-buffer": "^4.0.7", - "libp2p": "^1.9.4", + "libp2p": "^2.0.0", "p-retry": "^6.2.0", "protons": "^7.5.0", "sinon": "^18.0.0", diff --git a/packages/transport-websockets/CHANGELOG.md b/packages/transport-websockets/CHANGELOG.md index ea73712abc..42fca66082 100644 --- a/packages/transport-websockets/CHANGELOG.md +++ b/packages/transport-websockets/CHANGELOG.md @@ -70,6 +70,28 @@ * devDependencies * @libp2p/interface-compliance-tests bumped from ^5.3.0 to ^5.3.1 +## [9.0.0](https://github.com/libp2p/js-libp2p/compare/websockets-v8.2.0...websockets-v9.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/interface-compliance-tests bumped from ^5.4.12 to ^6.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [8.2.0](https://github.com/libp2p/js-libp2p/compare/websockets-v8.1.4...websockets-v8.2.0) (2024-08-15) diff --git a/packages/transport-websockets/package.json b/packages/transport-websockets/package.json index b88e553586..a5835600c8 100644 --- a/packages/transport-websockets/package.json +++ b/packages/transport-websockets/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/websockets", - "version": "8.2.0", + "version": "9.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", @@ -74,8 +74,8 @@ "test:electron-main": "aegir test -t electron-main -f ./dist/test/node.js --cov" }, "dependencies": { - "@libp2p/interface": "^1.7.0", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/mafmt": "^12.1.6", "@multiformats/multiaddr": "^12.2.3", "@multiformats/multiaddr-to-uri": "^10.0.1", @@ -88,8 +88,8 @@ "ws": "^8.17.0" }, "devDependencies": { - "@libp2p/interface-compliance-tests": "^5.4.12", - "@libp2p/logger": "^4.0.20", + "@libp2p/interface-compliance-tests": "^6.0.0", + "@libp2p/logger": "^5.0.0", "aegir": "^44.0.1", "is-loopback-addr": "^2.0.2", "it-all": "^3.0.6", diff --git a/packages/transport-webtransport/CHANGELOG.md b/packages/transport-webtransport/CHANGELOG.md index 8b407d4542..fee68093c4 100644 --- a/packages/transport-webtransport/CHANGELOG.md +++ b/packages/transport-webtransport/CHANGELOG.md @@ -96,6 +96,50 @@ * devDependencies * libp2p bumped from ^1.2.2 to ^1.2.3 +## [5.0.0](https://github.com/libp2p/js-libp2p/compare/webtransport-v4.1.9...webtransport-v5.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* the `connectionEncryption` option has been renamed `connectionEncrypters` +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* the final argument to `secureOutbound` and `secureInbound` in the `ConnectionEncrypter` interface is now an options object +* the autodialer has been removed as well as the corresponding config keys +* The `.code` property has been removed from most errors, use `.name` instead +* removes `localPeer: PeerId` first parameter from `secureInbound` and `secureOutbound` in `ConnectionEncrypter` + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* make connection securing abortable ([#2662](https://github.com/libp2p/js-libp2p/issues/2662)) ([51f7b57](https://github.com/libp2p/js-libp2p/commit/51f7b570c3a5bae8dd7da7edbc4145893328400e)) +* remove autodialer ([#2639](https://github.com/libp2p/js-libp2p/issues/2639)) ([ab90179](https://github.com/libp2p/js-libp2p/commit/ab901790810d8ce59724af1706c9a9e74341b8ee)) +* remove localPeer from secureInbound and secureOutbound ([#2304](https://github.com/libp2p/js-libp2p/issues/2304)) ([b435a21](https://github.com/libp2p/js-libp2p/commit/b435a214cf342c6015f474d26143fc27f0f673e9)) +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* rename connectionEncryption option to connectionEncrypters ([#2691](https://github.com/libp2p/js-libp2p/issues/2691)) ([6d72709](https://github.com/libp2p/js-libp2p/commit/6d72709ba5959388777610e2f71b8ba9522139b6)) + + +### Documentation + +* remove mplex from docs ([b6681bd](https://github.com/libp2p/js-libp2p/commit/b6681bd2505ac2749192042c3f16b14a88a8656d)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/ping bumped from ^1.1.6 to ^2.0.0 + * libp2p bumped from ^1.9.4 to ^2.0.0 + ## [4.1.9](https://github.com/libp2p/js-libp2p/compare/webtransport-v4.1.8...webtransport-v4.1.9) (2024-09-05) diff --git a/packages/transport-webtransport/package.json b/packages/transport-webtransport/package.json index db8fa28e92..c685610667 100644 --- a/packages/transport-webtransport/package.json +++ b/packages/transport-webtransport/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/webtransport", - "version": "4.1.9", + "version": "5.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", @@ -51,9 +51,9 @@ }, "dependencies": { "@chainsafe/libp2p-noise": "^15.0.0", - "@libp2p/interface": "^1.7.0", - "@libp2p/peer-id": "^4.2.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/peer-id": "^5.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.3", "@multiformats/multiaddr-matcher": "^1.2.1", "it-stream-types": "^2.0.1", @@ -64,17 +64,17 @@ "uint8arrays": "^5.1.0" }, "devDependencies": { - "@libp2p/crypto": "^4.1.9", + "@libp2p/crypto": "^5.0.0", "@libp2p/daemon-client": "^8.0.5", - "@libp2p/logger": "^4.0.20", - "@libp2p/ping": "^1.1.6", + "@libp2p/logger": "^5.0.0", + "@libp2p/ping": "^2.0.0", "@noble/hashes": "^1.4.0", "aegir": "^44.0.1", "execa": "^9.1.0", "go-libp2p": "^1.2.0", "it-map": "^3.1.0", "it-to-buffer": "^4.0.7", - "libp2p": "^1.9.4", + "libp2p": "^2.0.0", "p-defer": "^4.0.1", "p-wait-for": "^5.0.2" }, diff --git a/packages/upnp-nat/CHANGELOG.md b/packages/upnp-nat/CHANGELOG.md index 762448deac..a296a7464e 100644 --- a/packages/upnp-nat/CHANGELOG.md +++ b/packages/upnp-nat/CHANGELOG.md @@ -64,6 +64,36 @@ * dependencies * @libp2p/utils bumped from ^5.2.4 to ^5.2.5 +## [2.0.0](https://github.com/libp2p/js-libp2p/compare/upnp-nat-v1.2.5...upnp-nat-v2.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/interface-internal bumped from ^1.3.4 to ^2.0.0 + * @libp2p/utils bumped from ^5.4.9 to ^6.0.0 + * devDependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + * @libp2p/peer-id bumped from ^4.2.4 to ^5.0.0 + ## [1.2.5](https://github.com/libp2p/js-libp2p/compare/upnp-nat-v1.2.4...upnp-nat-v1.2.5) (2024-08-15) diff --git a/packages/upnp-nat/package.json b/packages/upnp-nat/package.json index 3d89c8f023..c31c1c17cf 100644 --- a/packages/upnp-nat/package.json +++ b/packages/upnp-nat/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/upnp-nat", - "version": "1.2.5", + "version": "2.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", @@ -51,16 +51,16 @@ }, "dependencies": { "@achingbrain/nat-port-mapper": "^1.0.13", - "@libp2p/interface": "^1.7.0", - "@libp2p/interface-internal": "^1.3.4", - "@libp2p/utils": "^5.4.9", + "@libp2p/interface": "^2.0.0", + "@libp2p/interface-internal": "^2.0.0", + "@libp2p/utils": "^6.0.0", "@multiformats/multiaddr": "^12.2.3", "wherearewe": "^2.0.1" }, "devDependencies": { - "@libp2p/crypto": "^4.1.9", - "@libp2p/logger": "^4.0.20", - "@libp2p/peer-id": "^4.2.4", + "@libp2p/crypto": "^5.0.0", + "@libp2p/logger": "^5.0.0", + "@libp2p/peer-id": "^5.0.0", "aegir": "^44.0.1", "sinon-ts": "^2.0.0" }, diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index ca9f24790f..4dce107e86 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -36,6 +36,35 @@ * @libp2p/logger bumped from ^4.0.2 to ^4.0.3 * @libp2p/peer-id-factory bumped from ^4.0.1 to ^4.0.2 +## [6.0.0](https://github.com/libp2p/js-libp2p/compare/utils-v5.4.9...utils-v6.0.0) (2024-09-11) + + +### ⚠ BREAKING CHANGES + +* - `@libp2p/peer-id-factory` has been removed, use `generateKeyPair` and `peerIdFromPrivateKey` instead +* The `.code` property has been removed from most errors, use `.name` instead +* * The `notifyOnTransient` property of `libp2p.register` has been renamed `notifyOnLimitedConnection` + +### Features + +* use `.name` property instead of `.code` for errors ([#2655](https://github.com/libp2p/js-libp2p/issues/2655)) ([0d20426](https://github.com/libp2p/js-libp2p/commit/0d20426fd5ea19b03345c70289bbd692e4348e1f)) + + +### Bug Fixes + +* remove private key field from peer id ([#2660](https://github.com/libp2p/js-libp2p/issues/2660)) ([3eeb0c7](https://github.com/libp2p/js-libp2p/commit/3eeb0c705bd58285a6e1ec9fcbb6987c5959d504)), closes [#2659](https://github.com/libp2p/js-libp2p/issues/2659) +* remove while loop for setbit & getbit ([#2687](https://github.com/libp2p/js-libp2p/issues/2687)) ([a142bb6](https://github.com/libp2p/js-libp2p/commit/a142bb642b3a232479c79a7da235508f0022dd94)) +* rename "transient" connections to "limited" ([#2645](https://github.com/libp2p/js-libp2p/issues/2645)) ([2988602](https://github.com/libp2p/js-libp2p/commit/29886022eddc8a793217b2c888beac8aef63f1be)), closes [#2622](https://github.com/libp2p/js-libp2p/issues/2622) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * @libp2p/crypto bumped from ^4.1.9 to ^5.0.0 + * @libp2p/interface bumped from ^1.7.0 to ^2.0.0 + * @libp2p/logger bumped from ^4.0.20 to ^5.0.0 + ## [5.4.9](https://github.com/libp2p/js-libp2p/compare/utils-v5.4.8...utils-v5.4.9) (2024-08-15) diff --git a/packages/utils/package.json b/packages/utils/package.json index 16308e14dc..1198d28a5f 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@libp2p/utils", - "version": "5.4.9", + "version": "6.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", @@ -152,9 +152,9 @@ }, "dependencies": { "@chainsafe/is-ip": "^2.0.2", - "@libp2p/crypto": "^4.1.9", - "@libp2p/interface": "^1.7.0", - "@libp2p/logger": "^4.0.20", + "@libp2p/crypto": "^5.0.0", + "@libp2p/interface": "^2.0.0", + "@libp2p/logger": "^5.0.0", "@multiformats/multiaddr": "^12.2.3", "@multiformats/multiaddr-matcher": "^1.2.1", "@sindresorhus/fnv1a": "^3.1.0",