Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Server): correct node version checks #1543

Merged
merged 1 commit into from Oct 25, 2018

Conversation

nekolab
Copy link
Contributor

@nekolab nekolab commented Oct 24, 2018

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

In pull request #1531 we add a workaround for ECDH curve choice from node@^8.6.0 to node@10. We use parsed number to compare the version but it won't work as expected when compare like 8.12 to 8.6.

To fix this use version compare library is the best choice, since semver has been introduced into dependency tree by chokidar, choose it will not add package size.

Compare two parsed node version in number form may cause unexpected
behavior when they have the same major version and different special
minor version, like 8.12 is greater than 8.6 in semantic version form,
in contrast to the number form.
@michael-ciniawsky michael-ciniawsky changed the title fix(Server): Correct version check in TLS default ECDH curve workaround fix(Server): correct node version checks Oct 25, 2018
@michael-ciniawsky michael-ciniawsky added this to the 3.1.11 milestone Oct 25, 2018
Copy link
Member

@michael-ciniawsky michael-ciniawsky left a comment

Choose a reason for hiding this comment

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

@nekolab Thx

@michael-ciniawsky michael-ciniawsky merged commit 927a2b3 into webpack:master Oct 25, 2018
odinho added a commit to odinho/webpack-dev-server that referenced this pull request Nov 8, 2018
This reverts commit 927a2b3.

This is only a test to see whether it fixes Travis.
This was referenced Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants