-
Notifications
You must be signed in to change notification settings - Fork 871
Breaking change in 2.0.1 #650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can confirm we have our types broken in (proxyReq: http.ClientRequest, req: Request, res: Response) => void; In (proxyReq: http.ClientRequest, req: http.IncomingMessage, res: http.ServerResponse, options: httpProxy.ServerOptions) => void; It is definitely a breaking change, so it must have been a major version bump. Also, it is unclear if it is just a wrong type definition, or the real implementation of |
same issue,why minor version upgrade lead to break change? |
Further, objects that are appended to the Request type, such as Okta's OIDC middleware userContext, are not recognized with IncomingMessage. Granted, these things should be tacked on to locals, but... even req.Body is no longer recognized as a property of IncomingMessage. I'm rolling back to 2.0 |
yarn why http-proxy-middleware
ORnpm ls http-proxy-middleware
output (mask private folder names with *****)public-api@1.1.0 *****/public-api └── http-proxy-middleware@2.0.1
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 beexpress.Response
, but is nowhttp.Response
. This should have been a major version change.Step-by-step reproduction instructions
Expected behavior (be clear and concise)
No breaking changes in patch version changes.
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response
The text was updated successfully, but these errors were encountered: