Skip to content

Conversation

@ylemkimon
Copy link
Contributor

@ylemkimon ylemkimon commented Nov 27, 2020

  • 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

For Bugs and Features; did you add new tests?

Covered by existing tests.

Motivation / Use-Case

createDomain is used in two places:

This is required for webpack/webpack-cli#2141.

Breaking Changes

Yes, the client uses the hostname of the current location (location.hostname), by default. To get existing behavior, set the client.host with the hostname you'd like to set to, e.g.:

const server = new Server(compiler, {
  client: {
    host: hostname,
  }
});
server.listen(port, hostname);

Additional Info

@codecov
Copy link

codecov bot commented Nov 27, 2020

Codecov Report

Merging #2869 (c9839d4) into v4 (ecf2fe1) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v4    #2869      +/-   ##
==========================================
+ Coverage   92.45%   92.46%   +0.01%     
==========================================
  Files          38       38              
  Lines        1246     1248       +2     
  Branches      326      326              
==========================================
+ Hits         1152     1154       +2     
  Misses         89       89              
  Partials        5        5              
Impacted Files Coverage Δ
lib/utils/createDomain.js 100.00% <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 ecf2fe1...c9839d4. Read the comment docs.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

I found breaking change is feature 😄

@alexander-akait
Copy link
Member

/cc @hiroppy

@ylemkimon ylemkimon changed the title fix: use server address and fallback to 0.0.0.0 (location.hostname) in createDomain feat: use server address and fallback to 0.0.0.0 (location.hostname) in createDomain Nov 27, 2020
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.

3 participants