Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump jsonrpsee from 0.21.0 to 0.22.0 in /deepwell #1808

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 12, 2024

Bumps jsonrpsee from 0.21.0 to 0.22.0.

Release notes

Sourced from jsonrpsee's releases.

v0.22.0

[v0.22.0] - 2024-02-07

Another breaking release where a new ResponsePayload type is introduced in order to make it possible to determine whether a response has been processed.

Unfortunately, the IntoResponse trait was modified to enable that and some minor changes were made to make more fields private to avoid further breakage.

Example of the async ResponsePayload API

#[rpc(server)]
pub trait Api {
	#[method(name = "x")]
	fn x(&self) -> ResponsePayload<'static, String>;
}
impl RpcServer for () {
fn x(&self) -> ResponsePayload<'static, String> {
let (rp, rp_done) = ResponsePayload::success("ehheeheh".to_string()).notify_on_completion();
	tokio::spawn(async move {
		if rp_done.await.is_ok() {
			do_task_that_depend_x();
		}
	});
rp

}

}

Roadmap

We are getting closer to releasing jsonrpsee v1.0 and the following work is planned:

  • Native async traits
  • Upgrade hyper to v1.0
  • Better subscription API for the client.

Thanks to the external contributor @​dan-starkware who contributed to this release.

[Added]

  • feat(server): add TowerService::on_session_close (#1284)
  • feat(server): async API when Response has been processed. (#1281)

[Changed]

  • client(error): make display impl less verbose (#1283)

... (truncated)

Changelog

Sourced from jsonrpsee's changelog.

[v0.22.0] - 2024-02-07

Another breaking release where a new ResponsePayload type is introduced in order to make it possible to determine whether a response has been processed.

Unfortunately, the IntoResponse trait was modified to enable that and some minor changes were made to make more fields private to avoid further breakage.

Example of the async ResponsePayload API

#[rpc(server)]
pub trait Api {
	#[method(name = "x")]
	fn x(&self) -> ResponsePayload<'static, String>;
}
impl RpcServer for () {
fn x(&self) -> ResponsePayload<'static, String> {
let (rp, rp_done) = ResponsePayload::success("ehheeheh".to_string()).notify_on_completion();
	tokio::spawn(async move {
		if rp_done.await.is_ok() {
			do_task_that_depend_x();
		}
	});
rp

}

}

Roadmap

We are getting closer to releasing jsonrpsee v1.0 and the following work is planned:

  • Native async traits
  • Upgrade hyper to v1.0
  • Better subscription API for the client.

Thanks to the external contributor @​dan-starkware who contributed to this release.

[Added]

  • feat(server): add TowerService::on_session_close (#1284)
  • feat(server): async API when Response has been processed. (#1281)

[Changed]

  • client(error): make display impl less verbose (#1283)
  • fix: allow application/json-rpc http content type (#1277)

... (truncated)

Commits
  • 72939a9 chore: release v0.22.0 (#1285)
  • e1e7d73 refactor(rpc_module): RpcModule::raw_json_request -> String (#1287)
  • 8470f2b feat(server): add TowerService::on_session_close (#1284)
  • 387f52f feat: async API when Response has been processed. (#1281)
  • 8f73dbe client(error): make display impl less verbose (#1283)
  • 6975a79 chore(deps): bump baptiste0928/cargo-install from 2 to 3 (#1282)
  • 369b05d chore(deps): update proc-macro-crate requirement from 2 to 3 (#1269)
  • ae9e612 fix: allow application/json-rpc http content type (#1277)
  • e637805 chore: enable clippy for tests and fix lints (#1276)
  • 51acc7c chore(deps): bump Swatinem/rust-cache from 2.7.2 to 2.7.3 (#1275)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from emmiegit as a code owner February 12, 2024 06:08
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Feb 12, 2024
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f842327) 39.50% compared to head (5650e0f) 39.50%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1808   +/-   ##
========================================
  Coverage    39.50%   39.50%           
========================================
  Files          342      342           
  Lines        10984    10984           
========================================
  Hits          4339     4339           
  Misses        6645     6645           
Flag Coverage Δ *Carryforward flag
deepwell 2.01% <ø> (ø)
ftml 76.70% <ø> (ø) Carriedforward from f842327

*This pull request uses carry forward flags. Click here to find out more.

@emmiegit
Copy link
Member

@dependabot rebase

Bumps [jsonrpsee](https://github.com/paritytech/jsonrpsee) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/paritytech/jsonrpsee/releases)
- [Changelog](https://github.com/paritytech/jsonrpsee/blob/master/CHANGELOG.md)
- [Commits](paritytech/jsonrpsee@v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: jsonrpsee
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/deepwell/jsonrpsee-0.22.0 branch from fa0f58d to 5650e0f Compare February 13, 2024 04:56
@emmiegit emmiegit merged commit 4b63c4e into develop Feb 13, 2024
9 checks passed
@emmiegit emmiegit deleted the dependabot/cargo/deepwell/jsonrpsee-0.22.0 branch February 13, 2024 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant