Commit Graph

21 Commits

Author SHA1 Message Date
Christian Pauly 916711cf57 fix: Make tryget type optional by default
I see soo much annoying warnings in the logs since matrix 0.2.0
and to be honest it was never helpful to have this logs. Therefore it seems to make more
sense to make those warnings optional.
2021-08-03 10:22:45 +02:00
Lukas Lihotzki bad334d441 refactor: FilterMap extension 2021-07-19 19:43:56 +02:00
Lukas Lihotzki c10a98ff35 fix: log levels for tryGet 2021-07-07 15:30:42 +02:00
Marcus Hoffmann 0b8e3f3071 make tryGet* safer
* check casts (for list and map) at cast time by recreating the list/map
  instead of throwing on access.
* type warnings work now slightly differently:
  * when we expect nullable fields to be actually null within normal
    operation you can explicitly set the tryGet type param to an
optional type and mute the warning. Otherwise it'll warn that something
is null which we expect to something else.
2021-07-02 12:17:05 +02:00
Marcus Hoffmann 92a2bd9d7e null safety test fixes 2021-07-01 17:36:21 +02:00
Marcus Hoffmann 1a51f813a7 null safety cleanup 2021-07-01 16:59:54 +02:00
Lukas Lihotzki d9c1fdb78a refactor: migrate to null safety 2021-07-01 15:11:39 +02:00
Lukas Lihotzki e3a1b6aa77 refactor: mostly use dart_openapi_codegen 2021-06-25 12:40:03 +02:00
Christian Pauly 3a6d224348 fix: Log filter in wrong direction 2021-06-10 09:21:20 +02:00
Christian Pauly 9b3768300e fix: Logs should only printed if loglevel is high enough 2021-06-09 10:11:56 +02:00
Christian Pauly c70b149c20 change: Remove logger
The logger package has a lot of issues.
The colors are not working in web and on iOS.
Emojis are not working on some platforms.
It introduced a not very important library in a SDk which is intended to
be as minimal as possible.
This simplifies the logging to a format which works everywhere.
The # Syntax makes it also look good as markdown.
It is not very far away from the default syntax of errors and stacktraces.
It still provides several log levels, the same API and a list of output events for the logviewer.
2021-05-12 12:14:04 +02:00
Lukas Lihotzki 83ef6484eb refactor: use map 2021-05-05 12:05:26 +02:00
Christian Pauly 9617e76763 change: Less noisy oneline logs 2021-01-26 15:32:04 +01:00
Sorunome 195d46b901
fix: Deep-copy arrays correctly 2021-01-17 15:38:09 +01:00
Christian Pauly 8f1d35e0bc docs: Update license to MIT 2021-01-08 13:14:03 +01:00
Christian Pauly 0ccf300777 fix: Cast instead of shallow copy 2021-01-08 12:55:45 +01:00
Christian Pauly ae34041f29 feat: Implement plaintext parsing 2021-01-08 10:54:04 +01:00
Christian Pauly 618d42a448 feat: Room forwarded key content 2021-01-08 10:30:57 +01:00
Christian Pauly 6b283d5c50 fix: Current version 2020-12-31 10:44:58 +01:00
Christian Pauly 68e6530835 fix: Current version 2020-12-31 10:33:59 +01:00
Christian Pauly bb10adef79 Initial commit 2020-12-28 12:01:03 +01:00