From dae54e4778a1f8a40a3433a38a621be3ed46e652 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 19 Apr 2026 16:47:34 +0800 Subject: [PATCH] docs: correct http-proxy-middleware migration guide --- docs/migrate-v1-to-v2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/migrate-v1-to-v2.md b/docs/migrate-v1-to-v2.md index c8f2b35..24247ef 100644 --- a/docs/migrate-v1-to-v2.md +++ b/docs/migrate-v1-to-v2.md @@ -18,9 +18,9 @@ The minimum supported Node.js version is now `^20.19.0 || >=22.12.0`. `@rspack/dev-server` is now published as **pure ESM** package. -### Upgraded `http-proxy-middleware` to v3 +### Upgraded `http-proxy-middleware` to v4 -`http-proxy-middleware` has been updated to v3, which has some breaking changes: +`http-proxy-middleware` has been updated from v2 to v4, with several breaking changes introduced since v3: - `proxy[].path` is removed. Use `pathFilter` (or `context`) instead.