koishi-plugin-market-next 3.4.7 → 3.4.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,16 @@
2
2
 
3
3
  本文件记录 `koishi-plugin-market-next` 已发布到 npm 的版本差异。
4
4
 
5
+ ## 3.4.9
6
+
7
+ - CI 增加发布包内容断言,要求构建产物和 dry-run tarball 同时包含 `dist/index.css` 与 `dist/style.css`,并检查两份 CSS 内容一致。
8
+ - 安装插件成功后由后端自动创建默认的停用配置节点,使新插件能出现在“插件配置”页面;前端保留等待同步与兜底创建逻辑。
9
+
10
+ ## 3.4.8
11
+
12
+ - 修复 3.4.3 起构建链路升级后只产出 `dist/index.css`,但 Koishi Console 目录入口仍只自动加载 `dist/style.css`,导致市场页面 JS 正常但样式未加载、图标按 SVG 原始尺寸撑爆页面的问题。
13
+ - 构建产物同时保留 `dist/index.css` 与 `dist/style.css`,兼容 `KOISHI_BASE` 静态入口和常规插件目录入口。
14
+
5
15
  ## 3.4.7
6
16
 
7
17
  - 修复移动端 / 部分 WebView 下市场 SVG 图标没有正确继承 scoped CSS,导致筛选、搜索、关闭等图标按原始尺寸撑爆页面的问题。
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # koishi-plugin-market-next
2
2
 
3
- ![Version](https://img.shields.io/badge/version-3.4.7-blue)
3
+ ![Version](https://img.shields.io/badge/version-3.4.9-blue)
4
4
  ![Koishi](https://img.shields.io/badge/Koishi-%5E4.18.11-6f42c1)
5
5
  ![TypeScript](https://img.shields.io/badge/TypeScript-5.x-3178c6)
6
6
  ![License](https://img.shields.io/badge/license-AGPL--3.0-orange)
@@ -339,7 +339,7 @@ lib/ 后端与类型构建产物
339
339
 
340
340
  仓库内置两个 GitHub Actions workflows:
341
341
 
342
- - `.github/workflows/ci.yml`:普通 push 和 pull request 运行 `npm ci`、`npm run audit:package`、`npm run audit:high`、`npm run build` 和 `npm pack --dry-run`,只验证,不发布。
342
+ - `.github/workflows/ci.yml`:普通 push 和 pull request 运行 `npm ci`、`npm run audit:package`、`npm run audit:high`、`npm run build` 和 `npm run check:package`,只验证,不发布。
343
343
  - `.github/workflows/publish.yml`:`v*` tag 或手动触发时运行同样的校验,然后通过 npm Trusted Publishing 发布到 npm。
344
344
 
345
345
  首次使用前,需要在 npm 包设置里添加 Trusted Publisher:
@@ -352,13 +352,13 @@ lib/ 后端与类型构建产物
352
352
  发布新版本时先提交 `package.json`、`README.md`、`CHANGELOG.md` 等版本变更,再推送匹配版本号的 tag:
353
353
 
354
354
  ```bash
355
- git tag v3.4.7
356
- git push origin v3.4.7
355
+ git tag v3.4.9
356
+ git push origin v3.4.9
357
357
  ```
358
358
 
359
359
  也可以在 GitHub Actions 页面手动运行 `Publish to npm`,但输入版本必须与 `package.json` 一致,并且只能从默认分支触发。workflow 会先检查 npm 上是否已经存在同版本,存在则直接失败,避免覆盖发布。
360
360
 
361
- 当前安全策略分两层:`npm run audit:package` 要求插件自身发布依赖树没有已知漏洞;`npm run audit:high` 要求完整安装树没有高危或严重漏洞。完整 `npm audit` 中剩余的中危来自 Koishi peer runtime 的 Cordis / `file-type` 链路,npm 给出的修复路径会降级 Koishi 或跨 Cordis 主版本,因此不强行处理,避免为了 audit 破坏插件兼容性。
361
+ 当前安全策略分两层:`npm run audit:package` 要求插件自身发布依赖树没有已知漏洞;`npm run audit:high` 要求完整安装树没有高危或严重漏洞。`npm run check:package` 会检查发布包里是否包含 Console 所需的 `dist/index.js`、`dist/index.css` 和 `dist/style.css`,并确认两份 CSS 内容一致。完整 `npm audit` 中剩余的中危来自 Koishi peer runtime 的 Cordis / `file-type` 链路,npm 给出的修复路径会降级 Koishi 或跨 Cordis 主版本,因此不强行处理,避免为了 audit 破坏插件兼容性。
362
362
 
363
363
  ## 发布包内容
364
364
 
@@ -367,11 +367,22 @@ git push origin v3.4.7
367
367
  - `lib`
368
368
  - `dist`
369
369
  - `src`
370
+ - `scripts`
370
371
 
371
372
  同时 npm 会自动包含 `package.json`、`README.md` 和许可证信息。
372
373
 
373
374
  ## 版本更新
374
375
 
376
+ ### 3.4.9
377
+
378
+ - CI 增加发布包内容断言,要求构建产物和 dry-run tarball 同时包含 `dist/index.css` 与 `dist/style.css`,并检查两份 CSS 内容一致。
379
+ - 安装插件成功后由后端自动创建默认的停用配置节点,使新插件能出现在“插件配置”页面;前端保留等待同步与兜底创建逻辑。
380
+
381
+ ### 3.4.8
382
+
383
+ - 修复 3.4.3 起构建链路升级后只产出 `dist/index.css`,但 Koishi Console 目录入口仍只自动加载 `dist/style.css`,导致市场页面 JS 正常但样式未加载、图标按 SVG 原始尺寸撑爆页面的问题。
384
+ - 构建产物同时保留 `dist/index.css` 与 `dist/style.css`,兼容 `KOISHI_BASE` 静态入口和常规插件目录入口。
385
+
375
386
  ### 3.4.7
376
387
 
377
388
  - 修复移动端 / 部分 WebView 下市场 SVG 图标没有正确继承 scoped CSS,导致筛选、搜索、关闭等图标按原始尺寸撑爆页面的问题。