Skip to content

Release v1.2.0#5

Closed
ruanun wants to merge 3 commits intomasterfrom
develop
Closed

Release v1.2.0#5
ruanun wants to merge 3 commits intomasterfrom
develop

Conversation

@ruanun
Copy link
Owner

@ruanun ruanun commented Nov 18, 2025

No description provided.

这是一个重大功能更新版本,包含全面的架构重构、功能增强、文档完善和配置热加载改进。

主要变更:

✨ 新增功能
- 后端:自适应数据收集、内存池管理、网络统计监控、网络计数器回绕保护
- 前端:国际化 (i18n) 支持、WebSocket/HTTP 双模式、Pinia 状态管理
- 基础设施:Docker 支持、CI/CD 自动化、GoReleaser 跨平台发布
- 测试:新增 3,700+ 行单元测试代码
- 配置热加载:支持动态更新 servers 配置,自动断开删除服务器的连接和清理状态

📦 架构重构
- 从 workspace 结构改为单仓库结构
- 统一代码到 internal/ 目录结构
- 新增 shared/ 共享模块(日志、配置、错误处理)

📝 文档完善
- 新增 14 个完整文档(API、架构、部署、开发、故障排查)
- 新增一键安装脚本(Linux/macOS/Windows)

🔧 工具链升级
- 迁移包管理器:npm → pnpm(性能提升、磁盘节省、依赖管理更严格)
- 更新所有文档、脚本、CI/CD 配置以使用 pnpm
- 修复 WebSocket 路径验证测试(保持向后兼容性)

🛡️ 代码质量与安全
- 修复 50+ 个 golangci-lint 检测的安全和代码质量问题
- 为 HTTP Server 添加超时配置,防止 Slowloris 攻击
- 修复 JSON 标签尾随空格导致的序列化问题
- 修复配置热重载功能失效的问题(使用指针解引用更新配置)
- 修复网络计数器回绕导致的错误值问题

🔄 配置热加载改进
- 新增 DashboardService.ReloadServers() 方法
- 自动识别并删除被移除的服务器
- 自动断开被删除服务器的 WebSocket 连接
- 自动清理被删除服务器的状态数据(serverStatusMap)
- 动态同步更新服务器配置 map
- 热加载行为与冷启动完全一致

详见 CHANGELOG.md
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

// time.Now().Unix() 返回的 int64 时间戳在正常情况下总是正数(自1970年以来的秒数)
// 因此转换为 uint64 是安全的
//nolint:gosec // G115: Unix时间戳转换为uint64是安全的,时间戳始终为正数
now := uint64(time.Now().Unix())

Check failure

Code scanning / gosec

integer overflow conversion int64 -> uint64 Error

integer overflow conversion int64 -> uint64
@ruanun ruanun closed this Nov 18, 2025
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