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 deprecation warning #397

Closed
wants to merge 4 commits into from
Closed

fix deprecation warning #397

wants to merge 4 commits into from

Conversation

edi
Copy link

@edi edi commented Feb 28, 2017

Fixes deprecation warning for webpack 2.x+ while also keeps on working with older webpack versions.

DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see (https://github.com/webpack/loader-utils/issues/56)[https://github.com/webpack/loader-utils/issues/56]

parseQuery() will be replaced with getOptions() in the next major version of loader-utils.

Please Read the CONTRIBUTING Guidelines
In particular the portion on Commit Message Formatting

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

If this PR contains a breaking change, please describe the following...

  • Impact:
  • Migration path for existing applications:
  • Github Issue(s) this is regarding:

Other information:

Fixes deprecation warning for webpack 2.x+ while also keeps on working with older webpack versions.

DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see (webpack/loader-utils#56

parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
@edi
Copy link
Author

edi commented Feb 28, 2017

I've seen some other pull requests, but they imply breaking changes, since older versionf of loader-utils don't have getOptions, and this solution fixes both my cases.

@codecov
Copy link

codecov bot commented Feb 28, 2017

Codecov Report

Merging #397 into master will decrease coverage by -0.61%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #397      +/-   ##
==========================================
- Coverage   83.03%   82.42%   -0.61%     
==========================================
  Files           6        6              
  Lines         165      165              
  Branches       38       39       +1     
==========================================
- Hits          137      136       -1     
  Misses         12       12              
- Partials       16       17       +1
Impacted Files Coverage Δ
src/index.js 84% <0%> (-1.34%)

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 931c619...8da4a05. Read the comment docs.

@hiroppy
Copy link
Member

hiroppy commented Mar 2, 2017

duplicate #391

@edi edi closed this Mar 3, 2017
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.

None yet

2 participants