Skip to content

Commit

Permalink
chore: release v0.38.0
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-with-a-bushido committed Feb 5, 2025
1 parent a3d33ee commit 9ecd487
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
## 0.38.0

### Migration notes

Now you can pass a `StringBuffer` object to the command handler to pass some arbitrary data back to the caller.

**Before:**
```
addCommand('newCommand', (CommandArgs args){});
```

**After:**
```
addCommand('newCommand', (CommandArgs args, StringBuffer? stdout){});
```

In order to use the stdout, you should create a `StringBuffer` stdout object and
pass it to the `parseAndRunCommand` method or `sendTextEvent` (that uses `parseAndRunCommand` internally).

Like this:
```
final stdout = StringBuffer();
await client.parseAndRunCommand(
null, // Room can be null now, if the command isn't room specific
"/newCommand options",
...
stdout: stdout,
);
// OR
await room.sendTextEvent(
"/newCommand options"
...
commandStdout: stdout,
);
final output = DefaultCommandOutput.fromStdout(stdout);
if(output != null) {
print(output.toString());
}
```

### All changes:
- feat: (BREAKING) Make share keys with logic configurable (Krille)
- feat: BREAKING improve command_extension (The one with the braid)
- fix: Megolm sessions become invalid after restarting client (Krille)
- fix: priorize direct chat users over empty hero user list (The one with the braid)
- fix: PushNotification fromJson - toJson fails (Krille)
- refactor: Make converting linebreaks in markdowntohtml optional (Krille)
- refactor: Use .toSet() instead of Set.from() (Krille)

## 0.37.0

Bigger release with a lot of refactorings under the hood. Those do not necessarily make the SDK more performant but more robust and type safe.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: matrix
description: Matrix Dart SDK
version: 0.37.0
version: 0.38.0
homepage: https://famedly.com
repository: https://github.com/famedly/matrix-dart-sdk.git
issue_tracker: https://github.com/famedly/matrix-dart-sdk/issues
Expand Down

0 comments on commit 9ecd487

Please sign in to comment.