@@ -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]
0 commit comments