Skip to content

feat(deps): upgrade http-proxy-middleware to v4.0.0-beta.2#7436

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/upgrade-http-proxy-middleware-v4-beta-2
Apr 5, 2026
Merged

feat(deps): upgrade http-proxy-middleware to v4.0.0-beta.2#7436
chenjiahan merged 1 commit into
mainfrom
chenjiahan/upgrade-http-proxy-middleware-v4-beta-2

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented Apr 5, 2026

Summary

  • Upgrade http-proxy-middleware in @rsbuild/core from ^3.0.5 to ^4.0.0-beta.2, which brings in the upstream httpxy refactor and lets us remove the old http-proxy@1.18.1 patch.
  • Update the v1 to v2 upgrade guide to describe the v4 upgrade.

Related Links

@chenjiahan chenjiahan changed the title chore(deps): upgrade http-proxy-middleware to v4.0.0-beta.2 feat(deps): upgrade http-proxy-middleware to v4.0.0-beta.2 Apr 5, 2026
@chenjiahan chenjiahan marked this pull request as ready for review April 5, 2026 00:51
Copilot AI review requested due to automatic review settings April 5, 2026 00:51
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying rsbuild with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2356ec6
Status: ✅  Deploy successful!
Preview URL: https://82e8a4d1.rsbuild-v2.pages.dev
Branch Preview URL: https://chenjiahan-upgrade-http-prox.rsbuild-v2.pages.dev

View logs

Copy link
Copy Markdown
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 upgrades the http-proxy-middleware dependency to version 4.0.0-beta.2, removes the http-proxy patch, and updates the migration documentation. Feedback indicates a critical Node.js version mismatch between the new dependency and the project's supported versions, which may lead to installation failures. Additionally, the documentation links for the migration guides need to be corrected and expanded to cover both v3 and v4 transitions.

Comment thread pnpm-lock.yaml
Comment thread website/docs/en/guide/upgrade/v1-to-v2.mdx
Comment thread website/docs/zh/guide/upgrade/v1-to-v2.mdx
Copy link
Copy Markdown
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

Upgrades @rsbuild/core’s proxy middleware dependency to http-proxy-middleware@4.0.0-beta.2, removes the no-longer-needed http-proxy@1.18.1 patch, and updates the v1→v2 upgrade docs to reflect the new proxy middleware version.

Changes:

  • Bump http-proxy-middleware from ^3.0.5 to ^4.0.0-beta.2 (and update lockfile accordingly).
  • Remove the http-proxy@1.18.1 patched dependency and delete the patch file.
  • Update EN/ZH upgrade guides to mention v4 (but still referencing v3 migration details).

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
website/docs/en/guide/upgrade/v1-to-v2.mdx Updates proxy middleware upgrade text to v4 (link text still points to v3 section).
website/docs/zh/guide/upgrade/v1-to-v2.mdx Same as EN, in Chinese (link/anchor still v3).
packages/core/package.json Bumps http-proxy-middleware version used by @rsbuild/core.
pnpm-workspace.yaml Removes http-proxy@1.18.1 from patchedDependencies.
pnpm-lock.yaml Lockfile updates for http-proxy-middleware v4 + removal of http-proxy patch, plus transitive changes.
patches/http-proxy@1.18.1.patch Deletes the obsolete patch file.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread website/docs/en/guide/upgrade/v1-to-v2.mdx
Comment thread website/docs/zh/guide/upgrade/v1-to-v2.mdx
Comment thread pnpm-lock.yaml
Copy link
Copy Markdown

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

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: 2356ec650c

ℹ️ 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 packages/core/package.json
@chenjiahan chenjiahan merged commit 9ccc685 into main Apr 5, 2026
13 checks passed
@chenjiahan chenjiahan deleted the chenjiahan/upgrade-http-proxy-middleware-v4-beta-2 branch April 5, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants