diff --git a/CHANGELOG.md b/CHANGELOG.md index 340f042a2b..1e9b2717e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,26 @@ The format is based on [Keep a Changelog]. ## [Unreleased] -## [v0.7.0] - 2022-12-22 +## [v0.8.0] - 2022-01-21 + +v0.8.0 is a breaking release for the way subscription closing is handled, along with a few other minor tweaks and fixes. + +### [Added] + +- feat(client): support request id as Strings. [#659](https://github.com/paritytech/jsonrpsee/pull/659) +- feat(rpc module) Add a method to RpcModule that transforms the module into a RpcModule<()>, i.e. removes the context. [#660](https://github.com/paritytech/jsonrpsee/pull/660) +- feat(rpc module): stream API for SubscriptionSink [#639](https://github.com/paritytech/jsonrpsee/pull/639) + +### [Fixed] + +- fix: nit in WsError [#662](https://github.com/paritytech/jsonrpsee/pull/662) +- fix(jsonrpsee): feature macros include client types [#656](https://github.com/paritytech/jsonrpsee/pull/656) +- fix(ws client): export WsClient [#646](https://github.com/paritytech/jsonrpsee/pull/646) +- fix(ws client): improve error message bad URL [#642](https://github.com/paritytech/jsonrpsee/pull/642) +- fix(ws client): expose tls feature. [#640](https://github.com/paritytech/jsonrpsee/pull/640) +- fix(http server): handle post and option HTTP requests properly. [#637](https://github.com/paritytech/jsonrpsee/pull/637) + +## [v0.7.0] - 2021-12-22 v0.7.0 is a breaking release that contains a big refactoring of the crate structure. The `types` and `utils` crates are split up as `types` and `core` to clarify the difference between the two. diff --git a/benches/Cargo.toml b/benches/Cargo.toml index f317bc5e8d..7181dfd2b9 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-benchmarks" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies "] description = "Benchmarks for jsonrpsee" edition = "2021" diff --git a/client/http-client/Cargo.toml b/client/http-client/Cargo.toml index eee3092160..38e79b9ffa 100644 --- a/client/http-client/Cargo.toml +++ b/client/http-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-http-client" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies ", "Pierre Krieger "] description = "HTTP client for JSON-RPC" edition = "2021" @@ -14,8 +14,8 @@ async-trait = "0.1" rustc-hash = "1" hyper = { version = "0.14.10", features = ["client", "http1", "http2", "tcp"] } hyper-rustls = { version = "0.23", optional = true } -jsonrpsee-types = { path = "../../types", version = "0.7.0" } -jsonrpsee-core = { path = "../../core", version = "0.7.0", features = ["client", "http-helpers"] } +jsonrpsee-types = { path = "../../types", version = "0.8.0" } +jsonrpsee-core = { path = "../../core", version = "0.8.0", features = ["client", "http-helpers"] } serde = { version = "1.0", default-features = false, features = ["derive"] } serde_json = "1.0" thiserror = "1.0" diff --git a/client/transport/Cargo.toml b/client/transport/Cargo.toml index 72dcf4fe77..02f1e67e29 100644 --- a/client/transport/Cargo.toml +++ b/client/transport/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-client-transport" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies ", "Pierre Krieger "] description = "WebSocket client for JSON-RPC" edition = "2021" @@ -10,8 +10,8 @@ homepage = "https://github.com/paritytech/jsonrpsee" documentation = "https://docs.rs/jsonrpsee-ws-client" [dependencies] -jsonrpsee-types = { path = "../../types", version = "0.7.0", optional = true } -jsonrpsee-core = { path = "../../core", version = "0.7.0", features = ["client"] } +jsonrpsee-types = { path = "../../types", version = "0.8.0", optional = true } +jsonrpsee-core = { path = "../../core", version = "0.8.0", features = ["client"] } tracing = { version = "0.1", optional = true } thiserror = { version = "1", optional = true } futures = { version = "0.3.14", default-features = false, features = ["std"], optional = true } @@ -29,11 +29,11 @@ soketto = { version = "0.7.1", optional = true } [features] tls = ["tokio-rustls", "webpki-roots", "rustls-native-certs"] ws = [ - "futures", - "http", - "tokio", - "tokio-util", - "soketto", + "futures", + "http", + "tokio", + "tokio-util", + "soketto", "pin-project", "jsonrpsee-types", "thiserror", diff --git a/client/ws-client/Cargo.toml b/client/ws-client/Cargo.toml index c4b11a6c72..ee84c85053 100644 --- a/client/ws-client/Cargo.toml +++ b/client/ws-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-ws-client" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies ", "Pierre Krieger "] description = "WebSocket client for JSON-RPC" edition = "2021" @@ -10,9 +10,9 @@ homepage = "https://github.com/paritytech/jsonrpsee" documentation = "https://docs.rs/jsonrpsee-ws-client" [dependencies] -jsonrpsee-types = { path = "../../types", version = "0.7.0" } -jsonrpsee-client-transport = { path = "../transport", version = "0.7.0", features = ["ws"] } -jsonrpsee-core = { path = "../../core", version = "0.7.0", features = ["async-client"] } +jsonrpsee-types = { path = "../../types", version = "0.8.0" } +jsonrpsee-client-transport = { path = "../transport", version = "0.8.0", features = ["ws"] } +jsonrpsee-core = { path = "../../core", version = "0.8.0", features = ["async-client"] } [dev-dependencies] env_logger = "0.9" diff --git a/core/Cargo.toml b/core/Cargo.toml index d7f9381712..ea34726d70 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-core" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies "] description = "Utilities for jsonrpsee" edition = "2021" @@ -16,7 +16,7 @@ thiserror = "1" futures-channel = { version = "0.3.14", default-features = false } futures-util = { version = "0.3.14", default-features = false, optional = true } hyper = { version = "0.14.10", default-features = false, features = ["stream"] } -jsonrpsee-types = { path = "../types", version = "0.7.0" } +jsonrpsee-types = { path = "../types", version = "0.8.0" } tracing = { version = "0.1", optional = true } rustc-hash = { version = "1", optional = true } rand = { version = "0.8", optional = true } diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 729ddd6bb0..3c7a15ce41 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-examples" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies "] description = "Examples for jsonrpsee" edition = "2021" diff --git a/http-server/Cargo.toml b/http-server/Cargo.toml index 518d76dc45..ead998eb05 100644 --- a/http-server/Cargo.toml +++ b/http-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-http-server" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies ", "Pierre Krieger "] description = "HTTP server for JSON-RPC" edition = "2021" @@ -13,8 +13,8 @@ documentation = "https://docs.rs/jsonrpsee-http-server" hyper = { version = "0.14.10", features = ["server", "http1", "http2", "tcp"] } futures-channel = "0.3.14" futures-util = { version = "0.3.14", default-features = false } -jsonrpsee-types = { path = "../types", version = "0.7.0" } -jsonrpsee-core = { path = "../core", version = "0.7.0", features = ["server", "http-helpers"] } +jsonrpsee-types = { path = "../types", version = "0.8.0" } +jsonrpsee-core = { path = "../core", version = "0.8.0", features = ["server", "http-helpers"] } globset = "0.4" lazy_static = "1.4" tracing = "0.1" diff --git a/jsonrpsee/Cargo.toml b/jsonrpsee/Cargo.toml index 8471031c85..5b4d2c8dfc 100644 --- a/jsonrpsee/Cargo.toml +++ b/jsonrpsee/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "jsonrpsee" description = "JSON-RPC crate" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies ", "Pierre Krieger "] license = "MIT" edition = "2021" @@ -12,14 +12,14 @@ documentation = "https://docs.rs/jsonrpsee" [dependencies] # No support for namespaced features yet so workspace dependencies are prefixed with `jsonrpsee-`. # See https://github.com/rust-lang/cargo/issues/5565 for more details. -jsonrpsee-http-client = { path = "../client/http-client", version = "0.7.0", package = "jsonrpsee-http-client", optional = true } -jsonrpsee-ws-client = { path = "../client/ws-client", version = "0.7.0", package = "jsonrpsee-ws-client", optional = true } -jsonrpsee-client-transport = { path = "../client/transport", version = "0.7.0", package = "jsonrpsee-client-transport", optional = true } -jsonrpsee-http-server = { path = "../http-server", version = "0.7.0", package = "jsonrpsee-http-server", optional = true } -jsonrpsee-ws-server = { path = "../ws-server", version = "0.7.0", package = "jsonrpsee-ws-server", optional = true } -jsonrpsee-proc-macros = { path = "../proc-macros", version = "0.7.0", package = "jsonrpsee-proc-macros", optional = true } -jsonrpsee-core = { path = "../core", version = "0.7.0", package = "jsonrpsee-core", optional = true } -jsonrpsee-types = { path = "../types", version = "0.7.0", package = "jsonrpsee-types", optional = true } +jsonrpsee-http-client = { path = "../client/http-client", version = "0.8.0", package = "jsonrpsee-http-client", optional = true } +jsonrpsee-ws-client = { path = "../client/ws-client", version = "0.8.0", package = "jsonrpsee-ws-client", optional = true } +jsonrpsee-client-transport = { path = "../client/transport", version = "0.8.0", package = "jsonrpsee-client-transport", optional = true } +jsonrpsee-http-server = { path = "../http-server", version = "0.8.0", package = "jsonrpsee-http-server", optional = true } +jsonrpsee-ws-server = { path = "../ws-server", version = "0.8.0", package = "jsonrpsee-ws-server", optional = true } +jsonrpsee-proc-macros = { path = "../proc-macros", version = "0.8.0", package = "jsonrpsee-proc-macros", optional = true } +jsonrpsee-core = { path = "../core", version = "0.8.0", package = "jsonrpsee-core", optional = true } +jsonrpsee-types = { path = "../types", version = "0.8.0", package = "jsonrpsee-types", optional = true } [features] client-ws-transport = ["jsonrpsee-client-transport/ws", "jsonrpsee-client-transport/tls"] diff --git a/proc-macros/Cargo.toml b/proc-macros/Cargo.toml index 624c5af99e..31ac3dc1a8 100644 --- a/proc-macros/Cargo.toml +++ b/proc-macros/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "jsonrpsee-proc-macros" description = "Procedueral macros for jsonrpsee" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies ", "Pierre Krieger "] license = "MIT" edition = "2021" diff --git a/test-utils/Cargo.toml b/test-utils/Cargo.toml index ac91e7ecd1..5f34eaac37 100644 --- a/test-utils/Cargo.toml +++ b/test-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-test-utils" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies "] license = "MIT" edition = "2021" diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 5f1de14229..99b14cc37c 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-integration-tests" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies "] description = "Integration tests for jsonrpsee" edition = "2021" diff --git a/types/Cargo.toml b/types/Cargo.toml index db2bde23c2..973ff2f617 100644 --- a/types/Cargo.toml +++ b/types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-types" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies "] description = "Shared types for jsonrpsee" edition = "2021" diff --git a/ws-server/Cargo.toml b/ws-server/Cargo.toml index f8674bee5d..1039cd487a 100644 --- a/ws-server/Cargo.toml +++ b/ws-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-ws-server" -version = "0.7.0" +version = "0.8.0" authors = ["Parity Technologies ", "Pierre Krieger "] description = "WebSocket server for JSON-RPC" edition = "2021" @@ -13,8 +13,8 @@ documentation = "https://docs.rs/jsonrpsee-ws-server" async-channel = "1.6.1" futures-channel = "0.3.14" futures-util = { version = "0.3.14", default-features = false, features = ["io", "async-await-macro"] } -jsonrpsee-types = { path = "../types", version = "0.7.0" } -jsonrpsee-core = { path = "../core", version = "0.7.0", features = ["server"] } +jsonrpsee-types = { path = "../types", version = "0.8.0" } +jsonrpsee-core = { path = "../core", version = "0.8.0", features = ["server"] } tracing = "0.1" serde_json = { version = "1", features = ["raw_value"] } soketto = "0.7.1"