diff --git a/package.json b/package.json index 9ba547a8..c611d782 100644 --- a/package.json +++ b/package.json @@ -26,33 +26,30 @@ "test:html": "shx rm -rf coverage && c8 -r html yarn test" }, "devDependencies": { - "@cordisjs/eslint-config": "^1.0.4", - "@koishijs/plugin-database-memory": "^3.0.0", + "@cordisjs/eslint-config": "^1.1.1", + "@koishijs/plugin-database-memory": "^3.4.0", "@koishijs/plugin-help": "^2.4.3", "@koishijs/plugin-mock": "^2.6.5", - "@rollup/plugin-yaml": "^3.1.0", "@sinonjs/fake-timers": "^6.0.1", - "@types/chai": "^4.3.11", + "@types/chai": "^4.3.14", "@types/chai-as-promised": "^7.1.8", "@types/mocha": "^9.1.1", - "@types/node": "^20.10.2", + "@types/node": "^20.11.30", "@types/sinonjs__fake-timers": "^6.0.4", "c8": "^7.14.0", - "chai": "^4.3.10", + "chai": "^4.4.1", "chai-as-promised": "^7.1.1", "esbuild": "^0.18.20", "esbuild-register": "^3.5.0", - "eslint": "^8.55.0", - "eslint-plugin-mocha": "^10.2.0", - "jest-mock": "^28.1.3", - "koishi": "^4.17.1", + "eslint": "^8.57.0", + "eslint-plugin-mocha": "^10.4.1", + "koishi": "^4.17.8", "mocha": "^9.2.2", - "rollup-plugin-node-polyfills": "^0.2.1", "shx": "^0.3.4", - "tsx": "^4.7.0", - "typescript": "^5.3.2", - "yakumo": "^1.0.0-beta.9", - "yakumo-esbuild": "^1.0.0-beta.4", + "tsx": "^4.7.1", + "typescript": "^5.4.3", + "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", "yml-register": "^1.2.5" diff --git a/packages/client/client/plugins/setting.ts b/packages/client/client/plugins/setting.ts index 1f0a8ed0..6610a967 100644 --- a/packages/client/client/plugins/setting.ts +++ b/packages/client/client/plugins/setting.ts @@ -107,7 +107,7 @@ export default class SettingService extends Service { }) const doWatch = () => watch(resolved, (value) => { - console.debug('config', value) + console.debug('config', JSON.stringify(value)) original.value = schema.value.simplify(value) }, { deep: true }) diff --git a/packages/client/package.json b/packages/client/package.json index 58cd937e..3a1778db 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,10 +1,11 @@ { "name": "@koishijs/client", "description": "Koishi Console Client", - "version": "5.28.0", + "version": "5.29.1", "main": "client/index.ts", "exports": { ".": "./client/index.ts", + "./global": "./client/global.d.ts", "./bin": "./lib/bin.js", "./lib": "./lib/index.js", "./lib/yakumo": "./lib/yakumo.js", @@ -43,23 +44,23 @@ "build" ], "dependencies": { - "@koishijs/components": "1.5.8", + "@koishijs/components": "1.5.13", "@maikolib/vite-plugin-yaml": "^1.0.1", - "@satorijs/protocol": "^1.3.0-alpha.0", - "@vitejs/plugin-vue": "^4.5.1", - "@vueuse/core": "^10.6.1", + "@satorijs/protocol": "^1.4.0", + "@vitejs/plugin-vue": "^4.6.2", + "@vueuse/core": "^10.9.0", "cac": "^6.7.14", - "cordis": "^3.12.0", - "cosmokit": "^1.5.2", - "element-plus": "2.4.0", + "cordis": "^3.16.1", + "cosmokit": "^1.6.2", + "element-plus": "2.7.3", "marked-vue": "^1.3.0", "ns-require": "^1.1.4", - "sass": "^1.69.5", - "unocss": "^0.58.0", - "vite": "^4.5.0", - "vue": "^3.3.13", - "vue-i18n": "^9.8.0", - "vue-router": "^4.2.5" + "sass": "^1.72.0", + "unocss": "^0.58.6", + "vite": "^4.5.3", + "vue": "^3.4.21", + "vue-i18n": "^9.10.2", + "vue-router": "^4.3.0" }, "yakumo": { "client": "./scripts/client.ts" diff --git a/packages/components/package.json b/packages/components/package.json index 2dbc486e..9bfdf2b7 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/components", "description": "Client components for Koishi", - "version": "1.5.8", + "version": "1.5.13", "main": "client/index.ts", "files": [ "client", @@ -29,8 +29,8 @@ "vue": "^3" }, "dependencies": { - "@satorijs/element": "^3.1.5", - "cosmokit": "^1.5.2", - "schemastery-vue": "^7.3.1" + "@satorijs/element": "^3.1.7", + "cosmokit": "^1.6.2", + "schemastery-vue": "^7.3.4" } } diff --git a/packages/console/package.json b/packages/console/package.json index 0f503f4a..f8642543 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/console", "description": "Console Service for Koishi", - "version": "5.28.3", + "version": "5.29.1", "main": "lib/index.js", "module": "lib/index.mjs", "types": "lib/index.d.ts", @@ -31,6 +31,6 @@ "service" ], "peerDependencies": { - "koishi": "^4.17.1" + "koishi": "^4.17.8" } } diff --git a/packages/market/package.json b/packages/market/package.json index 36fb3ae5..f7759573 100644 --- a/packages/market/package.json +++ b/packages/market/package.json @@ -35,8 +35,8 @@ "vue-i18n": "^9" }, "dependencies": { - "@koishijs/components": "^1.5.8", - "cosmokit": "^1.5.2", + "@koishijs/components": "^1.5.13", + "cosmokit": "^1.6.2", "spark-md5": "^3.0.2" } } diff --git a/packages/online/package.json b/packages/online/package.json index 52f96d7c..f6c3efae 100644 --- a/packages/online/package.json +++ b/packages/online/package.json @@ -26,13 +26,13 @@ "online" ], "devDependencies": { - "@koishijs/client": "^5.28.0", - "@koishijs/dns": "^1.0.1", - "@koishijs/fs": "^1.3.7", - "@koishijs/loader": "^4.5.1", - "@koishijs/os": "^1.0.2", - "@koishijs/path": "^1.0.0", - "@koishijs/url": "^1.0.3" + "@cordiverse/dns": "^1.0.1", + "@cordiverse/fs": "^1.3.7", + "@cordiverse/os": "^1.0.2", + "@cordiverse/path": "^1.0.0", + "@cordiverse/url": "^1.0.3", + "@koishijs/client": "^5.29.1", + "@koishijs/loader": "^4.5.8" }, "yakumo": { "client": "./src/build.ts" diff --git a/packages/online/src/build.ts b/packages/online/src/build.ts index ba773158..19807893 100644 --- a/packages/online/src/build.ts +++ b/packages/online/src/build.ts @@ -45,9 +45,9 @@ const builtins = [ ] const shims = { - dns: '@koishijs/dns', - fs: '@koishijs/fs', - path: '@koishijs/path', + dns: '@cordiverse/dns', + fs: '@cordiverse/fs', + path: '@cordiverse/path', } function toExternal(name: string) { diff --git a/packages/registry/package.json b/packages/registry/package.json index f8bf0800..f7bccaef 100644 --- a/packages/registry/package.json +++ b/packages/registry/package.json @@ -30,11 +30,11 @@ "search" ], "devDependencies": { - "@types/semver": "^7.5.6" + "@types/semver": "^7.5.8" }, "dependencies": { - "cosmokit": "^1.5.2", + "cosmokit": "^1.6.2", "p-map": "^4.0.0", - "semver": "^7.5.4" + "semver": "^7.6.0" } } diff --git a/plugins/actions/package.json b/plugins/actions/package.json index e4afcc17..7b7b5090 100644 --- a/plugins/actions/package.json +++ b/plugins/actions/package.json @@ -53,13 +53,13 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "devDependencies": { - "@koishijs/client": "^5.28.0" + "@koishijs/client": "^5.29.1" }, "dependencies": { - "@koishijs/console": "^5.28.0" + "@koishijs/console": "^5.29.1" } } diff --git a/plugins/admin/package.json b/plugins/admin/package.json index 2d21c04d..4de19641 100644 --- a/plugins/admin/package.json +++ b/plugins/admin/package.json @@ -50,8 +50,8 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "peerDependenciesMeta": { "@koishijs/plugin-console": { @@ -59,8 +59,8 @@ } }, "devDependencies": { - "@koishijs/client": "^5.28.0", - "@koishijs/plugin-console": "^5.28.0", + "@koishijs/client": "^5.29.1", + "@koishijs/plugin-console": "^5.29.1", "@koishijs/plugin-locales": "^2.5.3", "@koishijs/plugin-mock": "^2.6.5", "@types/throttle-debounce": "^2.1.0" diff --git a/plugins/analytics/package.json b/plugins/analytics/package.json index a2084f81..b742d0fd 100644 --- a/plugins/analytics/package.json +++ b/plugins/analytics/package.json @@ -49,17 +49,17 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "devDependencies": { - "@koishijs/assets": "^1.0.4", - "@koishijs/client": "^5.28.0", - "echarts": "^5.4.3", - "koishi": "^4.17.1", - "vue-echarts": "^6.6.1" + "@koishijs/assets": "^1.1.2", + "@koishijs/client": "^5.29.1", + "echarts": "^5.5.0", + "koishi": "^4.17.8", + "vue-echarts": "^6.6.9" }, "dependencies": { - "@koishijs/console": "^5.28.0" + "@koishijs/console": "^5.29.1" } } diff --git a/plugins/auth/package.json b/plugins/auth/package.json index d1e76ba8..9453868d 100644 --- a/plugins/auth/package.json +++ b/plugins/auth/package.json @@ -48,13 +48,13 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "devDependencies": { - "@koishijs/client": "^5.28.0" + "@koishijs/client": "^5.29.1" }, "dependencies": { - "@koishijs/console": "^5.28.0" + "@koishijs/console": "^5.29.1" } } diff --git a/plugins/commands/package.json b/plugins/commands/package.json index 2bb9adad..99a50ff4 100644 --- a/plugins/commands/package.json +++ b/plugins/commands/package.json @@ -45,8 +45,8 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "peerDependenciesMeta": { "@koishijs/plugin-console": { @@ -54,13 +54,13 @@ } }, "devDependencies": { - "@koishijs/client": "^5.28.0", - "@koishijs/plugin-config": "^2.8.4", - "@koishijs/plugin-console": "^5.28.0", + "@koishijs/client": "^5.29.1", + "@koishijs/plugin-config": "^2.8.5", + "@koishijs/plugin-console": "^5.29.1", "@koishijs/plugin-locales": "^2.5.3", "@koishijs/plugin-mock": "^2.6.5" }, "dependencies": { - "@koishijs/console": "^5.28.0" + "@koishijs/console": "^5.29.1" } } diff --git a/plugins/config/package.json b/plugins/config/package.json index 88c8f919..bc52cb56 100644 --- a/plugins/config/package.json +++ b/plugins/config/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-config", "description": "Manage your bots and plugins with console", - "version": "2.8.4", + "version": "2.8.5", "main": "lib/node/index.js", "types": "lib/index.d.ts", "exports": { @@ -14,6 +14,7 @@ "require": "./lib/shared/index.js", "import": "./lib/shared/index.mjs" }, + "./src/*": "./src/*", "./package.json": "./package.json" }, "files": [ @@ -56,15 +57,16 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/loader": "^4.5.8", + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "devDependencies": { - "@koishijs/client": "^5.28.0", - "@koishijs/plugin-hmr": "^1.2.8" + "@koishijs/client": "^5.29.1", + "@koishijs/plugin-hmr": "^1.2.9" }, "dependencies": { - "@koishijs/console": "^5.28.0", + "@koishijs/console": "^5.29.1", "@koishijs/registry": "^7.0.3" } } diff --git a/plugins/console/package.json b/plugins/console/package.json index 338728b3..33362207 100644 --- a/plugins/console/package.json +++ b/plugins/console/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-console", "description": "Web User Interface for Koishi", - "version": "5.28.0", + "version": "5.29.1", "main": "lib/node/index.js", "types": "lib/index.d.ts", "exports": { @@ -55,8 +55,8 @@ } }, "peerDependencies": { - "@koishijs/client": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/client": "^5.29.1", + "koishi": "^4.17.8" }, "peerDependenciesMeta": { "@koishijs/client": { @@ -64,20 +64,20 @@ } }, "devDependencies": { - "@koishijs/client": "^5.28.0", - "@koishijs/loader": "^4.5.1", - "@koishijs/plugin-server": "^3.1.8", - "@koishijs/plugin-server-proxy": "^1.1.0", + "@koishijs/client": "^5.29.1", + "@koishijs/loader": "^4.5.8", + "@koishijs/plugin-server": "^3.2.3", + "@koishijs/plugin-server-proxy": "^1.2.0", "@maikolib/vite-plugin-yaml": "^1.0.1", "@types/uuid": "^8.3.4", - "@vitejs/plugin-vue": "^4.5.1", - "unocss": "^0.58.0", - "vite": "^4.5.0" + "@vitejs/plugin-vue": "^4.6.2", + "unocss": "^0.58.6", + "vite": "^4.5.3" }, "dependencies": { - "@koishijs/console": "^5.28.0", + "@koishijs/console": "^5.29.1", "open": "^8.4.2", "uuid": "^8.3.2", - "ws": "^8.14.2" + "ws": "^8.16.0" } } diff --git a/plugins/explorer/package.json b/plugins/explorer/package.json index 255fbea2..a5d424dd 100644 --- a/plugins/explorer/package.json +++ b/plugins/explorer/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-explorer", "description": "File explorer and editor for Koishi", - "version": "1.5.1", + "version": "1.5.4", "main": "lib/index.cjs", "types": "lib/index.d.ts", "exports": { @@ -59,16 +59,16 @@ "client": "./build/client.ts" }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "devDependencies": { - "@koishijs/client": "^5.28.0", + "@koishijs/client": "^5.29.1", "@types/throttle-debounce": "^2.1.0", "monaco-editor": "~0.44.0" }, "dependencies": { - "@koishijs/console": "^5.28.0", + "@koishijs/console": "^5.29.1", "anymatch": "^3.1.3", "chardet": "^2.0.0", "chokidar": "^3.6.0", diff --git a/plugins/insight/package.json b/plugins/insight/package.json index aa85bad3..6445fb70 100644 --- a/plugins/insight/package.json +++ b/plugins/insight/package.json @@ -53,15 +53,15 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "devDependencies": { - "@koishijs/client": "^5.28.0", + "@koishijs/client": "^5.29.1", "@types/d3-force": "^3.0.9", "d3-force": "^3.0.0" }, "dependencies": { - "@koishijs/console": "^5.28.0" + "@koishijs/console": "^5.29.1" } } diff --git a/plugins/locales/package.json b/plugins/locales/package.json index bca344ea..0be67c97 100644 --- a/plugins/locales/package.json +++ b/plugins/locales/package.json @@ -45,8 +45,8 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "peerDependenciesMeta": { "@koishijs/plugin-console": { @@ -54,13 +54,13 @@ } }, "devDependencies": { - "@koishijs/client": "^5.28.0", - "@koishijs/plugin-console": "^5.28.0", + "@koishijs/client": "^5.29.1", + "@koishijs/plugin-console": "^5.29.1", "@koishijs/plugin-mock": "^2.6.5", "@types/js-yaml": "^4.0.9" }, "dependencies": { - "@koishijs/console": "^5.28.0", + "@koishijs/console": "^5.29.1", "js-yaml": "^4.1.0" } } diff --git a/plugins/locales/src/index.ts b/plugins/locales/src/index.ts index a473405c..b3715b31 100644 --- a/plugins/locales/src/index.ts +++ b/plugins/locales/src/index.ts @@ -1,16 +1,10 @@ import { Context, Dict, I18n, Logger, Schema } from 'koishi' -import { DataService } from '@koishijs/console' +import {} from '@koishijs/plugin-console' import { mkdir, readdir, readFile, writeFile } from 'fs/promises' import { resolve } from 'path' import { dump, load } from 'js-yaml' declare module '@koishijs/console' { - namespace Console { - interface Services { - locales: LocaleProvider - } - } - interface Events { 'l10n'(data: Dict): void } @@ -18,38 +12,6 @@ declare module '@koishijs/console' { const logger = new Logger('locales') -class LocaleProvider extends DataService> { - constructor(ctx: Context, public config: Config) { - super(ctx, 'locales', { authority: 4 }) - - const update = ctx.debounce(() => this.refresh(), 0) - ctx.on('internal/i18n', update) - - ctx.console.addEntry(process.env.KOISHI_BASE ? [ - process.env.KOISHI_BASE + '/dist/index.js', - process.env.KOISHI_BASE + '/dist/style.css', - ] : process.env.KOISHI_ENV === 'browser' ? [ - // @ts-ignore - import.meta.url.replace(/\/src\/[^/]+$/, '/client/index.ts'), - ] : { - dev: resolve(__dirname, '../client/index.ts'), - prod: resolve(__dirname, '../dist'), - }) - - ctx.console.addListener('l10n', async (data) => { - for (const locale in data) { - ctx.i18n.define('$' + locale, data[locale]) - const content = dump(data[locale]) - await writeFile(resolve(ctx.baseDir, config.root[0], locale + '.yml'), content) - } - }) - } - - async get() { - return this.ctx.i18n._data - } -} - export const name = 'locales' export interface Config { @@ -79,5 +41,27 @@ export async function apply(ctx: Context, config: Config) { } } - ctx.plugin(LocaleProvider, config) + ctx.inject(['console'], (ctx) => { + const entry = ctx.console.addEntry(process.env.KOISHI_BASE ? [ + process.env.KOISHI_BASE + '/dist/index.js', + process.env.KOISHI_BASE + '/dist/style.css', + ] : process.env.KOISHI_ENV === 'browser' ? [ + // @ts-ignore + import.meta.url.replace(/\/src\/[^/]+$/, '/client/index.ts'), + ] : { + dev: resolve(__dirname, '../client/index.ts'), + prod: resolve(__dirname, '../dist'), + }, () => ctx.i18n._data) + + ctx.console.addListener('l10n', async (data) => { + for (const locale in data) { + ctx.i18n.define('$' + locale, data[locale]) + const content = dump(data[locale]) + await writeFile(resolve(ctx.baseDir, config.root[0], locale + '.yml'), content) + } + }, { authority: 4 }) + + const update = ctx.debounce(() => entry.refresh(), 0) + ctx.on('internal/i18n', update) + }) } diff --git a/plugins/logger/package.json b/plugins/logger/package.json index 65b4e64d..389cd378 100644 --- a/plugins/logger/package.json +++ b/plugins/logger/package.json @@ -45,8 +45,8 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "peerDependenciesMeta": { "@koishijs/plugin-console": { @@ -54,12 +54,12 @@ } }, "devDependencies": { - "@koishijs/client": "^5.28.0", + "@koishijs/client": "^5.29.1", "ansi_up": "^5.2.1", - "koishi": "^4.17.1", + "koishi": "^4.17.8", "reggol": "^1.6.3" }, "dependencies": { - "@koishijs/console": "^5.28.0" + "@koishijs/console": "^5.29.1" } } diff --git a/plugins/market/package.json b/plugins/market/package.json index 3b6c7509..377f8771 100644 --- a/plugins/market/package.json +++ b/plugins/market/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-market", "description": "Manage your bots and plugins with console", - "version": "2.11.1", + "version": "2.11.2", "main": "lib/node/index.js", "types": "lib/index.d.ts", "exports": { @@ -59,8 +59,8 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "peerDependenciesMeta": { "@koishijs/plugin-console": { @@ -68,19 +68,20 @@ } }, "devDependencies": { - "@koishijs/client": "^5.28.0", + "@koishijs/client": "^5.29.1", "@koishijs/market": "^4.2.5", - "@koishijs/plugin-config": "^2.8.4", - "@types/semver": "^7.5.6", + "@koishijs/plugin-config": "^2.8.5", + "@types/semver": "^7.5.8", "@types/which-pm-runs": "^1.0.2" }, "dependencies": { - "@koishijs/console": "^5.28.0", + "@koishijs/console": "^5.29.1", "@koishijs/registry": "^7.0.3", "execa": "^5.1.1", "get-registry": "^1.1.0", "ns-require": "^1.1.4", - "semver": "^7.5.4", + "p-map": "^4.0.0", + "semver": "^7.6.0", "which-pm-runs": "^1.1.0" } } diff --git a/plugins/notifier/package.json b/plugins/notifier/package.json index 9bb456a9..9b1ed919 100644 --- a/plugins/notifier/package.json +++ b/plugins/notifier/package.json @@ -53,11 +53,11 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "devDependencies": { - "@koishijs/client": "^5.28.0", - "@koishijs/plugin-config": "^2.8.4" + "@koishijs/client": "^5.29.1", + "@koishijs/plugin-config": "^2.8.5" } } diff --git a/plugins/oobe/package.json b/plugins/oobe/package.json index b64569e7..60b7c014 100644 --- a/plugins/oobe/package.json +++ b/plugins/oobe/package.json @@ -53,13 +53,13 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "devDependencies": { - "@koishijs/client": "^5.28.0" + "@koishijs/client": "^5.29.1" }, "dependencies": { - "@koishijs/console": "^5.28.0" + "@koishijs/console": "^5.29.1" } } diff --git a/plugins/sandbox/package.json b/plugins/sandbox/package.json index 67f8f4a8..2dfad7e9 100644 --- a/plugins/sandbox/package.json +++ b/plugins/sandbox/package.json @@ -1,7 +1,7 @@ { "name": "@koishijs/plugin-sandbox", "description": "Test Your Virtual Bot in Console", - "version": "3.2.4", + "version": "3.3.1", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ @@ -52,16 +52,16 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "devDependencies": { - "@koishijs/assets": "^1.0.4", - "@koishijs/client": "^5.28.0", - "@koishijs/plugin-console": "^5.28.3", - "@satorijs/components-vue": "^0.7.0" + "@koishijs/assets": "^1.1.2", + "@koishijs/client": "^5.29.1", + "@koishijs/plugin-console": "^5.29.1", + "@satorijs/components-vue": "^0.7.2" }, "dependencies": { - "@koishijs/console": "^5.28.3" + "@koishijs/console": "^5.29.1" } } diff --git a/plugins/status/package.json b/plugins/status/package.json index 50116042..e5b335f9 100644 --- a/plugins/status/package.json +++ b/plugins/status/package.json @@ -41,19 +41,19 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.28.0", - "koishi": "^4.17.1" + "@koishijs/plugin-console": "^5.29.1", + "koishi": "^4.17.8" }, "devDependencies": { - "@koishijs/client": "^5.28.0", + "@koishijs/client": "^5.29.1", "@koishijs/plugin-analytics": "^2.0.6", - "@koishijs/plugin-config": "^2.8.4", + "@koishijs/plugin-config": "^2.8.5", "@types/envinfo": "^7.8.3", - "koishi": "^4.17.1" + "koishi": "^4.17.8" }, "dependencies": { - "@koishijs/console": "^5.28.0", - "envinfo": "^7.11.0", + "@koishijs/console": "^5.29.1", + "envinfo": "^7.11.1", "which-pm-runs": "^1.1.0" } } diff --git a/tsconfig.base.json b/tsconfig.base.json index 9690b617..0415401c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "es2022", - "module": "commonjs", + "module": "esnext", "sourceMap": true, "declaration": true, "emitDeclarationOnly": true, @@ -9,7 +9,7 @@ "incremental": true, "skipLibCheck": true, "esModuleInterop": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "strictBindCallApply": true, "types": [ "yml-register/types",