Skip to content

Releases: webpack/loader-utils

v3.1.0

29 Oct 13:17
Compare
Choose a tag to compare

3.1.0 (2021-10-29)

Features

  • added md4 (wasm version) and md4-native (crypto module version) algorithms (cbf9d1d)

v2.0.1

29 Oct 13:47
Compare
Choose a tag to compare

2.0.1 (2021-10-29)

Bug Fixes

v3.0.0

20 Oct 14:11
Compare
Choose a tag to compare

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)

v2.0.0

17 Mar 11:37
Compare
Choose a tag to compare

2.0.0 (2020-03-17)

⚠ BREAKING CHANGES

  • minimum required Node.js version is 8.9.0 (#166) (c937e8c)
  • the getOptions method returns empty object on empty query (#167) (b595cfb)
  • Use md4 by default

v1.4.0

19 Feb 17:33
Compare
Choose a tag to compare

1.4.0 (2020-02-19)

Features

  • the resourceQuery is passed to the interpolateName method (#163) (cd0e428)

v1.3.0

19 Feb 17:05
Compare
Choose a tag to compare

1.3.0 (2020-02-19)

Features

  • support the [query] template for the interpolatedName method (#162) (469eeba)

v1.2.3

27 Dec 12:22
Compare
Choose a tag to compare

1.2.3 (2018-12-27)

Bug Fixes

  • interpolateName: don't interpolated hashType without hash or contenthash (#140) (3528fd9)

v1.2.2

27 Dec 10:30
Compare
Choose a tag to compare

1.2.2 (2018-12-27)

Bug Fixes

  • fixed a hash type extracting in interpolateName (#137) (f8a71f4)

v1.2.1

25 Dec 12:27
Compare
Choose a tag to compare

1.2.1 (2018-12-25)

Bug Fixes

  • isUrlRequest: better handle absolute urls and non standards (#134) (aca43da)

Reverts

v1.2.0

24 Dec 18:14
ba4f0d0
Compare
Choose a tag to compare

1.2.0 (2018-12-24)

Features

  • interpolateName: support [contenthash]

Fixes

  • urlToRequest: empty urls are not rewritten to relative requests
  • urlToRequest: don't rewrite absolute urls
  • isUrlRequest: ignore all url with extension (like moz-extension:, ms-browser-extension: and etc)
  • isUrlRequest: ignore about:blank
  • interpolateName: failing explicitly when ran out of emoji
  • interpolateName: [hash] token regex in interpolate string to capture any hash algorithm name
  • interpolateName: parse string for emoji count before use