Update ruma-client-api changelog

This commit is contained in:
Jonas Platte 2020-08-08 15:50:41 +02:00
parent 349027f87d
commit d08fc02bc0
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -8,6 +8,16 @@ Bug fixes:
Breaking changes:
* Borrow strings in outgoing requests and responses.
* Explicit types may have to be updated from `endpoint::Request` to `endpoint::Request<'_>` on
clients and `endpoint::IncomingRequest` on servers, the other way around for responses.
* When sending a request or response, you shouldn't have to clone things as much as before. Tip:
Use clippy to detect now-unnecessary `.into()` conversions.
* Make most types non-exhaustive
* This means you no longer can construct many of them using struct literals.
* Instead, constructors are provided.
* Tip: To set optional fields that aren't set in the constructor, you may find the `assign` crate
useful.
* Make `avatar_url` in `r0::profile::set_avatar_url::Request` an `Option`
* Update type of `canonical_alias` in `r0::directory::PublicRoomsChunk` from
`Option<String>` to `Option<RoomAliasId>`