From c0824664d48a31924e2a09af5b1cd992d08a8ceb Mon Sep 17 00:00:00 2001 From: Bastian Kersting Date: Sun, 31 Mar 2024 14:19:53 +0200 Subject: [PATCH] release: Prepare for 0.5.0 --- CHANGELOG.md | 23 ++++++++++++++++++----- Cargo.lock | 4 ++-- engineio/Cargo.toml | 2 +- socketio/Cargo.toml | 4 ++-- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20029e75..11bd056c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog], and this project adheres to ## Overview * [unreleased](#unreleased) +* [`0.5.0`](#050) - _2024.03.31_ * [`0.4.4`](#044) - _2023.11.18_ * [`0.4.3`](#043) - _2023.07.08_ * [`0.4.2`](#042) - _2023.06.25_ @@ -36,11 +37,23 @@ The format is based on [Keep a Changelog], and this project adheres to _nothing new to show for… yet!_> -_async callback macro_ - -_2024.03.15_ - -- Add macro `async_callback` and `async_any_callback` for async callbacks [#395](https://github.com/1c3t3a/rust-socketio/issue/395) [#399](https://github.com/1c3t3a/rust-socketio/pull/399) +## [0.5.0] - _Packed with changes!_ + +_2024.03.31_ + +- Support multiple arguments to the payload through a new Payload variant called + `Text` that holds a JSON value ([#384](https://github.com/1c3t3a/rust-socketio/pull/384)). + Credits to ctrlaltf24@ and SalahaldinBilal@! + Please note: This is a breaking change: `Payload::String` is deprecated and will be removed soon. +- Async reconnections: Support for automatic reconnection in the async version of the crate! + ([#400](https://github.com/1c3t3a/rust-socketio/pull/400)). Credits to rageshkrishna@. +- Add an `on_reconnect` callback that allows to change the connection configuration + ([#405](https://github.com/1c3t3a/rust-socketio/pull/405)). Credits to rageshkrishna@. +- Fix bug that ignored the ping interval ([#359](https://github.com/1c3t3a/rust-socketio/pull/359)). + Credits to sirkrypt0@. This is a breaking change that removes the engine.io's stream impl. + It is however replaced by a method called `as_stream` on the engine.io socket. +- Add macro `async_callback` and `async_any_callback` for async callbacks ([#399](https://github.com/1c3t3a/rust-socketio/pull/399). + Credits to shenjackyuanjie@. ## [0.4.4] - _Bump dependencies_ diff --git a/Cargo.lock b/Cargo.lock index 0fd7636f..eee14527 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1694,7 +1694,7 @@ dependencies = [ [[package]] name = "rust_engineio" -version = "0.4.4" +version = "0.5.0" dependencies = [ "adler32", "async-stream", @@ -1718,7 +1718,7 @@ dependencies = [ [[package]] name = "rust_socketio" -version = "0.4.4" +version = "0.5.0" dependencies = [ "adler32", "async-stream", diff --git a/engineio/Cargo.toml b/engineio/Cargo.toml index 1234a9c1..d8f8dc30 100644 --- a/engineio/Cargo.toml +++ b/engineio/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_engineio" -version = "0.4.4" +version = "0.5.0" authors = ["Bastian Kersting "] edition = "2021" description = "An implementation of a engineio client written in rust." diff --git a/socketio/Cargo.toml b/socketio/Cargo.toml index 3620faf1..bd99173d 100644 --- a/socketio/Cargo.toml +++ b/socketio/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_socketio" -version = "0.4.4" +version = "0.5.0" authors = ["Bastian Kersting "] edition = "2021" description = "An implementation of a socketio client written in rust." @@ -11,7 +11,7 @@ categories = ["network-programming", "web-programming", "web-programming::websoc license = "MIT" [dependencies] -rust_engineio = { version = "0.4.3", path = "../engineio" } +rust_engineio = { version = "0.5.0", path = "../engineio" } base64 = "0.21.5" bytes = "1" backoff = "0.4"