Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 20, 2025

Bumps ruma-common from 0.15.4 to 0.16.0.

Release notes

Sourced from ruma-common's releases.

ruma-common 0.16.0

Breaking changes:

  • PushCondition::applies, ConditionalPushRule::applies, AnyPushRuleRef::applies, AnyPushRule::applies, Ruleset::applies, Ruleset::get_actions, Ruleset::get_match all became async, to allow for lazy evaluation of push rules.
  • UserId parsing and deserialization are now compatible with all non-compliant user IDs in the wild by default, due to a clarification in the spec.
    • The compat-user-id cargo feature was removed.
    • UserId::validate_historical() and UserId::validate_strict() allow to check for spec compliance.
    • The (owned_)user_id! macros always validate against the strict grammar in the spec, regardless of the compat features that are enabled.
  • (owned_)room_id! macros disallow the NUL byte, due to a clarification in the spec.
  • (owned_)room_alias_id! macros disallow the NUL byte for the localpart, due to a clarification in the spec.
  • MatrixVersion does not implement Display anymore as it is not correct to convert V1_0 to a string. Instead MatrixVersion::as_str() can be used that only returns None for that same variant.
  • MatrixVersion::(into/from)_parts are no longer exposed as public methods. They were usually used to sort MatrixVersions, now the PartialOrd and Ord implementations can be used instead.
  • Protocol and ProtocolInit are generic on the protocol instance type.
  • Add support for endpoints that only allow appservices to call them, renaming AppserviceToken to AppserviceTokenOptional, with the new variant taking AppserviceToken's place.
  • The redact* functions in canonical_json take RedactionRules instead of RoomVersionId. This avoids undefined behavior for unknown room versions.
  • OutgoingRequest::try_into_http_request(), OutgoingRequestAppserviceExt::try_into_http_request_with_user_id() and Metadata::make_endpoint_url() take a SupportedVersions instead of a &[MatrixVersion].
  • The metadata macro allows to specify stable and unstable feature flags for the paths in history.
    • VersionHistory::new() takes a &'static [(Option<&'static str>, &'static str)] for the unstable paths and a &'static [(StablePathSelector, &'static str)] for the stable paths.
    • VersionHistory::unstable_paths() returns an impl Iterator<Item = (Option<&'static str>, &'static str)>.
    • VersionHistory::stable_paths() returns an impl Iterator<Item = (StablePathSelector, &'static str)>.
    • VersionHistory::stable_endpoint_for() was renamed to version_path().
    • VersioningDecision's Stable variant was renamed to Version and Unstable was renamed to Feature.
  • The syntax of variables in endpoint paths segments in the metadata macro has changed: the variable must now be surrounded by {} instead of being preceded by :. For example /_matrix/client/foo/{bar}. This matches the OpenAPI syntax and the new syntax supported by axum 0.8.
  • JoinRule and its associated types where imported from ruma-events into the room module.
  • space::SpaceRoomJoinRule was removed and replaced by room::JoinRuleSummary.
  • directory::PublicRoomJoinRule was moved and renamed to room::JoinRuleKind.
    • It can be constructed with JoinRule::kind() and JoinRuleSummary::kind().
  • Make PushConditionRoomCtx and PushConditionPowerLevelsCtx non-exhaustive.
  • The versions field of SupportedVersions is now a BTreeSet<MatrixVersion>, to make sure that the versions are always deduplicated and sorted.
  • NotificationPowerLevels now takes a NotificationPowerLevelsKey for the key, an enum that accepts any string.
    • The key field of PushCondition::SenderNotificationPermission uses the same type.
  • RoomId::new() was renamed to RoomId::new_v1(), as several formats are now supported for this type.
  • StateResolutionVersion::V2 now takes StateResolutionV2Rules as a unit field, to specify tweaks to be used when resolving state with version 2 of the state resolution algorithm.
    • This field can be accessed with StateResolutionVersion::v2_rules, returning None if state_res is not StateResolutionVersion::V2.
    • StateResolutionV2Rules has the following fields:
      • begin_iterative_auth_checks_with_empty_state_map, to determine whether to begin the first phase of iterative auth checks with an empty state map.
      • consider_conflicted_state_subgraph, to determine whether to include the conflicted state subgraph in the full conflicted state.

Bug fix:

  • Set the disposition of RoomVersionRules::MSC2870 as unstable.

Improvements:

  • Implement the Zeroize trait for the Base64 type.
  • ProtocolInstance has an instance_id field, due to a clarification in the spec.
  • The unstable-unspecified cargo feature was removed.
  • Add AnyKeyName as a helper type to use KeyId APIs without validating the key name.
  • Add IdentityServerBase64PublicKey as a helper type to decode identity server public keys encoded using standard or URL-safe base64.
  • RoomVersion was imported from ruma-state-res and renamed to RoomVersionRules, along with the following changes:

... (truncated)

Commits
  • cfc3c49 Release ruma-common 0.16.0
  • d56e518 Release ruma-macros 0.16.0
  • 53902e3 Release ruma-identifiers-validation 0.11.0
  • c8cd313 ci: Make semver check PR comment work for forks
  • d2649f9 ruma-events: Add org.matrix.msc4334.room.language state event
  • 6134310 events: fix rtc decline doc broken link
  • 17f9db1 client-api: Replace MembershipEventFilter with MembershipState
  • 51fb51a client-api: add support for msc4308 sliding sync extension
  • 6c36c5c room-version-rules: Add missing EventsReferenceFormatVersion enum for RoomVer...
  • 8ea1253 Ban LLM contributions
  • 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)

Bumps [ruma-common](https://github.com/ruma/ruma) from 0.15.4 to 0.16.0.
- [Release notes](https://github.com/ruma/ruma/releases)
- [Commits](ruma/ruma@ruma-common-0.15.4...ruma-common-0.16.0)

---
updated-dependencies:
- dependency-name: ruma-common
  dependency-version: 0.16.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added A-Dependencies Pull requests that update a dependency file Z-Deps-Backend Updates to the backend dependencies labels Oct 20, 2025
@cloudflare-workers-and-pages
Copy link

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: cdb21e0
Status: ✅  Deploy successful!
Preview URL: https://758cf43e.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://dependabot-cargo-ruma-common-rc0w.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose enabled auto-merge October 20, 2025 15:07
@sandhose sandhose merged commit 7df0c8b into main Oct 20, 2025
38 of 44 checks passed
@sandhose sandhose deleted the dependabot/cargo/ruma-common-0.16.0 branch October 20, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Dependencies Pull requests that update a dependency file Z-Deps-Backend Updates to the backend dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants