diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index 23664d58..fa82b083 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -1,5 +1,11 @@ # [unreleased] +Improvements: + +- Add `MatrixVersion::V1_13`. + +# 0.15.0 + Breaking changes: - `#[serde(flatten)]` on the only body field of a `#[request]` or `#[response]` diff --git a/crates/ruma-common/src/api/metadata.rs b/crates/ruma-common/src/api/metadata.rs index 8f8a8823..9f3bf13a 100644 --- a/crates/ruma-common/src/api/metadata.rs +++ b/crates/ruma-common/src/api/metadata.rs @@ -553,6 +553,11 @@ pub enum MatrixVersion { /// /// See . V1_12, + + /// Version 1.13 of the Matrix specification, released in Q4 2024. + /// + /// See . + V1_13, } impl TryFrom<&str> for MatrixVersion { @@ -578,6 +583,7 @@ impl TryFrom<&str> for MatrixVersion { "v1.10" => V1_10, "v1.11" => V1_11, "v1.12" => V1_12, + "v1.13" => V1_13, _ => return Err(UnknownVersionError), }) } @@ -629,6 +635,7 @@ impl MatrixVersion { MatrixVersion::V1_10 => (1, 10), MatrixVersion::V1_11 => (1, 11), MatrixVersion::V1_12 => (1, 12), + MatrixVersion::V1_13 => (1, 13), } } @@ -648,6 +655,7 @@ impl MatrixVersion { (1, 10) => Ok(MatrixVersion::V1_10), (1, 11) => Ok(MatrixVersion::V1_11), (1, 12) => Ok(MatrixVersion::V1_12), + (1, 13) => Ok(MatrixVersion::V1_13), _ => Err(UnknownVersionError), } } @@ -746,7 +754,9 @@ impl MatrixVersion { // | MatrixVersion::V1_11 // - | MatrixVersion::V1_12 => RoomVersionId::V10, + | MatrixVersion::V1_12 + // + | MatrixVersion::V1_13 => RoomVersionId::V10, } } }