Skip to content

Commit 03a4074

Browse files
committed
chore(package): v3.0.0
1 parent 19a3f00 commit 03a4074

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

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.
49

510
- feat(typescript): type improvements ([#882](https://github.com/chimurai/http-proxy-middleware/pull/882))
611
- chore(deps): update micromatch to 4.0.5

MIGRATION.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Migration guide
22

3+
- [v3 changes and discussions](#v3-changes-and-discussions)
34
- [v2 to v3 adapter](#v2-to-v3-adapter)
45
- [`legacyCreateProxyMiddleware`](#legacycreateproxymiddleware)
56
- [v3 breaking changes](#v3-breaking-changes)
@@ -10,12 +11,20 @@
1011
- [Removed `logProvider` and `logLevel` options](#removed-logprovider-and-loglevel-options)
1112
- [Refactored proxy events](#refactored-proxy-events)
1213

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+
1320
## v2 to v3 adapter
1421

1522
### `legacyCreateProxyMiddleware`
1623

1724
Use the adapter to use v3 with minimal changes to your v2 implementation.
1825

26+
💡 When you use `legacyCreateProxyMiddleware` it will print out console messages in run-time to guide you on how to migrate legacy configurations.
27+
1928
NOTE: `legacyCreateProxyMiddleware` will be removed in a future version.
2029

2130
```js
@@ -46,6 +55,8 @@ legacyCreateProxyMiddleware(...);
4655

4756
### Removed `req.url` patching
4857

58+
When proxy is mounted on a path, this path should be provided in the target.
59+
4960
```js
5061
// before
5162
app.use('/user', proxy({ target: 'http://www.example.org' }));

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
[![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square&logo=coveralls)](https://coveralls.io/r/chimurai/http-proxy-middleware)
55
[![Known Vulnerabilities](https://snyk.io/test/github/chimurai/http-proxy-middleware/badge.svg)](https://snyk.io/test/github/chimurai/http-proxy-middleware)
66
[![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)
87

98
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).
109

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "http-proxy-middleware",
3-
"version": "3.0.0-beta.1",
3+
"version": "3.0.0",
44
"description": "The one-liner node.js proxy middleware for connect, express, next.js and more",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)