Skip to content

v0.16.0

Compare
Choose a tag to compare
@bitfl0wer bitfl0wer released this 28 Aug 18:12
· 187 commits to main since this release
3e22b5c

What's Changed

(See #511)

Major changes:

  • Implement gateway options and z-lib-stream compression (#508)
  • Countless types updates by @Quat3rnion:
    • Using and adding distinct types instead of primitives (#501, #503, #505, #507, #509)
    • Add sqlx derives and implementations (#501, #505)
    • Make a facade type for Shared to be used in non-client contexts (#501)
    • Add new schemas (#503, #509)
    • Add bitflags serialization derive (#505)
  • Remove dependency on openssl in favor of rustls and webpki_roots (#522)
  • sqlx feature: Remove MySQL/MariaDB support in favor of PostgreSQL
  • sqlx: Convert between Rust u64 and PostgreSQL NUMERIC using sqlx_pg_uint
  • Prefer &str over String when possible (#553)

Minor changes:

  • Add the repository field to chorus_macros' cargo.toml (#496)
  • (Internal) Replace Observer and GatewayEvent with pubserve crate (#524)
  • (Internal, CI) Minor improvements to CI (#498)
  • (Internal, CI) #529 Increase CI parallelization, use cargo nextest in linux job
  • (Internal, CI) #544 Add cargo doc lints to prs and releases
  • sqlx: Snowflake: PgU64 as conversion-base instead of String (#551)
  • (Internal, non-WASM) Distinguish between ws and wss when spawning tungstenite connection to backend, not constructing TLS related objects if ws is used as a connection URL. (#554)

Fixes:

  • Fix login and register to only create one gateway connection (#495)
  • Add custom deserializer for PermissionOverwriteType (#512)
  • Derive Clone for RelationshipAdd event (#525 and #532)
  • (Internal) Use a macro to derive WebSocketEvent (#490 and #486)
  • (Internal) Move Shared<T> to types/mod.rs (#492)
  • (Internal) Deduplicate code for voice gateway backends (#493)
  • #514:
    • fix PATCH /users/@me - It incorrectly returned a required password error, even if the current password was set
    • fix GET /users/@me/guilds - It incorrectly sent body parameters instead of query ones
    • don't log debug! for every successful ratelimited request - use trace! so it's less spamy
    • update the max expected compression ratio (several times) from 20 to 200. let's hope that will be enough
    • fix deserialization errors relating to guild folders in user settings
    • fix a panic in SqlxBitFlags if there are extra flags. It now truncates them
    • update chorus_macros to 0.4.1 (due to the above fix)
    • log (trace!) event data if we fail to parse it or it's unrecognised, for debugging purposes
    • fix a deserialization error in the MessageACK event
    • fix public_flags in user objects not being PublicFlags bitflags
  • #523 caused by #514, fixed in #533

Full Changelog: https://github.com/polyphony-chat/chorus/pull/511/commits