Skip to content

feat: add Rsdoctor v2 migration skill - #115

Merged
yifancong merged 4 commits into
rsdoctor-v2from
feat-rsdoctor-migrate-v2
Oct 15, 2026
Merged

yifancong merged 4 commits into
rsdoctor-v2from
feat-rsdoctor-migrate-v2

Conversation

@yifancong

@yifancong yifancong commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR adds a dedicated migration skill for projects moving from Rsdoctor 1.x to 2.0. It covers compatibility gates, package and ESM changes, configuration replacements, MCP-to-Agent CLI migration, and behavior-preserving validation.

TODO

  • After mergering, modify the description of the corresponding rsdoctor packages of rsdoctor-analysis

Related Links

https://rsdoctor.rs/guide/start/migration-v2

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b0e345ed7b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread skills/rsdoctor-migrate-v2/SKILL.md
@yifancong
yifancong marked this pull request as draft August 26, 2026 09:45
@yifancong
yifancong changed the base branch from main to rsdoctor-v2 October 13, 2026 08:59
@yifancong
yifancong marked this pull request as ready for review October 15, 2026 03:16
@yifancong
yifancong merged commit b6a3b9a into rsdoctor-v2 Oct 15, 2026
3 checks passed
@yifancong
yifancong deleted the feat-rsdoctor-migrate-v2 branch October 15, 2026 03:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T03:20:58.294519Z 5763e1a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5763e1af99

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

});
```

Both `features: { lite: true }` and `features: ['lite']` remain supported. Leave them unchanged unless the project benefits from expressing the equivalent behavior explicitly with `output.reportCodeType`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Migrate legacy lite feature settings

For projects using either legacy features.lite form, leaving the setting unchanged does not preserve behavior in Rsdoctor 2: the official configuration migration guide requires legacy lite mode/features to be replaced with an appropriate reportCodeType setting. Following this instruction can therefore fail configuration validation or revert to a full-code report, exposing source and reintroducing the memory problems that lite mode avoided.

Useful? React with 👍 / 👎.

```

Preflight every build command: `RSDOCTOR_OUTPUT=json` is allowed only in the `pluginVersion >= 1.5.11` branch. For missing, unknown, or `< 1.5.11`, it is forbidden. For `< 1.5.11`, generating `rsdoctor-data.json` requires the plugin config below:
For an Rspack 2.x project without a plugin, install a compatible `@rsdoctor/core` 2.x version; do not install `@rsdoctor/rspack-plugin`. For Rspack 1.x, keep the compatible 1.x plugin. If installed versions or bundler compatibility cannot be determined, stop before installing. Check the plugin import path only when the package versions and active configuration appear inconsistent.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Stop inferring the Rsdoctor major from the Rspack major

When ordinary bundle analysis finds an Rspack 2 project without a plugin, this rule unconditionally opts the project into Rsdoctor 2, even though Rsdoctor 1.x's published @rsdoctor/rspack-plugin manifest accepts Rspack independently of that major split and Rsdoctor 2 is currently distributed as a prerelease. A request to generate analysis data can therefore unexpectedly become a major/ESM migration; select the Rsdoctor major from an existing integration or explicit migration intent rather than from the Rspack major alone.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant