Notable Changes
- console (2.0.0): 支持了使用 esmodule 加载扩展内容,并提供了全新的客户端 API (282f5a3, ece4dcd, 4ad2ed5, b36a7c6, c56884e, b0b8c7a, e741506, bbe6af0)
- forward (2.0.0): 支持了通过指令添加、删除、查看转发规则 (#473) (5b192f1, 595248d, 216af50)
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)