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.16.2 to 0.17.1 #2062

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 24, 2023

Bumps jsonrpsee from 0.16.2 to 0.17.1.

Release notes

Sourced from jsonrpsee's releases.

v0.17.1

[v0.17.1] - 2023-04-21

This release fixes HTTP graceful shutdown for the server.

[Fixed]

  • server: fix http graceful shutdown (#1090)

v0.17.0

This is a significant release and the major breaking changes to be aware of are:

Server backpressure

This release changes the server to be "backpressured" and it mostly concerns subscriptions. New APIs has been introduced because of that and the API pipe_from_stream has been removed.

Before it was possible to do:

	module
		.register_subscription("sub", "s", "unsub", |_, sink, _| async move {
			let stream = stream_of_integers();
		tokio::spawn(async move {
			sink.pipe_from_stream(stream)
		});
	})
	.unwrap();

After this release one must do something like:

	// This is just a example helper.
	//
	// Other examples:
	// - <https://github.com/paritytech/jsonrpsee/blob/master/examples/examples/ws_pubsub_broadcast.rs>
	// - <https://github.com/paritytech/jsonrpsee/blob/master/examples/examples/ws_pubsub_with_params.rs>
	async fn pipe_from_stream<T: Serialize>(
		pending: PendingSubscriptionSink,
		mut stream: impl Stream<Item = T> + Unpin,
	) -> Result<(), anyhow::Error> {
		let mut sink = pending.accept().await?;
	loop {
		tokio::select! {
			_ = sink.closed() =&gt; break Ok(()),
		maybe_item = stream.next() =&amp;gt; {
			let Some(item) = match maybe_item else {


</tr></table>

... (truncated)

Changelog

Sourced from jsonrpsee's changelog.

[v0.17.1] - 2023-04-21

This release fixes HTTP graceful shutdown for the server.

[Fixed]

  • server: fix http graceful shutdown (#1090)

[v0.17.0] - 2023-04-17

This is a significant release and the major breaking changes to be aware of are:

Server backpressure

This release changes the server to be "backpressured" and it mostly concerns subscriptions. New APIs has been introduced because of that and the API pipe_from_stream has been removed.

Before it was possible to do:

	module
		.register_subscription("sub", "s", "unsub", |_, sink, _| async move {
			let stream = stream_of_integers();
		tokio::spawn(async move {
			sink.pipe_from_stream(stream)
		});
	})
	.unwrap();

After this release one must do something like:

	// This is just a example helper.
	//
	// Other examples:
	// - <https://github.com/paritytech/jsonrpsee/blob/master/examples/examples/ws_pubsub_broadcast.rs>
	// - <https://github.com/paritytech/jsonrpsee/blob/master/examples/examples/ws_pubsub_with_params.rs>
	async fn pipe_from_stream<T: Serialize>(
		pending: PendingSubscriptionSink,
		mut stream: impl Stream<Item = T> + Unpin,
	) -> Result<(), anyhow::Error> {
		let mut sink = pending.accept().await?;
	loop {
		tokio::select! {
			_ = sink.closed() =&gt; break Ok(()),
		maybe_item = stream.next() =&amp;gt; {
			let Some(item) = match maybe_item else {


</tr></table>

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR 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 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)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 24, 2023
@serban300
Copy link
Collaborator

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/cargo/jsonrpsee-0.17.1 branch from 2c42d02 to 4d857cd Compare April 24, 2023 06:42
@serban300 serban300 self-assigned this Apr 24, 2023
@serban300
Copy link
Collaborator

Taking a look

@serban300
Copy link
Collaborator

serban300 commented Apr 24, 2023

Bumped for relay-substrate-client

We still need to bump jsonrpsee for millau and rialto-parachain, but we need substrate to bump it first. Will keep an eye on this.

@serban300
Copy link
Collaborator

PR to watch: paritytech/substrate#13992

@dependabot dependabot bot force-pushed the dependabot/cargo/jsonrpsee-0.17.1 branch 2 times, most recently from 44cc518 to 2ed9ccd Compare May 8, 2023 02:05
@dependabot dependabot bot force-pushed the dependabot/cargo/jsonrpsee-0.17.1 branch from 2ed9ccd to fd7cc6f Compare May 15, 2023 02:02
Bumps [jsonrpsee](https://github.com/paritytech/jsonrpsee) from 0.16.2 to 0.17.1.
- [Release notes](https://github.com/paritytech/jsonrpsee/releases)
- [Changelog](https://github.com/paritytech/jsonrpsee/blob/master/CHANGELOG.md)
- [Commits](paritytech/jsonrpsee@v0.16.2...v0.17.1)

---
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/jsonrpsee-0.17.1 branch from fd7cc6f to 9149d24 Compare May 22, 2023 02:03
@acatangiu acatangiu closed this Apr 10, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 10, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/cargo/jsonrpsee-0.17.1 branch April 10, 2024 09:33
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants