Skip to content

feat(react): add usage diff and benchmark coverage#107

Merged
async3619 merged 2 commits intodevfrom
async3619/react-tree-diff
Mar 28, 2026
Merged

feat(react): add usage diff and benchmark coverage#107
async3619 merged 2 commits intodevfrom
async3619/react-tree-diff

Conversation

@async3619
Copy link
Copy Markdown
Owner

Summary

  • Add Git-based React usage diff analysis with ASCII/JSON output support.
  • Add benchmark coverage for React diff, React file analysis, import graph building, and deps diff paths.
  • Expand tests and README coverage for the new diff mode and git buffer handling.

Related Issue

N/A

Validation

  • pnpm run check
  • Commits follow Conventional Commits
  • Branch name follows codex/issue-<number>-<slug>
  • This PR will be Squash Merged into dev

Notes

  • Verified with pnpm run typecheck, React/deps e2e tests, and targeted Vitest bench runs.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 28, 2026

Codecov Report

❌ Patch coverage is 49.04110% with 186 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.08%. Comparing base (2e97e90) to head (800f76d).
⚠️ Report is 5 commits behind head on dev.

Files with missing lines Patch % Lines
src/analyzers/react/diff.ts 50.73% 82 Missing and 52 partials ⚠️
src/output/ascii/react.ts 44.61% 24 Missing and 12 partials ⚠️
src/output/json/react.ts 55.00% 0 Missing and 9 partials ⚠️
src/commands/react.ts 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #107      +/-   ##
==========================================
- Coverage   68.79%   66.08%   -2.72%     
==========================================
  Files          38       39       +1     
  Lines        2221     2586     +365     
  Branches      714      857     +143     
==========================================
+ Hits         1528     1709     +181     
- Misses        408      520     +112     
- Partials      285      357      +72     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq
Copy link
Copy Markdown
Contributor

codspeed-hq bot commented Mar 28, 2026

Merging this PR will not alter performance

✅ 9 untouched benchmarks
🆕 9 new benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
🆕 component-only diff N/A 26.6 ms N/A
🆕 basic fixture N/A 2.4 ms N/A
🆕 full component and hook diff N/A 25.8 ms N/A
🆕 monorepo fixture N/A 1.2 ms N/A
🆕 styled entry with builtin tracking N/A 2.1 ms N/A
🆕 basic fixture without unused-import tracking N/A 2.2 ms N/A
🆕 manifest specifier change N/A 10.4 ms N/A
🆕 workspace source change N/A 15.1 ms N/A
🆕 AppShell symbol analysis N/A 489.3 µs N/A

Comparing async3619/react-tree-diff (800f76d) with dev (2e97e90)1

Open in CodSpeed

Footnotes

  1. No successful run was found on dev (97f2aae) during the generation of this report, so 2e97e90 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@async3619 async3619 merged commit 4ae9e65 into dev Mar 28, 2026
3 of 5 checks passed
@async3619 async3619 deleted the async3619/react-tree-diff branch March 28, 2026 05:53
github-actions bot pushed a commit that referenced this pull request Mar 28, 2026
## [1.2.0-dev.1](v1.1.1-dev.1...v1.2.0-dev.1) (2026-03-28)

### Features

* **react:** add usage diff and benchmark coverage ([#107](#107)) ([4ae9e65](4ae9e65))

### Bug Fixes

* **react:** resolve builtin elements from namespace-imported styled-components ([#110](#110)) ([2a76067](2a76067))

### Performance

* **react:** optimize git tree materialization for diff ([#109](#109)) ([b38bf71](b38bf71))
@async3619
Copy link
Copy Markdown
Owner Author

🎉 This PR is included in version 1.2.0-dev.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant