Skip to content

Releases: koishijs/koishi

Koishi 2.5.1

17 Jan 18:09
Compare
Choose a tag to compare
  • koishi-core@2.5.1
  • koishi-plugin-eval@2.0.5
  • koishi-plugin-eval-addons@1.0.1
  • koishi-plugin-teach@1.3.1
  • koishi-plugin-tools@1.0.4

Features

  • eval: 优化了沙箱逻辑:在主线程预先检测表达式合法性;在沙箱中使用 with 取代闭包 (9c64fb5)

Bug Fixes

  • cli: 修复了服务器相关配置未能显示在 koishi init 指令中的问题 (e236bbd)
  • teach: 在 # 显示的帮助中,使用 app.options.nickname 作为机器人的名称 (06a79cd)
  • tools: 修复了版本更新带来的类型错误 (c6e7f9f)
  • tools: magi 指令发送请求时将会添加 UA (c6e7f9f)

Dependencies

  • supports-color 版本从 7.2.0 更新到 8.1.0
  • js-yaml 版本从 3.14.1 更新到 4.0.0,并修复了 koishi-plugin-eval-addons 中的重大变化

Koishi 2.5.0

17 Jan 17:58
Compare
Choose a tag to compare
  • koishi-core@2.5.0 (minor)
  • koishi-plugin-image-search@2.0.3
  • koishi-plugin-teach@1.3.0 (minor)

