chimurai / http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
MIT License
10.7k stars 834 forks source link

feat: pathFilter option [BREAKING CHANGE] #722

Closed chimurai closed 2 years ago

chimurai commented 2 years ago

Description

Removes old "context" , add it back as option.pathFilter (matching functionality did not change)

Before:

createProxyMiddleware('/api', { target: 'http://www.example.org' });

After:

createProxyMiddleware({
  pathFilter: '/api',
  target: 'http://www.example.org',
});

Motivation and Context

How has this been tested?

Types of changes

Checklist:

coveralls commented 2 years ago

Coverage Status

Coverage decreased (-0.03%) to 98.795% when pulling 12ba81233166b1edde5ef8ea147b4f629e83932a on path-filter-option into 1540dac10c5bdda635bed0bb055ea058e7518181 on v3.