From 3d28f707c130017d65f8e6e2d079c45d044aa2b4 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 19 Feb 2025 18:03:26 +0200 Subject: [PATCH 1/3] Add changelog Signed-off-by: Alexandru Vasile --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90f51db6..fa20b5c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,26 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.9.1] - 2025-01-19 + +This release enhances compatibility between litep2p and libp2p by backporting the latest Yamux updates. Additionally, it includes various improvements and fixes to boost the stability and performance of the WebSocket stream and the multistream-select protocol. + +### Changed + +- yamux: Switch to upstream implementation while keeping the controller API ([#320](https://github.com/paritytech/litep2p/pull/320)) +- req-resp: Replace SubstreamSet with FuturesStream ([#321](https://github.com/paritytech/litep2p/pull/321)) +- cargo: Bring up to date multiple dependencies ([#324](https://github.com/paritytech/litep2p/pull/324)) +- build(deps): bump hickory-proto from 0.24.1 to 0.24.3 ([#323](https://github.com/paritytech/litep2p/pull/323)) +- build(deps): bump openssl from 0.10.66 to 0.10.70 ([#322](https://github.com/paritytech/litep2p/pull/322)) + +### Fixed + +- websocket/stream: Fix unexpected EOF on `Poll::Pending` state poisoning ([#327](https://github.com/paritytech/litep2p/pull/327)) +- websocket/stream: Avoid memory allocations on flushing ([#325](https://github.com/paritytech/litep2p/pull/325)) +- multistream-select: Enforce `io::error` instead of empty protocols ([#318](https://github.com/paritytech/litep2p/pull/318)) +- multistream: Do not wait for negotiation in poll_close ([#319](https://github.com/paritytech/litep2p/pull/319)) + + ## [0.9.0] - 2025-01-14 This release provides partial results to speed up `GetRecord` queries in the Kademlia protocol. From 4e3a8ddf71c08567fc964e3e011db6780c084e97 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Wed, 19 Feb 2025 18:05:50 +0200 Subject: [PATCH 2/3] cargo: Bump version and add lock Signed-off-by: Alexandru Vasile --- Cargo.lock | 60 +++++++++++++++++++++++++++--------------------------- Cargo.toml | 2 +- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f62fac11..784e3763 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3700,112 +3700,112 @@ checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" [[package]] name = "litep2p" version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ca6ee50a125dc4fc4e9a3ae3640010796d1d07bc517a0ac715fdf0b24a0b6ac" dependencies = [ "async-trait", - "asynchronous-codec 0.7.0", "bs58 0.5.1", "bytes", "cid 0.10.1", "ed25519-dalek", "futures", "futures-timer", - "futures_ringbuf", "hex-literal", "hickory-resolver", "indexmap 2.7.1", "libc", - "libp2p 0.51.4", "mockall 0.13.1", "multiaddr 0.17.1", "multihash 0.17.0", "network-interface", + "nohash-hasher", "parking_lot 0.12.3", "pin-project", "prost 0.12.6", "prost-build", - "quickcheck", - "quinn 0.9.4", "rand", - "rand_xorshift", "rcgen", "ring 0.16.20", "rustls 0.20.9", - "sc-network", - "sc-utils 17.0.0", "serde", - "serde_json", "sha2 0.10.8", - "simple-dns 0.9.3", + "simple-dns 0.7.1", "smallvec", "snow", "socket2 0.5.8", - "str0m", - "thiserror 2.0.11", + "static_assertions", + "thiserror 1.0.69", "tokio", "tokio-stream", - "tokio-tungstenite 0.26.1", + "tokio-tungstenite 0.20.1", "tokio-util", "tracing", - "tracing-subscriber", - "uint 0.10.0", + "uint 0.9.5", "unsigned-varint 0.8.0", "url", - "webpki", "x25519-dalek 2.0.1", - "x509-parser 0.17.0", - "yamux 0.13.4", + "x509-parser 0.16.0", "yasna", "zeroize", ] [[package]] name = "litep2p" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ca6ee50a125dc4fc4e9a3ae3640010796d1d07bc517a0ac715fdf0b24a0b6ac" +version = "0.9.1" dependencies = [ "async-trait", + "asynchronous-codec 0.7.0", "bs58 0.5.1", "bytes", "cid 0.10.1", "ed25519-dalek", "futures", "futures-timer", + "futures_ringbuf", "hex-literal", "hickory-resolver", "indexmap 2.7.1", "libc", + "libp2p 0.51.4", "mockall 0.13.1", "multiaddr 0.17.1", "multihash 0.17.0", "network-interface", - "nohash-hasher", "parking_lot 0.12.3", "pin-project", "prost 0.12.6", "prost-build", + "quickcheck", + "quinn 0.9.4", "rand", + "rand_xorshift", "rcgen", "ring 0.16.20", "rustls 0.20.9", + "sc-network", + "sc-utils 17.0.0", "serde", + "serde_json", "sha2 0.10.8", - "simple-dns 0.7.1", + "simple-dns 0.9.3", "smallvec", "snow", "socket2 0.5.8", - "static_assertions", - "thiserror 1.0.69", + "str0m", + "thiserror 2.0.11", "tokio", "tokio-stream", - "tokio-tungstenite 0.20.1", + "tokio-tungstenite 0.26.1", "tokio-util", "tracing", - "uint 0.9.5", + "tracing-subscriber", + "uint 0.10.0", "unsigned-varint 0.8.0", "url", + "webpki", "x25519-dalek 2.0.1", - "x509-parser 0.16.0", + "x509-parser 0.17.0", + "yamux 0.13.4", "yasna", "zeroize", ] @@ -5840,7 +5840,7 @@ dependencies = [ "ip_network", "libp2p 0.52.4", "linked_hash_set", - "litep2p 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "litep2p 0.9.0", "log", "mockall 0.11.4", "once_cell", @@ -5901,7 +5901,7 @@ dependencies = [ "bs58 0.5.1", "ed25519-dalek", "libp2p-identity 0.2.10", - "litep2p 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "litep2p 0.9.0", "log", "multiaddr 0.18.2", "multihash 0.19.3", diff --git a/Cargo.toml b/Cargo.toml index 296d5e9c..44a1a34a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "litep2p" description = "Peer-to-peer networking library" license = "MIT" -version = "0.9.0" +version = "0.9.1" edition = "2021" [build-dependencies] From 1a0a018062b4f31a7adb080dc5a368b31493250f Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Thu, 20 Feb 2025 11:55:49 +0200 Subject: [PATCH 3/3] Update changelog Signed-off-by: Alexandru Vasile --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa20b5c9..b8a2c6aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.9.1] - 2025-01-19 -This release enhances compatibility between litep2p and libp2p by backporting the latest Yamux updates. Additionally, it includes various improvements and fixes to boost the stability and performance of the WebSocket stream and the multistream-select protocol. +This release enhances compatibility between litep2p and libp2p by using the latest Yamux upstream version. Additionally, it includes various improvements and fixes to boost the stability and performance of the WebSocket stream and the multistream-select protocol. ### Changed