Skip to content

Commit e224ec4

Browse files
committed
Release 2.6.0
1 parent 8ba96b5 commit e224ec4

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# 更新日志
22

3+
## \[2.6.0\] - 2.22.8-8
4+
5+
### 修复
6+
7+
+ 修复 `webhook` 可能发起 HTTP/2 请求,导致目标服务器不支持
8+
+ 修复 `http` 下未读消息队列未消费出现内存泄露,现默认最大容量 100
9+
10+
### 新增
11+
12+
+ 新增 `群解散 bot 退出群聊` 事件 `BotLeaveEventDisband` @RF-Tar-Railt
13+
+ 新增 `Image`, `FlashImage` 消息类型 `width`, `heignt` 等新字段 (#598)
14+
+ 新增获取已登录的可用 bot 列表接口 [接口详情](docs/api/API.md#获取登录账号) (#580)
15+
+ 新增 [获取漫游消息](docs/api/API.md#获取漫游消息) 的支持
16+
+ 新增配置 `http` 轮询模式下未读队列的大小限制
17+
+ 可用 `websocket` 申请的 `session` 直接发起 `http` 接口的请求。 (操作未读队列的接口除外)
18+
+ 可通过 SPI 载入第三方 session 持久化机制 (当前可引用 mah 做编译时依赖,后续会抽离 SPI 相关接口到额外依赖)
19+
20+
### 变更
21+
22+
+ 为支持 session 持久化,且解决多个群聊中消息 id 的重复问题。此版本起,传入 `messageId` 引用消息的接口均可能需要传入上下文(好友id、群id)
23+
* 发送好友、群、临时等消息的引用消息参数: **不做变化**,以当前发送对象作为上下文
24+
* 获取指定ID消息接口: [查看新接口参数](docs/api/API.md#通过messageId获取消息)
25+
* 设置群精华消息接口: [查看新接口参数](docs/api/API.md#设置群精华消息)
26+
* 撤回消息接口: [查看新接口参数](docs/api/API.md#撤回消息)
27+
28+
329

430
## \[2.5.2\] - 2022-5-15
531

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kotlin.incremental.multiplatform=true
55
org.gradle.parallel=true
66

77
# build
8-
httpVersion=2.5.2
8+
httpVersion=2.6.0
99

1010
# kotlin
1111
kotlinVersion=1.6.21

mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/HttpApiPluginBase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import java.io.File
2424
* 主要职责为读取配置文件 [MainSetting] 和 启动具体实现 [MahPluginImpl]
2525
*/
2626
object HttpApiPluginBase : KotlinPlugin(
27-
JvmPluginDescription(id = "net.mamoe.mirai-api-http", version = "2.5.2") {
27+
JvmPluginDescription(id = "net.mamoe.mirai-api-http", version = "2.6.0") {
2828
author("ryoii")
2929
info("Mirai HTTP API Server Plugin")
3030
}

0 commit comments

Comments
 (0)