docs: Point links to v1.10 of the spec

This commit is contained in:
Kévin Commaille 2024-03-22 18:06:51 +01:00 committed by Kévin Commaille
parent 041d871781
commit 0e7c91d789
8 changed files with 11 additions and 11 deletions

View File

@ -16,7 +16,7 @@ Breaking changes:
Improvements: Improvements:
- Point links to the Matrix 1.9 specification - Point links to the Matrix 1.10 specification
- Add the `get_authentication_issuer` endpoint from MSC2965 behind the - Add the `get_authentication_issuer` endpoint from MSC2965 behind the
`unstable-msc2965` feature. `unstable-msc2965` feature.
- Add `error_kind` accessor method to `ruma_client_api::Error` - Add `error_kind` accessor method to `ruma_client_api::Error`

View File

@ -9,8 +9,8 @@ pub mod v3 {
//! [by their Matrix identifier][spec-mxid], and one to invite a user //! [by their Matrix identifier][spec-mxid], and one to invite a user
//! [by their third party identifier][spec-3pid]. //! [by their third party identifier][spec-3pid].
//! //!
//! [spec-mxid]: https://spec.matrix.org/v1.9/client-server-api/#post_matrixclientv3roomsroomidinvite //! [spec-mxid]: https://spec.matrix.org/v1.10/client-server-api/#post_matrixclientv3roomsroomidinvite
//! [spec-3pid]: https://spec.matrix.org/v1.9/client-server-api/#post_matrixclientv3roomsroomidinvite-1 //! [spec-3pid]: https://spec.matrix.org/v1.10/client-server-api/#post_matrixclientv3roomsroomidinvite-1
use ruma_common::{ use ruma_common::{
api::{request, response, Metadata}, api::{request, response, Metadata},

View File

@ -19,7 +19,7 @@ Improvements:
`MilliSecondsSinceUnixEpoch::to_system_time()` method. `MilliSecondsSinceUnixEpoch::to_system_time()` method.
- Stabilize support for `.m.rule.suppress_edits` push rule (MSC3958 / Matrix 1.9) - Stabilize support for `.m.rule.suppress_edits` push rule (MSC3958 / Matrix 1.9)
- Add `MatrixVersion::V1_9` and `V1_10` - Add `MatrixVersion::V1_9` and `V1_10`
- Point links to the Matrix 1.9 specification - Point links to the Matrix 1.10 specification
- Implement `as_str()` and `AsRef<str>` for `push::PredefinedRuleId` - Implement `as_str()` and `AsRef<str>` for `push::PredefinedRuleId`
- Implement `kind()` for `push::Predefined{*}RuleId` - Implement `kind()` for `push::Predefined{*}RuleId`

View File

@ -602,7 +602,7 @@ mod tests {
assert!(!"m".matches_word("[[:alpha:]]?")); assert!(!"m".matches_word("[[:alpha:]]?"));
assert!("[[:alpha:]]!".matches_word("[[:alpha:]]?")); assert!("[[:alpha:]]!".matches_word("[[:alpha:]]?"));
// From the spec: <https://spec.matrix.org/v1.9/client-server-api/#conditions-1> // From the spec: <https://spec.matrix.org/v1.10/client-server-api/#conditions-1>
assert!("An example event.".matches_word("ex*ple")); assert!("An example event.".matches_word("ex*ple"));
assert!("exple".matches_word("ex*ple")); assert!("exple".matches_word("ex*ple"));
assert!("An exciting triple-whammy".matches_word("ex*ple")); assert!("An exciting triple-whammy".matches_word("ex*ple"));
@ -651,7 +651,7 @@ mod tests {
assert!("".matches_pattern("*", false)); assert!("".matches_pattern("*", false));
assert!(!"foo".matches_pattern("", false)); assert!(!"foo".matches_pattern("", false));
// From the spec: <https://spec.matrix.org/v1.9/client-server-api/#conditions-1> // From the spec: <https://spec.matrix.org/v1.10/client-server-api/#conditions-1>
assert!("Lunch plans".matches_pattern("lunc?*", false)); assert!("Lunch plans".matches_pattern("lunc?*", false));
assert!("LUNCH".matches_pattern("lunc?*", false)); assert!("LUNCH".matches_pattern("lunc?*", false));
assert!(!" lunch".matches_pattern("lunc?*", false)); assert!(!" lunch".matches_pattern("lunc?*", false));

View File

@ -57,7 +57,7 @@ fn is_default_bits(val: &UInt) -> bool {
/// ///
/// The only algorithm currently specified is `m.secret_storage.v1.aes-hmac-sha2`, so this /// The only algorithm currently specified is `m.secret_storage.v1.aes-hmac-sha2`, so this
/// essentially represents `AesHmacSha2KeyDescription` in the /// essentially represents `AesHmacSha2KeyDescription` in the
/// [spec](https://spec.matrix.org/v1.9/client-server-api/#msecret_storagev1aes-hmac-sha2). /// [spec](https://spec.matrix.org/latest/client-server-api/#msecret_storagev1aes-hmac-sha2).
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
#[derive(Clone, Debug, Serialize, EventContent)] #[derive(Clone, Debug, Serialize, EventContent)]
#[ruma_event(type = "m.secret_storage.key.*", kind = GlobalAccountData)] #[ruma_event(type = "m.secret_storage.key.*", kind = GlobalAccountData)]
@ -137,7 +137,7 @@ impl SecretStorageEncryptionAlgorithm {
/// The key properties for the `m.secret_storage.v1.aes-hmac-sha2` algorithm. /// The key properties for the `m.secret_storage.v1.aes-hmac-sha2` algorithm.
/// ///
/// Corresponds to the AES-specific properties of `AesHmacSha2KeyDescription` in the /// Corresponds to the AES-specific properties of `AesHmacSha2KeyDescription` in the
/// [spec](https://spec.matrix.org/v1.9/client-server-api/#msecret_storagev1aes-hmac-sha2). /// [spec](https://spec.matrix.org/latest/client-server-api/#msecret_storagev1aes-hmac-sha2).
#[derive(Debug, Clone, Deserialize, Serialize)] #[derive(Debug, Clone, Deserialize, Serialize)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct SecretStorageV1AesHmacSha2Properties { pub struct SecretStorageV1AesHmacSha2Properties {

View File

@ -10,7 +10,7 @@ Bug fixes:
Improvements: Improvements:
- Point links to the Matrix 1.9 specification - Point links to the Matrix 1.10 specification
# 0.9.3 # 0.9.3

View File

@ -77,7 +77,7 @@ pub enum MxcUriError {
/// Media identifier malformed due to invalid characters detected. /// Media identifier malformed due to invalid characters detected.
/// ///
/// Valid characters are (in regex notation) `[A-Za-z0-9_-]+`. /// Valid characters are (in regex notation) `[A-Za-z0-9_-]+`.
/// See [here](https://spec.matrix.org/v1.9/client-server-api/#security-considerations-5) for more details. /// See [here](https://spec.matrix.org/v1.10/client-server-api/#security-considerations-5) for more details.
#[error("Media Identifier malformed, invalid characters")] #[error("Media Identifier malformed, invalid characters")]
MediaIdMalformed, MediaIdMalformed,

View File

@ -17,7 +17,7 @@ pub fn validate(uri: &str) -> Result<NonZeroU8, MxcUriError> {
let server_name = &uri[..index]; let server_name = &uri[..index];
let media_id = &uri[index + 1..]; let media_id = &uri[index + 1..];
// See: https://spec.matrix.org/v1.9/client-server-api/#security-considerations-5 // See: https://spec.matrix.org/v1.10/client-server-api/#security-considerations-5
let media_id_is_valid = media_id let media_id_is_valid = media_id
.bytes() .bytes()
.all(|b| matches!(b, b'0'..=b'9' | b'a'..=b'z' | b'A'..=b'Z' | b'-' | b'_' )); .all(|b| matches!(b, b'0'..=b'9' | b'a'..=b'z' | b'A'..=b'Z' | b'-' | b'_' ));