-
Notifications
You must be signed in to change notification settings - Fork 868
Labels
Description
yarn why http-proxy-middleware
OR npm ls http-proxy-middleware
output (mask private folder names with *****)
public-api@1.1.0 *****/public-api
└── http-proxy-middleware@2.0.1
- I understand project setup issues should be asked on StackOverflow or in GitHub Discussions.
- I updated to latest
http-proxy-middleware
.
Describe the bug (be clear and concise)
A breaking change was released with 2.0.1. The response type for onProxyRes
used to be express.Response
, but is now http.Response
. This should have been a major version change.
Step-by-step reproduction instructions
1. Install 2.0.0. Use e.g. `res.status(200).send()` in `onProxyRes`.
2. Update to 2.0.1. See red squiggly lines. Be sad.
Expected behavior (be clear and concise)
No breaking changes in patch version changes.
What http-proxy-middleware configuration are you using?
N/A
What OS/version and node/version are you seeing the problem?
N/A
Additional context (optional)
No response
artemtam, MrFatt, apoteet, rouwe111, rcollette and 1 more