Skip to content

Releases: koishijs/koishi

Koishi 1.3.0

13 Jan 16:26
Compare
Choose a tag to compare

Features

  • core: 支持了 ctx.logger() 方法和 logger 事件 (5e5e93e, 1e0848e, fa5c46e)
  • cli: 支持通过 logLevel, logFilter 等控制输出等级 (befca0f)
  • cli: 处理 unhandledRejection 事件并输出 (8f6d6fa)
  • cli: 支持 yaml/yml 作为配置文件类型 (27645a4)
  • plugin-common: repeater 插件的部分选项支持 message 参数 (e67b817)
  • plugin-schedule: 正式发布 koishi-plugin-schedule 1.0.0 版本,并作为 koishi 的内置插件 (27645a4)

Bug Fixes

  • plugin-common: 修复了 authorize 插件无法使用的问题 (5a777a9)
  • database-mysql: 修复了 db.getGroup() 报错的问题 (#16) (3ce0c70)
  • test-utils: 修复了 mockedApp.shouldHaveLastRequests() 的类型批注 (a3c8494)

Dependencies

  • cli: cac 版本从 6.5.3 更新至 6.5.4 (ed9d61b)

Koishi 1.2.0

09 Jan 17:32
Compare
Choose a tag to compare

Features

  • core: 移除了 meta.$path 属性
  • core: 优化了一些类型标注 (c8f01f8, f8e1c1b)
  • plugin-common: respondent 插件支持简繁体模糊匹配 (cb58388)

Bug Fixes

  • core: server.listen() 失败后将自动调用 server.close() (ea5c2c9)
  • core: 允许 injectMethods()registerDatabase() 之前调用 (9540892)
  • core: 修复了 showSuggestions 在非私聊上下文出错的问题 (8253522)
  • plugin-common: 修复了 requestHandler 插件在无数据库环境下报错的问题 (cb58388)
  • plugin-common: 修复了 welcome 插件在无数据库环境下报错的问题 (ea5c2c9)

Dependencies

  • core: axios 版本从 0.19.0 更新至 0.19.1 (01bebe0)

Test Utilities 1.1.0

Features

  • testDatabase() 第二个参数改为必选
  • 新增 createHttpServer()createWsServer(),用于模拟 CQHTTP 服务器
  • 新增类 MemoryDatabase,用于在内存中模拟数据库
  • 新增类 MockedApp,用于在无网络环境下测试

Dependencies

  • 将 jest 和 koishi-core 设为同版本依赖
  • 新增了 get-port 依赖,移除了 express 依赖
  • axios 版本从 0.19.0 更新至 0.19.1

Koishi 1.1.1

07 Jan 08:42
Compare
Choose a tag to compare

Features

Bug Fixes

  • core:cmd.execute() 中等待错误提示的发送 (3783f42)

Koishi 1.1.0

03 Jan 14:08
Compare
Choose a tag to compare

Features

  • core: ready 事件总是在 connect 事件之后触发 (21197df)
  • core: cmd.option() 允许略去 description 参数 (1c3b203)
  • core: 新增 app.executeCommandLine() 用于直接运行指令 (#9) (bcd3ed6)

Bug Fixes

  • core: ctx.command() 未传入 description 参数时,不会覆盖已有的值 (f1c3605)
  • utils: 优化了 CQCode.unescape() 中的替换顺序 (1c8e33c)
  • plugin-common: help 指令将不会将指令名显示为别名 (e22653b)

Dependencies

  • core: ws 版本从 7.2.0 更新至 7.2.1 (25a6359)
  • database-level: 将 @types/leveldown, @types/levelup 加入依赖 (3e53e9e)

Koishi 1.0.1

01 Jan 07:07
Compare
Choose a tag to compare

Bug Fixes

  • cli: koishi init 指令被 SIGINT 打断输入时自动取消文件写入 (1c59df5)
  • utils: observe 传入的 update 函数应该覆盖过去的版本 (7f9756c, 126cb03)

Koishi 1.0.0

31 Dec 15:46
Compare
Choose a tag to compare

1.0.0 版本正式发布。