Skip to content

docs(release): finalize the 2026.7.27.0 notes - #411

Merged
Sunrisepeak merged 1 commit into
release/0.4.70from
docs/release-2026-7-27
Jul 26, 2026
Merged

Sunrisepeak merged 1 commit into
release/0.4.70from
docs/release-2026-7-27

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

纯文档。把发布说明对齐到最终的日期式版本标识。

版本标识

x.y.z 停用,改为 2026.7.27.0(年.月.日.当日序号,月日不补零)。

早先的文档版本保留了 semver 作为"机器可读版本"、日期仅作标签,理由是担心老客户端无法比较。查证后该顾虑不成立,已改为日期即版本:

self update = install xlings@latest + use xlings latest
                                       ↓ version_key_greater 按 . 分段数值比较
[2026,7,27,0] vs [0,4,68]  →  首段 2026 > 0  ⇒  日期式恒大于任何 0.x

单元测试 XvmDateVersioning 对真实比较器断言,覆盖 0.4.68 / 0.4.69 / 0.4.70 / 1.2.3。

不补零的真正理由(写测试时才发现)

比较器在各段数值全等时会退到字符串 tiebreak 以保持全序(sort 要求)。所以:

2026.07.27.0 和 2026.7.27.0 不是一个键的两种写法,是两个数值相等、靠字节排序的不同键。库里同时存在两者,latest 解析到哪个取决于字符串比较。

比原先文档里"观感一致"的理由硬得多。测试钉住了这一点。

另外

用户可见变化表加上 type = "files" 资产声明。

Version identity is the date alone; `x.y.z` is retired rather than kept
alongside as a machine-readable form. The note now carries the verification
instead of the earlier worry: `version_key_greater` compares components
numerically, so [2026,7,27,0] beats [0,4,68] on the first one and every
released client sees the upgrade. A unit test pins it against the real
comparator.

It also records the reason leading zeros are forbidden, which only surfaced
while writing that test: when every component ties the comparator falls back
to a lexicographic tiebreak to keep the order total, so the two spellings are
two distinct keys rather than one -- and `latest` between them would be
decided by string bytes.

Adds `type = "files"` to the user-visible list.
@Sunrisepeak
Sunrisepeak merged commit 87a1593 into release/0.4.70 Jul 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant