github koishijs/koishi 1.2.0
Koishi 1.2.0

latest releases: 4.17.9, 4.17.8, 4.17.7...
4 years ago

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

Don't miss a new koishi release

NewReleases is sending notifications on new releases.