diff --git a/.changeset/connection-health.md b/.changeset/connection-health.md deleted file mode 100644 index fa50832..0000000 --- a/.changeset/connection-health.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"agent-react-devtools": minor ---- - -Show connection health in `status` and `get tree` - -- Show last connection event in `status` (e.g. "app reconnected 3s ago") -- Show contextual hint when `get tree` returns empty after a disconnect diff --git a/.changeset/consistent-formatters.md b/.changeset/consistent-formatters.md deleted file mode 100644 index 98ba025..0000000 --- a/.changeset/consistent-formatters.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"agent-react-devtools": minor ---- - -Standardize component reference format across all CLI output - -All formatters now produce consistent `@cN [type] Name` references. Previously, tree and search commands used `@c1 [fn] "Name"` while profiling commands omitted labels, type tags, or both. - -**Breaking changes to output format:** - -- Component names are no longer quoted: `@c1 [fn] App` instead of `@c1 [fn] "App"` -- Keys use `key=value` instead of `key="value"` -- Profiling commands (`profile slow`, `profile rerenders`, `profile stop`, `profile commit`) now include `@cN` labels and `[type]` tags -- `profile slow` and `profile rerenders` show all render causes instead of only the first -- `profile report` now includes a `[type]` tag in the header -- Column-aligned padding removed from profiling output in favor of consistent `formatRef` formatting diff --git a/.changeset/fix-vite-hmr.md b/.changeset/fix-vite-hmr.md deleted file mode 100644 index 0d40c66..0000000 --- a/.changeset/fix-vite-hmr.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"agent-react-devtools": patch ---- - -Fixed Vite HMR (hot module replacement) breaking when the `reactDevtools()` plugin is added to `vite.config.ts`. The connect module now preserves the react-refresh runtime's inject wrapper when replacing the devtools hook, so both Fast Refresh and devtools inspection work correctly. diff --git a/.changeset/surface-changed-keys.md b/.changeset/surface-changed-keys.md deleted file mode 100644 index c126df7..0000000 --- a/.changeset/surface-changed-keys.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"agent-react-devtools": minor ---- - -Surface specific changed prop/state/hook keys in profiling output - -Profiling reports and commit details now show *which* props, state keys, and hooks changed, not just *that* they changed. - -- `profile report` and `profile slow` append `changed: props: onClick, className state: count` lines -- `profile rerenders` and `profile commit` include the same detail per component -- Keys are deduplicated across commits in aggregate reports -- Empty keys produce no extra output (backward-compatible) diff --git a/.changeset/wait-command.md b/.changeset/wait-command.md deleted file mode 100644 index 6b7a3e7..0000000 --- a/.changeset/wait-command.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"agent-react-devtools": minor ---- - -Add `wait` command - -- `wait --connected` — block until a React app connects -- `wait --component ` — block until a named component appears in the tree -- Both support `--timeout` (default 30s) and exit non-zero on timeout diff --git a/packages/agent-react-devtools/CHANGELOG.md b/packages/agent-react-devtools/CHANGELOG.md index 27b629c..74b3630 100644 --- a/packages/agent-react-devtools/CHANGELOG.md +++ b/packages/agent-react-devtools/CHANGELOG.md @@ -1,5 +1,46 @@ # agent-react-devtools +## 0.3.0 + +### Minor Changes + +- e9c8a60: Show connection health in `status` and `get tree` + + - Show last connection event in `status` (e.g. "app reconnected 3s ago") + - Show contextual hint when `get tree` returns empty after a disconnect + +- 20ce273: Standardize component reference format across all CLI output + + All formatters now produce consistent `@cN [type] Name` references. Previously, tree and search commands used `@c1 [fn] "Name"` while profiling commands omitted labels, type tags, or both. + + **Breaking changes to output format:** + + - Component names are no longer quoted: `@c1 [fn] App` instead of `@c1 [fn] "App"` + - Keys use `key=value` instead of `key="value"` + - Profiling commands (`profile slow`, `profile rerenders`, `profile stop`, `profile commit`) now include `@cN` labels and `[type]` tags + - `profile slow` and `profile rerenders` show all render causes instead of only the first + - `profile report` now includes a `[type]` tag in the header + - Column-aligned padding removed from profiling output in favor of consistent `formatRef` formatting + +- 05090ca: Surface specific changed prop/state/hook keys in profiling output + + Profiling reports and commit details now show _which_ props, state keys, and hooks changed, not just _that_ they changed. + + - `profile report` and `profile slow` append `changed: props: onClick, className state: count` lines + - `profile rerenders` and `profile commit` include the same detail per component + - Keys are deduplicated across commits in aggregate reports + - Empty keys produce no extra output (backward-compatible) + +- e9c8a60: Add `wait` command + + - `wait --connected` — block until a React app connects + - `wait --component ` — block until a named component appears in the tree + - Both support `--timeout` (default 30s) and exit non-zero on timeout + +### Patch Changes + +- 303f9e4: Fixed Vite HMR (hot module replacement) breaking when the `reactDevtools()` plugin is added to `vite.config.ts`. The connect module now preserves the react-refresh runtime's inject wrapper when replacing the devtools hook, so both Fast Refresh and devtools inspection work correctly. + ## 0.2.2 ### Patch Changes diff --git a/packages/agent-react-devtools/package.json b/packages/agent-react-devtools/package.json index be1184a..0ef1325 100644 --- a/packages/agent-react-devtools/package.json +++ b/packages/agent-react-devtools/package.json @@ -1,6 +1,6 @@ { "name": "agent-react-devtools", - "version": "0.2.2", + "version": "0.3.0", "description": "CLI tool for AI agents to inspect React component trees and profile performance", "type": "module", "bin": {