Skip to content

Commit

Permalink
chore: release v0.11 (#731)
Browse files Browse the repository at this point in the history
* chore(release): v0.11.0

* remove unused deps

* docs: rephrase bad english

* Update CHANGELOG.md

* update publish script

* Update CHANGELOG.md

Co-authored-by: David <dvdplm@gmail.com>

* Update CHANGELOG.md

Co-authored-by: David <dvdplm@gmail.com>

* Update CHANGELOG.md

Co-authored-by: David <dvdplm@gmail.com>

Co-authored-by: David <dvdplm@gmail.com>
  • Loading branch information
niklasad1 and dvdplm committed Apr 21, 2022
1 parent 20e6e5d commit 07b3788
Show file tree
Hide file tree
Showing 16 changed files with 59 additions and 44 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,27 @@ The format is based on [Keep a Changelog].

## [Unreleased]

## [v0.11.0] - 2022-04-21

v0.11.0 is a breaking release that reworks how subscriptions are handled by the servers where the users have to explicitly reject or accept each subscription.
The reason for this is that the actual params in the subscription is passed to the callback and if the application decides the params are invalid and the server can't know if the call is going to fail or pass when dispatching the call.
Thus, the actual subscription method call is only answered when the subscription is accepted or rejected.

Additionally, the servers before sent a `SubscriptionClosed message` which is now disabled by default because it might break other implementations.
It is still possible to respond with a `SubscriptionClosed message` but one has to match on the result from `SubscriptionSink::pipe_from_stream`.

This release also adds support for `JSON-RPC WASM client` using web-sys bindings.

### [Added]
- feat: WASM client via web-sys transport [#648](https://github.com/paritytech/jsonrpsee/pull/648)

### [Changed]
- CI: bump Swatinem/rust-cache from 1.3.0 to 1.4.0 [#730](https://github.com/paritytech/jsonrpsee/pull/730)

### [Fixed]
- fix(rpc module): fail subscription calls with bad params [#728](https://github.com/paritytech/jsonrpsee/pull/728)


## [v0.10.1] - 2022-04-05

v0.10.1 is a release that fixes a regression in the HTTP server where the backlog was hardcoded to 128 (this is now set to 1024 by default but also configurable), introduces a couple of new APIs and a few minor bug fixes.
Expand Down
2 changes: 1 addition & 1 deletion benches/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-benchmarks"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Benchmarks for jsonrpsee"
edition = "2021"
Expand Down
6 changes: 3 additions & 3 deletions client/http-client/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-http-client"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "HTTP client for JSON-RPC"
edition = "2021"
Expand All @@ -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.10.1" }
jsonrpsee-core = { path = "../../core", version = "0.10.1", features = ["client", "http-helpers"] }
jsonrpsee-types = { path = "../../types", version = "0.11.0" }
jsonrpsee-core = { path = "../../core", version = "0.11.0", features = ["client", "http-helpers"] }
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
Expand Down
10 changes: 3 additions & 7 deletions client/transport/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-client-transport"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "WebSocket client for JSON-RPC"
edition = "2021"
Expand All @@ -10,8 +10,8 @@ homepage = "https://github.com/paritytech/jsonrpsee"
documentation = "https://docs.rs/jsonrpsee-ws-client"

[dependencies]
jsonrpsee-types = { path = "../../types", version = "0.10.1", optional = true }
jsonrpsee-core = { path = "../../core", version = "0.10.1", features = ["client"] }
jsonrpsee-types = { path = "../../types", version = "0.11.0", optional = true }
jsonrpsee-core = { path = "../../core", version = "0.11.0", features = ["client"] }
tracing = "0.1"

# optional
Expand All @@ -32,8 +32,6 @@ futures-timer = { version = "3", optional = true }
soketto = { version = "0.7.1", optional = true }

# web-sys
wasm-bindgen = { version = "0.2.69", optional = true }
wasm-bindgen-futures = { version = "0.4.19", optional = true }
gloo-net = { version = "0.1.0", default-features = false, features = ["json", "websocket"], optional = true }

[features]
Expand All @@ -49,8 +47,6 @@ ws = [
"thiserror",
]
web = [
"wasm-bindgen",
"wasm-bindgen-futures",
"gloo-net",
"futures-channel",
"futures-timer",
Expand Down
9 changes: 4 additions & 5 deletions client/wasm-client/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-wasm-client"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "WASM client for JSON-RPC"
edition = "2021"
Expand All @@ -10,10 +10,9 @@ homepage = "https://github.com/paritytech/jsonrpsee"
documentation = "https://docs.rs/jsonrpsee-ws-client"

[dependencies]
jsonrpsee-types = { path = "../../types", version = "0.10.1" }
jsonrpsee-client-transport = { path = "../transport", version = "0.10.1", features = ["web"] }
jsonrpsee-core = { path = "../../core", version = "0.10.1", features = ["async-wasm-client"] }
futures-channel = "0.3"
jsonrpsee-types = { path = "../../types", version = "0.11.0" }
jsonrpsee-client-transport = { path = "../transport", version = "0.11.0", features = ["web"] }
jsonrpsee-core = { path = "../../core", version = "0.11.0", features = ["async-wasm-client"] }

[dev-dependencies]
env_logger = "0.9"
Expand Down
8 changes: 4 additions & 4 deletions client/ws-client/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-ws-client"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "WebSocket client for JSON-RPC"
edition = "2021"
Expand All @@ -10,9 +10,9 @@ homepage = "https://github.com/paritytech/jsonrpsee"
documentation = "https://docs.rs/jsonrpsee-ws-client"

[dependencies]
jsonrpsee-types = { path = "../../types", version = "0.10.1" }
jsonrpsee-client-transport = { path = "../transport", version = "0.10.1", features = ["ws"] }
jsonrpsee-core = { path = "../../core", version = "0.10.1", features = ["async-client"] }
jsonrpsee-types = { path = "../../types", version = "0.11.0" }
jsonrpsee-client-transport = { path = "../transport", version = "0.11.0", features = ["ws"] }
jsonrpsee-core = { path = "../../core", version = "0.11.0", features = ["async-client"] }

[dev-dependencies]
env_logger = "0.9"
Expand Down
5 changes: 2 additions & 3 deletions core/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-core"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Utilities for jsonrpsee"
edition = "2021"
Expand All @@ -11,7 +11,7 @@ anyhow = "1"
async-trait = "0.1"
beef = { version = "0.5.1", features = ["impl_serde"] }
futures-channel = "0.3.14"
jsonrpsee-types = { path = "../types", version = "0.10.1" }
jsonrpsee-types = { path = "../types", version = "0.11.0" }
thiserror = "1"
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = { version = "1", features = ["raw_value"] }
Expand All @@ -36,7 +36,6 @@ default = []
http-helpers = ["hyper", "futures-util"]
server = [
"arrayvec",
"async-channel",
"futures-util/alloc",
"rustc-hash/std",
"tracing",
Expand Down
2 changes: 1 addition & 1 deletion examples/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-examples"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Examples for jsonrpsee"
edition = "2021"
Expand Down
6 changes: 3 additions & 3 deletions http-server/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-http-server"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "HTTP server for JSON-RPC"
edition = "2021"
Expand All @@ -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.10.1" }
jsonrpsee-core = { path = "../core", version = "0.10.1", features = ["server", "http-helpers"] }
jsonrpsee-types = { path = "../types", version = "0.11.0" }
jsonrpsee-core = { path = "../core", version = "0.11.0", features = ["server", "http-helpers"] }
globset = "0.4"
lazy_static = "1.4"
tracing = "0.1"
Expand Down
18 changes: 9 additions & 9 deletions jsonrpsee/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "jsonrpsee"
description = "JSON-RPC crate"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
license = "MIT"
edition = "2021"
Expand All @@ -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.10.1", package = "jsonrpsee-http-client", optional = true }
jsonrpsee-ws-client = { path = "../client/ws-client", version = "0.10.1", package = "jsonrpsee-ws-client", optional = true }
jsonrpsee-client-transport = { path = "../client/transport", version = "0.10.1", package = "jsonrpsee-client-transport", optional = true }
jsonrpsee-http-server = { path = "../http-server", version = "0.10.1", package = "jsonrpsee-http-server", optional = true }
jsonrpsee-ws-server = { path = "../ws-server", version = "0.10.1", package = "jsonrpsee-ws-server", optional = true }
jsonrpsee-proc-macros = { path = "../proc-macros", version = "0.10.1", package = "jsonrpsee-proc-macros", optional = true }
jsonrpsee-core = { path = "../core", version = "0.10.1", package = "jsonrpsee-core", optional = true }
jsonrpsee-types = { path = "../types", version = "0.10.1", package = "jsonrpsee-types", optional = true }
jsonrpsee-http-client = { path = "../client/http-client", version = "0.11.0", package = "jsonrpsee-http-client", optional = true }
jsonrpsee-ws-client = { path = "../client/ws-client", version = "0.11.0", package = "jsonrpsee-ws-client", optional = true }
jsonrpsee-client-transport = { path = "../client/transport", version = "0.11.0", package = "jsonrpsee-client-transport", optional = true }
jsonrpsee-http-server = { path = "../http-server", version = "0.11.0", package = "jsonrpsee-http-server", optional = true }
jsonrpsee-ws-server = { path = "../ws-server", version = "0.11.0", package = "jsonrpsee-ws-server", optional = true }
jsonrpsee-proc-macros = { path = "../proc-macros", version = "0.11.0", package = "jsonrpsee-proc-macros", optional = true }
jsonrpsee-core = { path = "../core", version = "0.11.0", package = "jsonrpsee-core", optional = true }
jsonrpsee-types = { path = "../types", version = "0.11.0", package = "jsonrpsee-types", optional = true }

[features]
client-ws-transport = ["jsonrpsee-client-transport/ws", "jsonrpsee-client-transport/tls"]
Expand Down
2 changes: 1 addition & 1 deletion proc-macros/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "jsonrpsee-proc-macros"
description = "Procedueral macros for jsonrpsee"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
license = "MIT"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish.sh
Expand Up @@ -5,7 +5,7 @@

set -eu

ORDER=(types proc-macros core client/http-client http-server client/transport client/ws-client ws-server jsonrpsee)
ORDER=(types proc-macros core client/http-client http-server client/transport client/ws-client client/wasm-client ws-server jsonrpsee)

function read_toml () {
NAME=""
Expand Down
2 changes: 1 addition & 1 deletion test-utils/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-test-utils"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion tests/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-integration-tests"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Integration tests for jsonrpsee"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion types/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-types"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Shared types for jsonrpsee"
edition = "2021"
Expand Down
6 changes: 3 additions & 3 deletions ws-server/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "jsonrpsee-ws-server"
version = "0.10.1"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "WebSocket server for JSON-RPC"
edition = "2021"
Expand All @@ -12,8 +12,8 @@ documentation = "https://docs.rs/jsonrpsee-ws-server"
[dependencies]
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.10.1" }
jsonrpsee-core = { path = "../core", version = "0.10.1", features = ["server", "soketto"] }
jsonrpsee-types = { path = "../types", version = "0.11.0" }
jsonrpsee-core = { path = "../core", version = "0.11.0", features = ["server", "soketto"] }
tracing = "0.1"
serde_json = { version = "1", features = ["raw_value"] }
soketto = "0.7.1"
Expand Down

0 comments on commit 07b3788

Please sign in to comment.