diff --git a/.gitattributes b/.gitattributes index ed5f338fe1..f6b1d233cd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,4 +3,5 @@ *.png -text *.jpg -text *.ico -text +*.gif -text *.webp -text diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab849e04d3..5f7386946b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -130,7 +130,7 @@ jobs: - name: Unit Test run: yarn test:json - name: Report Coverage - if: ${{ matrix.node-version == 14 }} + if: ${{ matrix.node-version == 16 }} uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/package.json b/package.json index ebfa6c5782..47d892fa4f 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "yakumo-esbuild": "^0.3.17", "yakumo-esbuild-yaml": "^0.3.1", "yakumo-mocha": "^0.3.0", - "yakumo-publish": "^0.3.0", + "yakumo-publish": "^0.3.1", "yakumo-publish-sync": "^0.3.1", "yakumo-tsc": "^0.3.5", "yakumo-upgrade": "^0.3.2", diff --git a/packages/cli/package.json b/packages/cli/package.json index 5da42a2852..c37b16370c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/cli", "description": "CLI for Koishi", - "version": "4.9.9", + "version": "4.10.0", "main": "lib/worker/index.js", "typings": "lib/worker/index.d.ts", "engines": { @@ -32,7 +32,7 @@ "daemon" ], "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@types/prompts": "^2.4.0", diff --git a/packages/core/package.json b/packages/core/package.json index bf0f1df9ca..4628e45e54 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/core", "description": "Core Features for Koishi", - "version": "4.9.9", + "version": "4.10.0", "main": "lib/index.cjs", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -32,7 +32,7 @@ "dependencies": { "@koishijs/utils": "^6.2.4", "@minatojs/core": "^1.3.2", - "@satorijs/core": "^1.3.4", + "@satorijs/core": "^1.3.5", "cordis": "^2.5.0", "cosmokit": "^1.3.3" } diff --git a/packages/helpers/package.json b/packages/helpers/package.json index b4cca215bb..ce08c5e03e 100644 --- a/packages/helpers/package.json +++ b/packages/helpers/package.json @@ -35,7 +35,7 @@ "command" ], "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@koishijs/plugin-mock": "^2.2.0" diff --git a/packages/koishi/package.json b/packages/koishi/package.json index d65f54df89..4e28c4b8f6 100644 --- a/packages/koishi/package.json +++ b/packages/koishi/package.json @@ -1,7 +1,7 @@ { "name": "koishi", "description": "Cross-Platform Chatbot Framework Made with Love", - "version": "4.9.9", + "version": "4.10.0", "main": "lib/index.cjs", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -42,9 +42,9 @@ "framework" ], "dependencies": { - "@koishijs/core": "^4.9.9", + "@koishijs/core": "^4.10.0", "@koishijs/utils": "^6.2.4", - "@satorijs/satori": "^1.3.4", + "@satorijs/satori": "^1.3.5", "file-type": "^16.5.4", "ns-require": "^1.1.4" } diff --git a/packages/loader/package.json b/packages/loader/package.json index 4db2d79179..d447580c5d 100644 --- a/packages/loader/package.json +++ b/packages/loader/package.json @@ -38,12 +38,12 @@ "config" ], "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { - "@koishijs/registry": "^4.1.0", + "@koishijs/registry": "^4.1.3", "@types/js-yaml": "^4.0.5", - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { "dotenv": "^16.0.1", diff --git a/plugins/a11y/admin/package.json b/plugins/a11y/admin/package.json index 72b17e61ff..77119be84b 100644 --- a/plugins/a11y/admin/package.json +++ b/plugins/a11y/admin/package.json @@ -45,7 +45,7 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@koishijs/plugin-mock": "^2.2.0" diff --git a/plugins/a11y/bind/package.json b/plugins/a11y/bind/package.json index 9a9cf9ec3d..7fde766e50 100644 --- a/plugins/a11y/bind/package.json +++ b/plugins/a11y/bind/package.json @@ -45,10 +45,10 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { - "@koishijs/plugin-database-memory": "^1.5.0", + "@koishijs/plugin-database-memory": "^1.6.0", "@koishijs/plugin-mock": "^2.2.0" } } diff --git a/plugins/a11y/callme/package.json b/plugins/a11y/callme/package.json index fa37ee08e0..20511e0c71 100644 --- a/plugins/a11y/callme/package.json +++ b/plugins/a11y/callme/package.json @@ -44,10 +44,10 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { - "@koishijs/plugin-database-memory": "^1.5.0", + "@koishijs/plugin-database-memory": "^1.6.0", "@koishijs/plugin-mock": "^2.2.0" } } diff --git a/plugins/a11y/locales/package.json b/plugins/a11y/locales/package.json index 37e224025b..d7d3a4e637 100644 --- a/plugins/a11y/locales/package.json +++ b/plugins/a11y/locales/package.json @@ -37,7 +37,7 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@koishijs/plugin-mock": "^2.2.0", diff --git a/plugins/a11y/rate-limit/package.json b/plugins/a11y/rate-limit/package.json index 8c86a51997..dcdc9bc974 100644 --- a/plugins/a11y/rate-limit/package.json +++ b/plugins/a11y/rate-limit/package.json @@ -44,7 +44,7 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@koishijs/plugin-help": "^1.2.5", diff --git a/plugins/a11y/schedule/package.json b/plugins/a11y/schedule/package.json index 5c82afc3ef..8e91a7b0e0 100644 --- a/plugins/a11y/schedule/package.json +++ b/plugins/a11y/schedule/package.json @@ -42,10 +42,10 @@ ] }, "devDependencies": { - "@koishijs/plugin-database-memory": "^1.5.0", + "@koishijs/plugin-database-memory": "^1.6.0", "@koishijs/plugin-mock": "^2.2.0" }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" } } diff --git a/plugins/a11y/schedule/tests/index.spec.ts b/plugins/a11y/schedule/tests/index.spec.ts index c71d805c65..420f533448 100644 --- a/plugins/a11y/schedule/tests/index.spec.ts +++ b/plugins/a11y/schedule/tests/index.spec.ts @@ -9,7 +9,7 @@ import shape from 'chai-shape' use(shape) -describe('@koishijs/plugin-switch', () => { +describe('@koishijs/plugin-schedule', () => { const app = new App() app.plugin(mock) const client1 = app.mock.client('123', '456') @@ -71,7 +71,7 @@ describe('@koishijs/plugin-switch', () => { }) it('interval schedule', async () => { - await client1.shouldReply('schedule 00:30 / 1h -- echo foo', '日程已创建,编号为 2。') + await client1.shouldReply('schedule 00:30 / 1h -- echo foo', '日程已创建,编号为 3。') clock.tick(Time.minute * 20) // 01:21 await new Promise(process.nextTick) @@ -89,8 +89,8 @@ describe('@koishijs/plugin-switch', () => { await new Promise(process.nextTick) await client1.shouldReply('', 'foo') - await client1.shouldReply('schedule -l', '2. 每隔 1 小时 (剩余 59 分钟):echo foo') - await client1.shouldReply('schedule -d 2', '日程 2 已删除。') + await client1.shouldReply('schedule -l', '3. 每隔 1 小时 (剩余 59 分钟):echo foo') + await client1.shouldReply('schedule -d 3', '日程 3 已删除。') clock.tick(Time.hour) // 02:31 await new Promise(process.nextTick) await client1.shouldNotReply('') diff --git a/plugins/a11y/sudo/package.json b/plugins/a11y/sudo/package.json index 7d9f9ff2a7..68a3033a26 100644 --- a/plugins/a11y/sudo/package.json +++ b/plugins/a11y/sudo/package.json @@ -44,10 +44,10 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { - "@koishijs/plugin-database-memory": "^1.5.0", + "@koishijs/plugin-database-memory": "^1.6.0", "@koishijs/plugin-mock": "^2.2.0" }, "dependencies": { diff --git a/plugins/a11y/suggest/package.json b/plugins/a11y/suggest/package.json index a99903e3fb..6bf89daa03 100644 --- a/plugins/a11y/suggest/package.json +++ b/plugins/a11y/suggest/package.json @@ -51,10 +51,10 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { - "@koishijs/plugin-database-memory": "^1.5.0", + "@koishijs/plugin-database-memory": "^1.6.0", "@koishijs/plugin-mock": "^2.2.0" }, "dependencies": { diff --git a/plugins/a11y/switch/package.json b/plugins/a11y/switch/package.json index 2287bf7ba5..3f3d99c86b 100644 --- a/plugins/a11y/switch/package.json +++ b/plugins/a11y/switch/package.json @@ -45,10 +45,10 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { - "@koishijs/plugin-database-memory": "^1.5.0", + "@koishijs/plugin-database-memory": "^1.6.0", "@koishijs/plugin-mock": "^2.2.0" }, "dependencies": { diff --git a/plugins/a11y/verifier/package.json b/plugins/a11y/verifier/package.json index b5f5bb0091..265b2913d2 100644 --- a/plugins/a11y/verifier/package.json +++ b/plugins/a11y/verifier/package.json @@ -36,7 +36,7 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@koishijs/plugin-mock": "^2.2.0" diff --git a/plugins/adapter/discord/package.json b/plugins/adapter/discord/package.json index 1c444ff10e..0e15671af5 100644 --- a/plugins/adapter/discord/package.json +++ b/plugins/adapter/discord/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-adapter-discord", "description": "Discord Adapter for Koishi", - "version": "3.3.0", + "version": "3.3.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -37,9 +37,9 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { - "@satorijs/adapter-discord": "^3.3.0" + "@satorijs/adapter-discord": "^3.3.1" } } diff --git a/plugins/adapter/kook/package.json b/plugins/adapter/kook/package.json index cef68f3355..eae4700176 100644 --- a/plugins/adapter/kook/package.json +++ b/plugins/adapter/kook/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-adapter-kook", "description": "Kook (Kaiheila) Adapter for Koishi", - "version": "3.4.0", + "version": "3.4.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -38,9 +38,9 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { - "@satorijs/adapter-kook": "^3.4.0" + "@satorijs/adapter-kook": "^3.4.1" } } diff --git a/plugins/adapter/onebot/package.json b/plugins/adapter/onebot/package.json index 423d982c04..3b75b000c6 100644 --- a/plugins/adapter/onebot/package.json +++ b/plugins/adapter/onebot/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-adapter-onebot", "description": "OneBot Adapter for Koishi", - "version": "5.3.1", + "version": "5.3.4", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -41,9 +41,9 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { - "@satorijs/adapter-onebot": "^5.3.1" + "@satorijs/adapter-onebot": "^5.3.4" } } diff --git a/plugins/adapter/qqguild/package.json b/plugins/adapter/qqguild/package.json index 12d7ee81de..26d613a0a3 100644 --- a/plugins/adapter/qqguild/package.json +++ b/plugins/adapter/qqguild/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-adapter-qqguild", "description": "QQ Guild Adapter for Koishi", - "version": "3.3.0", + "version": "3.3.2", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -38,9 +38,9 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { - "@satorijs/adapter-qqguild": "^3.3.0" + "@satorijs/adapter-qqguild": "^3.3.2" } } diff --git a/plugins/adapter/telegram/package.json b/plugins/adapter/telegram/package.json index 9e73d43d75..66a4b305fa 100644 --- a/plugins/adapter/telegram/package.json +++ b/plugins/adapter/telegram/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-adapter-telegram", "description": "Telegram Adapter for Koishi", - "version": "3.5.0", + "version": "3.5.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -37,9 +37,9 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { - "@satorijs/adapter-telegram": "^3.5.0" + "@satorijs/adapter-telegram": "^3.5.1" } } diff --git a/plugins/assets/git/package.json b/plugins/assets/git/package.json index 61b343b0a7..5fa4830134 100644 --- a/plugins/assets/git/package.json +++ b/plugins/assets/git/package.json @@ -44,7 +44,7 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { "simple-git": "^3.11.0" diff --git a/plugins/assets/local/package.json b/plugins/assets/local/package.json index 07f129f057..46fd7e29d0 100644 --- a/plugins/assets/local/package.json +++ b/plugins/assets/local/package.json @@ -39,7 +39,7 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { "file-type": "^16.5.4" diff --git a/plugins/assets/remote/package.json b/plugins/assets/remote/package.json index 9907b1e683..c006ebf786 100644 --- a/plugins/assets/remote/package.json +++ b/plugins/assets/remote/package.json @@ -39,6 +39,6 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" } } diff --git a/plugins/assets/s3/package.json b/plugins/assets/s3/package.json index adbf6df66e..b4bfe22e12 100644 --- a/plugins/assets/s3/package.json +++ b/plugins/assets/s3/package.json @@ -43,7 +43,7 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { "@aws-sdk/client-s3": "^3.137.0" diff --git a/plugins/common/broadcast/package.json b/plugins/common/broadcast/package.json index 6a5ba47e64..3e39d1bb50 100644 --- a/plugins/common/broadcast/package.json +++ b/plugins/common/broadcast/package.json @@ -44,10 +44,10 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { - "@koishijs/plugin-database-memory": "^1.5.0", + "@koishijs/plugin-database-memory": "^1.6.0", "@koishijs/plugin-mock": "^2.2.0" } } diff --git a/plugins/common/echo/package.json b/plugins/common/echo/package.json index 5dc6cca330..3df7e1da71 100644 --- a/plugins/common/echo/package.json +++ b/plugins/common/echo/package.json @@ -40,7 +40,7 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@koishijs/plugin-mock": "^2.2.0" diff --git a/plugins/common/feedback/package.json b/plugins/common/feedback/package.json index 3c889578b8..12782df4a6 100644 --- a/plugins/common/feedback/package.json +++ b/plugins/common/feedback/package.json @@ -40,7 +40,7 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@koishijs/plugin-mock": "^2.2.0" diff --git a/plugins/common/forward/package.json b/plugins/common/forward/package.json index fee097838a..623a81f16a 100644 --- a/plugins/common/forward/package.json +++ b/plugins/common/forward/package.json @@ -45,10 +45,10 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { - "@koishijs/plugin-database-memory": "^1.5.0", + "@koishijs/plugin-database-memory": "^1.6.0", "@koishijs/plugin-mock": "^2.2.0" }, "dependencies": { diff --git a/plugins/common/help/package.json b/plugins/common/help/package.json index 7884d8cec3..fbd23ab91a 100644 --- a/plugins/common/help/package.json +++ b/plugins/common/help/package.json @@ -44,10 +44,10 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { - "@koishijs/plugin-database-memory": "^1.5.0", + "@koishijs/plugin-database-memory": "^1.6.0", "@koishijs/plugin-mock": "^2.2.0", "@koishijs/plugin-suggest": "^1.1.5" } diff --git a/plugins/common/recall/package.json b/plugins/common/recall/package.json index abd9660655..8e6c86a11f 100644 --- a/plugins/common/recall/package.json +++ b/plugins/common/recall/package.json @@ -39,7 +39,7 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@koishijs/plugin-mock": "^2.2.0" diff --git a/plugins/common/repeater/package.json b/plugins/common/repeater/package.json index 1a5aa08859..05529608e0 100644 --- a/plugins/common/repeater/package.json +++ b/plugins/common/repeater/package.json @@ -40,7 +40,7 @@ ] }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@koishijs/plugin-mock": "^2.2.0" diff --git a/plugins/common/respondent/package.json b/plugins/common/respondent/package.json index 1714dd5151..03a56d5bfb 100644 --- a/plugins/common/respondent/package.json +++ b/plugins/common/respondent/package.json @@ -35,7 +35,7 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "devDependencies": { "@koishijs/plugin-mock": "^2.2.0" diff --git a/plugins/database/memory/package.json b/plugins/database/memory/package.json index dadf7ab266..dddfc4446e 100644 --- a/plugins/database/memory/package.json +++ b/plugins/database/memory/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-database-memory", "description": "A in-memory database implementation for Koishi", - "version": "1.5.0", + "version": "1.6.0", "main": "lib/index.cjs", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -41,9 +41,9 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { - "@minatojs/driver-memory": "^1.2.0" + "@minatojs/driver-memory": "^1.3.0" } } diff --git a/plugins/database/mongo/package.json b/plugins/database/mongo/package.json index 7f34a4a1ee..34bb26c7fa 100644 --- a/plugins/database/mongo/package.json +++ b/plugins/database/mongo/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-database-mongo", "description": "MongoDB support for Koishi", - "version": "3.5.0", + "version": "3.6.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -42,9 +42,9 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { - "@minatojs/driver-mongo": "^1.3.0" + "@minatojs/driver-mongo": "^1.4.1" } } diff --git a/plugins/database/mysql/package.json b/plugins/database/mysql/package.json index df281c7099..f60f98048f 100644 --- a/plugins/database/mysql/package.json +++ b/plugins/database/mysql/package.json @@ -41,7 +41,7 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { "@minatojs/driver-mysql": "^1.3.0" diff --git a/plugins/database/sqlite/package.json b/plugins/database/sqlite/package.json index c73b0c35f1..92d84fe5c6 100644 --- a/plugins/database/sqlite/package.json +++ b/plugins/database/sqlite/package.json @@ -42,7 +42,7 @@ } }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" }, "dependencies": { "@minatojs/driver-sqlite": "^1.3.0" diff --git a/plugins/mock/package.json b/plugins/mock/package.json index 67d7fa0617..1d9406c2ed 100644 --- a/plugins/mock/package.json +++ b/plugins/mock/package.json @@ -35,6 +35,6 @@ "hidden": true }, "peerDependencies": { - "koishi": "^4.9.9" + "koishi": "^4.10.0" } }