diff --git a/CHANGELOG.md b/CHANGELOG.md index fe0e0f2..cd97ecd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,44 @@ +## [0.0.6](https://github.com/BlueGlassBlock/ichika/tree/0.0.6) - 2023-05-13 + +你可以在 [PyPI](https://pypi.org/project/ichika/0.0.6/) 找到该版本。 + +### 新增 + +- 使用 [`backon`](https://docs.rs/backon) 提供自动重试。 ([#55](https://github.com/BlueGlassBlock/ichika/issues/55)) +- `Member.card_name` 现在表示合并后的名片。原始名片存储于 `Member.raw_card_name` 中。 ([#56](https://github.com/BlueGlassBlock/ichika/issues/56)) +- 支持处理群名更新事件。 +- 添加 `Client.get_profile` 以获取用户公开资料。 +- 添加了获取群员列表的方法。 + + +### 更改 + +- 优化了首次登录即失败以及退出时掉线的逻辑。 ([#57](https://github.com/BlueGlassBlock/ichika/issues/57)) +- `Client.get_group_admins` 的返回类型更改为 `list[Member]`。 ([#65](https://github.com/BlueGlassBlock/ichika/issues/65)) +- 使用 `Enum` 表示性别和权限。 ([#68](https://github.com/BlueGlassBlock/ichika/issues/68)) +- 使用 `Literal` 标注了可用密码登录的协议列表。 +- 更改了 Rust 侧日志的显示风格。 +- 现在自动重连将采取最小 3s,最大 60s,每次增长 1.2 倍的间隔时间,并不再主动停止重试。 +- 现在要使用刷新缓存的 API 应传入 `cache = False` 而不是调用 `get_xxx_raw` 方法。 +- 设定每个账号的群员和群的缓存大小为 1024。 +- 重命名 `ichika.core.Profile.sex` 为 `ichika.core.Profile.gender`。 +- 默认限制使用 4 个线程进行操作。你可以通过 `ICHIKA_RUNTIME_THREAD_COUNT` 环境变量来修改这个限制。 + + +### 修复 + +- 修复了事件无法正确在 Union 中分发的 bug。 ([#58](https://github.com/BlueGlassBlock/ichika/issues/58)) +- 修复 `At` 的 `target` 属性发送时被忽略的问题。 ([#59](https://github.com/BlueGlassBlock/ichika/issues/59)) +- 修复了 `GroupMute` 在 Rust 端提供参数名不吻合的问题。 ([#60](https://github.com/BlueGlassBlock/ichika/issues/60)) +- 修复了 `IchikaComponent` 在 cleanup 阶段分发事件导致的错误。 ([#61](https://github.com/BlueGlassBlock/ichika/issues/61)) +- 客户端注册失败现在会直接报错。 ([#67](https://github.com/BlueGlassBlock/ichika/issues/67)) +- 修复了因网络原因掉线时,无法多次重试的问题。 ([#69](https://github.com/BlueGlassBlock/ichika/issues/69)) +- 修复了事件的属性无法被类型检查器正常识别的问题。 + + ## [0.0.5](https://github.com/BlueGlassBlock/ichika/tree/0.0.5) - 2023-05-03 你可以在 [PyPI](https://pypi.org/project/ichika/0.0.5/) 找到该版本。 diff --git a/news/+cache.changed.md b/news/+cache.changed.md deleted file mode 100644 index 850061f..0000000 --- a/news/+cache.changed.md +++ /dev/null @@ -1 +0,0 @@ -设定每个账号的群员和群的缓存大小为 1024。 diff --git a/news/+event-type-hint.fixed.md b/news/+event-type-hint.fixed.md deleted file mode 100644 index 75c7cc8..0000000 --- a/news/+event-type-hint.fixed.md +++ /dev/null @@ -1 +0,0 @@ -修复了事件的属性无法被类型检查器正常识别的问题。 diff --git a/news/+gender-attr.changed.md b/news/+gender-attr.changed.md deleted file mode 100644 index ecf44b3..0000000 --- a/news/+gender-attr.changed.md +++ /dev/null @@ -1 +0,0 @@ -重命名 `ichika.core.Profile.sex` 为 `ichika.core.Profile.gender`。 diff --git a/news/+get-member-list.added.md b/news/+get-member-list.added.md deleted file mode 100644 index 9fb0ced..0000000 --- a/news/+get-member-list.added.md +++ /dev/null @@ -1 +0,0 @@ -添加了获取群员列表的方法。 diff --git a/news/+get-profile.added.md b/news/+get-profile.added.md deleted file mode 100644 index 59f6db0..0000000 --- a/news/+get-profile.added.md +++ /dev/null @@ -1 +0,0 @@ -添加 `Client.get_profile` 以获取用户公开资料。 diff --git a/news/+group-info-update-event.added.md b/news/+group-info-update-event.added.md deleted file mode 100644 index 3093a41..0000000 --- a/news/+group-info-update-event.added.md +++ /dev/null @@ -1 +0,0 @@ -支持处理群名更新事件。 diff --git a/news/+login-proto-enum.changed.md b/news/+login-proto-enum.changed.md deleted file mode 100644 index fedd3e7..0000000 --- a/news/+login-proto-enum.changed.md +++ /dev/null @@ -1 +0,0 @@ -使用 `Literal` 标注了可用密码登录的协议列表。 diff --git a/news/+reconnect.changed.md b/news/+reconnect.changed.md deleted file mode 100644 index 102171e..0000000 --- a/news/+reconnect.changed.md +++ /dev/null @@ -1 +0,0 @@ -现在自动重连将采取最小 3s,最大 60s,每次增长 1.2 倍的间隔时间,并不再主动停止重试。 diff --git a/news/+rust-log.changed.md b/news/+rust-log.changed.md deleted file mode 100644 index b6f202f..0000000 --- a/news/+rust-log.changed.md +++ /dev/null @@ -1 +0,0 @@ -更改了 Rust 侧日志的显示风格。 diff --git a/news/+tokio-thread-cnt.changed.md b/news/+tokio-thread-cnt.changed.md deleted file mode 100644 index efc2ce2..0000000 --- a/news/+tokio-thread-cnt.changed.md +++ /dev/null @@ -1 +0,0 @@ -默认限制使用 4 个线程进行操作。你可以通过 `ICHIKA_RUNTIME_THREAD_COUNT` 环境变量来修改这个限制。 diff --git a/news/+uncached-api.changed.md b/news/+uncached-api.changed.md deleted file mode 100644 index 9a5cbb9..0000000 --- a/news/+uncached-api.changed.md +++ /dev/null @@ -1 +0,0 @@ -现在要使用刷新缓存的 API 应传入 `cache = False` 而不是调用 `get_xxx_raw` 方法。 diff --git a/news/55.added.md b/news/55.added.md deleted file mode 100644 index de1ec6b..0000000 --- a/news/55.added.md +++ /dev/null @@ -1 +0,0 @@ -使用 [`backon`](https://docs.rs/backon) 提供自动重试。 diff --git a/news/56.added.md b/news/56.added.md deleted file mode 100644 index d956f5a..0000000 --- a/news/56.added.md +++ /dev/null @@ -1 +0,0 @@ -`Member.card_name` 现在表示合并后的名片。原始名片存储于 `Member.raw_card_name` 中。 diff --git a/news/57.changed.md b/news/57.changed.md deleted file mode 100644 index 02f0f87..0000000 --- a/news/57.changed.md +++ /dev/null @@ -1 +0,0 @@ -优化了首次登录即失败以及退出时掉线的逻辑。 diff --git a/news/58.fixed.md b/news/58.fixed.md deleted file mode 100644 index 9754790..0000000 --- a/news/58.fixed.md +++ /dev/null @@ -1 +0,0 @@ -修复了事件无法正确在 Union 中分发的 bug。 diff --git a/news/59.fixed.md b/news/59.fixed.md deleted file mode 100644 index 98af2cc..0000000 --- a/news/59.fixed.md +++ /dev/null @@ -1 +0,0 @@ -修复 `At` 的 `target` 属性发送时被忽略的问题。 diff --git a/news/60.fixed.md b/news/60.fixed.md deleted file mode 100644 index 1627c94..0000000 --- a/news/60.fixed.md +++ /dev/null @@ -1 +0,0 @@ -修复了 `GroupMute` 在 Rust 端提供参数名不吻合的问题。 diff --git a/news/61.fixed.md b/news/61.fixed.md deleted file mode 100644 index c80df54..0000000 --- a/news/61.fixed.md +++ /dev/null @@ -1 +0,0 @@ -修复了 `IchikaComponent` 在 cleanup 阶段分发事件导致的错误。 diff --git a/news/65.changed.md b/news/65.changed.md deleted file mode 100644 index 4518611..0000000 --- a/news/65.changed.md +++ /dev/null @@ -1 +0,0 @@ -`Client.get_group_admins` 的返回类型更改为 `list[Member]`。 diff --git a/news/67.fixed.md b/news/67.fixed.md deleted file mode 100644 index cde5f33..0000000 --- a/news/67.fixed.md +++ /dev/null @@ -1 +0,0 @@ -客户端注册失败现在会直接报错。 diff --git a/news/68.changed.md b/news/68.changed.md deleted file mode 100644 index d207d4f..0000000 --- a/news/68.changed.md +++ /dev/null @@ -1 +0,0 @@ -使用 `Enum` 表示性别和权限。 diff --git a/news/69.fixed.md b/news/69.fixed.md deleted file mode 100644 index a441432..0000000 --- a/news/69.fixed.md +++ /dev/null @@ -1 +0,0 @@ -修复了因网络原因掉线时,无法多次重试的问题。