惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy International News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Attack and Defense Labs
Attack and Defense Labs
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
O
OpenAI News
Cloudbric
Cloudbric
Google Online Security Blog
Google Online Security Blog
Schneier on Security
Schneier on Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Help Net Security
Help Net Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
L
Lohrmann on Cybersecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tenable Blog
S
Security @ Cisco Blogs
N
News and Events Feed by Topic
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
V
Visual Studio Blog
P
Proofpoint News Feed
Webroot Blog
Webroot Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
L
LangChain Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东

Release notes from mirai

Release 2.16.0-RC · mamoe/mirai Release 2.15.0 · mamoe/mirai Release 2.15.0-RC · mamoe/mirai Release 2.14.0 · mamoe/mirai Release 2.13.4 · mamoe/mirai Release 2.14.0-RC · mamoe/mirai Release 2.13.3 · mamoe/mirai Release 2.13.2 · mamoe/mirai Release 2.16.0 · mamoe/mirai
Release 2.15.0-M1 · mamoe/mirai
Karlatemp · 2023-03-22 · via Release notes from mirai

mirai-core

不兼容变更

  • 删除了旧版的为兼容 Java 生成的阻塞式方法桥

    这只会导致依赖 mirai 2.1.0 (发布于 2 年前) 编译的 Java 代码现在无法使用 mirai 2.15.0-M1 及以上版本运行. 将它们使用 2.15.0-M1 及以上重新编译即可运行.

    这是因为 KJBB 以前有 bug, 会生成返回值为 Unit 的方法桥. mirai 为了兼容, 一直让 KJBB 既生成返回 Unit 的, 也生成返回 void 的. 但自 Kotiln 编译器 1.8.0 起, 其 IR lowering 会把 companion object 中的静态函数 @JvmStatic 的返回值由 Unit 变更为 void, 导致编译器插件 KJBB 不再能做兼容.

新特性

新的登录方法通过 BotAuthorization & BotFactory.newBot(id: Long, authorization: BotAuthorization) 登录

关于详细的使用方法请参考 BotAuthorization 的注释

扫码登录的实现不一定稳定 (因为涉及修改了大量内部登录和维护在线逻辑), 文档也还在正在准备中.
在 2.15.0-RC 可能会修改扫码登录的 API.

mirai-console 尚未支持在命令中指定扫码登录, 但是提供了 MiraiConsole.addBot(id: Long, authorization: BotAuthorization) 用于扫码登录

优化和修复

  • 更新 Kotlin 到 1.8.10, kotlinx-serialization 到 1.5.0 (#2578)
  • 修复特殊情况可能无法加载 services 的问题 (#2268, #2511 by @Nambers, #2428 by @cssxsh)

    例如在 Minecraft 插件中

  • 增加 TxCaptchaHelper 可用性无法保证的警告 (#2564 by @MrXiaoM)
  • 修正消息多态序列化, 输出的 JSON 不再包含多余的 "type" 字段 (#2414)
  • 修正群公告发送失败报错 no login (#2069, #2512 by @cssxsh)
  • 修正使用 Announcements.get(fid) 出现 kotlinx.serialization.MissingFieldException: Field 'msg' (#2509, #2512 by @cssxsh)
  • 修正短暂断网时不能成功重连 (#2488, #2504, #2505 by @sandtechnology)
  • 修复 OfflineMessageSource 回复时, 引用回复的 At 变空白的问题 (#2501)
  • 在无法连接服务器时在报错信息中携带尝试连接的服务器 (#2576 by @cssxsh)
  • 修正 dumpTlvMap 返回值不正确的问题 (内部) (#2557 by @MrXiaoM)
  • 修正文档细节 (#2547 by @7aGiven)

mirai-core-mock

  • 在 upload 后的 MockImage 中提供 size 属性 (#2515)

mirai-console

新特性

  • JvmPlugin 以 getResource 方法获取全局资源文件 (#2536 by @ArgonarioD)
  • 添加新事件 StartupEvent, AutoLoginEvent (#2446 by @cssxsh)

    分别在 Console 启动完成后, 和自动登录后触发

优化和修复