Skip to content

Releases: koishijs/koishi

Koishi 4.3.1

21 Feb 16:27
Compare
Choose a tag to compare

此次更新紧急修复了 @koishijs/segment 缺少文件的问题。

Koishi 4.3.0

21 Feb 16:26
Compare
Choose a tag to compare

Notable Changes

  • create: 改为使用在线 boilerplate 创建项目 (a34904b, b956b81)
  • scripts: 新增工具包 @koishijs/scripts,提供了一系列用于工作区开发的指令

Features

  • client: 支持了 schema description 中使用 markdown 语法 (#534) (19e9e2d)
  • console: devMode 配置项的默认值更改为 NODE_ENV 环境变量 (350ed2d)
  • create: 支持了在创建的项目中初始化 git (e374267)
  • scripts: 支持了 init 指令 (8231e34, b35a180)
  • scripts: 支持了 publish 指令 (9911e72)
  • scripts: 支持了 build 指令 (a8e19a3)
  • scripts: 支持了 bump 指令 (673e6db, c19798c)
  • segment: 使用默认导出以确保命名空间中的类型可用 (d25dadb)

Bug Fixes

  • cli: 修复了使用 js/ts 配置文件时无法使用热重载的问题 (#526) (3399d3e)
  • cli: 修复了重复的 execArgv 选项会导致进程无法启动的问题 (9435779)
  • manger: 修复了全局配置更新按钮点击无效的问题 (#505) (e1f5087)
  • orm: 在 eval 表达式中支持了 Date 相关类型 (7e65450)
  • sandbox: 修复了聊天面板的布局和滚动问题 (#535) (8451688)

Other Changes

Koishi 4.2.2

18 Feb 04:08
Compare
Choose a tag to compare

Notable Changes

  • sandbox: 新增插件 @koishijs/sandbox,它将允许用户在控制台中创建虚拟的账号与机器人交互,可用于调试机器人功能 (bd54bb0, 825a1a6, d3cf253, 3e0c628)

Features

  • client: 优化了使用 LocalStorage 的行为 (bdd544c)
  • client: 支持了聊天组件 <k-chat-panel> (1d8e65b)
  • client: 优化了部分组件在暗色主题时的样式 (8f04339)
  • core: 支持了 bot.hidden 属性,在控制台中将不会显示此 Bot 实例 (d32cb78)

Bug Fixes

  • console: 修复了以特定初始链接启动会报错的问题 (87e3a4c)
  • console: 修复了生产模式下 uiPath 不能正常工作的问题 (849c41b)
  • console: 修复了当添加新的控制台插件时,后端不会主动推送数据的问题 (a6e71f7)
  • core: 修复了 autoAuthorize, autoAssign 的行为与预期不符的问题 (0826381)
  • core: 修复了 prefix 配置项的缺省值与文档所述不符的问题 (#523) (351184e)
  • github: 修复了删除订阅时可能的报错问题以及删除仍然监听的问题 (#375, #455, #489) (fc15dec)
  • manager: 修复了点击更新依赖提示超时的问题 (#521) (15a1248)
  • memory: 修复了无法读取本地文件的问题 (#519, #520) (34aad76)
  • mysql: 修复了 time 类型不会返回 Date 的问题 (#512) (6129625)

Other Changes

Koishi 4.2.1

15 Feb 02:43
Compare
Choose a tag to compare

Notable Changes

  • client: 新增工具包 @koishijs/client,它将允许用户调试和构建自己开发的控制台扩展 (36dd370, 09506a3, d29937f)
  • auth: 新增插件 @koishijs/plugin-auth:它将允许用户使用实际的平台账号登陆控制台,并提供了权限管理功能 (f3767f6, 375fba3, b3993d1, ae91173)
  • dataview: 新增插件 @koishijs/plugin-dataview:它在控制台中实现了对后端数据库的基本操作,包括查看全表 / 添加删除行 / 修改单元格等 (#495, #516) (998141a, 1bdae0a, 2169cdf, dfb5801)

Features

  • cli: 加入了内置的 dotenv 环境变量支持 (13a9feb)
  • core: 支持了 session.guild 相关特性 (#504) (52c1a1d)
  • core: 支持了 assets.whitelist 配置项 (1f53441)
  • manager: 优化了设置界面的过滤、查找功能 (95adeba, 937b5de)
  • manager: 优化了配置项的显示,并加入了对配置项格式的检查 (f88d114, 242c91f)
  • manager: 优化了依赖管理器对 monorepo 的支持 (4363eb2, e38356c)
  • onebot: 适配了 go-cqhttp 1.0.0-rc1 最新特性 (#502) (bd2c0cb)

Bug Fixes

  • assets: 修复了可能对于已上传的文件重复上传的问题 (#508) (0713f3b)
  • client: 优化了 k-comment, k-hint 组件的行为 (109c982)
  • console: 修复了切换页面时路由可能被重置的问题 (437d160)
  • discord: 修复了手机端发出的消息格式不统一的问题 (#511) (8d52f80)
  • status: 修复了群组聊天图表总是为空的问题 (76bee6f)
  • utils: 优化了 Promisify 的类型实现 (7aeaef0)

Other Changes

Koishi 4.2.0

10 Feb 20:21
Compare
Choose a tag to compare

Features

  • components: 支持了数值类型配置项的表单 (8991907)
  • components: 优化了暗色主题的配色方案 (c05587a, 7932450)
  • console: 支持服务端监听器内部抛出 Error 作为响应了 (7ec0d12)
  • console: 优化了加载和空状态的显示 (e2084f7)
  • core: 向频道表新增了 guildId 字段,以解决部分平台发送消息失败的问题 (ea154ac)
  • manager: 支持了机器人界面的插槽,允许其他插件注入其他内容 (72bc7da, 3b88914)
  • manager: 优化了插件配置界面的链接 (d693406)
  • manager: 重构了插件市场的界面,改用卡片方案显示 (3795a1d, ddca6c5)
  • manager: 优化了插件市场的搜索功能,支持多关键词+功能搜索 (ea04111)

Bug Fixes

  • console: 修复了初始 URL 的 query 部分会在加载后丢失的问题 (c6b1b91)
  • status: 修复了频道数据更新报错的问题 (#493) (d549df1)
  • status: 修复了图标显示异常的问题 (#498) (9c89688)

Other Changes

  • refa: add @koishijs/components (3d1e488)
  • refa: enhance console builder (eb3b81f)
  • refa: async component k-markdown (1c49262)
  • refa: use new schema presets (8fff536)
  • chore: update readme (#499) (7916245)
  • docs: update forward plugin (ec47f10)
  • docs: add ctx.http docs (1d63f2b)
  • chore: update package keywords (164df0b)
  • chore: bump versions (6619432)

Koishi 4.1.2

03 Feb 09:56
Compare
Choose a tag to compare

Features

  • console: 支持了更多 Schema 类型的显示 (931ae56, 50a5f3a, c4721ee, caf14fd, d5c2ff3, e1b5610)
  • console: 当扩展页面未提供图标时使用默认图标 (14052f8)
  • core: 优化了 App.Config 的配置结构 (25b251c)
  • discord: 优化了配置模式,修改了部分配置的层级 (6cb846f)
  • manager: 支持了机器人配置界面 (26148ec, 4ecaf66)
  • manager: 新增了依赖管理界面,允许批量安装 / 更新 / 删除依赖 (ae51131, 45112c6)
  • manager: 优化了机器人交互操作,支持了登录 / 下线 / 移除等操作 (29b43eb)

Bug Fixes

  • core: 修复了适配器配置核验时丢失属性的问题 (07a5e53)
  • core: 修复了 bot.stop() 部分情况无效的问题 (e9da7b4)
  • manager: 修复了插件变动导致待下载插件报错的问题 (e0c9d94)
  • teach: 修复了部分情况下可能会触发任意回答的问题 (#457) (f6e348b)
  • telegram: 优化了配置模式,修复了不支持控制台的问题 (34edd3a, a2875ef)

Other Changes

  • docs: koishi-thirdeye (#444) (190d880)
  • chore: update secret schema roles (0b47539)
  • chore: update url schema roles (88a9dd2)
  • refa: extract @koishijs/icons (0559d65)
  • refa: add more icons (71b4377)
  • refa: migrate all to @koishijs/icons (9061066)
  • chore: bump versions (d3b50cf)

Koishi 4.1.1

28 Jan 17:41
Compare
Choose a tag to compare

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)

Koishi 4.1.0

22 Jan 16:28
Compare
Choose a tag to compare

更新介绍:https://koishi.js.org/api/releases/v4.1.html

Features

  • cli: 支持了插件的 sideEffect 副作用声明 (80b3ea1)
  • cli: 支持了 config.watch.debounce 配置项 (7c3335e)
  • cli: 支持写入 json 后缀的配置文件了 (b4e30c5)
  • console: 现在 DataSource 也会自动注册服务了 (c13d4be)
  • console: 支持了 provider.patch() 方法,允许数据以补丁的方式传送 (deb3d49)
  • core: 优化并内置使用了 App.Config 配置模式 (ea8a1fd)
  • core: 现在适配器插件将自动触发相应的字段变更了 (706b828)
  • dataview: 新增插件 @koishijs/plugin-dataview (76477ee)
  • insight: 新增插件 @koishijs/plugin-insight (1580959)
  • logger: 新增插件 @koishijs/plugin-logger (d5b1274) (4f822bd)
  • mysql: 支持了 mysql 8 的连接方式 (#480) (e0cac06)
  • recall: 支持了 config.timeout 配置项 (de7139b)

Bug Fixes

  • chat: 修复了 element-plus 更新引入的错误 (07a0779)
  • cli: 修复了启动前 logger 丢失的问题 (421df64)
  • cli: 修复了 manager 写入会触发重新加载的问题 (0c7f947) (5261305)
  • core: 修复了 Service API 可能引发内存泄漏的问题 (aeacedb)
  • core: 优化了服务列表的提供机制 (3a63ca0)
  • core: 优化了 service 监听器的数量 (ee29094)
  • feedback: 修复了 package.json 描述错误的问题 (7b59a32)
  • logger: 修复了可能在日志的第一行显示额外的分隔线的问题 (1ea47d9)
  • logger: 在日志初次加载和已经在底部的情况下收到新日志时将自动滚动到底部 (#481) (eb7b9e6)
  • manager: 修复了添加插件时实际写入的插件名错误的问题 (e0bfd49)
  • telegram: 支持了消息回复 (#477) (d1714c5)

Other Changes

  • docs: assets service (318abe4)
  • docs: router service (d20be13)
  • docs: update app config (1045ec5)
  • refa: move schema and markdown to console, changelog to new plugin (f3718d0)
  • refa: move mock into frontend plugins (3076bfc)
  • refa: support incremental reload (1382b38)
  • chore: fix typings (bc85565)
  • chore: bump versions (6d475af)

Koishi 4.0.1

19 Jan 07:24
Compare
Choose a tag to compare

Features

  • cli: 支持了更细粒度的模块热重载机制 (2df29ed)
  • cli: 在模块热重载失败时会进行回滚 (ddb047c)
  • mongo: 优化了部分查询的性能 (0f031e3)
  • mongo: 支持了在属性层级使用逻辑表达式 (3fae404)

Bug Fixes

  • commands: 修复了文件缺失报错的问题 (#466) (4a35bb3)
  • core: 移除了 ctx.broadcast() 中的错误代码 (#462) (11fc702)
  • manager: 修复了无法配合第三方 register 进行加载的问题 (0880bf0)
  • manager: 修复了读取本地文件会破坏依赖结构导致 watcher 失效的问题 (b723a3d)
  • mongo: 修复了错误的 $regexFor 实现 (1829154)
  • rate-limit: 移除了缺乏描述的父指令 (#465) (ef3be19)
  • rate-limit: 修复了部分属性无法被追踪和同步的问题 (#470) (1da8674)
  • schedule: 修复了 bot 加载的时序问题引起的定时器失效问题 (8055632)
  • status: 修复了同步空白数据引发的报错 (#458) (582a2ef)
  • status: 修复了可能的类型错误 (#469) (6f612d3)

Other Changes

  • chore: add community plugins (152a23c)
  • chore: move command utils to helpers (5ccd733)
  • chore: bump dep versions (08a0b7a)
  • typings: fix websocket typings (3e932af)
  • typings: fix mock plugin (0368272)
  • typings: bump marked version (1377d57)
  • build: update ci (089cbb7)
  • docs: enhancements (cdc570f)
  • chore: add @koishijs/database-tests (91cec7f)
  • docs: add segment.transform() (#456) (fe21776)
  • test: fix schedule tests (70d5b44)
  • refa: support incremental reload (aba09e7)
  • chore: bump versions (837fa63)

Koishi 4.0.0

16 Jan 04:09
Compare
Choose a tag to compare

更新内容详见 迁移文档