Skip to content

Comments

Revert "chore: update plugin versions to 2.0.0-alpha.2 and adjust peer deps"#7053

Merged
chenjiahan merged 2 commits intomainfrom
revert_plugin_v2_0126
Jan 26, 2026
Merged

Revert "chore: update plugin versions to 2.0.0-alpha.2 and adjust peer deps"#7053
chenjiahan merged 2 commits intomainfrom
revert_plugin_v2_0126

Conversation

@chenjiahan
Copy link
Member

Summary

This reverts #7049 and #7051.

After testing, I concluded that releasing 2.0 version of all plugins would not be a good idea, as it would increase the installation and upgrade burden for users. Instead, I've decided to keep the plugin compatible with both Rsbuild v1 and v2, rather than introducing a new major release.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 26, 2026 08:45
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @chenjiahan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request reverts a previous set of changes that aimed to introduce a 2.0.0-alpha version for Rsbuild plugins and adjust their peer dependencies. The decision to revert was made after testing revealed that a new major release for plugins would create an unnecessary burden for users during installation and upgrades. Instead, the strategy is to maintain backward compatibility, allowing plugins to work seamlessly with both Rsbuild v1 and v2. This change simplifies the dependency management and upgrade path for users.

Highlights

  • Reversion of Plugin Versions: All Rsbuild plugins (e.g., @rsbuild/plugin-babel, @rsbuild/plugin-less) have their versions reverted from 2.0.0-alpha.3 (or similar alpha versions) back to their stable 1.x.x releases.
  • Broadened Core Compatibility: The peerDependencies for @rsbuild/core in all affected plugins are updated to ^1.0.0 || ^2.0.0-0, ensuring compatibility with both Rsbuild v1 and v2.
  • Documentation Streamlining: Upgrade guides and individual plugin installation instructions are simplified, removing references to separate v1 and v2 installation steps and the previous advice to upgrade plugins to v2.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts the decision to release 2.0 versions of all Rsbuild plugins (PRs #7049 and #7051). Instead of requiring users to upgrade plugins separately, the plugins will remain on 1.x versions but support both Rsbuild v1 and v2 through updated peerDependencies.

Changes:

  • Reverted plugin versions from 2.0.0-alpha.3 to their respective 1.x versions
  • Updated all plugin peerDependencies to support both Rsbuild v1 and v2: "^1.0.0 || ^2.0.0-0"
  • Simplified documentation to show single installation commands without version specifiers

Reviewed changes

Copilot reviewed 33 out of 34 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/plugin-babel/package.json Reverted version to 1.0.7 and updated peerDependencies
packages/plugin-less/package.json Reverted version to 1.5.1 and updated peerDependencies
packages/plugin-preact/package.json Reverted version to 1.7.1 and updated peerDependencies
packages/plugin-react/package.json Reverted version to 1.4.3 and updated peerDependencies
packages/plugin-sass/package.json Reverted version to 1.4.1 and updated peerDependencies
packages/plugin-solid/package.json Reverted version to 1.0.7 and updated peerDependencies
packages/plugin-stylus/package.json Reverted version to 1.2.1 and updated peerDependencies
packages/plugin-svelte/package.json Reverted version to 1.0.12 and updated peerDependencies
packages/plugin-svgr/package.json Reverted version to 1.2.4 and updated peerDependencies
packages/plugin-vue/package.json Reverted version to 1.2.3 and updated peerDependencies
packages/create-rsbuild/package.json Updated workspace dependencies for plugins
pnpm-lock.yaml Updated workspace dependency specifiers for consistency
website/docs/en/plugins/list/*.mdx Simplified installation instructions (10 files)
website/docs/zh/plugins/list/*.mdx Simplified installation instructions (10 files)
website/docs/en/guide/upgrade/v1-to-v2.mdx Removed plugin upgrade instructions
website/docs/zh/guide/upgrade/v1-to-v2.mdx Removed plugin upgrade instructions
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully reverts the plugin versions and adjusts peer dependencies to ensure compatibility with both Rsbuild v1 and v2. The changes align with the goal of reducing installation and upgrade burden for users, which is a positive outcome. The documentation updates accurately reflect these changes by simplifying installation instructions and removing the outdated upgrade guide sections for plugins. Overall, the changes are well-executed and consistent with the stated objective.

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