dsh-fonttune 0.2.6 → 0.2.7

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,18 +2,21 @@
2
2
 
3
3
  All notable changes to **dsh-fonttune** are documented here. Chinese version: [CHANGELOG.md](CHANGELOG.md).
4
4
 
5
+ ## [0.2.7] - 2026-09-24
6
+
7
+ ### Changed
8
+ - **DSH 0.1.7-rc.2 support**: it is a patch update of 0.1.7-rc.1 with the same settings service and configuration-card seats, so no code had to change; each item was verified in an isolated environment (host start, stylesheet applied, card expanded, a change written through), and the compatibility table lists 0.1.7-rc.2.
9
+
5
10
  ## [0.2.6] - 2026-09-24
6
11
 
7
12
  ### Fixed
8
- - **Opening "Font tune" still needed a second click before the settings appeared**: the official plugin page now treats opening that entry as the expansion gesture, while the card still carried a collapsible header of its own. The card now starts open on the entry page and on the package configuration page (the chevron still collapses it by hand).
9
- - **Dragging the UI no longer stutters (the sidebar and the conversation-list resize both showed it)**: the injected stylesheet made the browser match nearly two thousand elements against every rule on each style recalculation (about 15,000 matches), and a drag recalculates once per frame — hence the jank. Each axis now matches only the elements it actually needs (about 1,400): over a 50-step drag the measured recalculation time dropped from **1.5 s to 0.5 s**, frames over 25 ms from **49 to 0–2**, and the frame interval is back to **17 ms** (zero long tasks). The families, sizes, weights, line heights and the code axis (ligatures and feature switches included) look and read exactly as before.
10
-
11
- ### Added
12
- - **DSH 0.1.7-rc.1 support**: its settings interface differs from the 0.1.5-rc.x one, and the plugin now works with whichever the host actually provides. The families, the interface weight, the code axis and the configuration card were all verified on that line (the card lives in the Plugins page's "Font tune" entry, and is reachable from the `dsh-fonttune` package row as well).
13
+ - **Dragging the UI stuttered**: dragging the sidebar width, the conversation-list width and similar handles dropped frames (the injected stylesheet matched the whole page against every rule on each style recalculation). Each axis now matches only the elements it needs: dragging is smooth again, and the typography and the code axis look unchanged.
14
+ - **Opening "Font tune" on the Plugins page did not show the settings right away**: on 0.1.7 the page treats opening the entry as the expansion gesture, while the card carried a collapsible header of its own and asked for a second click. It now opens expanded, and the chevron still collapses it by hand.
13
15
 
14
16
  ### Changed
15
- - **The compatibility floor is now `0.1.5-rc.3`** (rc.1 / rc.2 are no longer claimed) and the compatibility table lists `0.1.7-rc.1`.
16
- - **The loader row id this package ships is now `dsh-fonttune`** (the settings namespace and the package name): from DSH 0.1.7 on, settings are keyed by that id, and the first start imports the old `settings.yaml` by matching section names against it — with a different id the saved families and weights stay behind in the backup file and the plugin looks as if it did nothing. With the matching id, moving from 0.1.5-rc.x to 0.1.7 needs no re-selecting. (The same id also lets the package be installed through the profile's `dsh.profile.bundles`: the plugin manager then shows it as running, and the configuration page stays reachable.)
17
+ - **DSH 0.1.7-rc.1 support**: it is the 0.1.7 interface on the rc channel, sharing the settings service and the configuration-card seats with 0.1.7-alpha.x, so no code had to change; each item was verified in an isolated environment (host start, stylesheet applied, card open and close, a change written through).
18
+ - **The declared compatibility floor is now 0.1.5-rc.3**: 0.1.5-rc.1 and 0.1.5-rc.2 are no longer claimed (`engines.dsh` tightened to match), and the README compatibility table follows.
19
+ - **The loader row id matches the settings namespace** (`fonttune` → `dsh-fonttune`): from DSH 0.1.7 on, settings are addressed by entry id, and a name that differs from the namespace the plugin registers leaves the saved families and weights in the imported file, unread (which shows up as "the plugin does nothing"). With the matching id the package can also be installed through the profile's `dsh.profile.bundles`.
17
20
 
18
21
  ## [0.2.5] - 2026-09-23
19
22
 
package/CHANGELOG.md CHANGED
@@ -2,18 +2,21 @@
2
2
 
3
3
  **dsh-fonttune** 的重要变更都记录在这里。英文版见 [CHANGELOG.en.md](CHANGELOG.en.md)。
4
4
 
5
+ ## [0.2.7] - 2026-09-24
6
+
7
+ ### 变更
8
+ - **支持 DSH 0.1.7-rc.2**:它是 0.1.7-rc.1 的补丁更新,设置服务与配置卡片槽位不变,代码无需改动;隔离环境里逐项实测通过(宿主启动、样式生效、卡片展开、改动写入),兼容表补上 0.1.7-rc.2。
9
+
5
10
  ## [0.2.6] - 2026-09-24
6
11
 
7
12
  ### 修复
8
- - **点进「字体增强」还要再点一次才看得到设置**:官方插件页现在把「点进这个条目」本身当作展开的手势,插件卡片里却还留着一层自己的折叠头,于是要连点两次。现在在条目页与包配置页里,卡片一进来就是展开的(那枚箭头照旧可以手动收起)。
9
- - **界面拖动不再一顿一顿的(侧栏、拖宽对话列表都能感觉到)**:插件注入的样式表让浏览器每次重算样式都要把页面上近两千个元素逐个匹配一遍(约 1.5 万次),而拖动时每一帧都会重算一次,于是侧栏和拖拽明显卡顿。现在每个轴只匹配真正需要的那几个元素(约 1 400 次):实测 50 步拖动期间的重算耗时从 **1.5 秒降到 0.5 秒**,超过 25ms 的帧从 **49 个降到 0–2 个**,帧间隔回到 **17ms**(长任务 0);字体、字号、字重、行高、代码轴(含连字与特性开关)的观感与读数完全不变。
10
-
11
- ### 新增
12
- - **支持 DSH 0.1.7-rc.1**:它的设置接口与 0.1.5-rc.x 不同,插件在运行时按宿主实际提供的那一套工作。字体、界面字重、代码轴与配置卡片都在这条线上实测正常(卡片在侧栏「插件」页的「字体增强」条目里,也能从 `dsh-fonttune` 包行进入)。
13
+ - **拖动界面时出现卡顿**:拖动侧栏宽度、对话列表宽度这类操作都会掉帧(注入的样式表让每次样式重算都要匹配整页元素)。现在每个轴只匹配真正需要的元素,拖动恢复流畅,字体与代码轴的观感不变。
14
+ - **插件页里打开「字体增强」后设置没有直接展开**:0.1.7 的插件页把「点进条目」当作展开动作,卡片自带的折叠头因此要求再点一次。现在打开即为展开状态,箭头仍可手动收起。
13
15
 
14
16
  ### 变更
15
- - **兼容下限明确为 `0.1.5-rc.3`**(不再声明 rc.1 / rc.2),兼容表补上 `0.1.7-rc.1`。
16
- - **插件自带的 loader 行 id 改成 `dsh-fonttune`**(与设置命名空间、包名一致):DSH 0.1.7 起设置按这个 id 存档,并在首次启动时按**同名**把旧的 `settings.yaml` 搬过去——id 不一致,已保存的字体与字重就只能留在备份文件里,插件看起来「完全没生效」。改成同名之后,从 0.1.5-rc.x 升到 0.1.7 不需要重新选一遍。(同一个 id 也让插件可以写进 profile 的 `dsh.profile.bundles` 安装:插件管理页会把它显示为运行中,配置页照旧可达。)
17
+ - **支持 DSH 0.1.7-rc.1**:它是 0.1.7 那套接口搬到 rc 通道,与 0.1.7-alpha.x 共用同一套设置服务与配置卡片槽位,代码无需改动;隔离环境里逐项实测通过(宿主启动、样式生效、卡片开关、改动写入)。
18
+ - **声明的兼容下限收到 0.1.5-rc.3**:更早的 0.1.5-rc.1、0.1.5-rc.2 不再声明(`engines.dsh` 同步收紧),README 兼容表跟上。
19
+ - **加载行 id 与设置命名空间对齐**(`fonttune` → `dsh-fonttune`):DSH 0.1.7 起设置按入口 id 寻址,名字与插件注册的命名空间不一致时,已保存的字体与字重会留在导入文件里读不到(表现为插件完全没生效)。同名之后本插件也可以放进 profile 的 `dsh.profile.bundles`。
17
20
 
18
21
  ## [0.2.5] - 2026-09-23
19
22
 
package/README.en.md CHANGED
@@ -22,11 +22,12 @@
22
22
 
23
23
  ## Compatibility
24
24
 
25
- **One package serves three host lines** — 0.1.5-rc.3 (the floor), 0.1.7-alpha.1 / alpha.2 and 0.1.7-rc.1 — and the install is the same on any of them: all three were verified for "the settings card opens, the stylesheet really reaches the page, and a change made in the card is written through".
25
+ **One package serves three host lines** — 0.1.5-rc.3 (the floor), 0.1.7-alpha.1 / alpha.2 and 0.1.7-rc.1 / rc.2 — and the install is the same on any of them: all three were verified for "the settings card opens, the stylesheet really reaches the page, and a change made in the card is written through".
26
26
 
27
27
  | Plugin version | Supported DSH versions |
28
28
  | --- | --- |
29
- | **0.2.6** (latest) | 0.1.5-rc.3, 0.1.7-alpha.1 / alpha.2, 0.1.7-rc.1 |
29
+ | **0.2.7** (latest) | 0.1.5-rc.3, 0.1.7-alpha.1 / alpha.2, 0.1.7-rc.1 / rc.2 |
30
+ | 0.2.6 | 0.1.5-rc.3, 0.1.7-alpha.1 / alpha.2, 0.1.7-rc.1 |
30
31
  | 0.2.5 | 0.1.5-rc.1 / rc.2 / rc.3, 0.1.7-alpha.1 / alpha.2 |
31
32
  | 0.2.4 | 0.1.5-rc.1 / rc.2 / rc.3, 0.1.7-alpha.1 / alpha.2 |
32
33
  | 0.2.3 | 0.1.5-rc.2 |
package/README.md CHANGED
@@ -22,11 +22,12 @@
22
22
 
23
23
  ## 兼容性
24
24
 
25
- **一份包同时支持三条宿主线**——0.1.5-rc.3(下限)、0.1.7-alpha.1 / alpha.2、0.1.7-rc.1:安装方式与宿主线无关,三条线都验证过「设置卡片可用、样式真的作用到页面、卡片上的改动写得进去」。
25
+ **一份包同时支持三条宿主线**——0.1.5-rc.3(下限)、0.1.7-alpha.1 / alpha.2、0.1.7-rc.1 / rc.2:安装方式与宿主线无关,三条线都验证过「设置卡片可用、样式真的作用到页面、卡片上的改动写得进去」。
26
26
 
27
27
  | 插件版本 | 支持的 DSH 版本 |
28
28
  | --- | --- |
29
- | **0.2.6**(最新) | 0.1.5-rc.3、0.1.7-alpha.1 / alpha.2、0.1.7-rc.1 |
29
+ | **0.2.7**(最新) | 0.1.5-rc.3、0.1.7-alpha.1 / alpha.2、0.1.7-rc.1 / rc.2 |
30
+ | 0.2.6 | 0.1.5-rc.3、0.1.7-alpha.1 / alpha.2、0.1.7-rc.1 |
30
31
  | 0.2.5 | 0.1.5-rc.1 / rc.2 / rc.3、0.1.7-alpha.1 / alpha.2 |
31
32
  | 0.2.4 | 0.1.5-rc.1 / rc.2 / rc.3、0.1.7-alpha.1 / alpha.2 |
32
33
  | 0.2.3 | 0.1.5-rc.2 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-fonttune",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Font plugin for the DeepSeek Harness Web GUI: the conversation gets its own font, size, line height and weight, the interface font and weight follow it, code keeps its own axis with ligature control, and whole setups save as presets.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -33,7 +33,8 @@
33
33
  "0.1.5-rc.3": "compatible",
34
34
  "0.1.7-alpha.1": "compatible",
35
35
  "0.1.7-alpha.2": "compatible",
36
- "0.1.7-rc.1": "compatible"
36
+ "0.1.7-rc.1": "compatible",
37
+ "0.1.7-rc.2": "compatible"
37
38
  }
38
39
  }
39
40
  },