diff --git a/CHANGELOG.md b/CHANGELOG.md index 545cf7dff8..aa3d09b1e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,3 +5,23 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] + +## [v0.2.0] – 2021-06-04 + +[changed] The crate structure changed to several smaller crates, enabling users to pick and choose. The `jsonrpsee` crate works as a façade crate for users to pick&chose what components they wish to use. + +[changed] Starting with this release, the project is assuming `tokio` is the async executor. + +[changed] Revamped RPC subscription/method definition: users now provide closures when initializing the server and it is no longer possible to register new methods after the server started. + +[changed] Refactored the internals from the ground up. + +[added] Support for async methods + +[added] Support for batch requests (http/ws) + +[changed] the proc macros are currently limited to client side. + +[added] crate publication script + +## [v0.1.0] - 2020-02-28 diff --git a/http-client/Cargo.toml b/http-client/Cargo.toml index 691e96c030..f9959c5a26 100644 --- a/http-client/Cargo.toml +++ b/http-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-http-client" -version = "0.2.0-alpha.7" +version = "0.2.0" authors = ["Parity Technologies ", "Pierre Krieger "] description = "HTTP client for JSON-RPC" edition = "2018" @@ -15,8 +15,8 @@ hyper13-rustls = { package = "hyper-rustls", version = "0.21", optional = true } hyper14-rustls = { package = "hyper-rustls", version = "0.22", optional = true } hyper14 = { package = "hyper", version = "0.14", features = ["client", "http1", "http2", "tcp"], optional = true } hyper13 = { package = "hyper", version = "0.13", optional = true } -jsonrpsee-types = { path = "../types", version = "=0.2.0-alpha.7" } -jsonrpsee-utils = { path = "../utils", version = "=0.2.0-alpha.7", optional = true } +jsonrpsee-types = { path = "../types", version = "0.2.0" } +jsonrpsee-utils = { path = "../utils", version = "0.2.0", optional = true } log = "0.4" serde = { version = "1.0", default-features = false, features = ["derive"] } serde_json = "1.0" diff --git a/http-server/Cargo.toml b/http-server/Cargo.toml index 36b03df117..a5cf25f3dd 100644 --- a/http-server/Cargo.toml +++ b/http-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-http-server" -version = "0.2.0-alpha.7" +version = "0.2.0" authors = ["Parity Technologies ", "Pierre Krieger "] description = "HTTP server for JSON-RPC" edition = "2018" @@ -14,8 +14,8 @@ thiserror = "1" hyper = { version = "0.14", 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.2.0-alpha.7" } -jsonrpsee-utils = { path = "../utils", version = "=0.2.0-alpha.7", features = ["server", "hyper_14"] } +jsonrpsee-types = { path = "../types", version = "0.2.0" } +jsonrpsee-utils = { path = "../utils", version = "0.2.0", features = ["server", "hyper_14"] } globset = "0.4" lazy_static = "1.4" log = "0.4" diff --git a/jsonrpsee/Cargo.toml b/jsonrpsee/Cargo.toml index 8fb44b5654..a131b934d6 100644 --- a/jsonrpsee/Cargo.toml +++ b/jsonrpsee/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "jsonrpsee" description = "JSON-RPC crate" -version = "0.2.0-alpha.7" +version = "0.2.0" authors = ["Parity Technologies ", "Pierre Krieger "] license = "MIT" edition = "2018" @@ -10,13 +10,13 @@ homepage = "https://github.com/paritytech/jsonrpsee" documentation = "https://docs.rs/jsonrpsee" [dependencies] -http-client = { path = "../http-client", version = "=0.2.0-alpha.7", package = "jsonrpsee-http-client", optional = true } -http-server = { path = "../http-server", version = "=0.2.0-alpha.7", package = "jsonrpsee-http-server", optional = true } -ws-client = { path = "../ws-client", version = "=0.2.0-alpha.7", package = "jsonrpsee-ws-client", optional = true } -ws-server = { path = "../ws-server", version = "=0.2.0-alpha.7", package = "jsonrpsee-ws-server", optional = true } -proc-macros = { path = "../proc-macros", version = "=0.2.0-alpha.7", package = "jsonrpsee-proc-macros", optional = true } -utils = { path = "../utils", version = "=0.2.0-alpha.7", package = "jsonrpsee-utils", optional = true } -types = { path = "../types", version = "=0.2.0-alpha.7", package = "jsonrpsee-types", optional = true } +http-client = { path = "../http-client", version = "0.2.0", package = "jsonrpsee-http-client", optional = true } +http-server = { path = "../http-server", version = "0.2.0", package = "jsonrpsee-http-server", optional = true } +ws-client = { path = "../ws-client", version = "0.2.0", package = "jsonrpsee-ws-client", optional = true } +ws-server = { path = "../ws-server", version = "0.2.0", package = "jsonrpsee-ws-server", optional = true } +proc-macros = { path = "../proc-macros", version = "0.2.0", package = "jsonrpsee-proc-macros", optional = true } +utils = { path = "../utils", version = "0.2.0", package = "jsonrpsee-utils", optional = true } +types = { path = "../types", version = "0.2.0", package = "jsonrpsee-types", optional = true } [features] client = ["http-client", "ws-client"] diff --git a/proc-macros/Cargo.toml b/proc-macros/Cargo.toml index c6bcb99fdb..93d1c71086 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.2.0-alpha.7" +version = "0.2.0" authors = ["Parity Technologies ", "Pierre Krieger "] license = "MIT" edition = "2018" diff --git a/test-utils/Cargo.toml b/test-utils/Cargo.toml index f2a3653d24..9915300453 100644 --- a/test-utils/Cargo.toml +++ b/test-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-test-utils" -version = "0.2.0-alpha.7" +version = "0.2.0" authors = ["Parity Technologies "] license = "MIT" edition = "2018" diff --git a/types/Cargo.toml b/types/Cargo.toml index 43f0184c95..31c2c32779 100644 --- a/types/Cargo.toml +++ b/types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-types" -version = "0.2.0-alpha.7" +version = "0.2.0" authors = ["Parity Technologies "] description = "Shared types for jsonrpsee" edition = "2018" diff --git a/utils/Cargo.toml b/utils/Cargo.toml index bf77c0812b..c9cf1213d2 100644 --- a/utils/Cargo.toml +++ b/utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-utils" -version = "0.2.0-alpha.7" +version = "0.2.0" authors = ["Parity Technologies "] description = "Utilities for jsonrpsee" edition = "2018" @@ -12,7 +12,7 @@ futures-channel = { version = "0.3.14", default-features = false, optional = tru futures-util = { version = "0.3.14", default-features = false, optional = true } hyper13 = { package = "hyper", version = "0.13", default-features = false, features = ["stream"], optional = true } hyper14 = { package = "hyper", version = "0.14", default-features = false, features = ["stream"], optional = true } -jsonrpsee-types = { path = "../types", version = "=0.2.0-alpha.7", optional = true } +jsonrpsee-types = { path = "../types", version = "0.2.0", optional = true } log = { version = "0.4", optional = true } rustc-hash = { version = "1", optional = true } rand = { version = "0.8", optional = true } diff --git a/ws-client/Cargo.toml b/ws-client/Cargo.toml index 8ce542c04f..92c7256156 100644 --- a/ws-client/Cargo.toml +++ b/ws-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-ws-client" -version = "0.2.0-alpha.7" +version = "0.2.0" authors = ["Parity Technologies ", "Pierre Krieger "] description = "WebSocket client for JSON-RPC" edition = "2018" @@ -23,7 +23,7 @@ tokioV02-util = { package="tokio-util", version = "0.3", features = ["compat"], async-trait = "0.1" fnv = "1" futures = { version = "0.3.14", default-features = false, features = ["std"] } -jsonrpsee-types = { path = "../types", version = "=0.2.0-alpha.7" } +jsonrpsee-types = { path = "../types", version = "0.2.0" } log = "0.4" serde = "1" serde_json = "1" diff --git a/ws-server/Cargo.toml b/ws-server/Cargo.toml index 0e4b245dce..20ad2a1619 100644 --- a/ws-server/Cargo.toml +++ b/ws-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jsonrpsee-ws-server" -version = "0.2.0-alpha.7" +version = "0.2.0" authors = ["Parity Technologies ", "Pierre Krieger "] description = "WebSocket server for JSON-RPC" edition = "2018" @@ -13,8 +13,8 @@ documentation = "https://docs.rs/jsonrpsee-ws-server" thiserror = "1" futures-channel = "0.3.14" futures-util = { version = "0.3.14", default-features = false, features = ["io"] } -jsonrpsee-types = { path = "../types", version = "=0.2.0-alpha.7" } -jsonrpsee-utils = { path = "../utils", version = "=0.2.0-alpha.7", features = ["server"] } +jsonrpsee-types = { path = "../types", version = "0.2.0" } +jsonrpsee-utils = { path = "../utils", version = "0.2.0", features = ["server"] } log = "0.4" rustc-hash = "1.1.0" serde = { version = "1", default-features = false, features = ["derive"] }