Skip to content

Breaking change in 2.0.1 #650

@ThomWright

Description

@ThomWright

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions