From fc75a882ccd5660630ea38d7d3570bccf978db6e Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Mon, 8 Jul 2024 17:42:07 +0200 Subject: [PATCH] chore: release v0.24.0 (#1422) --- CHANGELOG.md | 35 +++++++++++++++++++++++++++++++++++ Cargo.toml | 18 +++++++++--------- README.md | 2 +- 3 files changed, 45 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8baf450833..a634a14980 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,41 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ +## [v0.24.0] - 2024-07-05 + +A breaking release that mainly changes: + +1. `tls` feature for the client has been divided into `tls` and `tls-platform-verifier` where the `tls` feature +will only include `rustls` and no specific certificate store but the default one is still `tls-rustls-platform-verifier`. +This is useful if one wants to avoid bring on openssl dependencies. +2. Remove dependencies `anyhow` and `beef` from the codebase. + +### [Changed] +- types: serialize `id` in `Response` before `result`/`error` fields ([#1421](https://github.com/paritytech/jsonrpsee/pull/1421)) +- refactor(client+transport)!: split `tls` into `tls` and `tls-rustls-platform-verifier` features ([#1419](https://github.com/paritytech/jsonrpsee/pull/1419)) +- chore(deps): update rustc-hash requirement from 1 to 2 ([#1410](https://github.com/paritytech/jsonrpsee/pull/1410)) +- deps: remove anyhow ([#1402](https://github.com/paritytech/jsonrpsee/pull/1402)) +- deps: remove beef ([#1401](https://github.com/paritytech/jsonrpsee/pull/1401)) + +## [v0.23.2] - 2024-06-26 + +This a small patch release that fixes a couple of bugs and adds a couple of new APIs. + +The bug fixes are: +- The `server::ws::on_connect` was not working properly due to a merge nit when upgrading to hyper v1.0 + This impacts only users that are using the low-level API and not the server itself. +- `WsTransport::build_with_stream` shouldn't not resolve the socket addresses and it's fixed now, [see #1411 for further info](https://github.com/paritytech/jsonrpsee/issues/1411). + This impacts users that are inject their own TcpStream directly into the `WsTransport`. + +### [Added] +- server: add `RpcModule::remove` ([#1416](https://github.com/paritytech/jsonrpsee/pull/1416)) +- server: add `capacity and max_capacity` to the subscription API ([#1414](https://github.com/paritytech/jsonrpsee/pull/1414)) +- server: add `PendingSubscriptionSink::method_name` ([#1413](https://github.com/paritytech/jsonrpsee/pull/1413)) + +### [Fixed] +- server: make `ws::on_connect` work again ([#1418](https://github.com/paritytech/jsonrpsee/pull/1418)) +- client: `WsTransport::build_with_stream` don't resolve sockaddrs ([#1412](https://github.com/paritytech/jsonrpsee/pull/1412)) + ## [v0.23.1] - 2024-06-10 This is a patch release that injects the ConnectionId in diff --git a/Cargo.toml b/Cargo.toml index 55fdec50ee..936fa291c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ resolver = "2" [workspace.package] authors = ["Parity Technologies ", "Pierre Krieger "] -version = "0.23.1" +version = "0.24.0" edition = "2021" rust-version = "1.74.1" license = "MIT" @@ -31,11 +31,11 @@ keywords = ["jsonrpc", "json", "http", "websocket", "WASM"] readme = "README.md" [workspace.dependencies] -jsonrpsee-types = { path = "types", version = "0.23.1" } -jsonrpsee-core = { path = "core", version = "0.23.1" } -jsonrpsee-server = { path = "server", version = "0.23.1" } -jsonrpsee-ws-client = { path = "client/ws-client", version = "0.23.1" } -jsonrpsee-http-client = { path = "client/http-client", version = "0.23.1" } -jsonrpsee-wasm-client = { path = "client/wasm-client", version = "0.23.1" } -jsonrpsee-client-transport = { path = "client/transport", version = "0.23.1" } -jsonrpsee-proc-macros = { path = "proc-macros", version = "0.23.1" } +jsonrpsee-types = { path = "types", version = "0.24.0" } +jsonrpsee-core = { path = "core", version = "0.24.0" } +jsonrpsee-server = { path = "server", version = "0.24.0" } +jsonrpsee-ws-client = { path = "client/ws-client", version = "0.24.0" } +jsonrpsee-http-client = { path = "client/http-client", version = "0.24.0" } +jsonrpsee-wasm-client = { path = "client/wasm-client", version = "0.24.0" } +jsonrpsee-client-transport = { path = "client/transport", version = "0.24.0" } +jsonrpsee-proc-macros = { path = "proc-macros", version = "0.24.0" } diff --git a/README.md b/README.md index 347f690621..f0fe54db7b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ![MIT](https://img.shields.io/crates/l/jsonrpsee.svg) [![CI](https://github.com/paritytech/jsonrpsee/actions/workflows/ci.yml/badge.svg)](https://github.com/paritytech/jsonrpsee/actions/workflows/ci.yml) [![Benchmarks](https://github.com/paritytech/jsonrpsee/actions/workflows/benchmarks_gitlab.yml/badge.svg)](https://github.com/paritytech/jsonrpsee/actions/workflows/benchmarks_gitlab.yml) -[![dependency status](https://deps.rs/crate/jsonrpsee/0.23.1/status.svg)](https://deps.rs/crate/jsonrpsee/0.23.1) +[![dependency status](https://deps.rs/crate/jsonrpsee/0.24.0/status.svg)](https://deps.rs/crate/jsonrpsee/0.24.0) JSON-RPC library designed for async/await in Rust.