events: Move changelog entries from ruma-common to ruma-events
This commit is contained in:
parent
5c6277f298
commit
e11d30934b
@ -4,40 +4,13 @@ Bug fixes:
|
|||||||
|
|
||||||
- Set the predefined server-default `.m.rule.tombstone` push rule as enabled by default, as defined
|
- Set the predefined server-default `.m.rule.tombstone` push rule as enabled by default, as defined
|
||||||
in the spec.
|
in the spec.
|
||||||
- Parse `m.tag` `order` as a f64 value or a stringified f64 value, if the `compat-tag-info` feature
|
|
||||||
is enabled.
|
|
||||||
|
|
||||||
Breaking changes:
|
Breaking changes:
|
||||||
|
|
||||||
- Make `in_reply_to` field of `Thread` optional
|
|
||||||
- It was wrong to be mandatory, spec was unclear (clarified [here](https://github.com/matrix-org/matrix-spec/pull/1439))
|
|
||||||
- `FlattenedJson::get` returns a `FlattenedJsonValue` instead of a string
|
- `FlattenedJson::get` returns a `FlattenedJsonValue` instead of a string
|
||||||
- Remove the `DontNotify` and `Coalesce` variants of `push::Action` according to MSC3987
|
- Remove the `DontNotify` and `Coalesce` variants of `push::Action` according to MSC3987
|
||||||
- Old push rules will still deserialize successfully but the `Coalesce` variant will not return
|
- Old push rules will still deserialize successfully but the `Coalesce` variant will not return
|
||||||
`true` for `Action::should_notify()` anymore
|
`true` for `Action::should_notify()` anymore
|
||||||
- Remove `AnswerSessionDescription` and `OfferSessionDescription` types, use `SessionDescription`
|
|
||||||
instead.
|
|
||||||
- Remove `SessionDescriptionType`, use a `String` instead. A clarification in MSC2746 / Matrix 1.7
|
|
||||||
explains that the `type` field should not be validated but passed as-is to the WebRTC API. It
|
|
||||||
also avoids an unnecessary conversion between the WebRTC API and the Ruma type.
|
|
||||||
- The `reason` field in `CallHangupEventContent` is now required and defaults to `Reason::UserHangup`
|
|
||||||
(MSC2746 / Matrix 1.7)
|
|
||||||
- The `Replacement` relation for `RoomMessageEventContent` now takes a
|
|
||||||
`RoomMessageEventContentWithoutRelation` instead of a `MessageType`
|
|
||||||
- Make the `redacts` field of `Original(Sync)RoomRedactionEvent` optional to handle the format
|
|
||||||
where the `redacts` key is moved inside the `content`, as introduced in room version 11,
|
|
||||||
according to MSC2174 / MSC3820 / Matrix 1.8
|
|
||||||
- `RoomRedactionEventContent::new()` was renamed to `new_v1()`, and `with_reason()` is no
|
|
||||||
longer a constructor but a builder-type method
|
|
||||||
- Make the `creator` field of `RoomCreateEventContent` optional and deprecate it, as it was removed
|
|
||||||
in room version 11, according to MSC2175 / MSC3820 / Matrix 1.8
|
|
||||||
- `RoomCreateEventContent::new()` was renamed to `new_v1()`
|
|
||||||
- `RedactedRoomCreateEventContent` is now a typedef over `RoomCreateEventContent`
|
|
||||||
- `RoomMessageEventContent::make_reply_to()` and `make_for_thread()` have an extra parameter to
|
|
||||||
support the recommended behavior for intentional mentions in replies according to Matrix 1.7
|
|
||||||
- In Markdown, soft line breaks are transformed into hard line breaks when compiled into HTML.
|
|
||||||
- Move the HTML functions in `events::room::message::sanitize` to the ruma-html crate
|
|
||||||
- The `unstable-sanitize` cargo feature was renamed to `html`
|
|
||||||
- Removed the `events` module, it is once again its own crate (`ruma-events`)
|
- Removed the `events` module, it is once again its own crate (`ruma-events`)
|
||||||
- Removed `From` and `TryFrom` implementations for `RedactedBecause` in favor of named constructors
|
- Removed `From` and `TryFrom` implementations for `RedactedBecause` in favor of named constructors
|
||||||
(`from_json` and `from_raw_event`)
|
(`from_json` and `from_raw_event`)
|
||||||
@ -48,35 +21,12 @@ Improvements:
|
|||||||
- To update the server-default push rules
|
- To update the server-default push rules
|
||||||
- To remove a user-defined push rule
|
- To remove a user-defined push rule
|
||||||
- Add `AsRef<[u8]>` implementations for identifier types
|
- Add `AsRef<[u8]>` implementations for identifier types
|
||||||
- Add `InitialStateEvent::{new, to_raw, to_raw_any}`
|
|
||||||
- Add a convenience method to construct `RoomEncryptionEventContent` with the recommended defaults.
|
|
||||||
- `PushCondition::EventMatch` and `FlattenedJson` now use escaped dotted paths (MSC3873 / Matrix 1.7)
|
- `PushCondition::EventMatch` and `FlattenedJson` now use escaped dotted paths (MSC3873 / Matrix 1.7)
|
||||||
- Add support for `event_property_is` push condition (MSC3758 / Matrix 1.7)
|
- Add support for `event_property_is` push condition (MSC3758 / Matrix 1.7)
|
||||||
- Add support for `event_property_contains` push condition (MSC3966 / Matrix 1.7)
|
- Add support for `event_property_contains` push condition (MSC3966 / Matrix 1.7)
|
||||||
- Add `FullStateEventContent::redact`
|
|
||||||
- Add new methods for `RoomPowerLevels`:
|
|
||||||
- `user_can_ban`
|
|
||||||
- `user_can_invite`
|
|
||||||
- `user_can_kick`
|
|
||||||
- `user_can_redact`
|
|
||||||
- `user_can_send_message`
|
|
||||||
- `user_can_send_state`
|
|
||||||
- `user_can_trigger_room_notification`
|
|
||||||
- Add `MessageType::sanitize` behind the `html` feature
|
|
||||||
- Add `MatrixVersion::V1_7` and `MatrixVersion::V1_8`
|
- Add `MatrixVersion::V1_7` and `MatrixVersion::V1_8`
|
||||||
- Stabilize support for annotations and reactions (MSC2677 / Matrix 1.7)
|
- Add support for room version 11 according to MSC3820 / Matrix 1.8
|
||||||
- Add support for intentional mentions push rules (MSC3952 / Matrix 1.7)
|
|
||||||
- Stabilize support for VoIP signalling improvements (MSC2746 / Matrix 1.7)
|
|
||||||
- Make the generated and stripped plain text reply fallback behavior more compatible with most
|
|
||||||
of the Matrix ecosystem.
|
|
||||||
- Add support for intentional mentions according to MSC3952 / Matrix 1.7
|
|
||||||
- Add support for room version 11 according to MSC3820
|
|
||||||
- Adapt the redaction algorithm in `canonical_json`
|
- Adapt the redaction algorithm in `canonical_json`
|
||||||
- Add preserved fields to match the new redaction algorithm, according to
|
|
||||||
MSC2176 / MSC3821, for the following types:
|
|
||||||
- `RedactedRoomRedactionEventContent`,
|
|
||||||
- `RedactedRoomPowerLevelsEventContent`,
|
|
||||||
- `RedactedRoomMemberEventContent`
|
|
||||||
|
|
||||||
# 0.11.3
|
# 0.11.3
|
||||||
|
|
||||||
|
@ -1,3 +1,67 @@
|
|||||||
|
# [unreleased]
|
||||||
|
|
||||||
|
The crate was split out of `ruma-common` again after the 0.11.3 release.
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
|
||||||
|
- Parse `m.tag` `order` as a f64 value or a stringified f64 value, if the `compat-tag-info` feature
|
||||||
|
is enabled.
|
||||||
|
|
||||||
|
Breaking changes:
|
||||||
|
|
||||||
|
- Make `in_reply_to` field of `Thread` optional
|
||||||
|
- It was wrong to be mandatory, spec was unclear (clarified [here](https://github.com/matrix-org/matrix-spec/pull/1439))
|
||||||
|
- Remove `AnswerSessionDescription` and `OfferSessionDescription` types, use `SessionDescription`
|
||||||
|
instead.
|
||||||
|
- Remove `SessionDescriptionType`, use a `String` instead. A clarification in MSC2746 / Matrix 1.7
|
||||||
|
explains that the `type` field should not be validated but passed as-is to the WebRTC API. It
|
||||||
|
also avoids an unnecessary conversion between the WebRTC API and the Ruma type.
|
||||||
|
- The `reason` field in `CallHangupEventContent` is now required and defaults to `Reason::UserHangup`
|
||||||
|
(MSC2746 / Matrix 1.7)
|
||||||
|
- The `Replacement` relation for `RoomMessageEventContent` now takes a
|
||||||
|
`RoomMessageEventContentWithoutRelation` instead of a `MessageType`
|
||||||
|
- Make the `redacts` field of `Original(Sync)RoomRedactionEvent` optional to handle the format
|
||||||
|
where the `redacts` key is moved inside the `content`, as introduced in room version 11,
|
||||||
|
according to MSC2174 / MSC3820 / Matrix 1.8
|
||||||
|
- `RoomRedactionEventContent::new()` was renamed to `new_v1()`, and `with_reason()` is no
|
||||||
|
longer a constructor but a builder-type method
|
||||||
|
- Make the `creator` field of `RoomCreateEventContent` optional and deprecate it, as it was removed
|
||||||
|
in room version 11, according to MSC2175 / MSC3820 / Matrix 1.8
|
||||||
|
- `RoomCreateEventContent::new()` was renamed to `new_v1()`
|
||||||
|
- `RedactedRoomCreateEventContent` is now a typedef over `RoomCreateEventContent`
|
||||||
|
- `RoomMessageEventContent::make_reply_to()` and `make_for_thread()` have an extra parameter to
|
||||||
|
support the recommended behavior for intentional mentions in replies according to Matrix 1.7
|
||||||
|
- In Markdown, soft line breaks are transformed into hard line breaks when compiled into HTML.
|
||||||
|
- Move the HTML functions in `events::room::message::sanitize` to the ruma-html crate
|
||||||
|
- The `unstable-sanitize` cargo feature was renamed to `html`
|
||||||
|
|
||||||
|
Improvements:
|
||||||
|
|
||||||
|
- Add `InitialStateEvent::{new, to_raw, to_raw_any}`
|
||||||
|
- Add a convenience method to construct `RoomEncryptionEventContent` with the recommended defaults.
|
||||||
|
- Add `FullStateEventContent::redact`
|
||||||
|
- Add new methods for `RoomPowerLevels`:
|
||||||
|
- `user_can_ban`
|
||||||
|
- `user_can_invite`
|
||||||
|
- `user_can_kick`
|
||||||
|
- `user_can_redact`
|
||||||
|
- `user_can_send_message`
|
||||||
|
- `user_can_send_state`
|
||||||
|
- `user_can_trigger_room_notification`
|
||||||
|
- Add `MessageType::sanitize` behind the `html` feature
|
||||||
|
- Stabilize support for annotations and reactions (MSC2677 / Matrix 1.7)
|
||||||
|
- Add support for intentional mentions push rules (MSC3952 / Matrix 1.7)
|
||||||
|
- Stabilize support for VoIP signalling improvements (MSC2746 / Matrix 1.7)
|
||||||
|
- Make the generated and stripped plain text reply fallback behavior more compatible with most
|
||||||
|
of the Matrix ecosystem.
|
||||||
|
- Add support for intentional mentions according to MSC3952 / Matrix 1.7
|
||||||
|
- Add support for room version 11 according to MSC3820 / Matrix 1.8
|
||||||
|
- Add preserved fields to match the new redaction algorithm, according to
|
||||||
|
MSC2176 / MSC3821, for the following types:
|
||||||
|
- `RedactedRoomRedactionEventContent`,
|
||||||
|
- `RedactedRoomPowerLevelsEventContent`,
|
||||||
|
- `RedactedRoomMemberEventContent`
|
||||||
|
|
||||||
# 0.26.1
|
# 0.26.1
|
||||||
|
|
||||||
Deprecation of the crate. It is now part of ruma-common 0.9.0.
|
Deprecation of the crate. It is now part of ruma-common 0.9.0.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user