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

推荐订阅源

Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
SegmentFault 最新的问题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Attack and Defense Labs
Attack and Defense Labs
F
Full Disclosure
Vercel News
Vercel News
N
News | PayPal Newsroom
The GitHub Blog
The GitHub Blog
H
Hacker News: Front Page
H
Heimdal Security Blog
P
Privacy International News Feed
博客园 - 司徒正美
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cisco Blogs
L
Lohrmann on Cybersecurity
D
Docker
Recent Announcements
Recent Announcements
Security Archives - TechRepublic
Security Archives - TechRepublic
人人都是产品经理
人人都是产品经理
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Proofpoint News Feed
T
Tailwind CSS Blog
C
Check Point Blog
博客园 - 叶小钗
Google Online Security Blog
Google Online Security Blog
Martin Fowler
Martin Fowler
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
S
Secure Thoughts
博客园 - Franky
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
P
Palo Alto Networks Blog
Latest news
Latest news
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
Last Week in AI
Last Week in AI
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Cyberwarzone
Cyberwarzone
小众软件
小众软件
Cisco Talos Blog
Cisco Talos Blog
Hacker News: Ask HN
Hacker News: Ask HN
T
Threatpost
T
Tenable Blog
P
Privacy & Cybersecurity Law Blog
WordPress大学
WordPress大学

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 启动完成后, 和自动登录后触发

优化和修复