Conversation
这是一个重大功能更新版本,包含全面的架构重构、功能增强、文档完善和配置热加载改进。 主要变更: ✨ 新增功能 - 后端:自适应数据收集、内存池管理、网络统计监控、网络计数器回绕保护 - 前端:国际化 (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
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.