github web-infra-dev/rsdoctor v2.0.0

3 hours ago

Rsdoctor 2.0 banner

🎉 See Announcing Rsdoctor 2.0 for more details

Highlights

Build analysis for agents

Agent CLI reads rsdoctor-data.json directly and returns structured data for step-by-step investigation. Rsdoctor 2.0 makes Agent CLI the recommended AI analysis workflow and adds compiler selection for multi-compiler reports.

Smaller and faster

Rsdoctor 2.0 reduces installation size from 25.5 MB to 11.1 MB and runtime dependencies from 83 to 18. In the published benchmarks, analysis time fell 57% compared with Rsdoctor 1.4. Watch-mode improvements reduced median HMR time by about 47%.

One report for every compiler

Rsdoctor automatically groups multi-compiler builds and detects child compilers. Switch between compiler results in the same report, or select a compiler in Agent CLI.

Improved bundle analysis

Tree Graph is smoother for large projects, while Treemap offers easier zooming and navigation. JavaScript asset filters and consistent size metrics help focus on the code that contributes to bundle size.

Breaking Changes

  • Runtime requirements: Rsdoctor 2.0 requires Node.js ^20.19.0 || >=22.12.0 and Rspack 2 or later. Rspack 1.x and webpack are no longer supported.
  • Packages and imports: Replace @rsdoctor/rspack-plugin with @rsdoctor/core. Several standalone packages have been consolidated or removed, and Rsdoctor 2.0 packages are ESM-only.
  • AI workflow: @rsdoctor/mcp-server and its MCP server workflow have been removed. Use Agent CLI with rsdoctor-data.json; it is not a drop-in MCP API replacement.
  • Configuration: The top-level mode, port, and brief options, plus output.compressData, supports.banner, and experiments.enableNativePlugin, have been removed. Migrate to the corresponding 2.0 options.
  • Deprecated APIs: Remaining deprecated APIs and options have been removed.

See the Rsdoctor 2.0 migration guide for replacement configuration and upgrade steps.

What's Changed

Breaking Changes 🍭

New Features 🎉

Performance 🚀

Bug Fixes 🐞

Refactor 🔨

Document 📖

Other Changes

New Contributors

Full Changelog: v1.6.5...b283966

Don't miss a new rsdoctor release

NewReleases is sending notifications on new releases.