github mamoe/mirai v2.7-M2
2.7-M2

latest releases: v2.16.0, v2.16.0-RC, v2.15.0...
pre-release2 years ago

mirai-core

新特性

  • 新增群公告 API Group.announcements (#138, #140, #1141, #1389)
  • 支持好友语音, 提供类似于发送图片的多种发送语音的 API (#931, #1310)
    • 新增 Contact 的类似 FileSupported 的公共 VoiceSupported 接口, 由 GroupFriend 实现
    • 新增 ExternalResource, InputStream, File 等资源类型发送为语音的 API (ExternalResource 静态方法)
    • 尽可能支持语音的转发, 直接转发协议数据结构
  • 支持语音的序列化 (#1368)
  • 在 mirai-core 所有模块的 JAR META-INF/MANIFEST.MF 里存储版本信息 (#1351, #1355)
  • 支持最新的原生表情 (Face) (#1260 by @sandtechnology)
  • Image 实现 hashCodeequals, 仅判断 Image.imageId (#1302)
  • 在 GC 时释放泄露的资源 (#1383)
  • 默认启用滑动验证码支持

优化和修复

  • 更新依赖
    依赖模块 原版本号 新版本号
    kotlinx-serialization-core 1.1.0 1.2.1
  • 增加 @NotStableForInheritance 标注不应该被继承的接口 (#1385)

Bot

  • 在收到密码错误等失败返回后中断 Bot.login, 并记录到 bot.logger, 解决无限验证码的问题 (2.7-M1 regression). (#1352)
  • 使用新版本登录加密算法 (#1237 by @sandtechnology)
  • 处理状态心跳的返回值, 解决可能的无法接收消息问题 (#1241 by @sandtechnology)
  • 修复滑动验证码 UI 的链接
  • 优化网络层错误时的日志
  • 更好地支持单线程调度下的网络任务
  • 提升重连稳定性

Contact

Message

  • 去除合并转发消息卡片的多余的空格 (#1275 by @493505110)
  • 提升 MessageChain.get, MessageChain.contains 的性能
  • 修复协议内部消息类型被暴露给 MessageReceipt.source.originalMessage 的问题 (#1371)
  • 修复无法撤回好友消息的问题 (#1293)
  • Face.toString() 现在返回类似 [可怜], 而不是 [mirai:face:123] (#1382)

Event

  • 修复 EventChannel.filter Java 版在执行阻塞调用时会阻塞协程调度的问题
  • 确保 BotOnlineEvent, BotOfflineEvent 以及 BotReloginEvent 广播的时机及顺序

mirai-console

优化和修复

  • Console 内置配置使用只读的 ReadOnlyPluginConfig (mamoe/mirai-console#375 by @cssxsh)
  • 更新依赖
    依赖模块 原版本号 新版本号
    yamlkt 0.9.0 0.10.0

Don't miss a new mirai release

NewReleases is sending notifications on new releases.