Repository navigation
fix: bump to 1.14.0 and fix resource leaks, capture edge cases and masking gaps - #111
Merged
Merged
Conversation
Reformat the 1.14.0 section as English top-level bullets with Chinese nested sub-bullets (no slash separator), and document the EN-primary/ZH-secondary convention in AGENTS.md so future releases stay consistent. 将 CHANGELOG 1.14.0 段落改为英文主条目 + 中文嵌套子条目(不使用斜杠分隔),并在 AGENTS.md 中固化英中双语格式约定,确保后续发版一致。
WebSocket frame body text now uses InspectorColors.textPrimary instead of default black on the dark card; the Auto-scroll and Request Matching switches use the mint-green accent (InspectorColors.accent) for thumb and track instead of the default purple Material theme. Documented under CHANGELOG 1.14.0. 网络详情页 WebSocket 帧正文改用 textPrimary(不再黑底黑字);自动滚动与 Request Matching 开关改用项目薄荷绿 accent(不再默认紫色)。已记入 1.14.0 变更日志。
The WS auto-scroll and Request Matching switches used the deprecated Switch.activeColor; switched to activeThumbColor (track already uses activeTrackColor) so flutter analyze reports no issues. WS 自动滚动与 Request Matching 开关改用已废弃的 activeColor,改为 activeThumbColor(track 仍用 activeTrackColor),消除 flutter analyze 的废弃告警。
The example app depends on the plugin via path; after the version bump to 1.14.0, lutter pub get in example/ refreshed the locked plugin version from 1.13.0 to 1.14.0. 示例工程以 path 方式依赖本插件,版本 bump 到 1.14.0 后,example 重新解析依赖把锁文件中的插件版本从 1.13.0 同步为 1.14.0。
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.
Summary / 摘要
Bumps the plugin to 1.14.0 and fixes a batch of resource-leak and correctness issues across the inspector (memory-leak tracking, WebSocket capture, Dio/HTTP capture, alert throttling, persistence init, route ids, sensitive-data masking). / 将插件升级至 1.14.0,修复检查器内一批资源泄漏与正确性问题(泄漏追踪、WebSocket 抓包、Dio/HTTP 抓包、告警节流、持久化初始化、路由 id、敏感数据脱敏)。
Changes / 变更
_trackedRecordsby priorityleaked > verifying > tracking > releasedto stop unbounded growth; guard the VM Service socket against concurrent reconnects; add a reentrancy guard to refresh. / 内存泄漏追踪:按leaked > verifying > tracking > released优先级级联淘汰封住无界增长;VM Service 连接加并发保护;刷新加重入守卫。Timer; de-duplicateWsInspectorServicedouble-close; restoreFlutterError.onErrorto null when originally null. / 资源泄漏:兜底Timer可取消;WsInspectorService重复 close 去重;FlutterError.onError原为空时正确恢复。source + rule.idso the 1s cooldown is no longer defeated by volatile numbers. / 告警节流 key 改为source + rule.id,避免含数值消息使 1s 冷却失效。PersistenceService.initserialized via_initFutureto avoid doubleopenDatabaseleaking the old handle. /PersistenceService.init用_initFuture串行化,避免重复打开数据库泄漏句柄。statusCode: -1placeholder on no-response; drain/cancelResponseBodyforstream; truncatebytesto the preview cap. / Dio 抓包:无响应以statusCode: -1占位;stream类型排空并关闭ResponseBody;bytes按预览上限截断。443/8443and forwards the realconnectionInfo. / 拦截规则"修改响应头"现已生效;HTTP client 除443/8443外也能识别 TLS 端口并转发真实connectionInfo。contentLengthafter gzip now reports the decompressed length. / gzip 解压后contentLength报告真实解压长度。environment.isInspectorEnabledhonors--dart-define=INSPECTOR_ENABLED=falseviaString.fromEnvironment. /environment.isInspectorEnabled用String.fromEnvironment正确识别--dart-define=INSPECTOR_ENABLED=false。ListQueue; WS body aggregation throttled to 10Hz; storage stats gained re-entrancy protection. / 性能:FPS 帧列表用ListQueue;WS body 汇总降频到 10Hz;存储统计加防重入。maxBodyPreviewBytesnow counts real bytes instead of UTF-16 chars. /maxBodyPreviewBytes改为真实字节计数。Context / 背景
These fixes address leaks and correctness gaps found during a full code review of the 1.14.0 cycle, so the inspector is safer to keep running in long sessions and on release / real devices. / 这些修复源自 1.14.0 周期内的全量代码审查,解决泄漏与正确性问题,使检查器在长会话及 release/真机下更可靠。
Checklist / 检查项
Test plan
flutter analyzeclean /flutter analyze无报错flutter testgreen /flutter test全绿🤖 Generated with Zero Buddy