@nestim/koishi-plugin-qq-group-manager 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  本文件记录所有值得注意的变更。版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
+ ## 1.2.9
6
+
7
+ ### 变更
8
+
9
+ - **移除 `puppeteer` 可选依赖**:插件自 1.0.0 起就是纯文本菜单,代码里没有任何浏览器调用,
10
+ 但 `inject.optional` 里一直留着 `puppeteer`,导致 Koishi 会连带加载 `koishi-plugin-puppeteer`
11
+ 及其 `puppeteer-core` / Chromium,白占内存。现已删除该声明。
12
+ - 升级后可以安全卸载 `koishi-plugin-puppeteer`(如果没有其他插件在用)。
13
+
5
14
  ## 1.2.8
6
15
 
7
16
  ### 修复
package/lib/index.d.ts CHANGED
@@ -1,8 +1,5 @@
1
1
  import { Context, Schema } from 'koishi';
2
2
  export declare const name = "nestim-qq-group-manager";
3
- export declare const inject: {
4
- optional: string[];
5
- };
6
3
  export declare const Config: Schema<Schemastery.ObjectS<{
7
4
  command: Schema<string, string>;
8
5
  cmdMute: Schema<string, string>;
package/lib/index.js CHANGED
@@ -1,13 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Config = exports.inject = exports.name = void 0;
3
+ exports.Config = exports.name = void 0;
4
4
  exports.apply = apply;
5
5
  const koishi_1 = require("koishi");
6
6
  const service_1 = require("./service");
7
7
  exports.name = 'nestim-qq-group-manager';
8
- exports.inject = {
9
- optional: ['puppeteer'],
10
- };
11
8
  exports.Config = koishi_1.Schema.intersect([
12
9
  koishi_1.Schema.object({
13
10
  command: koishi_1.Schema.string().default('[bot]').description('菜单指令:单独发送该前缀即返回命令菜单(菜单内容仅英文与数字)。'),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nestim/koishi-plugin-qq-group-manager",
3
3
  "description": "Koishi QQ群管理插件(OneBot/LLOneBot):群管命令、权限校验、图片菜单、状态卡片、复读、AI群聊回复、记忆库、识图与自动管控(禁言/踢人)。",
4
- "version": "1.2.8",
4
+ "version": "1.2.9",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
package/src/index.ts CHANGED
@@ -2,9 +2,6 @@ import { Context, Schema } from 'koishi';
2
2
  import { QQGroupManagerService } from './service';
3
3
 
4
4
  export const name = 'nestim-qq-group-manager';
5
- export const inject = {
6
- optional: ['puppeteer'],
7
- };
8
5
  export const Config = Schema.intersect([
9
6
  Schema.object({
10
7
  command: Schema.string().default('[bot]').description('菜单指令:单独发送该前缀即返回命令菜单(菜单内容仅英文与数字)。'),