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

chore(deps): bump loader-utils from 2.0.0 to 3.0.0 #1004

Closed
wants to merge 2 commits into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 20, 2021

Bumps loader-utils from 2.0.0 to 3.0.0.

Release notes

Sourced from loader-utils's releases.

v3.0.0

3.0.0 (2021-10-20)

⚠ BREAKING CHANGES

  • minimum supported Node.js version is 12.13.0 (93a87ce)
  • use xxhash64 by default for [hash]/[contenthash] and getHashDigest API
  • [emoji] was removed without replacements, please use custom function if you need this
  • removed getOptions in favor loaderContext.getOptions (loaderContext is this inside loader function), note - special query parameters like ?something=true is not supported anymore, if you need this please do it on loader side, but we strongly recommend avoid it, as alternative you can use ?something=1 and handle 1 as true
  • removed getRemainingRequest in favor loaderContext.remainingRequest (loaderContext is this inside loader function)
  • removed getCurrentRequest in favor loaderContext.currentRequest (loaderContext is this inside loader function)
  • removed parseString in favor JSON.parse
  • removed parseQuery in favor new URLSearchParams(loaderContext.resourceQuery.slice(1)) where loaderContext is this in loader function
  • removed stringifyRequest in favor JSON.stringify(loaderContext.utils.contextify(this.context, request)) (loaderContext is this inside loader function), also it will be cachable and faster
  • isUrlRequest ignores only absolute URLs and #hash requests, data URI and root relative request are handled as requestable due webpack v5 support them

Bug Fixes

  • allowed the interpolateName API works without options (862ea7d)
Changelog

Sourced from loader-utils's changelog.

3.0.0 (2021-10-20)

⚠ BREAKING CHANGES

  • minimum supported Node.js version is 12.13.0 (93a87ce)
  • use xxhash64 by default for [hash]/[contenthash] and getHashDigest API
  • [emoji] was removed without replacements, please use custom function if you need this
  • removed getOptions in favor loaderContext.getOptions (loaderContext is this inside loader function), note - special query parameters like ?something=true is not supported anymore, if you need this please do it on loader side, but we strongly recommend avoid it, as alternative you can use ?something=1 and handle 1 as true
  • removed getRemainingRequest in favor loaderContext.remainingRequest (loaderContext is this inside loader function)
  • removed getCurrentRequest in favor loaderContext.currentRequest (loaderContext is this inside loader function)
  • removed parseString in favor JSON.parse
  • removed parseQuery in favor new URLSearchParams(loaderContext.resourceQuery.slice(1)) where loaderContext is this in loader function
  • removed stringifyRequest in favor JSON.stringify(loaderContext.utils.contextify(this.context, request)) (loaderContext is this inside loader function), also it will be cachable and faster
  • isUrlRequest ignores only absolute URLs and #hash requests, data URI and root relative request are handled as requestable due webpack v5 support them

Bug Fixes

  • allowed the interpolateName API works without options (862ea7d)
Commits
  • e1e9f89 chore(release): 3.0.0
  • 862ea7d fix: allow interpolateName works without options
  • f37156e test: fix
  • f2ce2ca refactor!: use xxhash64 by default for [hash]/[contenthash] and `getHas...
  • 10503d6 refactor!: added isUrlRequest again, but now it ignores only absolute URLs ...
  • 46b032d chore: deps update
  • e31e8b5 refactor!: parseString was removed in favor `new URLSearchParams(loaderCont...
  • 246e345 refactor!: parseString was removed in favor JSON.parse
  • f8ff090 ci: fix name of github action
  • 0d89522 refactor!: stringifyRequest was removed in favor `JSON.stringify(loaderCont...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added 🔗 dependencies Pull requests that update a dependency file 📜 javascript Pull requests that update Javascript code labels Oct 20, 2021
@fussel178
Copy link
Member

@dependabot recreate

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/master/CHANGELOG.md)
- [Commits](webpack/loader-utils@v2.0.0...v3.0.0)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/loader-utils-3.0.0 branch from bf36841 to 6d2ed6a Compare October 26, 2021 22:21
@fussel178 fussel178 added the 🕳️ broken This PR is currently broken and needs investigation label Oct 26, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 1, 2021

A newer version of loader-utils exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@fussel178
Copy link
Member

Well, it seems webpack has getOptions as core functionality in version 5. But due to react-scripts we cannot update to webpack. Marking this as non-mergable until react-scripts supports/uses webpack 5.

@dependabot ignore this major version

@dependabot dependabot bot closed this Nov 16, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 16, 2021

OK, I won't notify you about version 3.x.x again, unless you re-open this PR or update to a 3.x.x release yourself.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/loader-utils-3.0.0 branch November 16, 2021 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕳️ broken This PR is currently broken and needs investigation 🔗 dependencies Pull requests that update a dependency file 📜 javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants