npm koishi 4.1.1
Koishi 4.1.1

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

Notable Changes

Features

  • cli: 支持根据配置文件的改动按需重载对应插件了 (6d04402, a8c6103)
  • cli: 支持在配置文件中使用环境变量插值了 (4da89fb)
  • cli: 新增了复读诊断机制,会在加载时告知缺失服务的插件 (f248736)
  • core: ctx.dispose() 现在会返回插件状态了 (045734d)
  • core: 当指令不存在 action 回调函数时,会尝试将第一个参数当做子指令执行 (#476) (9852598)

Bug Fixes

  • core: 修复了 config.prefix 不支持数组的问题 (0e3bee5)
  • core: 优化了 app.start() 等待插件加载完成的行为 (09d093a)
  • core: 修复了用户表扩展字段不支持平台别名的问题 (6d866c5)
  • core: 修复了跨平台会导致添加用户报错的问题 (#484) (09bfd7c)
  • core: 修复了端口监听错误会引发无限重启的问题 (2d06375)
  • core: 修复了 session.observeX() 可能存在的异步竞争问题 (ae44c54)
  • core: 修复了 session.getX() 传入空字段列表导致报错的问题 (#459) (131b8d3)
  • mongo: 修复了索引的实际行为与定义不一致的问题 (c19cbd1)
  • mongo: 修复了动态添加的数据模型字段缺失的问题 (4d5a473, 5473727)
  • teach: 修复了教学前缀和指令前缀拥有共同起始字符时失效的问题 (#471) (48da621)

Other Changes

  • docs: update migration guide (e4153ce)
  • docs: add console plugins (f2007ba)
  • docs: release v4.1 (65c9b4a)
  • refa: use unwrapExports (7dbc220)
  • refa: remove unnecessary Context.service() (b051673)
  • refa: rename _prolog to prologue (26efdd2)
  • chore: fix typings (5a987cd)
  • chore: update feature request template (e3ee9ee)
  • tests: observer tests should use deep equal (fa3911e)
  • chore: bump versions (21dfd25)

Don't miss a new koishi release

NewReleases is sending notifications on new releases.