|
3 | 3 | All notable changes to this project will be documented in this file. |
4 | 4 | This project mostly adheres to [Semantic Versioning][semver]. |
5 | 5 |
|
| 6 | +## [0.12.2] - 2024-XX-XX |
| 7 | + |
| 8 | +Thanks to the following for their contributions: |
| 9 | +- [@bend-n] |
| 10 | +- [@GnomedDev] |
| 11 | +- [@jamesbt365] |
| 12 | +- [@MidSpike] |
| 13 | +- [@mkrasnitski] |
| 14 | +- [@RegenJacob] |
| 15 | + |
| 16 | +### Deprecations |
| 17 | + |
| 18 | +Continuing with the deprecations started in 0.12.1, many more methods and fields have been deprecated in order to make an easier upgrade path to 0.13. |
| 19 | + |
| 20 | +These deprecation messages include a migration path, it is recommended to go one by one using `cargo check` and migrate each warning to reduce the burden migrating to 0.13. Following is a list of the deprecation PRs and the justification for these changes. |
| 21 | + |
| 22 | +- ([#2791](https://github.com/serenity-rs/serenity/pull/2791)) The `Channel::is_nsfw` method was wrong, useless, and served better by `GuildChannel::nsfw` |
| 23 | +- ([#2794](https://github.com/serenity-rs/serenity/pull/2794)) These cache methods needed arcane borrow checker dances internally, and obscure the simplicity of the cache. |
| 24 | +- ([#2816](https://github.com/serenity-rs/serenity/pull/2816)) `Member::highest_role_info` is now strictly less powerful than the new `Guild::member_highest_role` and can avoid a cache lookup if used correctly. |
| 25 | +- ([#2825](https://github.com/serenity-rs/serenity/pull/2825)) |
| 26 | +- - `Guild::is_large` is less accurate than `Guild::large` |
| 27 | +- - `Message::is_own` is super simple to implement yourself |
| 28 | +- - `Message::is_private` simply checks if `Message::guild_id` is `none`. |
| 29 | +- ([#2838](https://github.com/serenity-rs/serenity/pull/2838)) `Event::PresencesReplace` does not exist, and is a relic from when serenity supported user accounts. |
| 30 | +- ([#2861](https://github.com/serenity-rs/serenity/pull/2861)) `TeamMember::permissions` is always `["*"]`, so is useless. |
| 31 | + |
| 32 | +### Other notable changes |
| 33 | +- ([#2790](https://github.com/serenity-rs/serenity/pull/2790])) Added `CreateMessage::enforce_nonce`, to prevent sending duplicate messages. |
| 34 | +- ([#2801](https://github.com/serenity-rs/serenity/pull/2801)) Added `EditProfile::banner`, allowing banners to be set for bots. |
| 35 | +- ([#2810](https://github.com/serenity-rs/serenity/pull/2810)) Added `ChannelId::get_thread_member`. |
| 36 | +- ([#2812](https://github.com/serenity-rs/serenity/pull/2812)) Added `Guild::partial_member_permissions_in`, which can be used to avoid fetching a `Member` in message events just to check permissions. |
| 37 | +- ([#2819](https://github.com/serenity-rs/serenity/pull/2819)) Added `From<User>` for `CreateEmbedAuthor`, setting the author name and icon to the `User`'s info. |
| 38 | +- ([#2813](https://github.com/serenity-rs/serenity/pull/2813)) Added `UserId::direct_message`, so you don't need a full `User` to direct message. |
| 39 | +- ([#2834](https://github.com/serenity-rs/serenity/pull/2834)) Added `Http::default_allowed_mentions` to set the `AllowedMentions` to be used with every request. |
| 40 | +- ([#2830](https://github.com/serenity-rs/serenity/pull/2830)) Added `Guild`(`Id`)`::bulk_ban`, allowing bulk banning without hitting rate limits. |
| 41 | +- ([#2836](https://github.com/serenity-rs/serenity/pull/2836)) Added support for **Message Polls**, including reading and sending them. |
| 42 | +- ([#2807](https://github.com/serenity-rs/serenity/pull/2807)) Added support for **User Apps**, alllowing user-installable application commands. |
| 43 | +- Many documentation fixes and other optimisations to improve memory and CPU usage. |
| 44 | + |
6 | 45 | ## [0.12.1] - 2024-02-28 |
7 | 46 |
|
8 | 47 | Thanks to the following for their contributions: |
@@ -5381,6 +5420,7 @@ Initial commit. |
5381 | 5420 |
|
5382 | 5421 | <!-- COMPARISONS --> |
5383 | 5422 |
|
| 5423 | +[0.12.2]: https://github.com/serenity-rs/serenity/compare/v0.12.1...v0.12.2 |
5384 | 5424 | [0.12.1]: https://github.com/serenity-rs/serenity/compare/v0.12.0...v0.12.1 |
5385 | 5425 | [0.12.0]: https://github.com/serenity-rs/serenity/compare/v0.11.7...v0.12.0 |
5386 | 5426 | [0.11.7]: https://github.com/serenity-rs/serenity/compare/v0.11.6...v0.11.7 |
@@ -5506,6 +5546,7 @@ Initial commit. |
5506 | 5546 | [@baeuric]: https://github.com/baeuric |
5507 | 5547 | [@barzamin]: https://github.com/barzamin |
5508 | 5548 | [@bdashore3]: https://github.com/bdashore3 |
| 5549 | +[@bend-n]: https://github.com/bend-n |
5509 | 5550 | [@benjaminrsherman]: https://github.com/benjaminrsherman |
5510 | 5551 | [@ben-brook]: https://github.com/ben-brook |
5511 | 5552 | [@bikeshedder]: https://github.com/bikeshedder |
@@ -5638,6 +5679,7 @@ Initial commit. |
5638 | 5679 | [@megumisonoda]: https://github.com/megumisonoda |
5639 | 5680 | [@mendess]: https://github.com/mendess |
5640 | 5681 | [@merlleu]: https://github.com/merlleu |
| 5682 | +[@MidSpike]: https://github.com/MidSpike |
5641 | 5683 | [@Miezhiko]: https://github.com/Miezhiko |
5642 | 5684 | [@miqbalrr]: https://github.com/miqbalrr |
5643 | 5685 | [@mjsir911]: https://github.com/mjsir911 |
@@ -5673,6 +5715,7 @@ Initial commit. |
5673 | 5715 | [@Roughsketch]: https://github.com/Roughsketch |
5674 | 5716 | [@Rstar284]: https://github.com/Rstar284 |
5675 | 5717 | [@rasm47]: https://github.com/rasm47 |
| 5718 | +[@RegenJacob]: https://github.com/RegenJacob |
5676 | 5719 | [@rsaihe]: https://github.com/rsaihe |
5677 | 5720 | [@Ruthenic]: https://github.com/Ruthenic |
5678 | 5721 | [@SOF3]: https://github.com/SOF3 |
|
0 commit comments