Socket
Socket
Sign inDemoInstall

loader-utils

Package Overview
Dependencies
1
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345Next

2.0.2

Diff

evilebottnawi
published 3.1.2 •

Changelog

Source

3.1.2 (2021-11-04)

Bug Fixes

  • bug with unicode characters (#196) (0426405)
evilebottnawi
published 3.1.1 •

Changelog

Source

3.1.1 (2021-11-04)

Bug Fixes

  • base64 and unicode characters (02b1f3f)
evilebottnawi
published 2.0.1 •

evilebottnawi
published 3.1.0 •

Changelog

Source

3.1.0 (2021-10-29)

Features

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

Changelog

Source

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(loaderContext.context || loaderContext.rootContext, 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)
evilebottnawi
published 2.0.0 •

Changelog

Source

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

<a name="1.4.0"></a>

evilebottnawi
published 1.4.0 •

Changelog

Source

1.4.0 (2020-02-19)

Features

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

<a name="1.3.0"></a>

evilebottnawi
published 1.3.0 •

Changelog

Source

1.3.0 (2020-02-19)

Features

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

<a name="1.2.3"></a>

evilebottnawi
published 1.2.3 •

Changelog

Source

1.2.3 (2018-12-27)

Bug Fixes

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

<a name="1.2.2"></a>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc