---
title: "loader-utils 3.0.0 Breaking Changes on npm | Since.dev"
description: "What each loader-utils release removed, renamed or changed: 21 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/loader-utils
last_updated: 2026-12-04
---

# 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

Latest version `3.3.1`, released June 5, 2024. [Source repository](https://github.com/webpack/loader-utils)

Its 3.0.0 release requires Node.js 12.13.0 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.3](#v-2-0-3) to [3.0.0](#v-3-0-0): 14 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [3.0.0](#v-3-0-0): 15 breaking changes in 2 versions.

## loader-utils 3.0.0 breaking changes

loader-utils 3.0.0, released October 20, 2021: 14 breaking changes.

- **Removed** `[emoji]`  

The \[emoji\] placeholder was removed without replacement. Use a custom function if you need this behavior. [github.com](https://github.com/webpack/loader-utils/releases/tag/v3.0.0)
- **Removed** `getCurrentRequest`  

Use the loaderContext.currentRequest property instead. [npmjs.com](https://www.npmjs.com/package/loader-utils/v/3.0.0)
- **Removed** `getOptions`  

Call loaderContext.getOptions (this inside the loader function) instead. Special query parameters like ?something=true are no longer supported. [npmjs.com](https://www.npmjs.com/package/loader-utils/v/3.0.0)
- **Removed** `getRemainingRequest`  

Use the loaderContext.remainingRequest property instead. [npmjs.com](https://www.npmjs.com/package/loader-utils/v/3.0.0)
- **Removed** `parseQuery`  

Use new URLSearchParams(loaderContext.resourceQuery.slice(1)) inside the loader function. [npmjs.com](https://www.npmjs.com/package/loader-utils/v/3.0.0)
- **Removed** `parseString`  

Use JSON.parse instead. [npmjs.com](https://www.npmjs.com/package/loader-utils/v/3.0.0)
- **Removed** `stringifyRequest`  

Use JSON.stringify(loaderContext.utils.contextify(this.context, request)) inside the loader function. [npmjs.com](https://www.npmjs.com/package/loader-utils/v/3.0.0)
- **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](https://github.com/webpack/loader-utils/releases/tag/v3.0.0)
- **Behavior changed** `isUrlRequest`  

isUrlRequest ignores only absolute URLs and #hash requests now; data URI and root-relative requests are handled as requestable. [github.com](https://github.com/webpack/loader-utils/releases/tag/v3.0.0)
- **Configuration changed**  

The package now requires Node.js 12.13.0 or later. Upgrade Node.js before using this version. [github.com](https://github.com/webpack/loader-utils/releases/tag/v3.0.0)
- **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](https://www.npmjs.com/package/loader-utils/v/3.0.0)
- **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](https://www.npmjs.com/package/loader-utils/v/3.0.0)
- **Signature changed** `HashType`  

Was type HashType = "sha1" | "md4" | "md5" | "sha256" | "sha512"; now type HashType = "xxhash64" | "sha1" | "md4" | "native-md4" | "md5" | "sha256" | "sha512". [npmjs.com](https://www.npmjs.com/package/loader-utils/v/3.0.0)
- **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](https://www.npmjs.com/package/loader-utils/v/3.0.0)

## loader-utils 2.0.3 breaking changes

loader-utils 2.0.3, released October 20, 2022: 1 breaking change.

- **Behavior changed**  

The release patches a prototype pollution exploit; code relying on the previous unsafe behavior may see different results. [github.com](https://github.com/webpack/loader-utils/releases/tag/v2.0.3)

## loader-utils 2.0.0 breaking changes

loader-utils 2.0.0, released March 17, 2020: 6 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](https://github.com/webpack/loader-utils/releases/tag/v2.0.0)
- **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](https://github.com/webpack/loader-utils/releases/tag/v2.0.0)
- **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](https://github.com/webpack/loader-utils/releases/tag/v2.0.0)
- **Signature changed** `getOptions`  

Was function getOptions(loaderContext: loader.LoaderContext): OptionObject; now function getOptions(loaderContext: loader.LoaderContext): Readonly\<OptionObject>. [npmjs.com](https://www.npmjs.com/package/loader-utils/v/2.0.0)
- **Signature changed** `HashType`  

Was type HashType = "sha1" | "md5" | "sha256" | "sha512"; now type HashType = "sha1" | "md4" | "md5" | "sha256" | "sha512". [npmjs.com](https://www.npmjs.com/package/loader-utils/v/2.0.0)
- **Signature changed** `OptionObject.__index`  

Was \[key: string\]: any; now \[key: string\]: null | false | true | string. [npmjs.com](https://www.npmjs.com/package/loader-utils/v/2.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
