From 2d0c77b58798495a2c015224ebeecded885ed72d Mon Sep 17 00:00:00 2001 From: "hikari-bot[bot]" <90276125+hikari-bot[bot]@users.noreply.github.com> Date: Mon, 26 Sep 2022 13:21:17 +0000 Subject: [PATCH] Prepare for release of 2.0.0.dev111 (#1292) Co-authored-by: hikari-bot <90276125+hikari-bot[bot]@users.noreply.github.com> --- CHANGELOG.md | 65 +++++++++++++++++++++++++++++++++++++ changes/1141.feature.md | 1 - changes/1204.breaking.md | 4 --- changes/1204.bugfix.md | 3 -- changes/1204.feature.md | 19 ----------- changes/1213.bugfix.md | 1 - changes/1216.feature.md | 1 - changes/1221.feature.md | 1 - changes/1242.bugfix.md | 1 - changes/1243.bugfix.md | 1 - changes/1245.feature.md | 1 - changes/1247.bugfix.md | 1 - changes/1259.bugfix.md | 1 - changes/1266.bugfix.md | 1 - changes/1273.breaking.md | 3 -- changes/1284.bugfix.md | 1 - changes/1289.deprecation.md | 1 - changes/847.feature.md | 1 - 18 files changed, 65 insertions(+), 42 deletions(-) delete mode 100644 changes/1141.feature.md delete mode 100644 changes/1204.breaking.md delete mode 100644 changes/1204.bugfix.md delete mode 100644 changes/1204.feature.md delete mode 100644 changes/1213.bugfix.md delete mode 100644 changes/1216.feature.md delete mode 100644 changes/1221.feature.md delete mode 100644 changes/1242.bugfix.md delete mode 100644 changes/1243.bugfix.md delete mode 100644 changes/1245.feature.md delete mode 100644 changes/1247.bugfix.md delete mode 100644 changes/1259.bugfix.md delete mode 100644 changes/1266.bugfix.md delete mode 100644 changes/1273.breaking.md delete mode 100644 changes/1284.bugfix.md delete mode 100644 changes/1289.deprecation.md delete mode 100644 changes/847.feature.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 49f19c28bf..3f9a025bce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,71 @@ This file is updated every release with the use of `towncrier` from the fragment .. towncrier release notes start +Hikari 2.0.0.dev111 (2022-09-26) +================================ + +Breaking Changes +---------------- + +- Lifetime improvements breaking changes: + - `GatewayBot.join`'s `until_close` argument removed. + - `GatewayShardImpl.get_user_id` is no longer async and will now always be available. + - `GatewayBotAware` no longer defines the default parameters for `join`, `start` and `run`. It is left to implementation detail. ([#1204](https://github.com/hikari-py/hikari/issues/1204)) +- Remove support for ProcessPoolExecutor executor when reading files + - It is much more efficient to use a threadpool executor for I/O actions like this one + - Due to the nature of process pool, we were also not able to perform proper chunking when reading off the file ([#1273](https://github.com/hikari-py/hikari/issues/1273)) + + +Deprecation +----------- + +- Deprecate `CacheView.iterator` in favour of using the `itertools` module. ([#1289](https://github.com/hikari-py/hikari/issues/1289)) + + +Features +-------- + +- Add python 3.11-dev support. ([#847](https://github.com/hikari-py/hikari/issues/847)) +- Support for Application Command Localizations. ([#1141](https://github.com/hikari-py/hikari/issues/1141)) +- Improve components lifetimes: + - `GatewayBot`: + - General speedups. + - Fix a lot of edge cases of hard crashes if the application shuts unexpectedly. + - More consistent signal handling. + - `run`'s `shard_ids` argument can now be a `typing.Sequence`. + - Improved logging. + - `RESTBot`: + - Consistent signal handling inline with `GatewayBot`. + - Improved logging. + - Improved loop closing. + - `GatewayShardImpl`: + - New `is_connected` property to determine whether the shard is connected to the gateway. + - Faster websocket pulling and heartbeating. + - Improved error handling. + - Rate limiting changes: + - Chunking no longer has its own special ratelimit. Now it is shared with the rest of + "non-priority" packages sent, which is of 117/60s (3 less than the hard limit). + - "priority" packages currently only include heartbeating. ([#1204](https://github.com/hikari-py/hikari/issues/1204)) +- Implement slash option min/max length fields ([#1216](https://github.com/hikari-py/hikari/issues/1216)) +- Add `mention` property to `PartialChannel`. ([#1221](https://github.com/hikari-py/hikari/issues/1221)) +- Implement new Gateway reconnect logic enforced by Discord. ([#1245](https://github.com/hikari-py/hikari/issues/1245)) + + +Bugfixes +-------- + +- Lifetime improvements bugfixes: + - `GatewayShardImpl` can now be instantiated out of an async environment for consistency with other components. + - Correct signal handling in `RESTBot`. ([#1204](https://github.com/hikari-py/hikari/issues/1204)) +- Improve `BadRequestError`'s error string. ([#1213](https://github.com/hikari-py/hikari/issues/1213)) +- Fix `hikari.impl.VoiceImpl.connect_to` silently failing if the guild or voice channel do not exist by providing a timeout. ([#1242](https://github.com/hikari-py/hikari/issues/1242)) +- `dm_permission` now correctly defaults to `True` instead of `False` when parsing command objects from Discord. ([#1243](https://github.com/hikari-py/hikari/issues/1243)) +- Fix float precision issues when creating a snowflake from a datetime object. ([#1247](https://github.com/hikari-py/hikari/issues/1247)) +- Fix `reposition_channels` to use the correct route. ([#1259](https://github.com/hikari-py/hikari/issues/1259)) +- Allow for `replace_attachments` kwarg to be used in `RESTClient.create_initial_response`. ([#1266](https://github.com/hikari-py/hikari/issues/1266)) +- Ignore guild create events which contain unavailable guilds ([#1284](https://github.com/hikari-py/hikari/issues/1284)) + + Hikari 2.0.0.dev110 (2022-08-08) ================================ diff --git a/changes/1141.feature.md b/changes/1141.feature.md deleted file mode 100644 index 523d756ff1..0000000000 --- a/changes/1141.feature.md +++ /dev/null @@ -1 +0,0 @@ -Support for Application Command Localizations. diff --git a/changes/1204.breaking.md b/changes/1204.breaking.md deleted file mode 100644 index ce17fa98a8..0000000000 --- a/changes/1204.breaking.md +++ /dev/null @@ -1,4 +0,0 @@ -Lifetime improvements breaking changes: -- `GatewayBot.join`'s `until_close` argument removed. -- `GatewayShardImpl.get_user_id` is no longer async and will now always be available. -- `GatewayBotAware` no longer defines the default parameters for `join`, `start` and `run`. It is left to implementation detail. diff --git a/changes/1204.bugfix.md b/changes/1204.bugfix.md deleted file mode 100644 index f483e19c57..0000000000 --- a/changes/1204.bugfix.md +++ /dev/null @@ -1,3 +0,0 @@ -Lifetime improvements bugfixes: -- `GatewayShardImpl` can now be instantiated out of an async environment for consistency with other components. -- Correct signal handling in `RESTBot`. diff --git a/changes/1204.feature.md b/changes/1204.feature.md deleted file mode 100644 index 983294bfbe..0000000000 --- a/changes/1204.feature.md +++ /dev/null @@ -1,19 +0,0 @@ -Improve components lifetimes: -- `GatewayBot`: - - General speedups. - - Fix a lot of edge cases of hard crashes if the application shuts unexpectedly. - - More consistent signal handling. - - `run`'s `shard_ids` argument can now be a `typing.Sequence`. - - Improved logging. -- `RESTBot`: - - Consistent signal handling inline with `GatewayBot`. - - Improved logging. - - Improved loop closing. -- `GatewayShardImpl`: - - New `is_connected` property to determine whether the shard is connected to the gateway. - - Faster websocket pulling and heartbeating. - - Improved error handling. - - Rate limiting changes: - - Chunking no longer has its own special ratelimit. Now it is shared with the rest of - "non-priority" packages sent, which is of 117/60s (3 less than the hard limit). - - "priority" packages currently only include heartbeating. diff --git a/changes/1213.bugfix.md b/changes/1213.bugfix.md deleted file mode 100644 index ebb41cf531..0000000000 --- a/changes/1213.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Improve `BadRequestError`'s error string. diff --git a/changes/1216.feature.md b/changes/1216.feature.md deleted file mode 100644 index 0764d2243e..0000000000 --- a/changes/1216.feature.md +++ /dev/null @@ -1 +0,0 @@ -Implement slash option min/max length fields diff --git a/changes/1221.feature.md b/changes/1221.feature.md deleted file mode 100644 index 59b42439d8..0000000000 --- a/changes/1221.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add `mention` property to `PartialChannel`. diff --git a/changes/1242.bugfix.md b/changes/1242.bugfix.md deleted file mode 100644 index 2512553d11..0000000000 --- a/changes/1242.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Fix `hikari.impl.VoiceImpl.connect_to` silently failing if the guild or voice channel do not exist by providing a timeout. diff --git a/changes/1243.bugfix.md b/changes/1243.bugfix.md deleted file mode 100644 index 58771977dc..0000000000 --- a/changes/1243.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -`dm_permission` now correctly defaults to `True` instead of `False` when parsing command objects from Discord. diff --git a/changes/1245.feature.md b/changes/1245.feature.md deleted file mode 100644 index 97134e9315..0000000000 --- a/changes/1245.feature.md +++ /dev/null @@ -1 +0,0 @@ -Implement new Gateway reconnect logic enforced by Discord. diff --git a/changes/1247.bugfix.md b/changes/1247.bugfix.md deleted file mode 100644 index 362676bd25..0000000000 --- a/changes/1247.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Fix float precision issues when creating a snowflake from a datetime object. diff --git a/changes/1259.bugfix.md b/changes/1259.bugfix.md deleted file mode 100644 index 343524de3f..0000000000 --- a/changes/1259.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Fix `reposition_channels` to use the correct route. diff --git a/changes/1266.bugfix.md b/changes/1266.bugfix.md deleted file mode 100644 index e63c56ff46..0000000000 --- a/changes/1266.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Allow for `replace_attachments` kwarg to be used in `RESTClient.create_initial_response`. diff --git a/changes/1273.breaking.md b/changes/1273.breaking.md deleted file mode 100644 index ae6f812aad..0000000000 --- a/changes/1273.breaking.md +++ /dev/null @@ -1,3 +0,0 @@ -Remove support for ProcessPoolExecutor executor when reading files -- It is much more efficient to use a threadpool executor for I/O actions like this one - - Due to the nature of process pool, we were also not able to perform proper chunking when reading off the file diff --git a/changes/1284.bugfix.md b/changes/1284.bugfix.md deleted file mode 100644 index 6b8986de2b..0000000000 --- a/changes/1284.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Ignore guild create events which contain unavailable guilds diff --git a/changes/1289.deprecation.md b/changes/1289.deprecation.md deleted file mode 100644 index 4ab9d8646a..0000000000 --- a/changes/1289.deprecation.md +++ /dev/null @@ -1 +0,0 @@ -Deprecate `CacheView.iterator` in favour of using the `itertools` module. diff --git a/changes/847.feature.md b/changes/847.feature.md deleted file mode 100644 index 4fc5cf4ed1..0000000000 --- a/changes/847.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add python 3.11-dev support.