github komari-monitor/komari Snapshot-2610221415

latest release: Snapshot-2610221543
pre-release7 hours ago

主要更新内容

  • JS 运行时迁移至 moejs:将插件及 Node.js 兼容模块的底层引擎从 dop251/goja + goja_nodejs 替换为 Calcium-Ion/moejs,涉及 internal/plugin、pkg/jsruntime 下全部模块(buffer、child_process、console、crypto、events、fetch、fs、http、net、os、path、process 等),并新增 pkg/jsruntime/native、pkg/jsruntime/loop、pkg/jsruntime/buffer 包。
  • Ping 队列独立容量:ping 记录批处理队列从与 report 队列共享 512 容量改为独立的 4096 容量,避免高并发 ping 上报时阻塞常规指标写入。
  • 指标查询性能优化:legacy_records.go 中逐指标串行查询改为 SeriesBatch 批量查询,减少数据库往返次数;同时降低查询路径上的对象分配数量。
  • 代码简化:database/accounts、database/clients、database/tasks、internal/metricstore 等包移除冗余错误处理分支和 nil 检查,统一使用直接返回 .Error 的写法。

Bug修复

  • 修复 ping 队列容量不足导致高负载下 ping 记录丢失的问题(PR #695)。

其他

  • README(中英文)新增 MooProxy 赞助商条目。
  • .gitignore 新增 .gocache/ 忽略规则。
  • 移除 cmd/flags/config_test.go 和 internal/sqlitetune/connector_test.go 两个已过时的测试文件。
  • go.mod 更新:移除 goja 相关依赖,引入 moejs v0.1.0-alpha.9;stretchr/testify 升级至 v1.12.1。
  • internal/server/runtime.go 中过期通知定时任务函数名由 CheckExpireScheduledWork 改为 CheckExpire。

What's Changed

Commits

New Contributors

Full Changelog: 1.6.0...Snapshot-2610221415

Don't miss a new komari release

NewReleases is sending notifications on new releases.