v1.0.0
版本发布时间: 2020-02-19 06:51:46
chimurai/http-proxy-middleware最新发布版本:v3.0.2(2024-09-04 04:21:35)
https://github.com/chimurai/http-proxy-middleware/compare/v0.21.0...v1.0.0
- feat(createProxyMiddleware): explicit import http-proxy-middleware (BREAKING CHANGE)(#400)
- feat(typescript): export http-proxy-middleware types (#400)
- fix(typescript): ES6 target - TS1192 (introduced in v0.21.0) (#400)
BREAKING CHANGE
require/import of http-proxy-middleware
is now explicit
functionality did not change in this release.
https://humanwhocodes.com/blog/2019/01/stop-using-default-exports-javascript-module
v0.x.x
with implicit require
const proxy = require('http-proxy-middleware');
v1.0.0
with explicit require
const { createProxyMiddleware } = require('http-proxy-middleware');
TypeScript Types
import { Filter, Options, RequestHandler } from 'http-proxy-middleware';
v1.0.0 - semver
Moving to less confusing semver versioning (https://github.com/chimurai/http-proxy-middleware/issues/358)