@dptech-corp/bohr-cli 2.6.3 → 2.6.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -14,12 +14,21 @@
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [2.6.4] - 2026-08-09
18
+
19
+ ### Added
20
+
21
+ - **发版门禁新增「CHANGELOG 已发布节不可变」检查**。2.6.3 发版曾把已发布的 `## [2.6.2]` 节标题直接改名成 `## [2.6.3]`——2.6.2 从变更史里消失、七条条目被错误归属,而 `verify-changelog.sh` 只断言「新版本节存在非空 + [Unreleased] 已清空」,改名恰好同时满足两条。新增 `scripts/verify-changelog-history.sh` 在 tag build 阶段以上一个正式 tag 为基线断言:基线里的每个版本节标题必须仍然存在;比基线更老的节逐字不变;基线自己那节的条目行允许搬进别的节(归属更正)但不允许消失。拿基线拿不到(克隆无 tag)且文件里有历史节时响亮失败,不 fail-open。
22
+ - **发版门禁新增「平台子包 pin 一致性」检查**。一次 bump 要手工同步 9 处版本号,其中主包 `optionalDependencies` 里六个平台子包的 pin 此前无任何检查——漏改任意一个,现行三项版本校验照样全绿,发出去就是「主包版本 X、该平台实装旧版二进制」的错位发布物。新增 `scripts/verify-package-pins.sh` 在 tag build 阶段逐个断言六个 pin == 主版本,且平台清单与发布循环一致(多出 CI 不发布的平台、或少一个平台,同样硬失败)。
23
+
17
24
  ## [2.6.3] - 2026-08-08
18
25
 
19
26
  ### Added
20
27
 
21
28
  - **npm 包新增 README,并公告存量用户升级路径**。npm 页面此前没有任何说明文字,而 2.6.2 修复的自更新缺陷有一个无法由代码解决的死角:2.6.1 及以下版本跑的是各自内置的旧更新器,`bohr update` 在这些版本上必然失败,修复永远送不到他们手里。README 置顶写明:存量用户需手动执行一次 `npm install -g @dptech-corp/bohr-cli@latest`,此后即可恢复 `bohr update` 自更新。同时附安装说明、快速开始与文档入口。
22
29
 
30
+ ## [2.6.2] - 2026-08-08
31
+
23
32
  ### Breaking
24
33
 
25
34
  - **`bohr image pull` 不再接受非 Bohrium registry 的镜像地址**。改前:地址改写是一句无校验的 `strings.Replace(addr, "registry.dp.tech", …)`,地址里没有这段就原样放行——于是 `bohr image pull ubuntu:22.04` 会先登录 Bohrium registry、再从 **Docker Hub** 把镜像拉下来,并报告成功;命令做的事和它的名字不是一回事。改后:只接受 `registry.dp.tech/`、`registry.bohrium.dp.tech/`、`registry-test.bohrium.dp.tech/` 开头的地址,其余返回 `VALIDATION_FAILED` 并在 `hint.command` 里给出对应的 `docker pull` 命令。调用方要怎么改:拉非 Bohrium 镜像直接用 `docker pull`,本命令只负责 Bohrium 镜像。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dptech-corp/bohr-cli",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "description": "CLI tool for Bohrium scientific computing platform",
5
5
  "bin": {
6
6
  "bohr": "run.js"
@@ -28,11 +28,11 @@
28
28
  "CHANGELOG.md"
29
29
  ],
30
30
  "optionalDependencies": {
31
- "@dptech-corp/bohr-cli-darwin-arm64": "2.6.3",
32
- "@dptech-corp/bohr-cli-darwin-amd64": "2.6.3",
33
- "@dptech-corp/bohr-cli-linux-amd64": "2.6.3",
34
- "@dptech-corp/bohr-cli-linux-arm64": "2.6.3",
35
- "@dptech-corp/bohr-cli-windows-amd64": "2.6.3",
36
- "@dptech-corp/bohr-cli-windows-arm64": "2.6.3"
31
+ "@dptech-corp/bohr-cli-darwin-arm64": "2.6.4",
32
+ "@dptech-corp/bohr-cli-darwin-amd64": "2.6.4",
33
+ "@dptech-corp/bohr-cli-linux-amd64": "2.6.4",
34
+ "@dptech-corp/bohr-cli-linux-arm64": "2.6.4",
35
+ "@dptech-corp/bohr-cli-windows-amd64": "2.6.4",
36
+ "@dptech-corp/bohr-cli-windows-arm64": "2.6.4"
37
37
  }
38
38
  }