From b3fcca8b8418a793220faafb3c0a35d118ff68d3 Mon Sep 17 00:00:00 2001 From: DrHuangMHT Date: Fri, 10 Jan 2025 20:50:06 +0800 Subject: [PATCH] chore(swarm): append missing changelog Add missing changelog entry for #5242. Pull-Request: #5806. --- libp2p/CHANGELOG.md | 7 +++++++ swarm/CHANGELOG.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/libp2p/CHANGELOG.md b/libp2p/CHANGELOG.md index 9e7194e2a69..59bf2e81383 100644 --- a/libp2p/CHANGELOG.md +++ b/libp2p/CHANGELOG.md @@ -15,6 +15,13 @@ - Expose swarm builder phase errors. See [PR 5726](https://github.com/libp2p/rust-libp2p/pull/5726). +- Deprecate `ConnectionHandler::{InboundOpenInfo, OutboundOpenInfo}` associated type. + Previously, users could tag pending sub streams with custom data and retrieve the data + after the substream has been negotiated. + But substreams themselves are completely interchangeable, users should instead track + additional data inside `ConnectionHandler` after negotiation. + See [PR 5242](https://github.com/libp2p/rust-libp2p/pull/5242). + ## 0.54.1 - Update individual crates. diff --git a/swarm/CHANGELOG.md b/swarm/CHANGELOG.md index f1ad994bd1b..250d347430b 100644 --- a/swarm/CHANGELOG.md +++ b/swarm/CHANGELOG.md @@ -12,6 +12,13 @@ - Update default for idle-connection-timeout to 10s. See [PR 4967](https://github.com/libp2p/rust-libp2p/pull/4967). +- Deprecate `ConnectionHandler::{InboundOpenInfo, OutboundOpenInfo}` associated type. + Previously, users could tag pending sub streams with custom data and retrieve the data + after the substream has been negotiated. + But substreams themselves are completely interchangeable, users should instead track + additional data inside `ConnectionHandler` after negotiation. + See [PR 5242](https://github.com/libp2p/rust-libp2p/pull/5242). + ## 0.45.1 - Update `libp2p-swarm-derive` to version `0.35.0`, see [PR 5545]