Skip to content

Commit 16cb116

Browse files
committed
build: Add changelog for 1.0.0
1 parent 93cd2c4 commit 16cb116

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

CHANGELOG.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,68 @@
1+
## [1.0.0] 10th June 2025
2+
3+
- feat: Migrate to vodozemac (Christian Kußowski)
4+
- refactor: Make database non nullable (Christian Kußowski)
5+
- refactor: (BREAKING) Make database required (Christian Kußowski)
6+
- refactor: disable benchmarks by global boolean (#2104) (Krille-chan)
7+
- refactor: Remove olm dependency (Christian Kußowski)
8+
9+
### Breaking changes:
10+
11+
#### DatabaseBuilder deprecated
12+
13+
From now on the `Client` constructor expects an open database. `Client.database` is no longer nullable.
14+
15+
**Before**:
16+
17+
```dart
18+
final client = Client(
19+
'Client Name',
20+
databaseBuilder: (_) async {
21+
final database = MatrixSdkDatabase(
22+
'<Database Name>',
23+
database: await databaseFactoryFfi.openDatabase(':memory:'),
24+
sqfliteFactory: databaseFactoryFfi,
25+
);
26+
await database.open();
27+
return database;
28+
},
29+
);
30+
```
31+
32+
**Now**:
33+
34+
```dart
35+
final client = Client(
36+
'<Client Name>',
37+
database: await MatrixSdkDatabase.init(
38+
'<Database Name>',
39+
database: await databaseFactoryFfi.openDatabase(':memory:'),
40+
sqfliteFactory: databaseFactoryFfi,
41+
),
42+
);
43+
```
44+
45+
#### LibOlm deprecated in favor of Vodozemac
46+
47+
LibOlm is no longer used. From now on you should use **Vodozemac**.
48+
For Flutter you can use [flutter_vodozemac](https://pub.dev/packages/flutter_vodozemac). This
49+
just needs to be initialized **once**:
50+
51+
```dart
52+
import 'package:flutter_vodozemac/flutter_vodozemac' as vod;
53+
54+
// ...
55+
56+
await vod.init();
57+
58+
final client = Client(/*...*/);
59+
```
60+
61+
This should work on Android, iOS, macOS, Linux and Windows.
62+
63+
For web you need to compile vodozemac to wasm. [Please refer to the Vodozemac bindings documentation](https://pub.dev/packages/vodozemac#build-for-web).
64+
65+
166
## [0.40.2] 5th June 2025
267
- fix: fallback on homeserver is userID null (The one with the braid)
368

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: matrix
22
description: Matrix Dart SDK
3-
version: 0.40.2
3+
version: 1.0.0
44
homepage: https://famedly.com
55
repository: https://github.com/famedly/matrix-dart-sdk.git
66
issue_tracker: https://github.com/famedly/matrix-dart-sdk/issues

0 commit comments

Comments
 (0)