• v0.1.2 Stable

    b612 released this 2026-05-17 21:24:16 +08:00 | 0 commits to master since this release

    中文

    Fixed

    • 修复 TinyGo 编译到 wasm 时可能在 planet 包初始化阶段报 interp: unsupported fcmp 的问题。
    • planetViews 从包级初始化改为 sync.Once 懒加载,避免 TinyGo 在编译期解释大型 float64 星历表切片索引。
    • planet 内部视图构建改为返回 error,再由兼容层统一 panic,避免懒加载初始化失败后留下未初始化缓存。
    • 补充无效行星数据切片边界测试。

    English

    Fixed

    • Fixed a TinyGo wasm build failure that could report interp: unsupported fcmp during planet package initialization.
    • Changed planetViews from package-level eager initialization to sync.Once lazy initialization, avoiding TinyGo compile-time interpretation of large float64 ephemeris table slicing.
    • Changed internal planet-view construction to return error, with the compatibility layer still panicking on corrupted built-in data, avoiding an uninitialized cache after lazy initialization failure.
    • Added a test for invalid planet-data slice boundaries.
    Downloads