From f03065793b42fddf4273a3cf9357c6334f9303bd Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 26 Nov 2021 00:47:20 +0100 Subject: [PATCH] identifiers: Update changelog --- crates/ruma-identifiers/CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/ruma-identifiers/CHANGELOG.md b/crates/ruma-identifiers/CHANGELOG.md index a33aa496..254096dd 100644 --- a/crates/ruma-identifiers/CHANGELOG.md +++ b/crates/ruma-identifiers/CHANGELOG.md @@ -1,5 +1,15 @@ # [unreleased] +Breaking changes: + +* Make almost all identifier types dynamically-sized types that wrap `str` + * This makes types like `&RoomId` and `&UserId` lighter + * If you want to own an identifier, use `Box`, `Arc` or similar + * The exception to this are the enums like `RoomVersionId` and `EventEncryptionAlgorithm` + (these *might* be converted into the same kind of type at some point in the future) + * The corresponding macros (and also `server_name!`) now return `'static` references instead of + owned values now – use `.to_owned()` to get an owned copy + # 0.20.0 Breaking changes: