Skip to content

Commit 11e09d3

Browse files
committed
feat(deps): upgrade http-proxy-middleware to v4.0.0-beta.2
1 parent 1a5daae commit 11e09d3

File tree

3 files changed

+20
-25
lines changed

3 files changed

+20
-25
lines changed

docs/migrate-v1-to-v2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ The minimum supported Node.js version is now `^20.19.0 || >=22.12.0`.
1818

1919
`@rspack/dev-server` is now published as **pure ESM** package.
2020

21-
### Upgraded `http-proxy-middleware` to v3
21+
### Upgraded `http-proxy-middleware` to v4
2222

23-
`http-proxy-middleware` has been updated to v3, which has some breaking changes:
23+
`http-proxy-middleware` has been updated to v4, which has some breaking changes:
2424

2525
- `proxy[].path` is removed. Use `pathFilter` (or `context`) instead.
2626

@@ -55,7 +55,7 @@ The minimum supported Node.js version is now `^20.19.0 || >=22.12.0`.
5555
- When `bypass` was used and that function returned a boolean, it would automatically result in a 404 request. This can’t be achieved in a similar way now, or, if it returned a string, you can do what was done in the example above.
5656
- `bypass` also allowed sending data; this can no longer be done. If you really need to do it, you’d have to create a new route in the proxy that sends the same data, or alternatively create a new route on the main server and, following the example above, send the data you wanted.
5757

58-
> Refer to the [http-proxy-middleware v3 migration guide](https://github.com/chimurai/http-proxy-middleware/blob/master/MIGRATION.md) for details.
58+
> Refer to the [http-proxy-middleware v3 breaking changes](https://github.com/chimurai/http-proxy-middleware/blob/master/MIGRATION.md#v3-breaking-changes) for details.
5959
6060
### Default app now uses `connect-next`
6161

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"hono": "^4.12.9",
7171
"http-compression": "^1.1.2",
7272
"http-proxy": "^1.18.1",
73-
"http-proxy-middleware": "^3.0.5",
73+
"http-proxy-middleware": "^4.0.0-beta.2",
7474
"ipaddr.js": "^2.3.0",
7575
"launch-editor": "^2.13.2",
7676
"nano-staged": "^0.9.0",

pnpm-lock.yaml

Lines changed: 16 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)