enhanced-resolve breaking changes
Updated December 4, 2026
On this page
Latest version 5.27.2, released December 4, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
enhanced-resolve 5.25.0 breaking changes
- Signature changed
ResolveOptions.mainFields
Was mainFields?: (| string | string[] | {name: string | string[]; forceRelative: boolean})[]; now mainFields?: (string | string[] | {name: string | string[]; forceRelative: boolean})[]. npmjs.com - Signature changed
ResolveOptionsOptionalFS.mainFields
Was mainFields?: (| string | string[] | {name: string | string[]; forceRelative: boolean})[]; now mainFields?: (string | string[] | {name: string | string[]; forceRelative: boolean})[]. npmjs.com
enhanced-resolve 5.24.5 breaking changes
- Behavior changed
When automatic tsconfig discovery loads a broken config it now soft-fails instead of erroring, and relative extends paths stay relative. Code relying on the previous error or path resolution may behave differently. github.com
enhanced-resolve 5.24.4 breaking changes
- Behavior changed
restrictions
Restrictions are normalized before comparison, and Windows paths treat / and \ as interchangeable and compare case-insensitively, matching path.win32. Check restriction paths that relied on the old exact comparison. github.com
enhanced-resolve 5.24.0 breaking changes
- Signature changed
default
Was function exports(context: Context, path: string, request: string, callback: (err: null | ErrorWithDetail, res?: string | false, req?: ResolveRequest) => void): void function exports(context: Context, path: string, request: string... npmjs.com - Signature changed
ResolveFunction.__call
Was (context: Context, path: string, request: string, resolveContext?: ResolveContext): string | false (path: string, request: string, resolveContext?: ResolveContext): string | false; now (context: Context, parent: string | URL_url... npmjs.com - Signature changed
ResolveFunctionAsync.__call
Was (context: Context, path: string, request: string, callback: (err: null | ErrorWithDetail, res?: string | false, req?: ResolveRequest) => void): void (context: Context, path: string, request: string, resolveContext: ResolveContext... npmjs.com - Signature changed
ResolveFunctionPromise.__call
Was (context: Context, path: string, request: string, resolveContext?: ResolveContext): Promise<string | false> (path: string, request: string, resolveContext?: ResolveContext): Promise<string | false>; now (context: Context, parent... npmjs.com - Signature changed
Resolver.resolve
Was resolve(context: Context, path: string, request: string, callback: (err: null | ErrorWithDetail, res?: string | false, req?: ResolveRequest) => void): void resolve(context: Context, path: string, request: string, resolveContext... npmjs.com - Signature changed
Resolver.resolvePromise
Was resolvePromise(context: Context, path: string, request: string, resolveContext?: ResolveContext): Promise<string | false> resolvePromise(path: string, request: string, resolveContext?: ResolveContext): Promise<string | false>; now... npmjs.com - Signature changed
Resolver.resolveSync
Was resolveSync(context: Context, path: string, request: string, resolveContext?: ResolveContext): string | false resolveSync(path: string, request: string, resolveContext?: ResolveContext): string | false; now resolveSync(context... npmjs.com
enhanced-resolve 5.23.0 breaking changes
- Signature changed
ResolveOptions.alias
Was alias?: AliasOptions | AliasOption[]; now alias?: UserAliasOptions | UserAliasOptionEntry[]. npmjs.com - Signature changed
ResolveOptions.fallback
Was fallback?: AliasOptions | AliasOption[]; now fallback?: UserAliasOptions | UserAliasOptionEntry[]. npmjs.com - Signature changed
ResolveOptions.modules
Was modules?: string | string[]; now modules?: string | URL_url | (string | URL_url)[]. npmjs.com - Signature changed
ResolveOptions.restrictions
Was restrictions?: (string | RegExp)[]; now restrictions?: (string | RegExp | URL_url)[]. npmjs.com - Signature changed
ResolveOptions.roots
Was roots?: string[]; now roots?: (string | URL_url)[]. npmjs.com - Signature changed
ResolveOptions.tsconfig
Was tsconfig?: string | boolean | TsconfigOptions; now tsconfig?: string | boolean | URL_url | UserTsconfigOptions. npmjs.com - Signature changed
ResolveOptionsOptionalFS.alias
Was alias?: AliasOptions | AliasOption[]; now alias?: UserAliasOptions | UserAliasOptionEntry[]. npmjs.com - Signature changed
ResolveOptionsOptionalFS.fallback
Was fallback?: AliasOptions | AliasOption[]; now fallback?: UserAliasOptions | UserAliasOptionEntry[]. npmjs.com - Signature changed
ResolveOptionsOptionalFS.modules
Was modules?: string | string[]; now modules?: string | URL_url | (string | URL_url)[]. npmjs.com - Signature changed
ResolveOptionsOptionalFS.restrictions
Was restrictions?: (string | RegExp)[]; now restrictions?: (string | RegExp | URL_url)[]. npmjs.com
And 2 more in this version. Sign up to see every change
enhanced-resolve 5.22.0 breaking changes
- Signature changed
CachedInputFileSystem.purge
Was purge(what?: | string | number | Buffer | URL_url | (string | number | Buffer | URL_url)[] | Set<string | number | Buffer | URL_url>): void; now purge(what?: | string | number | Buffer | URL_url | (string | number | Buffer | URL_url)[]... npmjs.com
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
enhanced-resolve 5.21.4 breaking changes
- Behavior changed
tsconfig
When tsconfig is true, the resolver walks up parent directories to find tsconfig.json, like TypeScript's findConfigFile. Code that relied on the previous lookup may now pick up a different config file. github.com
enhanced-resolve 5.21.3 breaking changes
- Behavior changed
TsconfigPathsPlugin
When a paths pattern matches but the mapped path does not exist, resolution now continues to normal module resolution, so scoped npm packages like @sentry/react resolve via node_modules again. Code relying on the previous blocking behavior... github.com
enhanced-resolve 5.21.0 breaking changes
- Behavior changed
If a package.json exports target file is not found, resolution now fails instead of falling back to a parent node_modules directory. Code that relied on that fallback must fix the exports target or the install. github.com - Behavior changed
A package.json imports entry whose target is another # specifier is no longer resolved again. Such chains now fail, as in Node.js, so change those entries to point at a file directly. github.com
And 4 more in this version.
enhanced-resolve 5.19.0 breaking changes
- Signature changed
default
Was function exports(context: object, path: string, request: string, callback: (err: null | ErrorWithDetail, res?: string | false, req?: ResolveRequest) => void): void function exports(context: object, path: string, request: string... npmjs.com - Signature changed
ResolveFunction.__call
Was (context: object, path: string, request: string): string | false; now (context: Context, path: string, request: string): string | false. npmjs.com
And 4 more in this version.
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.