Skip to content

fix: update peerDependencies to support Rsbuild v2#47

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

fix: update peerDependencies to support Rsbuild v2#47
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:31
@chenjiahan chenjiahan merged commit 9930e1c into main Jan 15, 2026
11 checks passed
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 pull request updates the peer dependency specification for @rsbuild/core to support Rsbuild version 2.x in addition to the existing version 1.x support.

Changes:

  • Modified peerDependencies to accept both Rsbuild v1 (^1.0.0) and v2 prerelease versions (^2.0.0-0)

💡 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 allows any v2 prerelease versions (alpha, beta, rc) which may contain breaking changes. Consider using ^2.0.0 instead to only allow stable v2 releases, or if prerelease support is needed, add explicit testing against v2 prerelease versions to ensure compatibility.

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

Copilot uses AI. Check for mistakes.
},
"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.

There is no test coverage for Rsbuild v2 compatibility. The existing tests in test/basic/index.test.ts and other test directories only verify functionality with v1. Consider adding tests that verify the plugin works correctly with both Rsbuild v1 and v2, or documenting which v2 APIs have been validated for compatibility.

Copilot uses AI. Check for mistakes.
@chenjiahan chenjiahan deleted the update_peers_0115 branch January 15, 2026 03:33
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