Skip to content

Commit f329540

Browse files
authored
chore: release v0.20.0 (#1180)
* chore: release v0.20.0 * Update CHANGELOG.md * Update CHANGELOG.md * add links to github profiles in changelog
1 parent 119d3ae commit f329540

3 files changed

Lines changed: 52 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,48 @@ The format is based on [Keep a Changelog].
44

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

7+
## [v0.20.0] - 2023-08-11
8+
9+
Another breaking release where the major changes are:
10+
- `host filtering` has been moved to tower middleware instead of the server API.
11+
- the clients now supports default port number such `wss://my.server.com`
12+
- the background task for the async client has been refactored to multiplex send and read operations.
13+
14+
Regarding host filtering prior to this release one had to do:
15+
16+
```rust
17+
let acl = AllowHosts::Only(vec!["http://localhost:*".into(), "http://127.0.0.1:*".into()]);
18+
let server = ServerBuilder::default().set_host_filtering(acl).build("127.0.0.1:0").await.unwrap();
19+
```
20+
21+
After this release then one have to do:
22+
23+
```rust
24+
let middleware = tower::ServiceBuilder::new().layer(HostFilterLayer::new(["example.com"]).unwrap());
25+
let server = Server::builder().set_middleware(middleware).build("127.0.0.1:0".parse::<SocketAddr>()?).await?;
26+
```
27+
28+
Thanks to the external contributors [@polachok](https://github.com/polachok), [@bobs4462](https://github.com/bobs4462) and [@aj3n](https://github.com/aj3n) that contributed to this release.
29+
30+
### [Added]
31+
- feat(server): add `SubscriptionMessage::new` ([#1176](https://github.com/paritytech/jsonrpsee/pull/1176))
32+
- feat(server): add `SubscriptionSink::connection_id` ([#1175](https://github.com/paritytech/jsonrpsee/pull/1175))
33+
- feat(server): add `Params::get` ([#1173](https://github.com/paritytech/jsonrpsee/pull/1173))
34+
- feat(server): add `PendingSubscriptionSink::connection_id` ([#1163](https://github.com/paritytech/jsonrpsee/pull/1163))
35+
36+
### [Fixed]
37+
- fix(server): host filtering URI read authority ([#1178](https://github.com/paritytech/jsonrpsee/pull/1178))
38+
39+
### [Changed]
40+
- refactor: make ErrorObject::borrowed accept `&str` ([#1160](https://github.com/paritytech/jsonrpsee/pull/1160))
41+
- refactor(client): support default port number ([#1172](https://github.com/paritytech/jsonrpsee/pull/1172))
42+
- refactor(server): server host filtering ([#1174](https://github.com/paritytech/jsonrpsee/pull/1174))
43+
- refactor(client): refactor background task ([#1145](https://github.com/paritytech/jsonrpsee/pull/1145))
44+
- refactor: use `RootCertStore::add_trust_anchors` ([#1165](https://github.com/paritytech/jsonrpsee/pull/1165))
45+
- chore(deps): update criterion v0.5 and pprof 0.12 ([#1161](https://github.com/paritytech/jsonrpsee/pull/1161))
46+
- chore(deps): update webpki-roots requirement from 0.24 to 0.25 ([#1158](https://github.com/paritytech/jsonrpsee/pull/1158))
47+
- refactor(server): move host filtering to tower middleware ([#1179](https://github.com/paritytech/jsonrpsee/pull/1179))
48+
749
## [v0.19.0] - 2023-07-20
850

951
### [Fixed]

Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resolver = "2"
1919

2020
[workspace.package]
2121
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
22-
version = "0.19.0"
22+
version = "0.20.0"
2323
edition = "2021"
2424
rust-version = "1.64.0"
2525
license = "MIT"
@@ -30,11 +30,11 @@ keywords = ["jsonrpc", "json", "http", "websocket", "WASM"]
3030
readme = "README.md"
3131

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

README.md

Lines changed: 1 addition & 1 deletion
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.18.1/status.svg)](https://deps.rs/crate/jsonrpsee/0.18.1)
9+
[![dependency status](https://deps.rs/crate/jsonrpsee/0.18.1/status.svg)](https://deps.rs/crate/jsonrpsee/0.20.0)
1010

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

0 commit comments

Comments
 (0)