Releases: koishijs/koishi
Releases · koishijs/koishi
Koishi 1.11.0
Features
- core: 新增了
retryTimes
和retryInterval
配置项,支持 WebSocket 断线重连 (#27) (f95f794, c854300, 5a3cee4) - test-utils: 新增了
mockedServer.open()
方法 (ccda1bc) - core: SenderError 中加入了
selfId
字段 (77efd54) - core: 新增了
defaultAuthority
配置项,用于配置默认权限等级 (8b76734) - plugin-common: broadcast 指令默认不对 noEmit 群广播,新增 -f 选项用于对所有群广播 (24ee7f2)
Bug Fixes
- plugin-common: 修复了 welcome 插件可能对自己触发的问题 (49aee5f)
Dependencies
Koishi 1.10.1
Koishi 1.10.0
Koishi 1.9.0
Koishi 1.8.1
Koishi 1.8.0
Features
- core: 指令默认情况下将隐藏 -h, --help 选项 (a84621d)
- core: 优化了类型标注 (2446723)
- core: 优化了调用记录检查 (5f8d8e1)
- core: 默认情况下将使用 debug 处理 logger 输出 (ea8c3d1)
- cli: 优化了启动时的报错提示 (b510600)
- plugin-common: 增加了 authorize 插件的 logger 提示 (2f36aca, fb7dbe6)
Bug Fixes
- core: 修复了 CommandConfig.disable 选项的无效行为 (1cffdab)
- core: 修复了 disable 指令仍可以通过错误纠正机制被调用的问题 (95cf878)
- core: 修复了无法处理 heartbeat 事件的问题 (36a4602)
- cli: 修复了错误的路径解析 (06d59b8)
- plugin-common: 选项的显示将不考虑隐藏选项 (6b1530a)
- plugin-common: 修复了 authorization 的错误行为 (76663bc)
Dependencies
- cli: cac 版本从 6.5.5 更新至 6.5.6
- 所有官方数据库支持都将 koishi-core 改为 peerDependency
Koishi 1.7.0
Features
- cli: 输出日志时会显示 scope (a245fa3)
- core: before-user, before-group, attach 三个事件将在对应的上下文触发 (658944a)
- plugin-common:
registerUserInfo()
支持传入第三个参数 (7119a58) - plugin-common: 新增
contextify --member
选项 (7eb6d20) - plugin-nlp: 使用
meta.$parsed.message
取代meta.message
(5d4d7fe) - plugin-nlp:
cmd.intend()
将返回this
以便链式调用 (8036e02)
Bug Fixes
- core: 快捷调用的 message 将自动去除头部空格 (abb7498), (f72ba21)
- test-utils: 使用
''
作为默认快照名,修复了与 jest 25 的兼容性的问题 (154a409)
Test Utilities 3.0
Breaking Changes
- 将 jest 版本更新到 25.x
- 调整了部分 Session API 的语法 (8799a2d) (cf175f7)
- 调整了
app.receiveGroupRequest()
的语法 (16fd63e)
Features
- Mocked Utilities API
Koishi 1.6.0
Features
- core: 新增
ctx.onceMiddleware()
(7a1dd94) - core: 新增
getUsage()
和updateUsage()
方法 (1527159) - core:
meta.$stripped
更改为meta.$parsed
(c3b0b50) - core: 新增
sender.sendMsg()
和sender.sendMsgAsync()
方法 (1c3cfee) - cli: optimize ecosystem module resolution (ed505b1)
- test-utils: 新增一些基于
app.receive()
的方法 (a0fd831) - test-utils: 新增实验性的 Random Mock API (533f4de)
Bug Fixes
Dependencies
- core, test-utils: axios 版本从 0.19.1 更新到 0.19.2
- database-mysql: mysql 版本从 2.17.1 更新到 2.18.0
Koishi 1.5.0
Features
- core: 新增 after-middleware 事件 (bb67894)
- core: 内置运行时警告改为使用
logger().warn()
输出 (d33781c) - cli: 优化了输出的提示 (59052bb)
- cli: 优化了错误处理函数 (34ebc6e)
- cli: 支持在配置文件中使用对象/函数式的插件 (37e4bdd)
Experimental Features
- 新增了
meta.$stripped
属性 (e5cfad6)
Dependencies
- cli: cac 版本从 6.5.4 更新至 6.5.5 (dfd279c)
Common Plugin 2.0.0
Breaking Changes
Features
- 新增了 exec 指令 (bf36c71)
- authorize 指令优化与修复 (e67243d, 45f83ee)
- contextify 指令优化与修复 (7769a50)
- echo 指令优化与修复 (fd2973f)
- info 指令优化与修复 (e84d700)
Test Utilities 2.0.0
Breaking Changes
Features
Bug Fixes
- 修复了调用
sender.sendPrivateMsgAsync()
时没有自动去除_async
后缀的问题 (8c3f3cc)
Dependencies
- get-port 版本从 5.1.0 更新至 5.1.1 (dfd279c)