dsh-unitverse 1.1.3 → 1.1.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.
package/CHANGELOG.en.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  This project follows [Semantic Versioning](https://semver.org/). Chinese version: [CHANGELOG.md](CHANGELOG.md).
4
4
 
5
+ ## [1.1.4] - 2026-10-19
6
+
7
+ ### Fixed
8
+
9
+ - **Host-requirement verdicts on a `0.2.1-rc.2` host**: the five `@deepseek-ai/dsh-*` peer ranges used to read `^0.1.0-rc.6 || ^0.2.0-rc.1`. The **market verdict** (dshmarket's `deriveHostCompatibility`, which uses `includePrerelease`) called that compatible, but **strict semver** (the profile health check and dsh's own install gate use node-semver with the same bounds) does **not** match `0.2.1-rc.2`: a prerelease only satisfies a range that names a prerelease on the **same `major.minor.patch`**, and `^0.2.0-rc.1` names the `0.2.0` tuple, so it cannot reach `0.2.1-rc.2`. The same machine therefore showed "market says compatible, health check / gate says mismatch".
10
+ - Fix: the five `@deepseek-ai/dsh-*` peers now read **`^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1`** (the last branch must start at `alpha` to cover all of `0.2.1`'s alpha/rc releases at once; `^0.2.1-rc.1` would miss `0.2.1-alpha.x`, and `>=0.1.0-rc.6 <0.3.0` misses nearly every prerelease under strict semver).
11
+
12
+ ### Tests & verification
13
+
14
+ - **Range matrix** (dshmarket's `satisfiesRange`, run in both strict and `includePrerelease` modes): `0.1.0-rc.6/rc.7/rc.8`, `0.1.1-rc.1/rc.2`, `0.2.0-rc.1/rc.2`, `0.2.1-alpha.4/rc.1/rc.2`, `0.2.1`, `0.2.2` **all pass (✓ strict and loose)**; `0.3.0` is correctly excluded.
15
+ - **Measured against the real host**: this machine's Desktop app is **0.2.1-rc.2** (`dsh` / `dsh-base` / `dsh-web-app` / `dsh-desktop-host` / `dsh-tools` / `dsh-client-locale` / `dsh-client-ui-conversation` all `0.2.1-rc.2` in `app.asar`). Running the dependency-install verdict with the real host package inventory (**381 `@deepseek-ai/*` packages**) gives `status=compatible`, `requirement` = the new range, `crossesImplicitCeiling=false`.
16
+ - **The client half is unaffected**: `lib/client.js` only requires `react` and `react/jsx-runtime`; at runtime it consumes host capabilities through `ctx.slots` / `ctx.locale` (the client module declares `inject: ["slots","locale"]`). Host `0.2.1-rc.2` still provides `dsh-client-ui-slots` (79 `"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2"` dependency declarations inside its asar).
17
+ - Note: `@deepseek-ai/dsh-client-runtime` is no longer a standalone package in the 0.2.1-rc.2 desktop build (the frontend ships a bundled `client-runtime`), so that peer entry is skipped by the compatibility derivation (not in the host package inventory); it is kept for older hosts that still publish it separately.
18
+
19
+ ### Release
20
+
21
+ - npm: `dsh-unitverse@1.1.4`
22
+ - GitHub: https://github.com/runcat-tommy/dsh-unitverse
23
+
5
24
  ## [1.1.3] - 2026-10-16
6
25
 
7
26
  ### Docs
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  本项目遵循[语义化版本](https://semver.org/lang/zh-CN/)。英文版见 [CHANGELOG.en.md](CHANGELOG.en.md)。
4
4
 
5
+ ## [1.1.4] - 2026-10-19
6
+
7
+ ### 修复
8
+
9
+ - **在 `0.2.1-rc.2` 宿主上的宿主要求判定**:此前 5 个 `@deepseek-ai/dsh-*` 的 peer 范围是 `^0.1.0-rc.6 || ^0.2.0-rc.1`。**市场判定**(dshmarket 的 `deriveHostCompatibility`,走 `includePrerelease`)对它判 compatible,但**严格 semver**(profile 体检与 dsh 自身的安装 gate 用 node-semver 的同一边界)**不匹配 `0.2.1-rc.2`**——预发布版只有在范围里出现**同一 `major.minor.patch` 的预发布**时才会被接受,`^0.2.0-rc.1` 声明的 tuple 是 `0.2.0`,覆盖不到 `0.2.1-rc.2`。于是同一台机器会出现"市场说兼容、体检/gate 说不匹配"的矛盾。
10
+ - 修复:5 个 `@deepseek-ai/dsh-*` peer 改为 **`^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1`**(最后一段用 `alpha` 起点,才能一次覆盖 `0.2.1` 的 alpha/rc 全部;若写 `^0.2.1-rc.1` 会漏掉 `0.2.1-alpha.x`,若写 `>=0.1.0-rc.6 <0.3.0` 则在严格语义下几乎漏掉所有预发布版)。
11
+
12
+ ### 测试与验证
13
+
14
+ - **范围矩阵**(用 dshmarket 的 `satisfiesRange`,严格与 `includePrerelease` 两种语义各跑一遍):`0.1.0-rc.6/rc.7/rc.8`、`0.1.1-rc.1/rc.2`、`0.2.0-rc.1/rc.2`、`0.2.1-alpha.4/rc.1/rc.2`、`0.2.1`、`0.2.2` **全部满足(严格/宽松皆 ✓)**;`0.3.0` 正确排除。
15
+ - **宿主实测**:本机 DSH 桌面端为 **0.2.1-rc.2**(`app.asar` 里 `dsh` / `dsh-base` / `dsh-web-app` / `dsh-desktop-host` / `dsh-tools` / `dsh-client-locale` / `dsh-client-ui-conversation` 全为 `0.2.1-rc.2`),依赖安装判定用真实宿主包清单(**381 个 `@deepseek-ai/*`**)→ `status=compatible`,`requirement` 即新范围,`crossesImplicitCeiling=false`。
16
+ - **client 半边不受影响**:`lib/client.js` 只 `require("react")` 与 `react/jsx-runtime`,运行时通过 `ctx.slots` / `ctx.locale` 取宿主能力(client 模块内部 `inject: ["slots","locale"]`);宿主 `0.2.1-rc.2` 仍提供 `dsh-client-ui-slots`(其 asar 内有 79 处 `"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2"` 的依赖声明)。
17
+ - 补充:`@deepseek-ai/dsh-client-runtime` 在 0.2.1-rc.2 的桌面端已不再是独立包(前端以 `client-runtime` bundle 形式内置),该 peer 条目在兼容判定中会被跳过(不在宿主包清单内);保留它是为了兼容仍单独发版该包的旧宿主。
18
+
19
+ ### 发布
20
+
21
+ - npm:`dsh-unitverse@1.1.4`
22
+ - GitHub:https://github.com/runcat-tommy/dsh-unitverse
23
+
5
24
  ## [1.1.3] - 2026-10-16
6
25
 
7
26
  ### 文档
package/README.en.md CHANGED
@@ -32,7 +32,8 @@ English UI — one independent module per category, listing only that category's
32
32
  in the session view bar; the panel is split into ten independent category
33
33
  modules (units are never mixed), and all copy — **unit names included** —
34
34
  follows the DSH zh/en UI language (since v0.1.0, requires the DSH Web GUI,
35
- 0.1.0-rc.6+ or 0.2.x)
35
+ 0.1.0-rc.6 and up, verified through 0.2.1-rc.2 — the whole 0.1.1-rc.x and
36
+ 0.2.x lines are covered)
36
37
 
37
38
  ## Supported categories and units
38
39
 
package/README.md CHANGED
@@ -32,7 +32,8 @@ English UI — one independent module per category, listing only that category's
32
32
  in the session view bar; the panel is split into ten independent category
33
33
  modules (units are never mixed), and all copy — **unit names included** —
34
34
  follows the DSH zh/en UI language (since v0.1.0, requires the DSH Web GUI,
35
- 0.1.0-rc.6+ or 0.2.x)
35
+ 0.1.0-rc.6 and up, verified through 0.2.1-rc.2 — the whole 0.1.1-rc.x and
36
+ 0.2.x lines are covered)
36
37
 
37
38
  ## Supported categories and units
38
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-unitverse",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "DSH plugin: universal unit conversion across length, area, volume, time, angle, speed, temperature, pressure, energy and power, with Chinese/English aliases. 单位换算 DSH 插件(长度/面积/体积/时间/角度/速度/温度/压力/热量/功率,支持中英文单位名)。",
5
5
  "keywords": [
6
6
  "dsh",
@@ -78,11 +78,11 @@
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@deepseek-ai/cordis": "*",
81
- "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6 || ^0.2.0-rc.1",
82
- "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.6 || ^0.2.0-rc.1",
83
- "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.6 || ^0.2.0-rc.1",
84
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6 || ^0.2.0-rc.1",
85
- "@deepseek-ai/dsh-tools": "^0.1.0-rc.6 || ^0.2.0-rc.1",
81
+ "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
82
+ "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
83
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
84
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
85
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.2.0-rc.1 || ^0.2.1-alpha.1",
86
86
  "react": "^18.2.0",
87
87
  "react-dom": "^18.2.0"
88
88
  },