Unverified Commit f949d9b2 authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

chore(release 0.4.0) (#511)



* update CHANGELOG

* bump version number

* fix nit

* Update CHANGELOG.md

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

* bullet list in CHANGELOG

* add last item to CHANGELOG

Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
parent 75045f49
......@@ -6,6 +6,100 @@ The format is based on [Keep a Changelog].
## [Unreleased]
## [v0.4.0] – 2021-10-12
The v0.4 release is a breaking change.
### [Added]
- Document resource limiting (#510)
- Resource limiting [#500](https://github.com/paritytech/jsonrpsee/pull/500)
- Support http redirects when doing the ws handshake [#397](https://github.com/paritytech/jsonrpsee/pull/397)
- Add convenience `rpc_params` macro to build params in http and ws clients [#498](https://github.com/paritytech/jsonrpsee/pull/498)
- Method alias attribute for proc macros [#442](https://github.com/paritytech/jsonrpsee/pull/442)
- Add benchmarks for concurrent connections [#430](https://github.com/paritytech/jsonrpsee/pull/430)
- Support generic type params in the proc macro [#436](https://github.com/paritytech/jsonrpsee/pull/436)
### [Changed]
- use tokio::spawn internally in `HttpServer::start` and return `StopHandle` [#402](https://github.com/paritytech/jsonrpsee/pull/402)
- remove `ParamsSer::NoParams` [#501](https://github.com/paritytech/jsonrpsee/pull/501)
- http server uses similar API for host and origin filtering as `WS` [#473](https://github.com/paritytech/jsonrpsee/pull/473)
- `SubscriptionClosed` errors carry more information [#504](https://github.com/paritytech/jsonrpsee/pull/504)
- Improve feature configuration for faster builds and leaner build artifacts [#494](https://github.com/paritytech/jsonrpsee/pull/494)
- Unbox async futures [#495](https://github.com/paritytech/jsonrpsee/pull/495)
- WS clients default subscription buffer set to 1024 items [#475](https://github.com/paritytech/jsonrpsee/pull/475)
- Re-export `v2` submodules [#469](https://github.com/paritytech/jsonrpsee/pull/469)
- Replace internal `array_impl macro` with const generics [#470](https://github.com/paritytech/jsonrpsee/pull/470)
- Rename and reorganize many public types [#462](https://github.com/paritytech/jsonrpsee/pull/462)
- Export acl types [#466](https://github.com/paritytech/jsonrpsee/pull/466)
- Propagate cause of `InvalidParams` [#463](https://github.com/paritytech/jsonrpsee/pull/463)
- Reject overflowing connection with status code 429 [#456](https://github.com/paritytech/jsonrpsee/pull/456)
- Test helper for calling and converting types to JSON-RPC params [#458](https://github.com/paritytech/jsonrpsee/pull/458)
- Make it possible to treat empty JSON response as no params [#446](https://github.com/paritytech/jsonrpsee/pull/446)
- Methods generated by the proc macro return `Result` [#435](https://github.com/paritytech/jsonrpsee/pull/435)
- Concurrent polling on async methods [#424](https://github.com/paritytech/jsonrpsee/pull/424)
- Sniff the first byte to glean if the incoming request is a single or batch request [#419](https://github.com/paritytech/jsonrpsee/pull/419)
- Upgrade hyper to ^0.14.10 [#427](https://github.com/paritytech/jsonrpsee/pull/427)
- Proc macro params optimizations and tests. [#421](https://github.com/paritytech/jsonrpsee/pull/421)
### [Fixed]
- Proc macro Argument parsing should permit commas inside angle brackets [#509](https://github.com/paritytech/jsonrpsee/pull/509)
- Fix http client bench with request limit [#506](https://github.com/paritytech/jsonrpsee/pull/506)
- Fixed flaky test on windows [#491](https://github.com/paritytech/jsonrpsee/pull/491)
- Share the request id code between the http and websocket clients [#490](https://github.com/paritytech/jsonrpsee/pull/490)
- WS server terminates subscriptions when connection is closed by the client. [#483](https://github.com/paritytech/jsonrpsee/pull/483)
- Subscription code generated by the proc macro generated returns `Result` [#455](https://github.com/paritytech/jsonrpsee/pull/455)
- Proc macro generates documentation for trait methods. [#453](https://github.com/paritytech/jsonrpsee/pull/453)
- Fix errors with generics when using the proc macro [#433](https://github.com/paritytech/jsonrpsee/pull/433)
- WS client uses query part of the URL [#429](https://github.com/paritytech/jsonrpsee/pull/429)
### [Removed]
- Remove rustls [#502](https://github.com/paritytech/jsonrpsee/pull/502)
- Remove cors_max_age [#466](https://github.com/paritytech/jsonrpsee/pull/466)
- Remove support for tokio 0.2 runtimes [#432](https://github.com/paritytech/jsonrpsee/pull/432)
## [v0.3.0] – 2021-07-12
[changed] Module API refactor [#412](https://github.com/paritytech/jsonrpsee/pull/412)
......
[package]
name = "jsonrpsee-benchmarks"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Benchmarks for jsonrpsee"
edition = "2018"
......
[package]
name = "jsonrpsee-examples"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Examples for jsonrpsee"
edition = "2018"
......
[package]
name = "jsonrpsee-http-client"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "HTTP client for JSON-RPC"
edition = "2018"
......@@ -13,8 +13,8 @@ documentation = "https://docs.rs/jsonrpsee-http-client"
async-trait = "0.1"
hyper-rustls = "0.22"
hyper = { version = "0.14.10", features = ["client", "http1", "http2", "tcp"] }
jsonrpsee-types = { path = "../types", version = "0.3.0" }
jsonrpsee-utils = { path = "../utils", version = "0.3.0", features = ["http-helpers"] }
jsonrpsee-types = { path = "../types", version = "0.4.0" }
jsonrpsee-utils = { path = "../utils", version = "0.4.0", features = ["http-helpers"] }
log = "0.4"
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = "1.0"
......
[package]
name = "jsonrpsee-http-server"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "HTTP server for JSON-RPC"
edition = "2018"
......@@ -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.3.0" }
jsonrpsee-utils = { path = "../utils", version = "0.3.0", features = ["server", "http-helpers"] }
jsonrpsee-types = { path = "../types", version = "0.4.0" }
jsonrpsee-utils = { path = "../utils", version = "0.4.0", features = ["server", "http-helpers"] }
globset = "0.4"
lazy_static = "1.4"
log = "0.4"
......
[package]
name = "jsonrpsee"
description = "JSON-RPC crate"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
license = "MIT"
edition = "2018"
......@@ -12,13 +12,13 @@ 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 = "../http-client", version = "0.3.0", package = "jsonrpsee-http-client", optional = true }
jsonrpsee-http-server = { path = "../http-server", version = "0.3.0", package = "jsonrpsee-http-server", optional = true }
jsonrpsee-ws-client = { path = "../ws-client", version = "0.3.0", package = "jsonrpsee-ws-client", optional = true }
jsonrpsee-ws-server = { path = "../ws-server", version = "0.3.0", package = "jsonrpsee-ws-server", optional = true }
jsonrpsee-proc-macros = { path = "../proc-macros", version = "0.3.0", package = "jsonrpsee-proc-macros", optional = true }
jsonrpsee-utils = { path = "../utils", version = "0.3.0", package = "jsonrpsee-utils", optional = true }
jsonrpsee-types = { path = "../types", version = "0.3.0", package = "jsonrpsee-types", optional = true }
jsonrpsee-http-client = { path = "../http-client", version = "0.4.0", package = "jsonrpsee-http-client", optional = true }
jsonrpsee-http-server = { path = "../http-server", version = "0.4.0", package = "jsonrpsee-http-server", optional = true }
jsonrpsee-ws-client = { path = "../ws-client", version = "0.4.0", package = "jsonrpsee-ws-client", optional = true }
jsonrpsee-ws-server = { path = "../ws-server", version = "0.4.0", package = "jsonrpsee-ws-server", optional = true }
jsonrpsee-proc-macros = { path = "../proc-macros", version = "0.4.0", package = "jsonrpsee-proc-macros", optional = true }
jsonrpsee-utils = { path = "../utils", version = "0.4.0", package = "jsonrpsee-utils", optional = true }
jsonrpsee-types = { path = "../types", version = "0.4.0", package = "jsonrpsee-types", optional = true }
[features]
http-client = ["jsonrpsee-http-client", "jsonrpsee-types", "jsonrpsee-utils/client"]
......
[package]
name = "jsonrpsee-proc-macros"
description = "Procedueral macros for jsonrpsee"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
license = "MIT"
edition = "2018"
......
[package]
name = "jsonrpsee-test-utils"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT"
edition = "2018"
......
[package]
name = "jsonrpsee-integration-tests"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Integration tests for jsonrpsee"
edition = "2018"
......
[package]
name = "jsonrpsee-types"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Shared types for jsonrpsee"
edition = "2018"
......
[package]
name = "jsonrpsee-utils"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Utilities for jsonrpsee"
edition = "2018"
......@@ -13,7 +13,7 @@ thiserror = { version = "1", optional = true }
futures-channel = { version = "0.3.14", default-features = false, optional = true }
futures-util = { version = "0.3.14", default-features = false, optional = true }
hyper = { version = "0.14.10", default-features = false, features = ["stream"], optional = true }
jsonrpsee-types = { path = "../types", version = "0.3.0", optional = true }
jsonrpsee-types = { path = "../types", version = "0.4.0", optional = true }
log = { version = "0.4", optional = true }
rustc-hash = { version = "1", optional = true }
rand = { version = "0.8", optional = true }
......
[package]
name = "jsonrpsee-ws-client"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "WebSocket client for JSON-RPC"
edition = "2018"
......@@ -19,7 +19,7 @@ async-trait = "0.1"
fnv = "1"
futures = { version = "0.3.14", default-features = false, features = ["std"] }
http = "0.2"
jsonrpsee-types = { path = "../types", version = "0.3.0" }
jsonrpsee-types = { path = "../types", version = "0.4.0" }
log = "0.4"
pin-project = "1"
rustls-native-certs = "0.5.0"
......
[package]
name = "jsonrpsee-ws-server"
version = "0.3.0"
version = "0.4.0"
authors = ["Parity Technologies <admin@parity.io>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "WebSocket server for JSON-RPC"
edition = "2018"
......@@ -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.3.0" }
jsonrpsee-utils = { path = "../utils", version = "0.3.0", features = ["server"] }
jsonrpsee-types = { path = "../types", version = "0.4.0" }
jsonrpsee-utils = { path = "../utils", version = "0.4.0", features = ["server"] }
log = "0.4"
serde_json = { version = "1", features = ["raw_value"] }
soketto = "0.7"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment