Skip to content

Releases: mautrix/python

v0.19.4

12 Feb 10:19
Compare
Choose a tag to compare
  • (types) Changed set_thread_parent to inherit the existing thread parent if a MessageEvent is passed, as starting threads from a message in a thread is not allowed.
  • (util.background_task) Added new utility for creating background tasks safely, by ensuring that the task is not garbage collected before finishing and logging uncaught exceptions immediately.

v0.19.3

27 Jan 13:09
Compare
Choose a tag to compare
  • (bridge) Bumped default timeouts for decrypting incoming messages.

v0.19.2

14 Jan 12:27
Compare
Choose a tag to compare
  • (util.async_body) Added utility for reading aiohttp response into a bytearray (so that the output is mutable, e.g. for decrypting or encrypting media).
  • (client.api) Fixed retry loop for MSC3870 URL uploads not exiting properly after too many errors.

v0.19.1

11 Jan 13:15
Compare
Choose a tag to compare
  • Marked Python 3.11 as supported. Python 3.8 support will likely be dropped in the coming months.
  • (client.api) Added request payload memory optimization to MSC3870 URL uploads.
    • aiohttp will duplicate the entire request body if it's raw bytes, which wastes a lot of memory. The optimization is passing an iterator instead of raw bytes, so aiohttp won't accidentally duplicate the whole thing.
    • The main HTTPAPI has had the optimization for a while, but uploading to URL calls aiohttp manually.

v0.19.0

10 Jan 13:32
Compare
Choose a tag to compare
  • Breaking change (appservice) Removed typing status from state store.
  • Breaking change (appservice) Removed is_typing parameter from IntentAPI.set_typing to make the signature match ClientAPI.set_typing. timeout=0 is equivalent to the old is_typing=False.
  • Breaking change (types) Removed legacy fields in Beeper MSS events.
  • (bridge) Removed accidentally nested reply loop when accepting invites as the bridge bot.
  • (bridge) Fixed decoding JSON values in config override env vars.

v0.18.9

13 Dec 23:31
Compare
Choose a tag to compare
  • (util.async_db) Changed aiosqlite connector to force-enable foreign keys, WAL mode and busy_timeout.
    • The values can be changed by manually specifying the same PRAGMAs in the init_commands db arg, e.g. - PRAGMA foreign_keys = OFF.
  • (types) Added workaround to StateEvent.deserialize to handle Conduit's broken unsigned fields.
  • (client.state_store) Fixed set_power_level to allow raw dicts the same way as set_encryption_info does (thanks to @bramenn in #127).

v0.18.8

18 Nov 17:24
Compare
Choose a tag to compare
  • (crypto.store.asyncpg) Fixed bug causing put_group_session to fail when trying to log unique key errors.
  • (client) Added wrapper for create_room to update the state store with initial state and invites (applies to anything extending StoreUpdatingAPI, such as the high-level Client and appservice IntentAPI classes).

v0.18.7

08 Nov 16:30
Compare
Choose a tag to compare
Bump version to 0.18.7

v0.18.6

08 Nov 09:46
Compare
Choose a tag to compare
  • (util.formatter) Added conversion method for <hr> tag and defaulted to converting back to ---.

v0.18.5

20 Oct 12:21
Compare
Choose a tag to compare
  • (appservice) Added try blocks around MSC3202 handler functions to log errors instead of failing the entire transaction. This matches the behavior of errors in normal appservice event handlers.