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

refactor: logging [BREAKING CHANGE] #749

Closed chimurai closed 2 years ago

chimurai commented 2 years ago

Description

Motivation and Context

simplify internals with better logging and improved compatibility with external loggers.

fixes #123 fixes #194 fixes #351 fixes #747

How has this been tested?

Types of changes

Checklist:

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.06%) to 97.0% when pulling 05ef657a7decf5707e3650a928e14df305b74953 on refactor-logger into 33f9f5ae4711230ed8a7a2f03d7d4924cb3d9a15 on v3.

dandv commented 1 year ago

Looks like an old types.d.ts was still shipped with the 2.0.6 release, so the logger option generates a TypeScript error.

image

Can you please take a look?

chimurai commented 1 year ago

Did you try to remove "node_modules" and install your dependencies again?

Also, looks like your using v3 options within v2... V2 docs: https://github.com/chimurai/http-proxy-middleware/tree/v2.0.4#readme