This repository was archived by the owner on Aug 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
bump(deps): update rust crate jsonrpsee to 0.20.0 #84
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/jsonrpsee-0.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❌ Deploy Preview for metachain failed.
|
5b13bc8 to
e481115
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #84 +/- ##
==========================================
+ Coverage 3.96% 89.47% +85.50%
==========================================
Files 10 4 -6
Lines 1766 57 -1709
Branches 0 3 +3
==========================================
- Hits 70 51 -19
+ Misses 1696 6 -1690 ☔ View full report in Codecov by Sentry. |
e481115 to
2d4fcc5
Compare
2d4fcc5 to
7540b75
Compare
7540b75 to
8d5fd06
Compare
8d5fd06 to
add5e2d
Compare
add5e2d to
44aaa39
Compare
44aaa39 to
1c0b7e4
Compare
1c0b7e4 to
4ba4ac2
Compare
4ba4ac2 to
5aedb18
Compare
5aedb18 to
c8f8335
Compare
c8f8335 to
7e1644a
Compare
7e1644a to
1d46e62
Compare
1d46e62 to
cd3d227
Compare
cd3d227 to
c5c9e20
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.15.1->0.20.0Release Notes
paritytech/jsonrpsee (jsonrpsee)
v0.20.0Compare Source
Another breaking release where the major changes are:
host filteringhas been moved to tower middleware instead of the server API.wss://my.server.comRegarding host filtering prior to this release one had to do:
After this release then one have to do:
Thanks to the external contributors @polachok, @bobs4462 and @aj3n that contributed to this release.
[Added]
SubscriptionMessage::new(#1176)SubscriptionSink::connection_id(#1175)Params::get(#1173)PendingSubscriptionSink::connection_id(#1163)[Fixed]
[Changed]
&str(#1160)RootCertStore::add_trust_anchors(#1165)v0.19.0Compare Source
[Fixed]
debug(#1127)MethodSinkPermitto fix backpressure issue on concurrent subscriptions (#1126)[Changed]
Server::startinfallible and addfn builder()(#1137)v0.18.2Compare Source
This release improves error message for
too big batch responseand exposes theBatchRequestConfig typein order to make it possible to useServerBuilder::set_batch_request_config[Fixed]
v0.18.1Compare Source
This release fixes a couple bugs and improves the ergonomics for the HTTP client
when no tower middleware is enabled.
[Changed]
[Fixed]
v0.18.0Compare Source
This is a breaking release that removes the
CallErrorwhich was used to represent a JSON-RPC error object thatcould happen during JSON-RPC method call and one could assign application specific error code, message and data in a
specific implementation.
Previously jsonrpsee provided
CallErrorthat could be converted to/fromjsonrpsee::core::Errorand in some scenarios the error code was automatically assigned by jsonrpsee. After jsonrpsee
added support for custom error types the
CallErrordoesn't provide any benefit because one has to implementInto<ErrorObjectOwned>on the error type anyway.
Thus,
jsonrpsee::core::Errorcan't be used in the proc macro API anymore and the type aliasRpcResulthas been modified toResult<(), ErrorObjectOwned>instead.Before it was possible to do:
After this change one has to do:
[Changed]
CallError(#1087)[Fixed]
v0.17.1Compare Source
This release fixes HTTP graceful shutdown for the server.
[Fixed]
v0.17.0Compare Source
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_streamhas been removed.Before it was possible to do:
After this release one must do something like:
Method call return type is more flexible
This release also introduces a trait called
IntoResponsewhich is makes it possible to return custom types and/or errortypes instead of enforcing everything to return
Result<T, jsonrpsee::core::Error>This affects the APIs
RpcModule::register_method,RpcModule::register_async_methodandRpcModule::register_blocking_methodand when these are used in the proc macro API are affected by this change.
Be aware that the client APIs don't support this yet
The
IntoResponsetrait is already implemented forResult<T, jsonrpsee::core::Error>and for the primitive typesBefore it was possible to do:
After this release it's possible to do:
Subscription API is changed.
jsonrpsee now spawns the subscriptions via
tokio::spawnand it's sufficient to provide an async block inregister_subscriptionFurther, the subscription API had an explicit close API for closing subscriptions which was hard to understand and
to get right. This has been removed and everything is handled by the return value/type of the async block instead.
Example:
The return value in the example above needs to implement
IntoSubscriptionCloseResponseandany value that is returned after that the subscription has been accepted will be treated as a
IntoSubscriptionCloseResponse.Because
Result<(), E>is used here the close notification will be sent out as error notification but it's possible todisable the subscription close response by using
()instead ofResult<(), E>or implementIntoSubscriptionCloseResponsefor other behaviour.[Added]
[Fixed]
Semaphore::(u32::MAX)(#1051)max_log_lengthAPIs and use missing configs (#956)[Changed]
impl IntoSubscriptionResponse(#1034)IntoResponsetrait for method calls (#1057)jsonrpcprotocol version field inResponseasOption(#1046)SubscriptionAnswer(#1025)max_notifs_per_subscriptiontomax_buffer_capacity_per_subscription(#1012)FutureDriverwithtokio::spawn(#1080)v0.16.2Compare Source
This release adds
CloneandCopyimplementations.[Fixed]
[Added]
CloneandCopyimpls (#951)v0.16.1Compare Source
v0.16.1 is release that adds two new APIs to server
http_onlyandws_onlyto make it possible to allow only HTTP respectively WebSocket.Both HTTP and WebSocket are still enabled by default.
[Fixed]
async-channel(#940)[Added]
v0.16.0Compare Source
v0.16.0 is a breaking release and the major changes are:
jsonrpsee-http-serverandjsonrpsee-ws-servercrates are moved to thejsonrpsee-servercrate instead.tower middlewaresupport.tower middleware.[Fixed]
typesto server feature (#891)RpcModule::calldecode response correctly (#839)[Added]
transport protocol detailsto the logger trait (#886)notify_on_disconnect(#837)bytes_len()to Params (#848)[Changed]
WS and HTTP serverswith a server that supports bothWS and HTTP(#863)towersupport (#831)MiddlewaretoLogger(#845)SubscriptionSink::pipe_from_stream(#901)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.