loader-utils breaking changes
loader-utils 3.0.0 (October 20, 2021) is its newest release with breaking changes, 14 of them. The first: Removed [emoji]. Every breaking API change we have recorded in loader-utils on npm: 21 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.3.1, released June 5, 2024. Source repository
Its 3.0.0 release requires Node.js 12.13.0 or later. Node.js end of life dates.
- From 2.0.3 to 3.0.0: 14 breaking changes in 1 version.
- From 2.0.0 to 3.0.0: 15 breaking changes in 2 versions.
loader-utils 3.0.0 breaking changes
- Removed
[emoji]
The [emoji] placeholder was removed without replacement. Use a custom function if you need this behavior. github.com - Removed
getCurrentRequest
Use the loaderContext.currentRequest property instead. npmjs.com - Removed
getOptions
Call loaderContext.getOptions (this inside the loader function) instead. Special query parameters like ?something=true are no longer supported. npmjs.com - Removed
getRemainingRequest
Use the loaderContext.remainingRequest property instead. npmjs.com - Removed
parseQuery
Use new URLSearchParams(loaderContext.resourceQuery.slice(1)) inside the loader function. npmjs.com - Removed
parseString
Use JSON.parse instead. npmjs.com - Removed
stringifyRequest
Use JSON.stringify(loaderContext.utils.contextify(this.context, request)) inside the loader function. npmjs.com - Behavior changed
The default hash used for [hash], [contenthash] and the getHashDigest API is now xxhash64. Code relying on the previous default hash output must pass the old algorithm explicitly. github.com - Behavior changed
isUrlRequest
isUrlRequest ignores only absolute URLs and #hash requests now; data URI and root-relative requests are handled as requestable. github.com - Configuration changed
The package now requires Node.js 12.13.0 or later. Upgrade Node.js before using this version. github.com - Signature changed
DigestType
Was type DigestType = "hex" | "base26" | "base32" | "base36" | "base49" | "base52" | "base58" | "base62" | "base64"; now type DigestType = | "hex" | "base26" | "base32" | "base36" | "base49" | "base52" | "base58" | "base62" | "base64" |... npmjs.com - Signature changed
getHashDigest
Was function getHashDigest(buffer: Buffer, hashType: HashType, digestType: DigestType, maxLength: number): string; now function getHashDigest(buffer: Buffer, hashType?: HashType, digestType?: DigestType, maxLength?: number): string. npmjs.com - Signature changed
HashType
Was type HashType = "sha1" | "md4" | "md5" | "sha256" | "sha512"; now type HashType = "xxhash64" | "sha1" | "md4" | "native-md4" | "md5" | "sha256" | "sha512". npmjs.com - Signature changed
interpolateName
Was function interpolateName(loaderContext: loader.LoaderContext, name: string, options?: any): string; now function interpolateName(loaderContext: LoaderContext<LoaderInterpolateOption>, name: InterpolateNameType, options?... npmjs.com
loader-utils 2.0.3 breaking changes
- Behavior changed
The release patches a prototype pollution exploit; code relying on the previous unsafe behavior may see different results. github.com
loader-utils 2.0.0 breaking changes
- Removed
The minimum required Node.js version is now 8.9.0. Users on older Node.js versions must upgrade before using this release. github.com - Behavior changed
getOptions
The getOptions method now returns an empty object when the query is empty. Code that expects a different value for an empty query must be updated. github.com - Default changed
The package now uses md4 by default. Users who depend on the previous default hash output must set the algorithm explicitly. github.com - Signature changed
getOptions
Was function getOptions(loaderContext: loader.LoaderContext): OptionObject; now function getOptions(loaderContext: loader.LoaderContext): Readonly<OptionObject>. npmjs.com - Signature changed
HashType
Was type HashType = "sha1" | "md5" | "sha256" | "sha512"; now type HashType = "sha1" | "md4" | "md5" | "sha256" | "sha512". npmjs.com - Signature changed
OptionObject.__index
Was [key: string]: any; now [key: string]: null | false | true | string. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.