Skip to content

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 22 Aug 10:57
· 3 commits to main since this release
v0.2.2
a3ec04f

修复

  • 启动告警:此前在 Go/CPU 组合超出 sonic 加速矩阵的环境(如 Go >1.26 或非
    amd64/arm64 构建)上,bytedance/sonic 的 ast 包会在进程启动时向 stderr 打印
    "WARNING: sonic/ast only supports …" 并回退 encoding/json——功能无损但每次运行
    首行都是告警。已整体移除 sonic(及 sonic/loader 间接依赖),JSON 编解码改用
    标准库 encoding/json:任何环境下启动输出都不再有任何第三方提示
  • 附带变化:NDJSON/JSON 输出中对象字段按字典序排列(encoding/json 行为),
    字段本身的语义不变

升级

  • xyz-go v0.2.4 → v0.3.1:接入其新 i18n 目录(langx),并把它与 oss 的语言检测
    对齐——xyz 框架内置文案(如"位置参数数量不符")现在同样双语:
    中文环境显示中文,OSS_LANG=en/LANG=en_US 等英文环境显示英文
  • 借 v0.3.1 顺带修复 v0.2.0 不一致清单第 2 条的"位置参数数量不符为库内中文文案"一项

v0.2.2 — drop the sonic startup warning; xyz-go v0.3.1 bilingual UI

Fix

  • Startup warning: on environments outside sonic's acceleration matrix
    (Go >1.26, or non-amd64/arm64 builds), bytedance/sonic's ast package printed
    "WARNING: sonic/ast only supports …" to stderr at init and fell back to
    encoding/json — harmless but noisy on every run. sonic (including the
    sonic/loader indirect dep) is now removed entirely; JSON encoding uses
    the standard library, so no third-party notice ever appears at startup
  • Side effect: JSON object fields are now rendered in alphabetical order
    (encoding/json behavior); field semantics are unchanged

Upgrade

  • xyz-go v0.2.4 → v0.3.1: wired its new i18n catalog (langx) to oss's language
    detection — framework messages (e.g. the positional-count error) are now
    bilingual too: Chinese on Chinese systems, English on
    OSS_LANG=en/LANG=en_US
  • This also closes the "framework Chinese-only message" note from the v0.2.0
    deviations list