@dingpenghui/dsh-conversation-language 3.2.3 → 3.2.4

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.
@@ -0,0 +1,19 @@
1
+ # 发布说明 v3.2.4
2
+
3
+ **日期:** 2026-10-03
4
+
5
+ ## 修复 / Fixes
6
+
7
+ - **依赖模型重构**:`@deepseek-ai/schemastery` 和 `react` 从运行时 `dependencies` 移到 `peerDependencies`(`schemastery` 标 `optional`),仅保留 `@deepseek-ai/cordis` 作为必选 peer。
8
+ - 根因:本插件是 DSH 宿主扩展,运行时在宿主进程内执行。宿主已经把 `schemastery` 加载进同一进程作为宿主模块。本插件若再以 `dependencies` 携带同版本包,pnpm 会在插件树里**再实例化一份**,与宿主单实例不一致。
9
+ - 影响:插件自身代码行为不变,只改变了"谁提供这些包"——现在统一由 DSH 宿主提供,单实例。
10
+ - **`react` 保持为 devDependency**:客户端 bundle 在构建时内嵌 `react` 代码(`tsdown.config.ts` 的 `CLIENT_EXTERNALS` 不含 `react`),不需要宿主提供 `react` 实例,因此不移到 peer。
11
+
12
+ ## 不变 / Unchanged
13
+
14
+ - `dsh-tools` / `dsh-system-prompt` / `dsh-settings` 等宿主模块仍是 `peerDependencies`(`^0.2.0-rc.1` 匹配宿主 0.2.0-rc.2,宿主提供单实例)。
15
+ - 斜杠命令 `/language`、详情页开关、宿主轮询同步全部保持不变。
16
+
17
+ ## 升级指引 / Upgrade
18
+
19
+ - 从 3.2.3 升到 3.2.4 无 breaking change,直接 `pnpm update @dingpenghui/dsh-conversation-language` 即可。
package/lib/client.js CHANGED
@@ -89,11 +89,11 @@ window.__ModuleLoader__.load({
89
89
  }
90
90
  var PluginDetailPage_module_css_default = {
91
91
  "field": "hZ1jBa_field",
92
- "hint": "hZ1jBa_hint",
93
- "control": "hZ1jBa_control",
94
- "title": "hZ1jBa_title",
92
+ "page": "hZ1jBa_page",
95
93
  "fieldText": "hZ1jBa_fieldText",
96
- "page": "hZ1jBa_page"
94
+ "title": "hZ1jBa_title",
95
+ "hint": "hZ1jBa_hint",
96
+ "control": "hZ1jBa_control"
97
97
  };
98
98
  //#endregion
99
99
  //#region src/client/plugin-detail-page.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dingpenghui/dsh-conversation-language",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "description": "DSH plugin for switching conversation language between Chinese and English",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -39,6 +39,7 @@
39
39
  "src",
40
40
  "package.json",
41
41
  "README.md",
42
+ "RELEASE_NOTES_v3.2.4.md",
42
43
  "cordis.patch.yml"
43
44
  ],
44
45
  "exports": {
@@ -50,10 +51,7 @@
50
51
  "build": "tsdown",
51
52
  "dev": "tsdown --watch"
52
53
  },
53
- "dependencies": {
54
- "@deepseek-ai/schemastery": "^3.18.4",
55
- "react": "^18.2.0"
56
- },
54
+ "dependencies": {},
57
55
  "peerDependencies": {
58
56
  "@deepseek-ai/cordis": "^4.0.2",
59
57
  "@deepseek-ai/dsh-client-store": "^0.2.0-rc.1",
@@ -64,8 +62,14 @@
64
62
  "@deepseek-ai/dsh-settings": "^0.2.0-rc.1",
65
63
  "@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.1",
66
64
  "@deepseek-ai/dsh-tools": "^0.2.0-rc.1",
65
+ "@deepseek-ai/schemastery": "^3.18.4",
66
+ "react": "^18.2.0",
67
67
  "typescript": ">=5.0.0"
68
68
  },
69
+ "peerDependenciesMeta": {
70
+ "@deepseek-ai/schemastery": { "optional": true },
71
+ "react": { "optional": true }
72
+ },
69
73
  "publishConfig": {
70
74
  "access": "public"
71
75
  },