Skip to content

Commit 4440a00

Browse files
authored
chore: release v0.24.4 (#1450)
* chore: release v0.24.4 * cargo fmt
1 parent 792b8fa commit 4440a00

File tree

4 files changed

+29
-12
lines changed

4 files changed

+29
-12
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ The format is based on [Keep a Changelog].
44

55
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/
66

7+
## [v0.24.4] - 2024-09-11
8+
9+
This is non-breaking release that changes the error variants to be `thiserror(transparent)` for wrapped errors and adds ConnectionGuard to
10+
the extensions to make it possible to get the number of active connections.
11+
12+
### [Added]
13+
- server: expose ConnectionGuard as request extension ([#1443](https://github.com/paritytech/jsonrpsee/pull/1443))
14+
15+
### [Fixed]
16+
- types: use error(transparent) for wrapped errors when possible ([#1449](https://github.com/paritytech/jsonrpsee/pull/1449))
17+
718
## [v0.24.3] - 2024-08-14
819

920
This is a small release that adds two new APIs to inject data via the extensions to the `RpcModule/Methods`

Cargo.toml

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ resolver = "2"
2020

2121
[workspace.package]
2222
authors = ["Parity Technologies <[email protected]>", "Pierre Krieger <[email protected]>"]
23-
version = "0.24.3"
23+
version = "0.24.4"
2424
edition = "2021"
2525
rust-version = "1.74.1"
2626
license = "MIT"
@@ -31,11 +31,11 @@ keywords = ["jsonrpc", "json", "http", "websocket", "WASM"]
3131
readme = "README.md"
3232

3333
[workspace.dependencies]
34-
jsonrpsee-types = { path = "types", version = "0.24.3" }
35-
jsonrpsee-core = { path = "core", version = "0.24.3" }
36-
jsonrpsee-server = { path = "server", version = "0.24.3" }
37-
jsonrpsee-ws-client = { path = "client/ws-client", version = "0.24.3" }
38-
jsonrpsee-http-client = { path = "client/http-client", version = "0.24.3" }
39-
jsonrpsee-wasm-client = { path = "client/wasm-client", version = "0.24.3" }
40-
jsonrpsee-client-transport = { path = "client/transport", version = "0.24.3" }
41-
jsonrpsee-proc-macros = { path = "proc-macros", version = "0.24.3" }
34+
jsonrpsee-types = { path = "types", version = "0.24.4" }
35+
jsonrpsee-core = { path = "core", version = "0.24.4" }
36+
jsonrpsee-server = { path = "server", version = "0.24.4" }
37+
jsonrpsee-ws-client = { path = "client/ws-client", version = "0.24.4" }
38+
jsonrpsee-http-client = { path = "client/http-client", version = "0.24.4" }
39+
jsonrpsee-wasm-client = { path = "client/wasm-client", version = "0.24.4" }
40+
jsonrpsee-client-transport = { path = "client/transport", version = "0.24.4" }
41+
jsonrpsee-proc-macros = { path = "proc-macros", version = "0.24.4" }

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
![MIT](https://img.shields.io/crates/l/jsonrpsee.svg)
77
[![CI](https://github.com/paritytech/jsonrpsee/actions/workflows/ci.yml/badge.svg)](https://github.com/paritytech/jsonrpsee/actions/workflows/ci.yml)
88
[![Benchmarks](https://github.com/paritytech/jsonrpsee/actions/workflows/benchmarks_gitlab.yml/badge.svg)](https://github.com/paritytech/jsonrpsee/actions/workflows/benchmarks_gitlab.yml)
9-
[![dependency status](https://deps.rs/crate/jsonrpsee/0.24.3/status.svg)](https://deps.rs/crate/jsonrpsee/0.24.3)
9+
[![dependency status](https://deps.rs/crate/jsonrpsee/0.24.4/status.svg)](https://deps.rs/crate/jsonrpsee/0.24.4)
1010

1111
JSON-RPC library designed for async/await in Rust.
1212

client/transport/src/ws/mod.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,14 @@ impl WsTransportClientBuilder {
358358

359359
for sockaddr in &sockaddrs {
360360
#[cfg(feature = "tls")]
361-
let tcp_stream = match connect(*sockaddr, self.connection_timeout, &target.host, connector.as_ref(), self.tcp_no_delay)
362-
.await
361+
let tcp_stream = match connect(
362+
*sockaddr,
363+
self.connection_timeout,
364+
&target.host,
365+
connector.as_ref(),
366+
self.tcp_no_delay,
367+
)
368+
.await
363369
{
364370
Ok(stream) => stream,
365371
Err(e) => {

0 commit comments

Comments
 (0)