Skip to content

Releases: koishijs/koishi

Koishi 3.1.1

12 Mar 14:45
Compare
Choose a tag to compare
  • koishi-core@3.1.1
  • koishi-plugin-adventure@0.1.14
  • koishi-plugin-common@4.1.1
  • koishi-plugin-mongo@2.0.0
  • koishi-plugin-schedule@3.0.1
  • koishi-plugin-status@3.0.1
  • koishi-plugin-teach@2.0.0
  • koishi@3.1.1

Features

  • teach: re-add substitute flag, fix #147 (b42773b)
  • core: set _actions/_checkers as private to enhance typings (2b78345)
  • core: show trace of dup plugins (30ea750)

Bug Fixes

  • core: fix parser interp behavior (2029ad5)
  • common: fix incorrect state.user typings (84fe7e4)
  • core: fix incorrect parser behavior for boolean & terminator (feb75cb)
  • core: default reconnect options (1654831)

Other Changes

  • chore: init contrib guide (e79a4b3)
  • test(teach): split test cases (61fd024)
  • chore: bump version (teach, stat, schd, adv, mongo), published mysql (fbe92ba)
  • chore: bump versions (f944072)

Koishi 3.1.0

08 Mar 17:41
Compare
Choose a tag to compare
  • koishi-adapter-discord@1.0.2
  • koishi-adapter-kaiheila@1.0.1
  • koishi-core@3.1.0
  • koishi-plugin-common@4.1.0
  • koishi-plugin-image-search@3.0.0
  • koishi-plugin-tools@2.0.0
  • koishi@3.1.0

Features

  • tools: support bilibili (9a37afe)
  • core: support command switch (7b5948d)
  • common: support switch command (1620482)
  • image-search: adding iqdb search (#143) (9cd9abb)
  • discord: enhance typings (c517bf0)
  • common: add more templates (f5e018f)
  • discord: addition at support (29ee7d1)
  • core: typing support for spread syntax (c689385)
  • core: enhance domain error messages (e2bc856)
  • core: add date & posint domain (c4d84b3)
  • discord: return full edited message, add nickname (dfcb7da)
  • discord: update embeds (3aa2b94)
  • discord: upload file instead of using url (07dbd66)
  • core: support bot avatar, discriminator attrs (a6ec223)

Bug Fixes

  • discord: remove content while sending embed, update segments (7c9706f)
  • discord: update types, fix embed issues (963d4a6)
  • core: fix ctx.setInterval() (42f9fa4)
  • core: strip type for command decl, fix #148 (a1b8b98)
  • core: enhance spacing for command option decl, fix #148 (72eb362)

Other Changes

Koishi 3.0.1

05 Mar 12:23
Compare
Choose a tag to compare
  • packages/plugin-puppeteer@2.0.0
  • packages/plugin-adventure@0.1.13
  • packages/koishi-test-utils@6.0.0-beta.10
  • packages/koishi@3.0.1
  • packages/adapter-discord@1.0.1
  • packages/plugin-chess@3.0.0-beta.11
  • packages/plugin-schedule@3.0.0
  • packages/plugin-github@3.0.0-beta.11
  • packages/plugin-common@4.0.0
  • packages/plugin-webui@0.1.3
  • packages/koishi-core@3.0.1

Features

  • core: side effect detection (6395699)
  • discord: improvements (#145) (f490732)
  • adventure: use extendDatabase instead of directly calling mysql (d5cb6a3)
  • core: better database extend typings (04ac339)
  • core: support ctx.addDependency (2ec250f)
  • webui: setup plugin list (b338c44)
  • puppeteer: support selector (278f85d)
  • utils: support random.digits() (0ba42f9)
  • test-utils: optimize assertion output (bc53e08)
  • core: empty prefix in group context do not trigger suggestion (d5a6f4e)
  • common: support config.generateToken (e255886)
  • common: enhance repeater config (4280a42)

Bug Fixes

  • schedule: fix memory leak (1483031)
  • test-utils: fix incorrent memory database implementation (e71590d)

Other Changes

Koishi 3.0.0

03 Mar 17:33
Compare
Choose a tag to compare

更新内容详见 迁移文档

Koishi 2.5.2

09 Feb 19:06
Compare
Choose a tag to compare
  • koishi-core@2.5.2
  • koishi-plugin-chess@2.0.1
  • koishi-plugin-image-search@2.1.0 (minor)

Features

  • core: 新增了 autoAssign 配置项用于自动给群聊分配 assignee (f9e37ad)
  • core: 优化了 ctx.plugin() 的类型签名以便在 IDE 中获得更好的开发体验 (2301589)
  • chess: 在没有数据库支持下也能运行 chess 插件了 (ef3e581)
  • image-search: 针对 saucenao 站点的更新,新增了配置项 saucenaoApiKey (ae24803)

Bug Fixes

  • core: 修复了当没有设置说明时,帮助将显示指令说明为 undefined 的问题 (2b05b58)
  • cli: 修复了 koishi start 无法解析 plugins 中的 scoped packages 的问题 (dc50156)

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)