Update Rust crate ruma-common to 0.18.0#3
Open
oxide-renovate[bot] wants to merge 1 commit intomainfrom
Open
Conversation
baa4568 to
18037b6
Compare
18037b6 to
b239c99
Compare
b239c99 to
2575857
Compare
2575857 to
1d4afda
Compare
1d4afda to
118462c
Compare
118462c to
42eba07
Compare
42eba07 to
cf913ea
Compare
cf913ea to
6d541ba
Compare
6d541ba to
203aaf8
Compare
203aaf8 to
94c5f98
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.17.0→0.18.0Release Notes
ruma/ruma (ruma-common)
v0.18.0: ruma-common 0.18.0Compare Source
Breaking changes:
CanonicalJsonErrorvariants changed.to_canonical_value()has stricter rules, it now returns errors for the following cases which were never documented to work in the first place:canonical-jsonfeature was removed. Thecanonical_jsonmodule is no longer gated behind a cargo feature.IdDstmacro doesn't generate methods and trait implementations anymore forBox{id},Arc<id>andRc<{id}>. UsingOwned{id}should be preferred.EventId::new()was renamed toEventId::new_v1(), since it works only for the first format of event IDs.NoAuthenticationauthentication scheme doesn't take aSendAccessTokenas input anymore, because it doesn't make sense to be able to send access tokens for APIs that don't use them as a form of authentication. The newNoAccessTokenauthentication scheme should be used instead for APIs that rely on access tokens as a form of authentication.Actiontypes directly through the hidden_Customvariant. They should be constructed withAction::new()and their data should be accessed withAction::data().Tweaktype uses stronger enum types for its variants, and theCustomvariant is now hidden and cannot be constructed directly. It should be constructed withTweak::new()and its data should be accessed withTweak::set_tweak()andTweak::value().PushConditionare now tuple variants containing a non-exhaustive struct.JsonTypewas renamed toCanonicalJsonTypeto reflect that it only represents the possible types of aCanonicalJsonValue. It can also be accessed withCanonicalJsonValue::json_type().RedactionError:NotOfTypewas renamed toInvalidTypeand provides more details about the invalid field.JsonFieldMissingFromObjectwas renamed toMissingFieldan provides the full path of the missing field.redact_content_in_place()is now infallible.MatrixErrorandMatrixErrorBodywere renamed toErrorandErrorBodyrespectively. TheMatrixprefix is redundant in a crate about the Matrix protocol.errormodule fromruma-client-apiwas merged into theapi::errormodule.Erroris now non-exhaustive andErrorBodyhas a newStandardvariant.Improvements:
canonical_json::Serializer, which allows to serialize a type directly to aCanonicalJsonValue, with stricter rules thanserde_json::value::Serializer. This serializer is also used into_canonical_value().assert_to_canonical_json_eq!macro that can be used in tests to check the canonical JSON serialization of a type against its expected value.into_raw()/from_raw()helpers forIdDstowned IDs and use them inOwnedRoomId/OwnedRoomAliasId<->OwnedRoomOrAliasIdconversions.OwnedDeviceIdandOwnedBase64PublicKeytoOwnedBase64PublicKeyOrDeviceId.(Try)From<Box<str>>,(Try)From<Cow<'a, str>>andPartialEq<Cow<'a, str>>and conversions between owned types try not to reallocate when possible.EventId::new_v2_or_v3()to construct event IDs formats which are based on the event reference hash.RoomType::Call&RoomTypeFilter::Callto support MSC3417 behindunstable-msc3417Base64::parsewhen the innerB"bytes" type is an array, and the inner bytes can be accessed without consuming the wrapper type withBase64::as_inner().MatrixVersion::V1_18.CanonicalJsonValue::json_type()allows to get theJsonTypeof a value.FeatureFlag::Msc4323, the unstable feature flag for the user suspension and locking endpoints, according to MSC4323.rule_type()anddata()methods toAllowRule.PartialEqandEqonCrossSigningKeyandSignatures.Error::is_endpoint_not_implemented()helper method to check if it matches the expected format for endpoints that are not implemented by the homeserver.v0.17.1: ruma-common 0.17.1Compare Source
Bug fixes:
Cloneimplementation of theOwned*types generated with theIdDstmacro. It used to always create a new instance from the borrowed type instead of using theCloneimplementation of the internal type.Improvements:
AppserviceUserIdentity::maybe_add_to_uri()to add an identity assertion to anhttp::Uri. This allows to reimplement the behavior ofOutgoingRequestAppserviceExt::try_into_http_request_with_identity()outside of Ruma, if using this trait is inconvenient.MatrixVersion::V1_17.JoinRuleholds arbitrary data in its fallback variant, with can be accessed withJoinRule::data(). It also means that this type won't fail to serialize for undocumented variants anymore.Configuration
📅 Schedule: (in timezone America/Los_Angeles)
🚦 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.