From 66cc7960c05bf5aac0cedac26f79e1cf81989eeb Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 8 May 2024 12:21:20 +0200 Subject: [PATCH] build: Update to v0.29.0 --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ pubspec.yaml | 3 +-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92f12eccc..5eb9a97cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,31 @@ +## [0.29.0] 08th May 2024 +Refactoring release which fixes a flickering of sent file events in the timeline. The +State events in a room are no longer instances of `Event` but `StrippedStateEvent` by +default, which is a base class of `Event`. Usually in join rooms the state events are +actually `Event` and can be used as those after a type check if needed. + +**Example:** +```dart +// Before: +final event = room.getState(EventTypes.RoomCreate); + +// After: +final strippedStateEvent = room.getState(EventTypes.RoomCreate); +final event = strippedStateEvent is Event ? strippedStateEvent : null; +``` + +Also be aware that `Event.remove()` has been renamed to `Event.cancelSend()` to make +more clear that this is only to delete events from database and cache which have not +been synced yet. They no longer appear in the `Client.onEventUpdate` stream but on the new +`Client.onCancelSendEvent` stream. + +- chore: more gh_release fixes (td) +- chore: reduce isValidMemEvent log level (td) +- ci: Add tests for database on web (Krille) +- refactor: delete not sent events without eventupdate stream workaround (Krille) +- refactor: Removes the behavior of deleting an event if the file is no longer cached (Krille) +- refactor: Use strippedstatevent as base for room state and user class (Krille) + ## [0.28.1] 30th April 2024 - chore: expose fake matrix api (td) - chore: update voip readme (td) diff --git a/pubspec.yaml b/pubspec.yaml index aef254978..e96c69fe2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: matrix description: Matrix Dart SDK -version: 0.28.1 +version: 0.29.0 homepage: https://famedly.com repository: https://github.com/famedly/matrix-dart-sdk.git issue_tracker: https://github.com/famedly/matrix-dart-sdk/issues @@ -43,4 +43,3 @@ dev_dependencies: lints: ^3.0.0 sqflite_common_ffi: 2.3.2+1 # v2.3.3 doesn't support dart v3.2.x test: ^1.15.7 -