dsh-mini-utility-dock 0.1.1 → 0.1.2
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 +4 -0
- package/CHANGELOG.md +4 -0
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/package.json +2 -1
package/CHANGELOG.en.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2 - 2026-09-06
|
|
4
|
+
|
|
5
|
+
- Fix the README `npm run dock:embed` examples: add the previously missing `dock:embed` script to `package.json` and switch the usage to `npm run dock:embed -- check|sync path/to/client.js` (npm argument passing needs the `--` separator, and the CLI takes `sync|check` subcommands, not `--check`). A new smoke test extracts the documented commands from both READMEs and runs them, preventing docs/script drift.
|
|
6
|
+
|
|
3
7
|
## 0.1.1 - 2026-09-04
|
|
4
8
|
|
|
5
9
|
- Normalize `label` in `register()`: a missing, blank, or non-string label falls back to `id`, so no item renders `aria-label="undefined"`.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2 - 2026-09-06
|
|
4
|
+
|
|
5
|
+
- 修正 README 的 `npm run dock:embed` 示例:补上 `package.json` 缺失的 `dock:embed` 脚本,用法改为 `npm run dock:embed -- check|sync path/to/client.js`(npm 传参需要 `--` 分隔符,CLI 接受 `sync|check` 子命令而非 `--check`)。新增从双语 README 提取命令逐条执行的 smoke test,防止文档与脚本漂移。
|
|
6
|
+
|
|
3
7
|
## 0.1.1 - 2026-09-04
|
|
4
8
|
|
|
5
9
|
- 归一化 `register()` 的 `label`:缺省、空白或非字符串的 `label` 回退为 `id`,避免渲染出 `aria-label="undefined"`。
|
package/README.en.md
CHANGED
|
@@ -14,8 +14,8 @@ Run `npx dsh-mini-utility-dock sync path/to/client.js` to embed the current frag
|
|
|
14
14
|
You can also embed from this repo's own script (it never hard-codes a consumer path; the target is passed by the caller):
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
|
-
npm run dock:embed --check path/to/client.js
|
|
18
|
-
npm run dock:embed path/to/client.js
|
|
17
|
+
npm run dock:embed -- check path/to/client.js # verify only, non-zero on drift
|
|
18
|
+
npm run dock:embed -- sync path/to/client.js # write between the markers
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
When registering, a missing, blank, or non-string `label` falls back to `id` as the accessible name, avoiding `aria-label="undefined"`.
|
package/README.md
CHANGED
|
@@ -23,8 +23,8 @@ npx dsh-mini-utility-dock check path/to/client.js
|
|
|
23
23
|
也可用本仓库脚本同步(不硬编码任何消费仓路径,目标由调用方传入):
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
npm run dock:embed --check path/to/client.js
|
|
27
|
-
npm run dock:embed path/to/client.js
|
|
26
|
+
npm run dock:embed -- check path/to/client.js # 仅校验,漂移时非零退出
|
|
27
|
+
npm run dock:embed -- sync path/to/client.js # 写入标记之间
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
注册时若 `label` 缺省、空白或非字符串,会回退为 `id` 作为可访问名称,避免 `aria-label="undefined"`。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mini-utility-dock",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Shared classic-script utility dock protocol for DSH plugins.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"CHANGELOG.en.md"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
+
"dock:embed": "node bin/dsh-mini-utility-dock.js",
|
|
19
20
|
"test": "node --test test/*.test.js"
|
|
20
21
|
},
|
|
21
22
|
"engines": {
|