build: Update to v0.29.0

This commit is contained in:
Krille 2024-05-08 12:21:20 +02:00
parent e8c6eca7f8
commit 66cc7960c0
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
2 changed files with 29 additions and 2 deletions

View File

@ -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)

View File

@ -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