From b5514a20051bf950596bc304765289ce456e325e Mon Sep 17 00:00:00 2001 From: chimurai <655241+chimurai@users.noreply.github.com> Date: Tue, 17 Oct 2023 00:00:28 +0200 Subject: [PATCH] chore(package): v3.0.0 --- CHANGELOG.md | 7 ++++++- MIGRATION.md | 10 ++++++++++ README.md | 1 - package.json | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f83c78e..7a48ef00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog -## next +## [v3.0.0](https://github.com/chimurai/http-proxy-middleware/releases/tag/v3.0.0) + +This release contains some breaking changes. + +Please read the V3 discussion +or follow the [MIGRATION.md](https://github.com/chimurai/http-proxy-middleware/blob/master/MIGRATION.md) guide. - feat(typescript): type improvements ([#882](https://github.com/chimurai/http-proxy-middleware/pull/882)) - chore(deps): update micromatch to 4.0.5 diff --git a/MIGRATION.md b/MIGRATION.md index 422f481c..481e9c1e 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -1,5 +1,6 @@ # Migration guide +- [v3 changes and discussions](#v3-changes-and-discussions) - [v2 to v3 adapter](#v2-to-v3-adapter) - [`legacyCreateProxyMiddleware`](#legacycreateproxymiddleware) - [v3 breaking changes](#v3-breaking-changes) @@ -10,11 +11,18 @@ - [Removed `logProvider` and `logLevel` options](#removed-logprovider-and-loglevel-options) - [Refactored proxy events](#refactored-proxy-events) +## v3 changes and discussions + +See list of changes in V3: + + + ## v2 to v3 adapter ### `legacyCreateProxyMiddleware` Use the adapter to use v3 with minimal changes to your v2 implementation. +It will tell you in run-time which configurations need to migrated. NOTE: `legacyCreateProxyMiddleware` will be removed in a future version. @@ -46,6 +54,8 @@ legacyCreateProxyMiddleware(...); ### Removed `req.url` patching +When proxy is mounted on a path, this path should be provided in the target. + ```js // before app.use('/user', proxy({ target: 'http://www.example.org' })); diff --git a/README.md b/README.md index 1a01f591..3e59082b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ [![Coveralls](https://img.shields.io/coveralls/chimurai/http-proxy-middleware.svg?style=flat-square&logo=coveralls)](https://coveralls.io/r/chimurai/http-proxy-middleware) [![Known Vulnerabilities](https://snyk.io/test/github/chimurai/http-proxy-middleware/badge.svg)](https://snyk.io/test/github/chimurai/http-proxy-middleware) [![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) -[![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) 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). diff --git a/package.json b/package.json index a1290a8c..5c598afe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "http-proxy-middleware", - "version": "3.0.0-beta.1", + "version": "3.0.0", "description": "The one-liner node.js proxy middleware for connect, express, next.js and more", "main": "dist/index.js", "types": "dist/index.d.ts",