From e496ddb884fddd3d7194ac28fc28b1fdc375b6e3 Mon Sep 17 00:00:00 2001 From: Shigma Date: Sun, 12 May 2024 16:19:51 +0800 Subject: [PATCH] chore: bump versions --- package.json | 4 ++-- packages/core/package.json | 8 ++++---- packages/core/src/database.ts | 4 ++-- packages/koishi/package.json | 8 ++++---- packages/loader/package.json | 6 +++--- packages/utils/tests/observe.spec.ts | 4 ++-- plugins/common/bind/package.json | 4 ++-- plugins/common/broadcast/package.json | 4 ++-- plugins/common/callme/package.json | 4 ++-- plugins/common/echo/package.json | 4 ++-- plugins/common/echo/tests/index.spec.ts | 6 ++++-- plugins/common/help/package.json | 4 ++-- plugins/common/inspect/package.json | 4 ++-- plugins/hmr/package.json | 6 +++--- plugins/mock/package.json | 6 +++--- plugins/proxy-agent/package.json | 4 ++-- plugins/server/package.json | 8 ++++---- 17 files changed, 45 insertions(+), 43 deletions(-) diff --git a/package.json b/package.json index 9e5a831a7..701459632 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "license": "MIT", "devDependencies": { "@cordisjs/eslint-config": "^1.1.1", - "@koishijs/plugin-database-memory": "npm:@minatojs/driver-memory@^3.2.0", + "@koishijs/plugin-database-memory": "npm:@minatojs/driver-memory@^3.3.0", "@octokit/webhooks-types": "^7.4.0", "@sinonjs/fake-timers": "^6.0.1", "@types/chai": "^4.3.14", @@ -69,7 +69,7 @@ "shx": "^0.3.4", "source-map-support": "^0.5.21", "typescript": "^5.4.3", - "yakumo": "^1.0.0-beta.13", + "yakumo": "^1.0.0-beta.14", "yakumo-esbuild": "^1.0.0-beta.5", "yakumo-mocha": "^1.0.0-beta.2", "yakumo-tsc": "^1.0.0-beta.3", diff --git a/packages/core/package.json b/packages/core/package.json index 69ee0d2c7..529286702 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.17.5", + "version": "4.17.6", "main": "lib/index.cjs", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -33,10 +33,10 @@ "dependencies": { "@koishijs/i18n-utils": "^1.0.1", "@koishijs/utils": "^7.2.1", - "@satorijs/core": "^3.7.0", - "cordis": "^3.14.0", + "@satorijs/core": "^4.0.0", + "cordis": "^3.15.0", "cosmokit": "^1.6.2", "fastest-levenshtein": "^1.0.16", - "minato": "^3.2.0" + "minato": "^3.3.0" } } diff --git a/packages/core/src/database.ts b/packages/core/src/database.ts index 6498fa15a..658ca2a8f 100644 --- a/packages/core/src/database.ts +++ b/packages/core/src/database.ts @@ -10,6 +10,8 @@ declare module './context' { [minato.Types]: Types [minato.Tables]: Tables [Context.Database]: Context.Database + broadcast(content: Fragment, forced?: boolean): Promise + broadcast(channels: readonly string[], content: Fragment, forced?: boolean): Promise } namespace Context { @@ -24,8 +26,6 @@ declare module './context' { getAssignedChannels(fields?: K[], selfIdMap?: Dict): Promise[]> setChannel(platform: string, id: string, data: Update): Promise createChannel(platform: string, id: string, data: Partial): Promise - broadcast(content: Fragment, forced?: boolean): Promise - broadcast(channels: readonly string[], content: Fragment, forced?: boolean): Promise } } } diff --git a/packages/koishi/package.json b/packages/koishi/package.json index dc8306d65..4ed06cebd 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.17.5", + "version": "4.17.6", "main": "lib/index.cjs", "module": "lib/index.mjs", "types": "lib/index.d.ts", @@ -45,11 +45,11 @@ "framework" ], "dependencies": { - "@koishijs/core": "4.17.5", - "@koishijs/loader": "4.5.5", + "@koishijs/core": "4.17.6", + "@koishijs/loader": "4.5.6", "@koishijs/plugin-http": "^0.4.2", "@koishijs/plugin-proxy-agent": "^0.3.0", - "@koishijs/plugin-server": "^3.2.1", + "@koishijs/plugin-server": "^3.2.2", "@koishijs/utils": "^7.2.1", "@satorijs/core": "^4.0.0", "cac": "^6.7.14", diff --git a/packages/loader/package.json b/packages/loader/package.json index f6e623c31..8660e6a9e 100644 --- a/packages/loader/package.json +++ b/packages/loader/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/loader", "description": "Config Loader for Koishi", - "version": "4.5.5", + "version": "4.5.6", "main": "lib/index.js", "module": "lib/index.mjs", "types": "lib/index.d.ts", @@ -45,10 +45,10 @@ "config" ], "peerDependencies": { - "@koishijs/core": "4.17.5" + "@koishijs/core": "4.17.6" }, "devDependencies": { - "@koishijs/core": "4.17.5", + "@koishijs/core": "4.17.6", "@types/js-yaml": "^4.0.9" }, "dependencies": { diff --git a/packages/utils/tests/observe.spec.ts b/packages/utils/tests/observe.spec.ts index 250b2f34a..b7e88eed5 100644 --- a/packages/utils/tests/observe.spec.ts +++ b/packages/utils/tests/observe.spec.ts @@ -156,7 +156,7 @@ describe('Observer API', () => { object.$update() expect(flush.mock.calls).to.have.length(1) - expect(flush.mock.calls[0]).to.deep.equal([{ b: [] }]) + expect(flush.mock.calls[0].arguments).to.deep.equal([{ b: [] }]) expect(object).to.deep.equal({ a: 1, b: [] }) expect(object.$diff).to.deep.equal({}) @@ -166,7 +166,7 @@ describe('Observer API', () => { object.$update() expect(flush.mock.calls).to.have.length(2) - expect(flush.mock.calls[1]).to.deep.equal([{ a: 3 }]) + expect(flush.mock.calls[1].arguments).to.deep.equal([{ a: 3 }]) expect(object).to.deep.equal({ a: 3, b: [] }) expect(object.$diff).to.deep.equal({}) }) diff --git a/plugins/common/bind/package.json b/plugins/common/bind/package.json index 07a0bb2df..2f512ca47 100644 --- a/plugins/common/bind/package.json +++ b/plugins/common/bind/package.json @@ -46,10 +46,10 @@ ] }, "peerDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "devDependencies": { "@koishijs/plugin-mock": "^2.6.5", - "koishi": "^4.17.5" + "koishi": "^4.17.6" } } diff --git a/plugins/common/broadcast/package.json b/plugins/common/broadcast/package.json index b5d9ae120..05defbce9 100644 --- a/plugins/common/broadcast/package.json +++ b/plugins/common/broadcast/package.json @@ -45,10 +45,10 @@ ] }, "peerDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "devDependencies": { "@koishijs/plugin-mock": "^2.6.5", - "koishi": "^4.17.5" + "koishi": "^4.17.6" } } diff --git a/plugins/common/callme/package.json b/plugins/common/callme/package.json index b0602f69b..74b71ce1e 100644 --- a/plugins/common/callme/package.json +++ b/plugins/common/callme/package.json @@ -45,10 +45,10 @@ ] }, "peerDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "devDependencies": { "@koishijs/plugin-mock": "^2.6.5", - "koishi": "^4.17.5" + "koishi": "^4.17.6" } } diff --git a/plugins/common/echo/package.json b/plugins/common/echo/package.json index 56001be17..69c8b2227 100644 --- a/plugins/common/echo/package.json +++ b/plugins/common/echo/package.json @@ -41,10 +41,10 @@ ] }, "peerDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "devDependencies": { "@koishijs/plugin-mock": "^2.6.5", - "koishi": "^4.17.5" + "koishi": "^4.17.6" } } diff --git a/plugins/common/echo/tests/index.spec.ts b/plugins/common/echo/tests/index.spec.ts index ee70ee56e..5bd1a46f1 100644 --- a/plugins/common/echo/tests/index.spec.ts +++ b/plugins/common/echo/tests/index.spec.ts @@ -27,10 +27,12 @@ describe('@koishijs/plugin-echo', () => { const send1 = app.bots[0].sendPrivateMessage = jest.fn() await client.shouldNotReply('echo -u @100 foo') - expect(send1.mock.calls).to.have.shape([['100', ['foo']]]) + expect(send1.mock.calls).to.have.length(1) + expect(send1.mock.calls[0].arguments).to.have.shape(['100', ['foo']]) const send2 = app.bots[0].sendMessage = jest.fn() await client.shouldNotReply('echo -c #200 foo') - expect(send2.mock.calls).to.have.shape([['200', ['foo']]]) + expect(send1.mock.calls).to.have.length(1) + expect(send2.mock.calls[0].arguments).to.have.shape(['200', ['foo']]) }) }) diff --git a/plugins/common/help/package.json b/plugins/common/help/package.json index 29559c7ef..a761155d9 100644 --- a/plugins/common/help/package.json +++ b/plugins/common/help/package.json @@ -45,10 +45,10 @@ ] }, "peerDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "devDependencies": { "@koishijs/plugin-mock": "^2.6.5", - "koishi": "^4.17.5" + "koishi": "^4.17.6" } } diff --git a/plugins/common/inspect/package.json b/plugins/common/inspect/package.json index 178d45cbc..492d32d93 100644 --- a/plugins/common/inspect/package.json +++ b/plugins/common/inspect/package.json @@ -47,10 +47,10 @@ ] }, "peerDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "devDependencies": { "@koishijs/plugin-mock": "^2.6.5", - "koishi": "^4.17.5" + "koishi": "^4.17.6" } } diff --git a/plugins/hmr/package.json b/plugins/hmr/package.json index f0e5e226d..e11b8802a 100644 --- a/plugins/hmr/package.json +++ b/plugins/hmr/package.json @@ -42,13 +42,13 @@ } }, "peerDependencies": { - "@koishijs/loader": "^4.5.5", - "koishi": "^4.17.5" + "@koishijs/loader": "^4.5.6", + "koishi": "^4.17.6" }, "devDependencies": { "@types/babel__code-frame": "^7.0.6", "esbuild": "^0.18.20", - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "dependencies": { "@babel/code-frame": "^7.24.2", diff --git a/plugins/mock/package.json b/plugins/mock/package.json index 0cb7317ee..04cdbb82c 100644 --- a/plugins/mock/package.json +++ b/plugins/mock/package.json @@ -41,10 +41,10 @@ } }, "peerDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "devDependencies": { - "@koishijs/plugin-server": "^3.2.1", - "koishi": "^4.17.5" + "@koishijs/plugin-server": "^3.2.2", + "koishi": "^4.17.6" } } diff --git a/plugins/proxy-agent/package.json b/plugins/proxy-agent/package.json index 113b7fefc..2fdd5e5a3 100644 --- a/plugins/proxy-agent/package.json +++ b/plugins/proxy-agent/package.json @@ -52,10 +52,10 @@ } }, "peerDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "devDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "dependencies": { "@cordisjs/plugin-proxy-agent": "^0.3.0" diff --git a/plugins/server/package.json b/plugins/server/package.json index 71798e5df..bdc84af1b 100644 --- a/plugins/server/package.json +++ b/plugins/server/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-server", "description": "Server service for Koishi", - "version": "3.2.1", + "version": "3.2.2", "type": "module", "main": "index.cjs", "module": "index.mjs", @@ -51,12 +51,12 @@ } }, "peerDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "devDependencies": { - "koishi": "^4.17.5" + "koishi": "^4.17.6" }, "dependencies": { - "@cordisjs/plugin-server": "^0.2.1" + "@cordisjs/plugin-server": "^0.2.2" } }