Koishi 4.16.0
Notable Changes
- loader: 为每个插件自动生成永久 ID (koishijs/webui@3cc44a9, 9b910f1, koishijs/webui@d1d2a9b)
- server: @satorijs/router 现已迁移至 @cordisjs/server,且不再内置于 Koishi 中,需要通过 @koishijs/plugin-server 引入 (cordiverse/server@db39435, cordiverse/server@28511e6, cordiverse/server@c06e429, 9bfabd9, satorijs/satori@42366d1, cordiverse/server@5eb76b1, koishijs/webui@4b19bf2)
- i18n: 除
zh-CN
和en-US
外的语言包不再内置于 Koishi 中,现已迁移至 koishijs/locales 仓库进行自动同步 (koishijs/locales@34e5a9e, koishijs/locales@e773c49, koishijs/locales@b2396f4, koishijs/locales@9827a2a, koishijs/locales@eecda17, koishijs/locales@1115704, 2e034d8, koishijs/locales@f72f213)
Features
- cordis: 支持了
internal/error
事件,用于处理插件生命周期中出现的错误 (cordiverse/cordis@df90144) - cordis: 实验性地支持了
ctx.alias()
和ctx.accessor()
(cordiverse/cordis@79d3ce5, cordiverse/cordis@2951896) - cordis: 支持了
Context.associate()
属性的 setter (cordiverse/cordis@3b1cfc1) - cordis: 支持了
internal/listener
事件,用于处理事件监听 (cordiverse/cordis@902be5a) - core:
prefix
配置项支持了贪婪匹配每一个前缀 (f66e954) - config: 新增了用于标识插件状态的小灯 (cordiverse/cordis@0dff168, koishijs/webui@7f0297d)
- minato: 支持了数据库事务
db.withTransaction()
(cordiverse/minato#52) (cordiverse/minato@709fb07) - minato: 为
db.remove()
返回值支持了matched
(cordiverse/minato@1bf77c3)
Bug Fixes
- core:
session.suggest()
现在支持了 @机器人 开头的响应了 (#1295) (78d105d) - element: 修复了部分空白字符被错误地删除的问题 (#1297) (satorijs/satori@f951d4b)
- market: 修复了确认安装对话框在确认后不会消失的问题 (koishijs/webui#259) (koishijs/webui@dab8e27)
- mongo: 修复了修改带有
$
前缀的属性时未转义的问题 (cordiverse/minato#57) (cordiverse/minato@a2bd92f) - postgres: 修复了
$.if
,$.ifNull
等操作符存在的问题 (cordiverse/minato#54) (cordiverse/minato@b7ae5b7) - sqlite: 修复了创建单行超过 1M 数据时会破坏数据库的问题 (cordiverse/minato#58) (cordiverse/minato@618884b)
Other Changes
- chore: bump version (56cd4a9)
- chore: bump versions (cordiverse/minato@3ec3436)
- chore: initial commit (cordiverse/http@e6861ab)
- chore: setup project (cordiverse/http@84827dd)
- chore: setup eslint (cordiverse/http@e023399)
- chore: basic implementation (cordiverse/http@f98e2ff)
- chore: set builtin service (cordiverse/http@5f4681d)
- chore: add missing peerDep (cordiverse/http@f5d81ac)
- chore: bump versions (cordiverse/cordis@39fc34b)
- chore: bump versions (satorijs/satori@bfc3dc8)
- chore: bump versions (koishijs/webui@33e650c)
- chore: bump versions (7f1f0e9)