Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking for release 0.16.0 #511

Merged
merged 149 commits into from
Aug 28, 2024
Merged

Tracking for release 0.16.0 #511

merged 149 commits into from
Aug 28, 2024

Conversation

kozabrada123
Copy link
Member

@kozabrada123 kozabrada123 commented Jun 27, 2024

Opening this pr to track the changes for the next stable release, 0.16.0

Todos

Changes

Major changes:

Minor changes:

Fixes:

kozabrada123 and others added 30 commits April 19, 2024 17:13
* feat: add WebSocketEvent derive, bump to 0.2.1

* change license, version of macros
use derive macro instead of manual impl blocks
* deps: bump rustls to 0.21.11

This is done to fix CVE-2024-32650, which practically shouldn't affect
us but it's still better not to use vulnerable dependencies.

* deps: bump h2 to 0.3.26

This is done to fix another vulnerability, which should also not affect
us (non-critical, in h2 servers)

* fix: move Shared<T> to types/mod.rs
Change login and register to only use one ChorusUser object, change the
api of related methods which were also somewhat ugly
* bump wasm-bindgen version to 0.2.92

* change wasm-gecko to using ubuntu-latest, since geckodriver is not supported on macos-latest

* check some common non-default feature configurations

* add experimental semver checks
* fix: some iso timestamps being strings

* fix: register uses dates, not datetimes
bitfl0wer and others added 8 commits July 26, 2024 17:48
Related to #523, changes `theme_colors` property on `User` and
`PublicUser` to be of type `(u32, u32)`
Replaces the derived `std::default::Default` with

```rs
impl std::default::Default for GatewayHello {
    fn default() -> Self {
        Self {
            // "HELLO" opcode is 10
            op: 10,
            d: Default::default(),
        }
    }
}

impl std::default::Default for HelloData {
    fn default() -> Self {
        Self {
            // Discord docs mention 45000 seconds - discord.sex mentions 41250. Defaulting to 45s
            heartbeat_interval: 45000,
        }
    }
}
```
#535)

Manually implement std::default::Default for GatewayHeartbeat and
GatewayHeartbeatAck with the correct opcodes.
* Update msrv
@bitfl0wer bitfl0wer added this to the 0.16.0 milestone Aug 2, 2024
bitfl0wer and others added 2 commits August 4, 2024 13:08
* Bump sqlx to 0.8.0

* Update sqlx syntax to 0.8.0, change MySql for sqlx:: Any

* Update sqlx syntax to 0.8.0, change MySql for sqlx:: Any

* Modify chorus_macros::SqlxBitflagDerive to use sqlx::Any over sqlx::MySql (broken!)

* Fix: `cannot infer type for type parameter `DB` declared on the trait...`

* Change remaining impls of sqlx traits for MySql to sqlx::Any

* Alter chorus_macros to correctly derive SqlxBitFlag for sqlx::Any

* rustc/clippy>=v1.80.0: Do not warn when encountering cfg(tarpaulin_include)

* Port compare_* methods to sqlx v0.8.0
* CI/CD: add cargo-doc job

* fix: make it rustdoc, totally not clippy
src/types/schema/user.rs Fixed Show fixed Hide fixed
src/types/schema/user.rs Fixed Show fixed Hide fixed
src/types/schema/user.rs Fixed Show fixed Hide fixed
bitfl0wer and others added 2 commits August 21, 2024 23:43
* Change sqlx::Any to sqlx::Postgres

* Change sqlx::Any to sqlx::Postgres

* Remove JSONified overrides when sqlx feature is enabled, where it makes sense

* Add num-bigint dep

* Remove generic impl for From<T> for Snowflake
For some reason, this trait bound conflicts with another trait bound from the sqlx-pg-uint crate, even though I personally don't get why.

* Remove num_bigint, adsd sqlx-pg-uint

* swap u64 for PgU64 in some files

* use v0.3.0 of sqlx-pg-uint

* Lots of sqlx-postgres type changes

* Lots of sqlx-postgres type changes

* gwah

* Change repr(i8) to repr(i16) in enums when sqlx feature is enabled, fix sqlx incompatibilities

* impl sqlx::postgres::PgHasArrayType for Snowflake

* Try: derive Type for FriendSourceFlags, GuildFolder

* Try: Derive FromRow, Type for DefaultReaction

* Try: Derive Type for CustomStatus

* Try: Derive Type, FromRow for Tag

* Replace conditional compiling of uNN/PgUNN with conditional compiled type alias

* Fix: Conditional compiling errors and warnings

* Bump: wasm-bindgen* crate versions
bitfl0wer and others added 11 commits August 22, 2024 21:52
* Bump sqlx-pg-uint, sqlx

* Use PgU64 as base for implementations of sqlx traits for Snowflake
* sqlx_bitflag_derive: Use PgU64 as translation base

* Bump version of chorus-macros
Prefer &str over String where possible.
Match scheme for "ws" or "wss" and choose whether to connect with TLS connector for tungstenite
* Make instance GatewayOptions configurable for library consumers

* Update example in README
@bitfl0wer bitfl0wer marked this pull request as ready for review August 28, 2024 17:04
kozabrada123 and others added 2 commits August 28, 2024 19:42
* chore: fix doc lints

* fix: use different chrono function due to deprecation

* chore: format
@bitfl0wer bitfl0wer merged commit 3e22b5c into main Aug 28, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release A pull request from dev to main, creating a new release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants