Skip to content

v3.0.0.preview.9.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 17 May 04:58
· 1859 commits to v4-main since this release

preview.10重构过渡版本

⚠️ 本次为不兼容更新。

名称变更

调整部分事件接口名称:

  • ChatroomMessageEvent -> ChatRoomMessageEvent

日志模块

现在只有 simbot-coresimboot-core 模块中会携带并传递 simbot-logger 模块,
simboot-core-spring-boot-starter 模块将会使用 `` 作为默认日志实现。

但是仍有组件可能会携带 simbot-logger。这会在未来慢慢优化。如有需要,请考虑排除 love.forte.simbot:simbot-logger 模块
并添加所需要的其他 SLF4J 框架实现。

Application实现

api 模块所提供的新概念,且 corebootspring-boot-starter 模块分别提供其各自的默认实现。

Application 将作为simbot应用程序以一个整体性存在,并提供DSL风格的构建代码。

e.g.

simbotApplication(Foo) {
    installAll()
    install(/* ... */) { /* ... */ }
    useTar { /* ... */ }
    useBar { /* ... */ }
    eventProcessor { /* ... */ }
    listeners { /* ... */ }
    bots { /* ... */ }
    /* ... */
}

有关 Application 的更多使用代码实例请参考《2022年第19周周报》中的 重构 - 第九预览
部分:https://simbot.forte.love/blog/2022/05/13/weak-19-report

BotVerifyInfo

重构 BotVerifyInfo 实现,现在 BotVerifyInfo 也属于 Resource 的一种类型,
并在构建时即解析出 *.bot 文件中的 component 信息。

BortVerifyInfo 现在应当支持更多格式(jsonyamlproperties)。其中,json 格式应为默认支持格式,
而其他格式则需要使用者选择引入所需依赖。

模块重构

伴随着 Application 的产生,corebootspring-boot-starter 模块中的大部分内部实现会发生大量变更。
不过对于bootspring-boot-starter模块的使用者来讲,可能不会很容易察觉到。

重构之后,simbot的原生启动方式以及原始的 core 模块将不再是Java友好的。如果是Java使用者可以考虑直接使用
boot 或者 spring-boot-starter

后续

preview.10.x 更新完持续会话等剩余重构内容后,会开始收集并修改由此重构而产生的问题。当问题解决后,会开始考虑进入beta阶段。

组件更新

相关组件会在后续跟进更新

仓库参考

其他日志

What's Changed

Full Changelog: v3.0.0.preview.8.1...v3.0.0.preview.9.0