Features

  • teach: 支持了 ## -v 语法,效果同 # -v (97abb35)
  • teach: 新增了钩子问题,目前支持 poke, join, leave, talkative, performer, emotion 六种钩子 (#134) (5a0c9b7, c1adf74)

Bug Fixes

  • cli: 按照规范使用了小于 128 的 exit code (7c70a5a)
  • image-search: 使用 www.pixiv.net 域名而不是错误的 pixiv.net (8880720)

Dependencies

  • @octokit/webhooks 版本从 7.15.1 更新到 7.21.0
  • cheerio 版本从 1.0.0-rc.3 更新到 1.0.0-rc.5
  • simple-git 版本从 2.23.0 更新到 2.31.0

Koishi 2.4.3

03 Dec 09:03
Compare
Choose a tag to compare
  • koishi-core@2.4.3
  • koishi-utils@3.2.1
  • koishi-adapter-cqhttp@1.0.7 => 1.0.8
  • koishi-plugin-eval@2.0.4
  • koishi-plugin-eval-addons@1.0.0 (major)
  • koishi-plugin-mongo@1.1.3
  • koishi-plugin-puppeteer:@1.0.2

Features

  • eval-addons: 指令配置将默认与 eval 配置进行合并 (38f3216)

Bug Fixes

  • cli: 修复了 koishi start 会报错 unsupported type 的问题 (d7c59b4)

Dependencies

  • 升级 TypeScript 到 4.1 版本,同时更新了一些无法通过最新版本编译的代码:

Koishi 2.4.2

17 Nov 03:45
Compare
Choose a tag to compare
  • koishi-core@2.4.2
  • koishi-test-utils@5.0.3
  • koishi-plugin-chess@2.0.0 (major)
  • koishi-plugin-github@2.2.2
  • koishi-plugin-mysql@2.1.0 (minor)
  • koishi-plugin-image-search@2.0.2
  • koishi-plugin-status@2.0.0 (major)
  • koishi-plugin-teach@1.2.2

Features

  • chess: 支持了游戏发起者立即行棋 (4a4c3c9)
  • status: 支持了传入模板配置 (#126) (35a7550)
  • mysql: 支持在启动时自动 alter table (48fc3db)
  • teach: 触发称呼问答后自动将 session.$appel 设置为 true (9833390)
  • github: 支持了 milestone.created 事件 (945e1fc)

Bug Fixes

  • teach: 修复了无法应用推荐修改的问题 (d29c77b)
  • image-search: 修复了私聊无法调用的问题 (f2854dd)
  • mysql: 在抛出的异常中保留了错误元信息 (22affc3)
  • test-utils: 修复了无法加载模块的问题 (#128) (1566ac8)
  • cli: 修复了无法自动加载 adapter 的问题 (#129) (5e5d118)
  • teach: 修复了插值过程中未解除转义的问题 (2bce86f)

Dependencies

  • koa-router 版本从 9.4.0 更新到 10.0.0
  • puppeteer-core 版本从 5.4.1 更新到 5.5.0
  • ws 版本从 7.3.1 更新到 7.4.0

Koishi 2.4.1

31 Oct 12:18
Compare
Choose a tag to compare
  • koishi-core@2.4.1
  • koishi-plugin-chess@2.0.0-beta.13
  • koishi-plugin-github@2.2.1
  • koishi-plugin-mongo@1.1.2

Features

  • core:group.flag 默认值更改为 0 (ad1e2d6)
  • github: 在 issue 和 PR 事件中支持 close 指令 (a356ddf, 24afdf3)
  • github: 在 PR 事件中支持 base, merge, squash, rebase 指令 (3ba2079, 68178e1)

Bug Fixes

  • cli: 修复了 koishi init 指令报错的问题 (27eb1df)
  • github: 修复了与 koishi v2.4 的兼容性问题 (520cd50)
  • mongo: 优化了 ctx.getUser()ctx.getGroup() 的行为 (#115) (43711eb)

Beta Features

  • chess: 修复了坐标解析错误的问题 (a7a5efc)

Dependencies

  • axios 版本从 0.20.0 更新到 0.21.0 (57f9a9d)
  • prompts 版本从 2.3.2 更新到 2.4.0 (57f9a9d)
  • pngjs 版本从 5.0.0 更新到 6.0.0 (57f9a9d)
  • puppeteer-core 版本从 5.3.1 更新到 5.4.1 (57f9a9d)

Koishi 2.4.0

23 Oct 11:14
Compare
Choose a tag to compare
  • koishi-core@2.4.0 (minor)
  • koishi-plugin-eval-addons@1.0.0-beta.13
  • koishi-plugin-github@2.2.0 (minor)
  • koishi-plugin-mongo@1.1.1
  • koishi-plugin-rss@1.2.0 (minor)
  • koishi-plugin-teach@1.2.1
  • koishi-plugin-tools@1.0.3

Features

  • cli: 将 koishi-adapter-cqhttp 移出依赖,并在执行 koishi init 时自动补充 (f79c3e4)
  • core: 新增了 bot.getMsg() 方法,用于获取历史消息 (abe85f8)
  • core: session.$reply 调整为对象式,用于记录回复的原消息 (a16c113)
  • core: 支持通过回复指令名的方式调用指令 (cdb98c0)
  • github: 优化了事件处理流程 (2bfb615)
  • github: 支持了 create 和 delete 事件,用于展示 ref 变化 (67529d1)
  • github: 自动移除 GFM 中的注释已获得更好的显示效果 (f63b26a)
  • mongo: 支持直接配置数据库 URL (#119) (3e2c728)
  • rss: rss 指令新增了 -l, --list 选项,用于展示当前订阅的链接列表 (a7373b4)
  • teach: 支持设置各功能的最低权限等级 (#114) (4fa3299)

Bug Fixes

  • core: 修复了部分指令选项无法解析的问题 (185c7e1)
  • github: 修复了 issues.closed 事件触发者错误的问题 (03ccadc)
  • rss: 修复了部分链接无法订阅的问题 (#113) (43934f2)
  • teach: 修复了 mongo 数据库实现错误的问题 (#116) (418b4d1)
  • tools: 修复了 brainfuck 指令总是响应 true 的问题 (df6d996)

Koishi 2.3.2

15 Oct 15:43
Compare
Choose a tag to compare
  • koishi-core@2.3.2
  • koishi-adapter-cqhttp@1.0.6
  • koishi-plugin-mongo@1.1.0 (minor)
  • koishi-plugin-rss@1.1.0 (minor)
  • koishi-plugin-teach@1.2.0 (minor)
  • koishi-plugin-chess@2.0.0-beta.12
  • koishi-plugin-common@3.0.3
  • koishi-plugin-eval@2.0.3
  • koishi-plugin-github@2.1.2
  • koishi-plugin-monitor@1.0.0-beta.16
  • koishi-plugin-mysql@2.0.2
  • koishi-plugin-schedule@2.0.4
  • koishi-plugin-status@2.0.0-beta.17

Features

  • core: 类型系统支持了 notify 子事件 (25d7ba5)
  • cqhttp: 新增了 bot.setGroupPortrait() 方法,用于设置群头像 (f0658b4)
  • common: group.assign 指令支持传入@用户了 (9211080)
  • eval: 新增了 authority 配置项,用于控制权限等级 (#110) (ed03ed1)
  • mysql: 对一系列插件中使用到的字段进行了初始化 (f4cbdae, c11add2)
  • rss: 优化了插件的提示文本和控制台输出 (3fa7815, 88a7aba, 1078fcd)
  • teach: 支持了 notify 子事件的钩子问题 (953591c, 864a03e)

Bug Fixes

  • eval: 修复了 eval 指令中无法访问群数据的问题 (3298f46)
  • github: 修复了类型标注与新版 @octokit/webhooks 不兼容的问题 (6d46eb0)
  • mongo: 修复了用户和群数据获取中存在的问题 (#106, #107) (0632f0e, 99e6655)
  • rss: 修复了 --remove 选项效果错误的问题 (#108) (330b0ae)
  • rss: 修复了刷新时间报错的问题 (8971417)
  • rss: 修复了部分群收不到广播的问题 (76690db)
  • teach: 修复了正则表达式中的首位括号会被自动删去的问题 (9b7f3eb)
  • teach: 修复了不安装 mysql 依赖就无法运行的问题 (16cc3ee)

Beta Features

  • status: 新增了 output 配置项用于控制指令输出,移除了 status 事件 (99fff9e)

Koishi 2.3.1

01 Oct 13:04
Compare
Choose a tag to compare
  • koishi-core@2.3.1
  • koishi-plugin-image-search@2.0.1
  • koishi-plugin-github@2.1.1
  • koishi-plugin-mongo@1.0.4
  • koishi-plugin-mysql@2.0.1
  • koishi-plugin-puppeteer@1.0.1
  • koishi-plugin-status@2.0.0-beta.15

Features

  • image-search: 检查正在执行中的搜索任务 (ec033d8)

Bug Fixes

  • github: 检查 session.$reply 是否存在 (13d3273)
  • image-search: 调整和优化了输出信息 (40142f6)
  • mysql: 修复了建表信息解析错误的问题 (4df7083)
  • status: 修复了无法在无配置下加载的问题 (b4d47e1)

Beta Features

  • dice: 将 roll 指令独立成为新插件 (cd4ccbc)

Dependencies

  • puppeteer-core 版本从 5.1.1 更新到 5.3.1 (d8fc5df)

Koishi 2.3.0

13 Sep 13:56
Compare
Choose a tag to compare
  • koishi-core@2.3.0 (minor)
  • koishi-adapter-cqhttp@1.0.4
  • koishi-adapter-tomon@0.1.0 (new)
  • koishi-plugin-common@3.0.1
  • koishi-plugin-github@2.1.0 (minor)
  • koishi-plugin-teach@1.1.0 (minor)
  • koishi-plugin-tools@1.0.1

Features

  • cli: 初始化结束后将提示安装新依赖 (1f506a4)
  • cli: 支持了对不同平台的配置初始化 (d4faf2b)
  • core: 私有的会话属性将设置为不可枚举 (356b9e4)
  • core: 支持了 friend_recallnotify 事件 (5a57b19)
  • cqhttp: 新增了 bot.getGroupHonorInfo() (2a8d593)
  • tomon: 实验性地新增了 tomon 平台支持 (b768f55)
  • common: 新增了 includeGroupsincludeUsers 过滤器 (1605d2e)
  • github: 新增了 github.recent 指令,用于查看最近的通知 (71b1d9e)
  • teach: 在中间件中使用 dialogue 指令 (a056933)
  • tools: alpha 指令将使用 session.$username 作为称呼 (bcd424a)

Bug Fixes

  • common: 为 feedback 指令补上了参数 (f3090bc)

Koishi 2.2.2

10 Sep 15:01
Compare
Choose a tag to compare
  • koishi-core@2.2.2
  • koishi-utils@3.1.5
  • koishi-test-utils@5.0.1
  • koishi-plugin-common@3.0.0 (major)
  • koishi-plugin-github@2.0.3
  • koishi-plugin-status@2.0.0-beta.15
  • koishi-plugin-teach@1.0.4

Features

  • utils: 新增了 makeArray() 工具函数 (831fe19)
  • test-utils: 新增了 server.receive(),可用于模拟 HTTP 请求 (06c0351)
  • common: 新增了 feedback 指令,可用于向作者发送反馈信息 (ced29c3)
  • github: 新增了 shot 快捷操作,可用于获取评论的网页截图 (8367db9)

Bug Fixes

  • core: 自动删除 [CQ:reply] 后的空白字符 (c64f716)
  • core: 现在不会对回复消息进行指令提示了 (f3a3a19)
  • test-utils: session.receive() 将额外等待一个 next tick 以避免边界情况 (a2a9faf)
  • common: 群会话中的 ctxf -u 应移除 session.$group 属性 (50a011c)
  • github: 修复了错误的 bot 检测实现 (cf00713)
  • github: 修复了错误的 PR 合并输出 (ffc8a1e)

Beta Features

  • status: 支持通过 config.refresh 控制状态刷新的时间 (0c58830)
  • status: 实验性地支持了 status 事件钩子 (827aa1f)

Dependencies

  • 将编辑距离库从 leven 更换为了 fastest-levenshtein (#100) (031293c)