Skip to content

Commit

Permalink
chore: bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jun 19, 2024
1 parent 0082b6e commit b246289
Show file tree
Hide file tree
Showing 16 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"yakumo": "^1.0.0-beta.16",
"yakumo-esbuild": "^1.0.0-beta.6",
"yakumo-mocha": "^1.0.0-beta.2",
"yakumo-tsc": "^1.0.0-beta.3",
"yakumo-tsc": "^1.0.0-beta.4",
"yml-register": "^1.2.5"
}
}
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/core",
"description": "Core Features for Koishi",
"version": "4.17.8",
"version": "4.17.9",
"main": "lib/index.cjs",
"module": "lib/index.mjs",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -33,10 +33,10 @@
"dependencies": {
"@koishijs/i18n-utils": "^1.0.1",
"@koishijs/utils": "^7.2.1",
"@satorijs/core": "^4.1.1",
"cordis": "^3.16.1",
"@satorijs/core": "^4.1.2",
"cordis": "^3.17.3",
"cosmokit": "^1.6.2",
"fastest-levenshtein": "^1.0.16",
"minato": "^3.4.0"
"minato": "^3.4.3"
}
}
12 changes: 6 additions & 6 deletions packages/core/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ export class Context extends satori.Context {
waterfall<K extends keyof GetEvents<this>>(name: K, ...args: Parameters<GetEvents<this>[K]>): Promisify<ReturnType<GetEvents<this>[K]>>
waterfall<K extends keyof GetEvents<this>>(thisArg: ThisType<GetEvents<this>[K]>, name: K, ...args: Parameters<GetEvents<this>[K]>): Promisify<ReturnType<GetEvents<this>[K]>>
async waterfall(...args: [any, ...any[]]) {
const thisArg = typeof args[0] === 'object' ? args.shift() : null
const thisArg = typeof args[0] === 'object' || typeof args[0] === 'function' ? args.shift() : null
const name = args.shift()
for (const callback of this.lifecycle.getHooks(name, thisArg)) {
const result = await callback.apply(thisArg, args)
for (const hook of this.lifecycle.filterHooks(this.lifecycle._hooks[name] || [], thisArg)) {
const result = await hook.callback.apply(thisArg, args)
args[0] = result
}
return args[0]
Expand All @@ -98,10 +98,10 @@ export class Context extends satori.Context {
chain<K extends keyof GetEvents<this>>(name: K, ...args: Parameters<GetEvents<this>[K]>): ReturnType<GetEvents<this>[K]>
chain<K extends keyof GetEvents<this>>(thisArg: ThisType<GetEvents<this>[K]>, name: K, ...args: Parameters<GetEvents<this>[K]>): ReturnType<GetEvents<this>[K]>
chain(...args: [any, ...any[]]) {
const thisArg = typeof args[0] === 'object' ? args.shift() : null
const thisArg = typeof args[0] === 'object' || typeof args[0] === 'function' ? args.shift() : null
const name = args.shift()
for (const callback of this.lifecycle.getHooks(name, thisArg)) {
const result = callback.apply(thisArg, args)
for (const hook of this.lifecycle.filterHooks(this.lifecycle._hooks[name] || [], thisArg)) {
const result = hook.callback.apply(thisArg, args)
args[0] = result
}
return args[0]
Expand Down
14 changes: 7 additions & 7 deletions packages/koishi/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "koishi",
"description": "Cross-Platform Chatbot Framework Made with Love",
"version": "4.17.8",
"version": "4.17.9",
"main": "lib/index.cjs",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
"bin": "bin.js",
"exports": {
".": {
"types": "./lib/index.d.ts",
"node": {
"import": "./lib/index.mjs",
"require": "./lib/index.cjs"
},
"browser": "./browser.mjs",
"types": "./lib/index.d.ts"
"browser": "./browser.mjs"
},
"./lib/cli": "./lib/cli/index.js",
"./lib/worker": "./lib/worker/index.js",
Expand Down Expand Up @@ -45,13 +45,13 @@
"framework"
],
"dependencies": {
"@koishijs/core": "4.17.8",
"@koishijs/loader": "4.5.8",
"@koishijs/plugin-http": "^0.5.2",
"@koishijs/core": "4.17.9",
"@koishijs/loader": "4.5.9",
"@koishijs/plugin-http": "^0.5.3",
"@koishijs/plugin-proxy-agent": "^0.3.2",
"@koishijs/plugin-server": "^3.2.3",
"@koishijs/utils": "^7.2.1",
"@satorijs/core": "^4.1.1",
"@satorijs/core": "^4.1.2",
"cac": "^6.7.14",
"kleur": "^4.1.5"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/loader/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/loader",
"description": "Config Loader for Koishi",
"version": "4.5.8",
"version": "4.5.9",
"main": "lib/index.js",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -45,10 +45,10 @@
"config"
],
"peerDependencies": {
"@koishijs/core": "4.17.8"
"@koishijs/core": "4.17.9"
},
"devDependencies": {
"@koishijs/core": "4.17.8",
"@koishijs/core": "4.17.9",
"@types/js-yaml": "^4.0.9"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions plugins/common/bind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
]
},
"peerDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"devDependencies": {
"@koishijs/plugin-mock": "^2.6.5",
"koishi": "^4.17.8"
"@koishijs/plugin-mock": "^2.6.6",
"koishi": "^4.17.9"
}
}
6 changes: 3 additions & 3 deletions plugins/common/broadcast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
]
},
"peerDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"devDependencies": {
"@koishijs/plugin-mock": "^2.6.5",
"koishi": "^4.17.8"
"@koishijs/plugin-mock": "^2.6.6",
"koishi": "^4.17.9"
}
}
6 changes: 3 additions & 3 deletions plugins/common/callme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
]
},
"peerDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"devDependencies": {
"@koishijs/plugin-mock": "^2.6.5",
"koishi": "^4.17.8"
"@koishijs/plugin-mock": "^2.6.6",
"koishi": "^4.17.9"
}
}
6 changes: 3 additions & 3 deletions plugins/common/echo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
]
},
"peerDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"devDependencies": {
"@koishijs/plugin-mock": "^2.6.5",
"koishi": "^4.17.8"
"@koishijs/plugin-mock": "^2.6.6",
"koishi": "^4.17.9"
}
}
8 changes: 4 additions & 4 deletions plugins/common/help/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/plugin-help",
"description": "Help plugin for Koishi",
"version": "2.4.3",
"version": "2.4.4",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -45,10 +45,10 @@
]
},
"peerDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"devDependencies": {
"@koishijs/plugin-mock": "^2.6.5",
"koishi": "^4.17.8"
"@koishijs/plugin-mock": "^2.6.6",
"koishi": "^4.17.9"
}
}
6 changes: 3 additions & 3 deletions plugins/common/inspect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
]
},
"peerDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"devDependencies": {
"@koishijs/plugin-mock": "^2.6.5",
"koishi": "^4.17.8"
"@koishijs/plugin-mock": "^2.6.6",
"koishi": "^4.17.9"
}
}
6 changes: 3 additions & 3 deletions plugins/hmr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
}
},
"peerDependencies": {
"@koishijs/loader": "^4.5.8",
"koishi": "^4.17.8"
"@koishijs/loader": "^4.5.9",
"koishi": "^4.17.9"
},
"devDependencies": {
"@types/babel__code-frame": "^7.0.6",
"esbuild": "^0.18.20",
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"dependencies": {
"@babel/code-frame": "^7.24.2",
Expand Down
8 changes: 4 additions & 4 deletions plugins/http/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/plugin-http",
"description": "HTTP and WebSocket client for Koishi",
"version": "0.5.2",
"version": "0.5.3",
"type": "module",
"main": "index.cjs",
"module": "index.mjs",
Expand Down Expand Up @@ -48,12 +48,12 @@
}
},
"peerDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"devDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"dependencies": {
"@cordisjs/plugin-http": "^0.5.2"
"@cordisjs/plugin-http": "^0.5.3"
}
}
6 changes: 3 additions & 3 deletions plugins/mock/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/plugin-mock",
"description": "Test Mocker for Koishi",
"version": "2.6.5",
"version": "2.6.6",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down Expand Up @@ -41,10 +41,10 @@
}
},
"peerDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"devDependencies": {
"@koishijs/plugin-server": "^3.2.3",
"koishi": "^4.17.8"
"koishi": "^4.17.9"
}
}
4 changes: 2 additions & 2 deletions plugins/proxy-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
}
},
"peerDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"devDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"dependencies": {
"@cordisjs/plugin-proxy-agent": "^0.3.2"
Expand Down
4 changes: 2 additions & 2 deletions plugins/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
}
},
"peerDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"devDependencies": {
"koishi": "^4.17.8"
"koishi": "^4.17.9"
},
"dependencies": {
"@cordisjs/plugin-server": "^0.2.3"
Expand Down

0 comments on commit b246289

Please sign in to comment.