diff --git a/package.json b/package.json index 06c7e3f1ef..5846280d18 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ }, "license": "MIT", "devDependencies": { + "@koishijs/eslint-config": "^1.0.0", "@octokit/rest": "^18.12.0", "@sinonjs/fake-timers": "^6.0.1", "@types/chai": "^4.3.4", diff --git a/packages/core/package.json b/packages/core/package.json index ab26265374..d46bc8bf12 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.12.1", + "version": "4.12.2", "main": "lib/index.cjs", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -32,7 +32,7 @@ "dependencies": { "@koishijs/utils": "^7.0.1", "@minatojs/core": "^2.3.1", - "@satorijs/core": "^2.2.2", + "@satorijs/core": "^2.2.3", "cordis": "^2.7.4", "cosmokit": "^1.4.1", "fastest-levenshtein": "^1.0.16" diff --git a/packages/koishi/package.json b/packages/koishi/package.json index e440593f50..de749f7839 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.12.1", + "version": "4.12.2", "main": "lib/index.cjs", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -47,10 +47,10 @@ "framework" ], "dependencies": { - "@koishijs/core": "4.12.1", - "@koishijs/loader": "3.1.1", + "@koishijs/core": "4.12.2", + "@koishijs/loader": "3.1.2", "@koishijs/utils": "^7.0.1", - "@satorijs/satori": "^2.2.2", + "@satorijs/satori": "^2.2.3", "cac": "^6.7.14", "kleur": "^4.1.5", "ns-require": "^1.1.4" diff --git a/packages/loader/package.json b/packages/loader/package.json index e4eb56ef43..88b66f7583 100644 --- a/packages/loader/package.json +++ b/packages/loader/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/loader", "description": "Config Loader for Koishi", - "version": "3.1.1", + "version": "3.1.2", "main": "lib/index.js", "module": "lib/shared.mjs", "typings": "lib/index.d.ts", @@ -38,10 +38,10 @@ "config" ], "peerDependencies": { - "@koishijs/core": "4.12.1" + "@koishijs/core": "4.12.2" }, "devDependencies": { - "@koishijs/core": "4.12.1", + "@koishijs/core": "4.12.2", "@types/js-yaml": "^4.0.5" }, "dependencies": { diff --git a/packages/loader/src/shared.ts b/packages/loader/src/shared.ts index 5e981f19ad..1c8271dae8 100644 --- a/packages/loader/src/shared.ts +++ b/packages/loader/src/shared.ts @@ -180,7 +180,7 @@ export abstract class Loader { return new Context.Config(this.interpolate(this.config)) } - async writeConfig() { + async writeConfig(silent = false) { this.suspend = true if (!this.writable) { throw new Error(`cannot overwrite readonly config`) @@ -190,7 +190,7 @@ export abstract class Loader { } else if (this.mime === 'application/json') { await fs.writeFile(this.filename, JSON.stringify(this.config, null, 2)) } - this.app.emit('config') + if (!silent) this.app.emit('config') } interpolate(source: any) { diff --git a/plugins/adapter/discord/package.json b/plugins/adapter/discord/package.json index 3dfc6acb2f..a633c5e2d6 100644 --- a/plugins/adapter/discord/package.json +++ b/plugins/adapter/discord/package.json @@ -38,10 +38,10 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { "@satorijs/adapter-discord": "^3.5.7" diff --git a/plugins/adapter/kook/package.json b/plugins/adapter/kook/package.json index 1882710470..ddd3439f3b 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.6.2", + "version": "3.6.3", "main": "lib/index.js", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -39,12 +39,12 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { - "@satorijs/adapter-kook": "^3.6.2" + "@satorijs/adapter-kook": "^3.6.3" } } diff --git a/plugins/adapter/lark/package.json b/plugins/adapter/lark/package.json index d04b4687c6..ad78e72ff8 100644 --- a/plugins/adapter/lark/package.json +++ b/plugins/adapter/lark/package.json @@ -43,10 +43,10 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { "@satorijs/adapter-lark": "^2.0.1" diff --git a/plugins/adapter/onebot/package.json b/plugins/adapter/onebot/package.json index 2e2559cf82..12c143dfdd 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.6.2", + "version": "5.6.4", "main": "lib/index.js", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -42,12 +42,12 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { - "@satorijs/adapter-onebot": "^5.6.2" + "@satorijs/adapter-onebot": "^5.6.4" } } diff --git a/plugins/adapter/qqguild/package.json b/plugins/adapter/qqguild/package.json index 761794247f..f8e6e91661 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.4.4", + "version": "3.5.1", "main": "lib/index.js", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -39,12 +39,12 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { - "@satorijs/adapter-qqguild": "^3.4.4" + "@satorijs/adapter-qqguild": "^3.5.1" } } diff --git a/plugins/adapter/telegram/package.json b/plugins/adapter/telegram/package.json index 58e0bfa952..b46fcfe0a9 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.7.0", + "version": "3.7.1", "main": "lib/index.js", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -38,12 +38,12 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { - "@satorijs/adapter-telegram": "^3.7.0" + "@satorijs/adapter-telegram": "^3.7.1" } } diff --git a/plugins/common/admin/package.json b/plugins/common/admin/package.json index 9eb87f14b4..518d399690 100644 --- a/plugins/common/admin/package.json +++ b/plugins/common/admin/package.json @@ -45,10 +45,10 @@ ] }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "@koishijs/plugin-mock": "^2.4.2", - "koishi": "^4.12.1" + "@koishijs/plugin-mock": "^2.4.3", + "koishi": "^4.12.2" } } diff --git a/plugins/common/bind/package.json b/plugins/common/bind/package.json index 62c7371ce2..c7d213c92d 100644 --- a/plugins/common/bind/package.json +++ b/plugins/common/bind/package.json @@ -45,11 +45,11 @@ ] }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { "@koishijs/plugin-database-memory": "^2.3.4", - "@koishijs/plugin-mock": "^2.4.2", - "koishi": "^4.12.1" + "@koishijs/plugin-mock": "^2.4.3", + "koishi": "^4.12.2" } } diff --git a/plugins/common/broadcast/package.json b/plugins/common/broadcast/package.json index 30d9464adb..f57b80f309 100644 --- a/plugins/common/broadcast/package.json +++ b/plugins/common/broadcast/package.json @@ -44,11 +44,11 @@ ] }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { "@koishijs/plugin-database-memory": "^2.3.4", - "@koishijs/plugin-mock": "^2.4.2", - "koishi": "^4.12.1" + "@koishijs/plugin-mock": "^2.4.3", + "koishi": "^4.12.2" } } diff --git a/plugins/common/callme/package.json b/plugins/common/callme/package.json index 191338344d..2db95f9bcd 100644 --- a/plugins/common/callme/package.json +++ b/plugins/common/callme/package.json @@ -44,11 +44,11 @@ ] }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { "@koishijs/plugin-database-memory": "^2.3.4", - "@koishijs/plugin-mock": "^2.4.2", - "koishi": "^4.12.1" + "@koishijs/plugin-mock": "^2.4.3", + "koishi": "^4.12.2" } } diff --git a/plugins/common/echo/package.json b/plugins/common/echo/package.json index 6e278b18e2..a0adba2a7b 100644 --- a/plugins/common/echo/package.json +++ b/plugins/common/echo/package.json @@ -40,10 +40,10 @@ ] }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "@koishijs/plugin-mock": "^2.4.2", - "koishi": "^4.12.1" + "@koishijs/plugin-mock": "^2.4.3", + "koishi": "^4.12.2" } } diff --git a/plugins/common/help/package.json b/plugins/common/help/package.json index d66f794cf1..ee47f306b9 100644 --- a/plugins/common/help/package.json +++ b/plugins/common/help/package.json @@ -44,11 +44,11 @@ ] }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { "@koishijs/plugin-database-memory": "^2.3.4", - "@koishijs/plugin-mock": "^2.4.2", - "koishi": "^4.12.1" + "@koishijs/plugin-mock": "^2.4.3", + "koishi": "^4.12.2" } } diff --git a/plugins/common/inspect/package.json b/plugins/common/inspect/package.json index 3d19334bb2..d7835694d5 100644 --- a/plugins/common/inspect/package.json +++ b/plugins/common/inspect/package.json @@ -46,10 +46,10 @@ ] }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "@koishijs/plugin-mock": "^2.4.2", - "koishi": "^4.12.1" + "@koishijs/plugin-mock": "^2.4.3", + "koishi": "^4.12.2" } } diff --git a/plugins/common/rate-limit/package.json b/plugins/common/rate-limit/package.json index 9f8dba429f..2e178678ed 100644 --- a/plugins/common/rate-limit/package.json +++ b/plugins/common/rate-limit/package.json @@ -44,13 +44,13 @@ ] }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { "@koishijs/plugin-database-memory": "^2.3.4", "@koishijs/plugin-admin": "^1.2.1", "@koishijs/plugin-help": "^2.2.2", - "@koishijs/plugin-mock": "^2.4.2", - "koishi": "^4.12.1" + "@koishijs/plugin-mock": "^2.4.3", + "koishi": "^4.12.2" } } diff --git a/plugins/database/memory/package.json b/plugins/database/memory/package.json index 175324eed4..e191d9f017 100644 --- a/plugins/database/memory/package.json +++ b/plugins/database/memory/package.json @@ -42,10 +42,10 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { "@minatojs/driver-memory": "^2.3.4" diff --git a/plugins/database/mongo/package.json b/plugins/database/mongo/package.json index d9a9ae23e7..912af786a5 100644 --- a/plugins/database/mongo/package.json +++ b/plugins/database/mongo/package.json @@ -42,10 +42,10 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { "@minatojs/driver-mongo": "^2.5.1" diff --git a/plugins/database/mysql/package.json b/plugins/database/mysql/package.json index 04646d223e..277d870065 100644 --- a/plugins/database/mysql/package.json +++ b/plugins/database/mysql/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-database-mysql", "description": "MySQL support for Koishi", - "version": "5.4.1", + "version": "5.4.2", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -41,12 +41,12 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { - "@minatojs/driver-mysql": "^2.4.1" + "@minatojs/driver-mysql": "^2.4.2" } } diff --git a/plugins/database/sqlite/package.json b/plugins/database/sqlite/package.json index 76cd97d536..25578626b0 100644 --- a/plugins/database/sqlite/package.json +++ b/plugins/database/sqlite/package.json @@ -50,10 +50,10 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { "@minatojs/driver-sqlite": "^3.4.1" diff --git a/plugins/hmr/package.json b/plugins/hmr/package.json index f3a075952b..abffaad08a 100644 --- a/plugins/hmr/package.json +++ b/plugins/hmr/package.json @@ -41,11 +41,11 @@ } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { "@types/throttle-debounce": "^2.1.0", - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "dependencies": { "chokidar": "^3.5.3", diff --git a/plugins/mock/package.json b/plugins/mock/package.json index 3c5dc7b86e..85331cac7c 100644 --- a/plugins/mock/package.json +++ b/plugins/mock/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-mock", "description": "Test Mocker for Koishi", - "version": "2.4.2", + "version": "2.4.3", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -20,7 +20,7 @@ "bugs": { "url": "https://github.com/koishijs/koishi/issues" }, - "homepage": "https://koishi.chat/plugins/test/", + "homepage": "https://koishi.chat/plugins/develop/mock.html", "keywords": [ "bot", "chatbot", @@ -29,15 +29,20 @@ "test", "tester", "unit", - "mock" + "mock", + "simulation", + "utilities" ], "koishi": { - "hidden": true + "description": { + "en": "Test Utilities (for developers)", + "zh": "测试工具 (仅适用于开发)" + } }, "peerDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" }, "devDependencies": { - "koishi": "^4.12.1" + "koishi": "^4.12.2" } }