Skip to content

Commit

Permalink
chore(all): Update changelogs (#2405)
Browse files Browse the repository at this point in the history
Here is the PR with the collected change logs

Sidenote: This is a bit of a chore because of
orhun/git-cliff#433
  • Loading branch information
Erk- authored Jan 12, 2025
1 parent b451a45 commit 58566ec
Show file tree
Hide file tree
Showing 13 changed files with 231 additions and 14 deletions.
37 changes: 30 additions & 7 deletions book/src/versions/0.16/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ via the `kind` field, which is a [`SelectMenuType`].
Support for select menu default values was added via
[`SelectMenu::default_values`].

## Smaller Discord API catchups
## Discord API catchups

Twilight now supports super reactions via the `burst_colors`, `count_details`
and `me_burst` fields on [`Reaction`].
Expand Down Expand Up @@ -195,6 +195,20 @@ The [`GuildMedia`] channel type was added.
The unused [`UserProfile`] struct was removed from twilight-model, it served
no purpose.

Premium apps are now supported in both the HTTP client and websocket gateway.

Message forwarding is supported with [`CreateMessage::forward`].

Application emojis are supported with [`Client::get_application_emojis`],
[`Client::add_application_emoji`], [`Client::update_application_emoji`], and
[`Client::delete_application_emoji`].

Get guild role endpoint to make it possible to get a role from a guild easily: [`Client::role`].

Get voice state endpoint support with [`Client::current_user_voice_state`] and [`Client::user_voice_state`].

Support for [`Poll`s].

## Ratelimiter http dependency removal

The HTTP ratelimiter now no longer exposes a dependency on [http].
Expand All @@ -203,7 +217,7 @@ The HTTP ratelimiter now no longer exposes a dependency on [http].
## Ecosystem dependency upgrades

The HTTP crate was updated to make use of [hyper]'s latest 1.x version.
Gateway, HTTP and Lavalink now use [rustls] 0.22, up from 0.20. The [bitflags]
Gateway, HTTP and Lavalink now use [rustls] 0.23, up from 0.20. The [bitflags]
crate was updated to 2.x, which changes the methods available on all types
generated by it.

Expand Down Expand Up @@ -269,11 +283,20 @@ was removed.
[`UpgradeGuildOnboarding`]: https://docs.rs/twilight-http/0.16.0-rc.1/twilight_http/request/guild/update_guild_onboarding/struct.UpdateGuildOnboarding.html
[`UserProfile`]: https://docs.rs/twilight-model/0.15.4/twilight_model/user/struct.UserProfile.html
[`Validation`]: https://docs.rs/twilight-http/0.16.0-rc.1/twilight_http/error/enum.ErrorType.html#variant.Validation
[bitflags]: https://docs.rs/bitflags/2.4.2/bitflags/index.html
[`CreateMessage::forward`]: https://api.twilight.rs/twilight_http/request/channel/message/create_message/struct.CreateMessage.html#method.forward
[`Client::get_application_emojis`]: https://api.twilight.rs/twilight_http/client/struct.Client.html#method.get_application_emojis
[`Client::add_application_emoji`]: https://api.twilight.rs/twilight_http/client/struct.Client.html#method.add_application_emoji
[`Client::update_application_emoji`]: https://api.twilight.rs/twilight_http/client/struct.Client.html#method.update_application_emoji
[`Client::delete_application_emoji`]: https://api.twilight.rs/twilight_http/client/struct.Client.html#method.delete_application_emoji
[`Poll`s]: https://api.twilight.rs/twilight_model/poll/struct.Poll.html
[`Client::role`]: https://api.twilight.rs/twilight_http/client/struct.Client.html#method.role
[`Client::current_user_voice_state`]: https://api.twilight.rs/twilight_http/client/struct.Client.html#method.current_user_voice_state
[`Client::user_voice_state`]: https://api.twilight.rs/twilight_http/client/struct.Client.html#method.user_voice_state
[bitflags]: https://docs.rs/bitflags/2.6.0/bitflags/index.html
[cache-optimization]: https://github.com/twilight-rs/twilight/tree/twilight-cache-inmemory-0.16.0-rc.1/examples/cache-optimization
[fastrand]: https://docs.rs/fastrand/2.0.1/fastrand/index.html
[http]: https://docs.rs/http/0.2.11/http/index.html
[hyper]: https://docs.rs/hyper/1.2.0/hyper/index.html
[rustls]: https://docs.rs/rustls/0.22.2/rustls/index.html
[http]: https://docs.rs/http/1.2.0/http/index.html
[hyper]: https://docs.rs/hyper/1.5.2/hyper/index.html
[rustls]: https://docs.rs/rustls/0.23.20/rustls/index.html
[tokio-tungstenite]: https://docs.rs/tokio-tungstenite/0.21.0/tokio_tungstenite/index.html
[tokio-websockets]: https://docs.rs/tokio-websockets/0.7.0/tokio_websockets/index.html
[tokio-websockets]: https://docs.rs/tokio-websockets/0.11.0/tokio_websockets/index.html
8 changes: 7 additions & 1 deletion gen-changelogs.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
#!/bin/sh

set -e

metadata=$(cargo metadata --no-deps --format-version 1)
root=$(echo "$metadata" | jq -r '.workspace_root' | xargs realpath --relative-to `pwd`)

echo "$root"

if [[ "$root" != "." ]]; then
echo "Must be run from repository root"
fi

echo "$metadata" \
| jq -r '.workspace_members[]' \
| grep "^twilight" \
| grep "^path+file://$(pwd)/twilight" \
| sed "s|^path+file://$(pwd)/||" \
| sed 's/#/ /' \
| while read -r name version _ ;
do
tag="$name-$version"
Expand Down
40 changes: 35 additions & 5 deletions twilight-cache-inmemory/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,52 @@

### Bug Fixes

- Address new rust CI errors ([#2285](https://github.com/twilight-rs/twilight/issues/2285))
- [**breaking**] `Member#joined_at` can sometimes be null ([#2288](https://github.com/twilight-rs/twilight/issues/2288))
- [**breaking**] `Member#joined_at` can sometimes be null
([#2288](https://github.com/twilight-rs/twilight/issues/2288))
- Deserialize unavailable guilds in
GUILD_CREATE. ([#2330](https://github.com/twilight-rs/twilight/issues/2330))
- Add `flags` field to MemberUpdate payload
([#2265](https://github.com/twilight-rs/twilight/issues/2265))
- Make it possible to tell the difference between a guild becoming
available and joining a new guild
([#2377](https://github.com/twilight-rs/twilight/issues/2377))

### Build

- [**breaking**] Update bitflags crate to v2 ([#2199](https://github.com/twilight-rs/twilight/issues/2199))

### Features

- [**breaking**] Implement additional select menu types ([#2219](https://github.com/twilight-rs/twilight/issues/2219))
- [**breaking**] Add support for super reactions ([#2275](https://github.com/twilight-rs/twilight/issues/2275))
- [**breaking**] Make the cache generic over model-specific traits ([#2179](https://github.com/twilight-rs/twilight/issues/2179))
All new features added are [**breaking**].

- Implement additional select menu types ([#2219](https://github.com/twilight-rs/twilight/issues/2219))
- Add support for super reactions ([#2275](https://github.com/twilight-rs/twilight/issues/2275))
- Make the cache generic over model-specific traits ([#2179](https://github.com/twilight-rs/twilight/issues/2179))
- Add support for premium apps ([#2282](https://github.com/twilight-rs/twilight/issues/2282))
- Add avatar decoration data ([#2343](https://github.com/twilight-rs/twilight/issues/2343))
- Add support for super reaction types ([#2347](https://github.com/twilight-rs/twilight/issues/2347))
- Add support for polls ([#2341](https://github.com/twilight-rs/twilight/issues/2341))
- Add call field to messages ([#2344](https://github.com/twilight-rs/twilight/issues/2344))
- Add support for message forwarding ([#2340](https://github.com/twilight-rs/twilight/issues/2340))
- Add guild_scheduled_events to guild struct ([#2371](https://github.com/twilight-rs/twilight/issues/2371))
- Add max_stage_video_channel_users ([#2152](https://github.com/twilight-rs/twilight/issues/2152))
- Implement user applications ([#2323](https://github.com/twilight-rs/twilight/issues/2323))
- Add guild field to interaction. ([#2383](https://github.com/twilight-rs/twilight/issues/2383))

### Refactor

- [**breaking**] Remove undocumented gateway events ([#2237](https://github.com/twilight-rs/twilight/issues/2237))
- A full message object for `MessageUpdate` event ([#2387](https://github.com/twilight-rs/twilight/issues/2387))

### Chore

- Address new rust CI errors ([#2285](https://github.com/twilight-rs/twilight/issues/2285))
- Resolved some warnings when building docs. ([#2331](https://github.com/twilight-rs/twilight/issues/2331))
- Updated to Clippy 1.78 lints ([#2336](https://github.com/twilight-rs/twilight/issues/2336))
- [**breaking**] Bump MSRV to 1.79 and resolve Clippy 1.80 lints ([#2366](https://github.com/twilight-rs/twilight/issues/2366))
- Resolve rust 1.83 issues ([#2391](https://github.com/twilight-rs/twilight/issues/2391))
- Clarify that MSRV may change in semver-compatible releases ([#2408](https://github.com/twilight-rs/twilight/issues/2408))
- Fix clippy 1.84 lints ([#2409](https://github.com/twilight-rs/twilight/issues/2409))

## [0.15.3] - 2023-09-10

Expand Down
4 changes: 4 additions & 0 deletions twilight-gateway-queue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

- [**breaking**] Rewrite crate ([#2228](https://github.com/twilight-rs/twilight/issues/2228))

### Chore

- Clarify that MSRV may change in semver-compatible releases ([#2408](https://github.com/twilight-rs/twilight/issues/2408))

## [0.15.3] - 2023-09-10

### Bug Fixes
Expand Down
22 changes: 22 additions & 0 deletions twilight-gateway/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,30 @@
### Bug Fixes

- Address new rust CI errors ([#2285](https://github.com/twilight-rs/twilight/issues/2285))
- Add missing flag to `EventTypeFlags::GUILD_MESSAGES` ([#2332](https://github.com/twilight-rs/twilight/issues/2332))
- Don't swallow close frames ([#2399](https://github.com/twilight-rs/twilight/issues/2399))

### Build

- Update to rustls 0.22, tokio-websockets 0.5 ([#2302](https://github.com/twilight-rs/twilight/issues/2302))
- [**breaking**] Rename native feature to native-tls ([#2308](https://github.com/twilight-rs/twilight/issues/2308))
- Update to rustls 0.23 ([#2367](https://github.com/twilight-rs/twilight/issues/2367))
- Update tokio-websockets to 0.11 ([#2404](https://github.com/twilight-rs/twilight/issues/2404))

### Features

- [**breaking**] Reduce size of gateway rest models ([#2168](https://github.com/twilight-rs/twilight/issues/2168))
- [**breaking**] Turn `Queue` into a generic type ([#2249](https://github.com/twilight-rs/twilight/issues/2249))
- [**breaking**] Impl Stream for Shard ([#2309](https://github.com/twilight-rs/twilight/issues/2309))
- Allow setting initial resume_url ([#2325](https://github.com/twilight-rs/twilight/issues/2325))
- Add support for premium apps ([#2282](https://github.com/twilight-rs/twilight/issues/2282))
- Add support for polls ([#2341](https://github.com/twilight-rs/twilight/issues/2341))
- [**breaking**] Swallow WebSocket errors ([#2360](https://github.com/twilight-rs/twilight/issues/2360))

### Performance

- Lazily allocate errors ([#2390](https://github.com/twilight-rs/twilight/issues/2390))
- Optimize `CommandRatelimiter` size ([#2395](https://github.com/twilight-rs/twilight/issues/2395))

### Refactor

Expand All @@ -24,6 +37,15 @@
- [**breaking**] Remove undocumented gateway events ([#2237](https://github.com/twilight-rs/twilight/issues/2237))
- [**breaking**] Changes for compatibility with twilight-gateway-queue rewrite ([#2228](https://github.com/twilight-rs/twilight/issues/2228))
- Switch to fastrand and tokio-websockets ([#2239](https://github.com/twilight-rs/twilight/issues/2239))
- Reuse 'now' instant for `poll_acquire` ([#2393](https://github.com/twilight-rs/twilight/issues/2393))
- Split sending into a separate method ([#2397](https://github.com/twilight-rs/twilight/issues/2397))
- Avoid recent latencies rotate ([#2396](https://github.com/twilight-rs/twilight/issues/2396))

### Chore

- Resolve rust 1.83 issues ([#2391](https://github.com/twilight-rs/twilight/issues/2391))
- Clarify that MSRV may change in semver-compatible releases ([#2408](https://github.com/twilight-rs/twilight/issues/2408))
- Fix clippy 1.84 lints ([#2409](https://github.com/twilight-rs/twilight/issues/2409))

## [0.15.3] - 2023-09-10

Expand Down
14 changes: 14 additions & 0 deletions twilight-http-ratelimiting/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## [unreleased]

### Bug Fixes

- Resolved some warnings when building docs. ([#2331](https://github.com/twilight-rs/twilight/issues/2331))
- clippy 1.79 lints ([#2355](https://github.com/twilight-rs/twilight/issues/2355))
- Add missing automoderation paths. ([#2356](https://github.com/twilight-rs/twilight/issues/2356))
- Add missing @ symbol in REST path ([#2357](https://github.com/twilight-rs/twilight/issues/2357))

### Build

- Remove dependency on futures-util ([#2309](https://github.com/twilight-rs/twilight/issues/2309))
Expand All @@ -10,6 +17,13 @@

- [**breaking**] Hide `http` dependency ([#2163](https://github.com/twilight-rs/twilight/issues/2163))
- Add support for application editing and new application fields ([#2284](https://github.com/twilight-rs/twilight/issues/2284))
- Add support for premium apps ([#2282](https://github.com/twilight-rs/twilight/issues/2282))
- add support for polls ([#2341](https://github.com/twilight-rs/twilight/issues/2341))
- Add support for application emojis ([#2364](https://github.com/twilight-rs/twilight/issues/2364))

### Chore

- Clarify that MSRV may change in semver-compatible releases ([#2408](https://github.com/twilight-rs/twilight/issues/2408))

## [0.15.2] - 2023-09-10

Expand Down
29 changes: 28 additions & 1 deletion twilight-http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,42 @@

- Use `default_message_seconds` as a JSON field for `create_ban` ([#2280](https://github.com/twilight-rs/twilight/issues/2280))
- Fix docs deploy ([#2295](https://github.com/twilight-rs/twilight/issues/2295))
- clippy 1.78 lints ([#2336](https://github.com/twilight-rs/twilight/issues/2336))
- clippy 1.79 lints ([#2355](https://github.com/twilight-rs/twilight/issues/2355))
- [**breaking**] fix role position update payload and allow audit log reason ([#2342](https://github.com/twilight-rs/twilight/issues/2342))
- Fix nightly compiler and rustdoc warnings ([#2368](https://github.com/twilight-rs/twilight/issues/2368))
- List application emojis does not return a raw list ([#2376](https://github.com/twilight-rs/twilight/issues/2376))
- update role icon and unicode_emoji using nullable strings ([#2388](https://github.com/twilight-rs/twilight/issues/2388))

### Build

- [**breaking**] Update trust-dns (now hickory) ([#2287](https://github.com/twilight-rs/twilight/issues/2287))
- Update to rustls 0.22, hyper 1.x ([#2302](https://github.com/twilight-rs/twilight/issues/2302))
- [**breaking**] Rename native feature to native-tls ([#2308](https://github.com/twilight-rs/twilight/issues/2308))
- Update to brotli-decompressor 4.0 ([#2337](https://github.com/twilight-rs/twilight/issues/2337))
- Update to rustls 0.23 ([#2367](https://github.com/twilight-rs/twilight/issues/2367))

### Features

- [**breaking**] Hide `http` dependency ([#2163](https://github.com/twilight-rs/twilight/issues/2163))
- [**breaking**] Return errors at finalization ([#2171](https://github.com/twilight-rs/twilight/issues/2171))
- [**breaking**] Add `regex_patterns` and `allow_list` ([#2189](https://github.com/twilight-rs/twilight/issues/2189))
- Add `regex_patterns` and `allow_list` ([#2189](https://github.com/twilight-rs/twilight/issues/2189))
- Support default thread timeout for channel creation ([#2274](https://github.com/twilight-rs/twilight/issues/2274))
- Add new onboarding mode and support for modifying onboarding ([#2291](https://github.com/twilight-rs/twilight/issues/2291))
- Add `guild_scheduled_event_id` to `create_stage_instance` ([#2283](https://github.com/twilight-rs/twilight/issues/2283))
- Add support for application editing and new application fields ([#2284](https://github.com/twilight-rs/twilight/issues/2284))
- Make positions possible to create ([#2328](https://github.com/twilight-rs/twilight/issues/2328))
- allow editing app banner ([#2345](https://github.com/twilight-rs/twilight/issues/2345))
- Add support for premium apps ([#2282](https://github.com/twilight-rs/twilight/issues/2282))
- [**breaking**] Add support for super reaction types ([#2347](https://github.com/twilight-rs/twilight/issues/2347))
- add support for polls ([#2341](https://github.com/twilight-rs/twilight/issues/2341))
- Add support for message forwarding ([#2340](https://github.com/twilight-rs/twilight/issues/2340))
- Add support for application emojis ([#2364](https://github.com/twilight-rs/twilight/issues/2364))
- add invite type ([#2346](https://github.com/twilight-rs/twilight/issues/2346))
- Implement user applications ([#2323](https://github.com/twilight-rs/twilight/issues/2323))
- Add Discord defined status codes as constants ([#2389](https://github.com/twilight-rs/twilight/issues/2389))
- add get guild role endpoint ([#2394](https://github.com/twilight-rs/twilight/issues/2394))
- Add get voice state endpoints ([#2398](https://github.com/twilight-rs/twilight/issues/2398))

### Performance

Expand All @@ -33,6 +53,13 @@
- Switch to fastrand ([#2239](https://github.com/twilight-rs/twilight/issues/2239))
- Remove unnecessary conversion ([#2294](https://github.com/twilight-rs/twilight/issues/2294))
- [**breaking**] Avoid copying the response body on utf8 error ([#2299](https://github.com/twilight-rs/twilight/issues/2299))
- Use query string helper ([#2348](https://github.com/twilight-rs/twilight/issues/2348))

### Chore

- Bump MSRV to 1.79 and resolve Clippy 1.80 lints ([#2366](https://github.com/twilight-rs/twilight/issues/2366))
- resolve rust 1.83 issues ([#2391](https://github.com/twilight-rs/twilight/issues/2391))
- Clarify that MSRV may change in semver-compatible releases ([#2408](https://github.com/twilight-rs/twilight/issues/2408))

## [0.15.3] - 2023-09-10

Expand Down
6 changes: 6 additions & 0 deletions twilight-lavalink/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

- Switch to fastrand and tokio-websockets ([#2239](https://github.com/twilight-rs/twilight/issues/2239))

### Chore

- resolve rust 1.83 issues ([#2391](https://github.com/twilight-rs/twilight/issues/2391))
- Update tokio-websockets to 0.11 ([#2404](https://github.com/twilight-rs/twilight/issues/2404))
- Clarify that MSRV may change in semver-compatible releases ([#2408](https://github.com/twilight-rs/twilight/issues/2408))

## [0.15.2] - 2023-09-10

### Bug Fixes
Expand Down
6 changes: 6 additions & 0 deletions twilight-mention/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

- Remove redundant imports ([#2316](https://github.com/twilight-rs/twilight/issues/2316))

### Chore

- resolve rust 1.83 issues ([#2391](https://github.com/twilight-rs/twilight/issues/2391))
- Clarify that MSRV may change in semver-compatible releases ([#2408](https://github.com/twilight-rs/twilight/issues/2408))
- Fix clippy 1.84 lints ([#2409](https://github.com/twilight-rs/twilight/issues/2409))

## [0.15.2] - 2023-09-10

### Build
Expand Down
Loading

0 comments on commit 58566ec

Please sign in to comment.