File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +18
-3
lines changed
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
- ## next
3
+ ## [ v3.0.0] ( https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.0 )
4
+
5
+ This release contains some breaking changes.
6
+
7
+ Please read the V3 discussion < https://github.com/chimurai/http-proxy-middleware/discussions/768 >
8
+ or follow the [ MIGRATION.md] ( https://github.com/chimurai/http-proxy-middleware/blob/master/MIGRATION.md ) guide.
4
9
5
10
- feat(typescript): type improvements ([ #882 ] ( https://github.com/chimurai/http-proxy-middleware/pull/882 ) )
6
11
- chore(deps): update micromatch to 4.0.5
Original file line number Diff line number Diff line change 1
1
# Migration guide
2
2
3
+ - [ v3 changes and discussions] ( #v3-changes-and-discussions )
3
4
- [ v2 to v3 adapter] ( #v2-to-v3-adapter )
4
5
- [ ` legacyCreateProxyMiddleware ` ] ( #legacycreateproxymiddleware )
5
6
- [ v3 breaking changes] ( #v3-breaking-changes )
10
11
- [ Removed ` logProvider ` and ` logLevel ` options] ( #removed-logprovider-and-loglevel-options )
11
12
- [ Refactored proxy events] ( #refactored-proxy-events )
12
13
14
+ ## v3 changes and discussions
15
+
16
+ See list of changes in V3:
17
+
18
+ < https://github.com/chimurai/http-proxy-middleware/discussions/768 >
19
+
13
20
## v2 to v3 adapter
14
21
15
22
### ` legacyCreateProxyMiddleware `
16
23
17
24
Use the adapter to use v3 with minimal changes to your v2 implementation.
18
25
26
+ 💡 When you use ` legacyCreateProxyMiddleware ` it will print out console messages in run-time to guide you on how to migrate legacy configurations.
27
+
19
28
NOTE: ` legacyCreateProxyMiddleware ` will be removed in a future version.
20
29
21
30
``` js
@@ -46,6 +55,8 @@ legacyCreateProxyMiddleware(...);
46
55
47
56
### Removed ` req.url ` patching
48
57
58
+ When proxy is mounted on a path, this path should be provided in the target.
59
+
49
60
``` js
50
61
// before
51
62
app .use (' /user' , proxy ({ target: ' http://www.example.org' }));
Original file line number Diff line number Diff line change 4
4
[ ![ Coveralls] ( https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square&logo=coveralls )] ( https://coveralls.io/r/chimurai/http-proxy-middleware )
5
5
[ ![ Known Vulnerabilities] ( https://snyk.io/test/github/chimurai/http-proxy-middleware/badge.svg )] ( https://snyk.io/test/github/chimurai/http-proxy-middleware )
6
6
[ ![ npm] ( https://img.shields.io/npm/v/http-proxy-middleware?color=%23CC3534&style=flat-square&logo=npm )] ( https://www.npmjs.com/package/http-proxy-middleware )
7
- [ ![ npm (tag)] ( https://img.shields.io/npm/v/http-proxy-middleware/beta?color=CC3534&logo=npm&style=flat-square )] ( https://github.com/chimurai/http-proxy-middleware/discussions/768 )
8
7
9
8
Node.js proxying made simple. Configure proxy middleware with ease for [ connect] ( https://github.com/senchalabs/connect ) , [ express] ( https://github.com/expressjs/express ) , [ next.js] ( https://github.com/vercel/next.js ) and [ many more] ( #compatible-servers ) .
10
9
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " http-proxy-middleware" ,
3
- "version" : " 3.0.0-beta.1 " ,
3
+ "version" : " 3.0.0" ,
4
4
"description" : " The one-liner node.js proxy middleware for connect, express, next.js and more" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments