Releases: webpack/loader-utils
Releases · webpack/loader-utils
v3.1.2
v3.1.1
v2.0.2
v3.1.0
v2.0.1
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]
andgetHashDigest
API [emoji]
was removed without replacements, please use custom function if you need this- removed
getOptions
in favorloaderContext.getOptions
(loaderContext
isthis
inside loader function), note - special query parameters like?something=true
is not supported anymore, if you need this please do it onloader
side, but we strongly recommend avoid it, as alternative you can use?something=1
and handle1
astrue
- removed
getRemainingRequest
in favorloaderContext.remainingRequest
(loaderContext
isthis
inside loader function) - removed
getCurrentRequest
in favorloaderContext.currentRequest
(loaderContext
isthis
inside loader function) - removed
parseString
in favorJSON.parse
- removed
parseQuery
in favornew URLSearchParams(loaderContext.resourceQuery.slice(1))
whereloaderContext
isthis
in loader function - removed
stringifyRequest
in favorJSON.stringify(loaderContext.utils.contextify(this.context, request))
(loaderContext
isthis
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)