Skip to content

fix(deps): bump html-proxy-middleware to latest version - #2616

Closed
vtereshyn wants to merge 2 commits into
webpack:masterfrom
vtereshyn:fix/http-proxy-middleware-audit
Closed

vtereshyn wants to merge 2 commits into
webpack:masterfrom
vtereshyn:fix/http-proxy-middleware-audit

Conversation

@vtereshyn

@vtereshyn vtereshyn commented May 18, 2020 •

Copy link
Copy Markdown

This PR fixes an audit issue.

Also, in the scope of this pull request, I ran npm audit fix to resolve some audit issues. That's why lots of changes in package-lock.json

@jsf-clabot

jsf-clabot commented May 18, 2020 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@vtereshyn vtereshyn mentioned this pull request May 18, 2020
1 of 2 tasks
@codecov

codecov Bot commented May 18, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #2616 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2616   +/-   ##
=======================================
  Coverage   93.77%   93.77%           
=======================================
  Files          34       34           
  Lines        1333     1333           
  Branches      381      381           
=======================================
  Hits         1250     1250           
  Misses         81       81           
  Partials        2        2           
Impacted Files Coverage Δ
lib/Server.js 96.79% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4ab1f21...b72a232. Read the comment docs.

@vtereshyn

Copy link
Copy Markdown
Author

I am not sure what should I do with commit message

Comment thread package.json Outdated
"express": "^4.17.1",
"html-entities": "^1.3.1",
"http-proxy-middleware": "0.19.1",
"http-proxy-middleware": "1.0.4",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How you use require changed in http-proxy-middleware version 1.0.0. Looks like you didn't update those statements.

https://github.com/chimurai/http-proxy-middleware/releases/tag/v1.0.0

v0.x.x with implicit require

const proxy = require('http-proxy-middleware');

v1.0.0 with explicit require

const { createProxyMiddleware } = require('http-proxy-middleware');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering why this package's version is locked - does need to stay locked?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably, I changed locked version to the latest version and locked it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright, I removed version locking and fixed http-proxy-middleware usage

@vtereshyn vtereshyn changed the title fix: Bump html-proxy-middleware to latest version fix: bump html-proxy-middleware to latest version May 19, 2020
@vtereshyn vtereshyn changed the title fix: bump html-proxy-middleware to latest version fix(deps): bump html-proxy-middleware to latest version May 19, 2020
@vtereshyn

vtereshyn commented May 19, 2020 •

Copy link
Copy Markdown
Author

Not sure what's wrong with tests and other stuff, but I ran tests, lints on my local machine several times and everything looks good.

https://prnt.sc/sjgxzd

Also, I've tested webpack-dev-server locally with my app and everything looks good for me.

@alexander-akait

Copy link
Copy Markdown
Member

Can't be merged for v3 because it is breaking change, will be shipped in v4

@vtereshyn

Copy link
Copy Markdown
Author

Can't be merged for v3 because it is breaking change, will be shipped in

what should we do with audit issue? our checks don't pass. I know that a lot of repositories (almost 4 million) use webpack-dev-server.

@alexander-akait

Copy link
Copy Markdown
Member

@vtereshyn temporary you can don't audit dev dependencies

@vtereshyn

Copy link
Copy Markdown
Author

@evilebottnawi I am not sure if security managers will like that way :)

@vtereshyn

Copy link
Copy Markdown
Author

@evilebottnawi sorry, just wondering, which breaking changes are we talking about? I mean, I've checked this pull request with my application and everything looks good. But of course, you know better. thank you in advance

@koltyakov

koltyakov commented May 19, 2020 •

Copy link
Copy Markdown

I assume it's about Node.js version and the fact that http-proxy-middleware v1 supports Node v8 and higher while WDS v3 supports Node v6.

@alexander-akait

Copy link
Copy Markdown
Member

@vtereshyn #2616 (comment)

@lsiler-mdsol

Copy link
Copy Markdown

@evilebottnawi thanks for the info! when can we expect v4 to be released?

@alexander-akait

Copy link
Copy Markdown
Member

@lsiler-mdsol I am working on it, sorry can't provide ETA, because I am working only one, but I try to do it ASAP

@chimurai

Copy link
Copy Markdown
Contributor

Just published http-proxy-middleware@0.19.2

Hopefully this'll ease the process to patch the current version of WDS without rushing to release WDS@4.0

@hughrawlinson

Copy link
Copy Markdown

What do you think about releasing wds@3.11.1 now that there's a patch fix of http-proxy-middleware? That would get around having to block until wds@4.

@vaibhavarora14

Copy link
Copy Markdown

i have submitted a PR with just patch of http-proxy-middleware Can we get #2665 going?

@alexander-akait

Copy link
Copy Markdown
Member

Done in v4, for v3 we can backport only #2665

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants