Skip to content

fix: update peerDependencies to support Rsbuild v2#34

Merged
chenjiahan merged 1 commit intomainfrom
update_peers_0115
Jan 15, 2026
Merged

fix: update peerDependencies to support Rsbuild v2#34
chenjiahan merged 1 commit intomainfrom
update_peers_0115

Conversation

@chenjiahan
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings January 15, 2026 03:26
Copy link

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 updates the peerDependencies specification for @rsbuild/core to support both Rsbuild v1 and the upcoming v2, allowing users to use this plugin with either major version.

Changes:

  • Updated @rsbuild/core peerDependency from 1.x to ^1.0.0 || ^2.0.0-0 to support both v1 and v2 (including pre-release versions)

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

},
"peerDependencies": {
"@rsbuild/core": "1.x"
"@rsbuild/core": "^1.0.0 || ^2.0.0-0"
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

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

The version range ^2.0.0-0 is designed to include pre-release versions (e.g., 2.0.0-beta.1), but it will not include stable v2.x.y releases (e.g., 2.0.1, 2.1.0) due to how caret ranges work with pre-release versions. Consider using ^1.0.0 || >=2.0.0-0 or ^1.0.0 || ^2.0.0 to ensure all v2 stable releases are also included.

Suggested change
"@rsbuild/core": "^1.0.0 || ^2.0.0-0"
"@rsbuild/core": "^1.0.0 || >=2.0.0-0"

Copilot uses AI. Check for mistakes.
@chenjiahan chenjiahan merged commit e483f40 into main Jan 15, 2026
11 checks passed
@chenjiahan chenjiahan deleted the update_peers_0115 branch January 15, 2026 03:28
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.

2 participants