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

BREAKING CHANGE: use this.options.xxx #2558

Merged
merged 1 commit into from
May 12, 2020
Merged

Conversation

hiroppy
Copy link
Member

@hiroppy hiroppy commented May 1, 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?

yes

Motivation / Use-Case

Use this.options.xxx instead of this.xxx.

Breaking Changes

yes

Additional Info

@codecov
Copy link

codecov bot commented May 1, 2020

Codecov Report

Merging #2558 into v4 will decrease coverage by 0.19%.
The diff coverage is 93.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v4    #2558      +/-   ##
==========================================
- Coverage   92.55%   92.36%   -0.20%     
==========================================
  Files          35       35              
  Lines        1330     1323       -7     
  Branches      375      376       +1     
==========================================
- Hits         1231     1222       -9     
- Misses         94       96       +2     
  Partials        5        5              
Impacted Files Coverage Δ
lib/servers/WebsocketServer.js 94.11% <ø> (ø)
lib/Server.js 96.51% <92.10%> (-0.37%) ⬇️
lib/utils/normalizeOptions.js 96.87% <100.00%> (-3.13%) ⬇️

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 e826119...7e66e8a. Read the comment docs.

@hiroppy hiroppy force-pushed the feature/refactor-options branch from fa96440 to 3b6a9f2 Compare May 1, 2020 03:51
@hiroppy
Copy link
Member Author

hiroppy commented May 2, 2020

I'll work on this after merging #2531, because transportMode is broken in this pr.

@hiroppy hiroppy force-pushed the feature/refactor-options branch from 5bfc19c to 42481d9 Compare May 2, 2020 06:49
@alexander-akait
Copy link
Member

/cc @hiroppy Merged 👍

@hiroppy hiroppy force-pushed the feature/refactor-options branch 2 times, most recently from d17ae2c to 5be6739 Compare May 5, 2020 03:00
@hiroppy
Copy link
Member Author

hiroppy commented May 5, 2020

hm, If we modify the sockPath(overwriting to this.options.sockPath), webpack-dev-server will be broken maybe... @Loonride can you know why this causes?

@knagaitsev
Copy link
Collaborator

knagaitsev commented May 10, 2020

hm, If we modify the sockPath(overwriting to this.options.sockPath), webpack-dev-server will be broken maybe... @Loonride can you know why this causes?

@hiroppy I'm not sure, where is it being modified exactly? Maybe the webpack entry is being created with that sockPath before it is modified

Maybe my handling of sockPath here can solve the problem for you: #2593

@hiroppy
Copy link
Member Author

hiroppy commented May 11, 2020

@Loonride thanks, I'll check this pr again after merging #2593

@hiroppy hiroppy closed this May 11, 2020
@hiroppy hiroppy force-pushed the feature/refactor-options branch from 5be6739 to 8775a07 Compare May 11, 2020 23:18
@hiroppy hiroppy reopened this May 11, 2020
@hiroppy hiroppy force-pushed the feature/refactor-options branch 2 times, most recently from 3c6023f to 90a122a Compare May 11, 2020 23:38
@hiroppy hiroppy changed the title remove this.xxx properties instead of this.options.xxx BREAKING CHANGE: use this.options.xxx May 11, 2020
@hiroppy hiroppy marked this pull request as ready for review May 11, 2020 23:43
@hiroppy
Copy link
Member Author

hiroppy commented May 11, 2020

CI is green. Thanks, @Loonride. So don't merge this before merging #2593.

@alexander-akait
Copy link
Member

/cc @hiroppy Merged 👍

@hiroppy hiroppy force-pushed the feature/refactor-options branch from 90a122a to c315df5 Compare May 12, 2020 11:28
@hiroppy hiroppy force-pushed the feature/refactor-options branch from c315df5 to 7e66e8a Compare May 12, 2020 11:30
@hiroppy
Copy link
Member Author

hiroppy commented May 12, 2020

@evilebottnawi Updated!

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.

Good work!

@hiroppy hiroppy mentioned this pull request May 12, 2020
6 tasks
@alexander-akait alexander-akait merged commit 9c56a5a into v4 May 12, 2020
@alexander-akait alexander-akait deleted the feature/refactor-options branch May 12, 2020 13:35
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