v0.4.0 is out (commit 84a5094, tag v0.4.0). This release adds three new categories — the toolbox is now 20 categories, still zero runtime dependencies:
- data transfer rate —
tbit/s…bit/s (decimal bits), tb/s…b/s (decimal bytes), tib/s…kib/s (binary bytes). The classic mix-up answered exactly: 100 Mbps = 12.5 MB/s. Disambiguation rule: mb/s = megabyte/s (following mb = megabyte in the data table); mbps / mbit/s = megabit/s.
- acceleration —
m/s2, g0 (standard gravity 9.80665 m/s²), ft/s2, mph/s. 1 g = 32.174049 ft/s², 60 mph/s = 26.8224 m/s². g stays the gram — gravity is g0 / gravity / g-force.
- illumination —
klx, lx (lux), fc (foot-candle, 1 fc = 10.76391 lx), ph (phot).
Also: the old data size / transfer category is now data size (sizes only) — rates live in the new category, so size↔rate conversion is correctly rejected as cross-category.
Why: LLM agents keep confusing bits with bytes in network speeds, mixing decimal and binary prefixes at the wrong layer, and treating g as both gram and gravity. Deterministic code beats mental math.
Numbers: 49 tests green, coverage 93.65%. All new anchors generated by an independent Python oracle before implementation.
Update:
dsh plugin --profile web add github:TYEclipse/dsh-units#v0.4.0
中文:v0.4.0 发布——新增数据传输速率(100 Mbps = 12.5 MB/s;mb/s=兆字节、mbps/mbit/s=兆比特)、加速度(g0 标准重力、g-force、ft/s2、mph/s)、照度(lux/klx/英尺烛光/辐透)三个类别,共 20 类;原「数据大小/传输」更名「数据大小」。零运行时依赖不变,49 测试全绿、覆盖率 93.65%。
v0.4.0 is out (commit 84a5094, tag v0.4.0). This release adds three new categories — the toolbox is now 20 categories, still zero runtime dependencies:
tbit/s…bit/s(decimal bits),tb/s…b/s(decimal bytes),tib/s…kib/s(binary bytes). The classic mix-up answered exactly: 100 Mbps = 12.5 MB/s. Disambiguation rule:mb/s= megabyte/s (followingmb= megabyte in the data table);mbps/mbit/s= megabit/s.m/s2,g0(standard gravity 9.80665 m/s²),ft/s2,mph/s. 1 g = 32.174049 ft/s², 60 mph/s = 26.8224 m/s².gstays the gram — gravity isg0/gravity/g-force.klx,lx(lux),fc(foot-candle, 1 fc = 10.76391 lx),ph(phot).Also: the old
data size / transfercategory is nowdata size(sizes only) — rates live in the new category, so size↔rate conversion is correctly rejected as cross-category.Why: LLM agents keep confusing bits with bytes in network speeds, mixing decimal and binary prefixes at the wrong layer, and treating
gas both gram and gravity. Deterministic code beats mental math.Numbers: 49 tests green, coverage 93.65%. All new anchors generated by an independent Python oracle before implementation.
Update:
中文:v0.4.0 发布——新增数据传输速率(100 Mbps = 12.5 MB/s;mb/s=兆字节、mbps/mbit/s=兆比特)、加速度(g0 标准重力、g-force、ft/s2、mph/s)、照度(lux/klx/英尺烛光/辐透)三个类别,共 20 类;原「数据大小/传输」更名「数据大小」。零运行时依赖不变,49 测试全绿、覆盖率 93.65%。