From 03e48e6789db085f3d2cbd2d4c181a18da825645 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 5 Apr 2024 17:24:41 +0300 Subject: [PATCH 1/3] Add changelog with old changes Signed-off-by: Alexandru Vasile --- CHANGELOG.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..4d43522c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,44 @@ +# Changelog + +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.2.0] - 2023-09-05 + +This is the second release of litep2p, v0.2.0. The quality of the first release was so bad that this release is a complete rewrite of the library. + +Support is added for the following features: + +* Transport protocols: + * TCP + * QUIC + * WebRTC + * WebSocket + +* Protocols: + * [`/ipfs/identify/1.0.0`](https://github.com/libp2p/specs/tree/master/identify) + * [`/ipfs/ping/1.0.0`](https://github.com/libp2p/specs/blob/master/ping/ping.md) + * [`/ipfs/kad/1.0.0`](https://github.com/libp2p/specs/tree/master/kad-dht) + * [`/ipfs/bitswap/1.2.0`](https://github.com/ipfs/specs/blob/main/BITSWAP.md) + * Request-response protocol + * Notification protocol + * Multicast DNS + * API for creating custom protocols + +This time the architecture has been designed to be extensible and integrating new transport and/or user-level protocols should be easier. Additionally, the test coverage is higher both in terms of unit and integration tests. The project also contains conformance tests which test the behavior of `litep2p` against, [`rust-libp2p`](https://github.com/libp2p/rust-libp2p/), [`go-libp2p`](https://github.com/libp2p/go-libp2p/) and Substrate's [`sc-network`](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/client/network). Currently the Substrate conformance tests are not enabled by default as they require unpublished/unaccepted changes to Substrate. + +## [0.1.0] - 2023-04-04 + +This is the first release of `litep2p`, v0.1.0. + +Support is added for the following: + +* TCP + Noise + Yamux (compatibility with `libp2p`) +* [`/ipfs/identify/1.0.0`](https://github.com/libp2p/specs/tree/master/identify) +* [`/ipfs/ping/1.0.0`](https://github.com/libp2p/specs/blob/master/ping/ping.md) +* Request-response protocol +* Notification protocol + +The code quality is atrocious but it works and the second release focuses on providing high test coverage for the library. After that is done and most of the functionality is covered (unit, integration and conformance tests, benchmarks), the focus can be turned to refactoring the code into something clean and efficient. From 227791dcb0da8709508fab87d0ea320c49a50ac6 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 5 Apr 2024 17:28:40 +0300 Subject: [PATCH 2/3] changelog: Release for 0.3 Signed-off-by: Alexandru Vasile --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d43522c..a8c5deff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ 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.3.0] - 2023-04-05 + +### Added + +- Expose `reuse_port` option for TCP and WebSocket transports ([#69](https://github.com/paritytech/litep2p/pull/69)) +- protocol/mdns: Use `SO_REUSEPORT` for the mDNS socket ([#68](https://github.com/paritytech/litep2p/pull/68)) +- Add support for protocol/agent version ([#64](https://github.com/paritytech/litep2p/pull/64)) + ## [0.2.0] - 2023-09-05 This is the second release of litep2p, v0.2.0. The quality of the first release was so bad that this release is a complete rewrite of the library. From 8211b02e4e584488cc74aefed500e077313d1f81 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 5 Apr 2024 17:30:38 +0300 Subject: [PATCH 3/3] cargo: Bump version from 0.2 to 0.3 Signed-off-by: Alexandru Vasile --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a0a1f735..65848452 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2869,7 +2869,7 @@ checksum = "57bcfdad1b858c2db7c38303a6d2ad4dfaf5eb53dfeb0910128b2c26d6158503" [[package]] name = "litep2p" -version = "0.2.0" +version = "0.3.0" dependencies = [ "async-trait", "asynchronous-codec", diff --git a/Cargo.toml b/Cargo.toml index 5fff9195..89ad4566 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "litep2p" description = "Peer-to-peer networking library" license = "MIT" -version = "0.2.0" +version = "0.3.0" edition = "2021" [build-dependencies]