Releases: chimurai/http-proxy-middleware
Releases · chimurai/http-proxy-middleware
v0.15.0
-
feat(pathRewrite): support for custom pathRewrite function. (#73)
v0.14.0
-
feat(proxy): support proxy creation without context.
https://github.com/chimurai/http-proxy-middleware/blob/master/recipes/basic.md#alternative-configurationapp.use('/api', proxy('http://localhost:3000', {changeOrigin:true}));
app.use('/api', proxy({target: 'http://localhost:3000', changeOrigin:true}));
-
fix(connect mounting): use connect's
path
configuration to mount proxy.
v0.13.0
- feat(context): custom context matcher; when simple
path
matching is not sufficient. #59
Example:
var filter = function (path, req) {
return (path.match('^/api') && req.method === 'GET');
};
var apiProxy = proxyMiddleware(filter, {target: 'http://www.example.org'});
v0.12.0
- add option
onProxyReqWs
(subscribe to http-proxyproxyReqWs
event) - add option
onOpen
(subscribe to http-proxyopen
event) - add option
onClose
(subscribe to http-proxyclose
event)
v0.11.0
v0.10.0
- feat(proxyTable) - added proxyTable support for WebSockets.
- fixed(proxyTable) - ensure original path (not rewritten path) is being used when
proxyTable
is used in conjunction withpathRewrite
.
v0.10.0-beta
- feat(proxyTable) - added proxyTable support for WebSockets.
- fixed(proxyTable) - ensure original path (not rewritten path) is being used when
proxyTable
is used in conjunction withpathRewrite
.