fix: 收口依赖兼容与会话撤销
为 miniprogram-ci 和 Jimp 依赖增加兼容 patch 与 smoke test;修复平台模板管理员路由漏配;收紧模板契约校验;为 admin/customer 增加 token 撤销和集中会话存储;同步品牌切换角色、doctor source hash、多屏宽截图证据和 CI 构建门禁。
This commit is contained in:
1 parent
4f0b50c7f1
commit
3017e3eb49
65 files changed
+1623
-975
No files matched your search
@@ -6,6 +6,14 @@
|
||||
|
||||
`pnpm audit --prod --registry=https://registry.npmjs.org` 已从 84 条 advisory 降到 0 条未登记 advisory。可直接修复的传递依赖通过根 `pnpm.overrides` 升级到修复版本;`request` 已替换为维护 fork `@cypress/request@4.0.1`。
|
||||
|
||||
对与 override 存在运行时 API 差异的依赖,使用 `patches/miniprogram-ci@2.1.31.patch` 和 `patches/@jimp/core@0.16.13.patch` 做兼容适配:
|
||||
|
||||
- `uuid/v4` 改为读取 `uuid.v4`;
|
||||
- `miniprogram-ci` 的 `image-size` 读取新的 `imageSize` 命名导出;
|
||||
- `@jimp/core` 改用 `file-type` 的新 `fileTypeFromBuffer` API。
|
||||
|
||||
`apps/api/test/miniprogram-ci-compatibility.test.ts` 会用真实 PNG 覆盖 `miniprogram-ci` 模块加载、`uuid`、`image-size` 和 `Jimp.read`。
|
||||
|
||||
## 已执行的兼容性验证
|
||||
|
||||
- `pnpm --filter @personal-brand/api test`
|
||||
|
||||
Reference in new issue
Block a user