Skip to content

Releases: koishijs/koishi

Koishi 1.11.0

12 Mar 02:46
Compare
Choose a tag to compare

Features

  • core: 新增了 retryTimesretryInterval 配置项,支持 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

  • core: 新增依赖 ms,cac 版本从 6.5.6 更新到 6.5.7,ws 版本从 7.2.1 更新到 7.2.3 (723e4a2, e2350d0)
  • plugin-nlp: nodejiaba 版本从 2.4.0 更新到 2.4.1 (e2350d0, 052cddb)

Koishi 1.10.1

04 Mar 06:21
Compare
Choose a tag to compare

Bug Fixes

  • core: 修复了同一个 subdatabase 无法注册到多个 DatabaseManager 的问题 (ccfb687)
  • core: 指令执行前将确保 argv.options 的类型不为 undefined (03dbe46)
  • plugin-common: 修复了 contextify 指令中 meta.$send 输出目标错误的问题 (f1eccdc)

Koishi 1.10.0

27 Feb 10:24
Compare
Choose a tag to compare

Features

  • core: 新增了 meta.$argv 属性 (bbcdab2)
  • core: 新增了 attach-user 和 attach-group 事件 (8285c64)
  • core: send 元信息将附带 time 字段 (ef8a284)
  • cli: 优化了类型标注 (17a6ee9)
  • plugin-common: 优化了子指令的帮助显示 (09d9c75)
  • plugin-common: broadcast 指令支持 -o 参数 (baf7f1f)

Bug Fixes

  • utils: 修复了 CQCode.parse 无法处理带回车的文本的问题 (6013f95, 4dffcf5)

Koishi 1.9.0

19 Feb 16:11
Compare
Choose a tag to compare

Features

  • core: 优化了类型标注 (f135818, 9318bfa, 9821cf7)
  • core: 支持了 CQHTTP 4.14 (169089e)
  • core: 重构了 debug logger (068135e)
  • plugin-common: contextify 指令支持 at 其他成员了 (1576873)
  • plugin-common: 支持了函数类型的 commandConfig.usage (85cb06b)

Dependencies

  • cli: prompts 版本从 2.3.0 更新到 2.3.1 (03868f1)

Koishi 1.8.1

09 Feb 12:13
Compare
Choose a tag to compare

Features

  • core: 完善了实验性的 Usage API (797bde2)
  • utils: getDateNumber 支持传入数字了 (57657c0)
  • test-utils: 新增了 Mocked Date Functions (99c4870)

Bug Fixes

  • core: 修复了 usage._date 不会响应式更新的问题 (f32a7e8)

Koishi 1.8.0

01 Feb 17:22
Compare
Choose a tag to compare

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

27 Jan 04:10
Compare
Choose a tag to compare

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

23 Jan 11:14
Compare
Choose a tag to compare

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

  • core: app.users 等特殊上下文现在将按需生成了 (3ae7e70)
  • core: 异步发送消息现在会触发 before-send 事件了 (1c3cfee)

Dependencies

  • core, test-utils: axios 版本从 0.19.1 更新到 0.19.2
  • database-mysql: mysql 版本从 2.17.1 更新到 2.18.0

Koishi 1.5.0

20 Jan 02:12
Compare
Choose a tag to compare

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

  • 重构了传入的选项列表 (c5c4283)
  • 移除了 repeater 和 request-handler 插件的默认行为 (117b12e)

Features

Test Utilities 2.0.0

Breaking Changes

  • mockedApp.receive() 改为同步函数 (dd851f8)
  • MemoryDatabase 成为独立的包 koishi-database-memory (e06b98e)

Features

Bug Fixes

  • 修复了调用 sender.sendPrivateMsgAsync() 时没有自动去除 _async 后缀的问题 (8c3f3cc)

Dependencies

  • get-port 版本从 5.1.0 更新至 5.1.1 (dfd279c)

Koishi 1.4.0

17 Jan 10:12
Compare
Choose a tag to compare

Features

  • cli: 支持 ts 作为配置文件后缀名 (f551d44)
  • cli: koishi init 命令将自动创建文件所在的目录 (644c6b3)
  • cli: 内置插件将直接被 koishi 导出 (e9c3b9c)
  • core: 新增 app.status 属性表示应用状态 (75c64b3)
  • core: send 事件的元信息对象将带有 userId 属性 (edee314)
  • 移除已经废弃的 user.name 属性和 rank, callme, likeme 指令 (9674079, 87be3c1, 20ebbae, ce4feb1, 9293540)

Bug Fixes

  • cli: 修复了 PluginConfig 的类型 (b3501a6)
  • core: getTargetId 函数将检测输入的类型 (00ab2ce)