Skip to content

Update dependency enhanced-resolve to v5.24.5 - #176

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/enhanced-resolve-5.x
Open

Update dependency enhanced-resolve to v5.24.5#176
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/enhanced-resolve-5.x

Conversation

@renovate

@renovate renovate Bot commented May 7, 2024

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
enhanced-resolve 5.16.05.24.5 age adoption passing confidence

Release Notes

webpack/enhanced-resolve (enhanced-resolve)

v5.24.5

Compare Source

Patch Changes
  • Soft-fail when auto tsconfig discovery loads a broken config, and keep relative extends paths relative. (by @​xiaoxiaojx in #​645)

v5.24.4

Compare Source

Patch Changes
  • Keep the original request resolvable when extensionAlias lists its own extension. (by @​alexander-akait in #​641)

  • Fix string restrictions boundary checks: a restriction ending with a separator no longer rejects everything inside it, restrictions are normalized before they are compared, and a Windows path now matches the way path.win32 does, treating / and \ as interchangeable and comparing case-insensitively, while \ stays a filename character in a posix path. The same comparison backs tsconfig path matching. (by @​alexander-akait in #​643)

  • Treat a UNC path (\\server\share\…) as a Windows path, so it normalizes, joins and walks up with path.win32 semantics instead of being taken for a bare module request. (by @​alexander-akait in #​644)

v5.24.3

Compare Source

Patch Changes
  • Resolve tsconfig extends package specifiers from ancestor node_modules directories (workspace hoisting). (by @​alexander-akait in #​631)

v5.24.2

Compare Source

Patch Changes

v5.24.1

Compare Source

Patch Changes

v5.24.0

Compare Source

Minor Changes
  • Allow the context path and request arguments of resolve (and resolveSync/resolvePromise) to accept file: URL instances, converting them to filesystem paths. Plain strings stay literal paths, matching Node's fs. (by @​alexander-akait in #​607)
Patch Changes
  • Make the resolver runtime-agnostic so it works in browsers, Deno and Bun as well as Node. File contents are decoded without assuming a Node Buffer, and browser shims are provided for the path, url and graceful-fs builtins (Node, Deno and Bun keep using the native ones) so the package bundles for the browser — supply your own fileSystem there. (by @​alexander-akait in #​606)

  • Rename the positional resolve/resolveSync/resolvePromise parameters to parent/specifier (from path/request) for ESM-aligned naming and document them in the README. Purely cosmetic — arguments are positional, so there is no behavior or API change. (by @​alexander-akait in #​611)

v5.23.0

Compare Source

Minor Changes
  • Allow the path-like resolve options roots, modules, alias/fallback targets, restrictions, and tsconfig (the config file, configFile, baseUrl, and references) to accept file URL instances (such as new URL("./dir/", import.meta.url)), converting them to filesystem paths. Plain strings are still treated as literal paths, matching Node's fs. (by @​alexander-akait in #​604)

v5.22.2

Compare Source

Patch Changes
  • Fall back to the next modules entry when a package exports target is filtered out by restrictions, instead of throwing. (by @​alexander-akait in #​600)

v5.22.1

Compare Source

Patch Changes

v5.22.0

Compare Source

Minor Changes
  • CachedInputFileSystem#purge accepts a second { exact?: boolean } argument; exact: true removes only entries whose key matches what exactly instead of any entry whose key starts with what. (by @​alexander-akait in #​591)

v5.21.6

Compare Source

Patch Changes
  • Speed up alias resolution on the hot path. (by @​alexander-akait in #​589)

    • AliasPlugin / TsconfigPathsPlugin: bucket compiled alias options by the first char code of name, so resolves skip options whose name can't possibly match the request's first char. Gated to cases with 2+ distinct first chars so degenerate single-bucket lists (e.g. long alias chains) don't pay for the Map.get.
    • TsconfigPathsPlugin: memoize _selectPathsDataForContext(map, requestPath) per map so the per-source-file contextList scan only runs once per directory. Gated to maps with 2+ contexts so single-context tsconfigs aren't penalized by the cache lookup.

    Biggest wins on alias-heavy configs (300+ entries): huge-alias-miss +151%, huge-alias-list +126%, alias-first-char-miss +120%.

v5.21.5

Compare Source

Patch Changes

v5.21.4

Compare Source

Patch Changes
  • When tsconfig: true is used, walk up parent directories to find tsconfig.json, matching TypeScript's own findConfigFile behavior. (by @​xiaoxiaojx in #​585)

v5.21.3

Compare Source

Patch Changes
  • TsconfigPathsPlugin now falls through to normal module resolution when a paths pattern matches but the mapped path does not exist, matching TypeScript's native resolution behavior. Previously, patterns like "@*" would block scoped npm packages (e.g. @sentry/react) from resolving via node_modules. (by @​xiaoxiaojx in #​579)

v5.21.2

Compare Source

Patch Changes
  • Fix TsconfigPathsPlugin circular project references causing stack overflow, add support for extending from unscoped npm packages, and use stat instead of readFile for existence checks in extends resolution. (by @​xiaoxiaojx in #​575)

  • perf: dedupe miss paths in DirectoryExistsPlugin/FileExistsPlugin and prune the per-resolve TsconfigPathsPlugin context scan. (by @​alexander-akait in #​574)

  • perf: drop a dead Map lookup in findMatch and flatten AliasFieldPlugin's cache check. (by @​alexander-akait in #​574)

  • perf: hot-path tweaks in ImportsFieldPlugin, AliasUtils, and util/entrypoints. (by @​alexander-akait in #​574)

  • perf: cut per-resolve allocations in Resolver.parse, loadDescriptionFile, and TsconfigPathsPlugin._selectPathsDataForContext. (by @​alexander-akait in #​574)

v5.21.1

Compare Source

Patch Changes
  • Allocation-free reductions on hot-path code: hoist /#/g, /\$/g and /\\/g to module-level constants and gate the corresponding .replace calls behind includes(…) so paths/queries/requests without the match char skip the regex state machine entirely (the common case); share a single EMPTY_NO_MATCH tuple instead of allocating [[], null] per "no match" / "no condition matched" return; switch directMapping's for...of over mappingTarget and inner results to indexed loops to avoid iterator-object allocation per call; inline isConditionalMapping at its two hot-path call sites and merge the duplicate default / conditionNames.has(condition) branches in computeConditionalMapping; replace invalidSegmentRegEx.exec(…) !== null with .test(…) (no match-array allocation); drop the dead deprecatedInvalidSegmentRegEx.test(…) !== null clause in ImportsFieldPlugin (.test returns boolean; true !== null and false !== null are both true, so it was && true); drop the redundant relativePath.length === 0 guard before !startsWith("./") in ExportsFieldPlugin (the empty-string case is already covered). (by @​alexander-akait in #​558)

  • restore plugin compatibility for [...resolveContext.stack] iteration (by @​alexander-akait in #​569)

  • fix TsconfigPathsPlugin to support resolveSync with useSyncFileSystemCalls (by @​alexander-akait in #​572)

v5.21.0

Compare Source

Minor Changes
  • Added promise API and support to resolve without context and resolveContext. (by @​alexander-akait in #​520)

  • Add extensionAliasForExports option. When true, extensionAlias also applies to paths resolved through the package.json exports field. Off by default to match Node.js; opt in for full TypeScript-resolver parity with packages that ship .ts sources alongside the compiled .js they declare in exports. (by @​alexander-akait in #​554)

Patch Changes
  • Properly handle DOS device paths (\\?\… and \\.\…). (by @​alexander-akait in #​551)

  • Prevent fallback to parent node_modules when the exports field target file is not found. (by @​xiaoxiaojx in #​495)

  • Imports field spec deviation: non-relative targets (e.g. "#a": "#b") no longer re-enter imports resolution, aligning with the Node.js ESM spec where PACKAGE_IMPORTS_RESOLVE does not recursively resolve # specifiers. (by @​xiaoxiaojx in #​503)

    Previously { "#a": "#b", "#b": "./the.js" } would chain-resolve #a to ./the.js; now it correctly fails, matching Node.js behavior.

  • Move cachedJoin/cachedDirname/createCachedBasename caches from module-level globals to per-Resolver instances. This prevents unbounded memory growth in long-running processes — when a Resolver is garbage collected, its join/dirname/basename caches are released with it. (by @​xiaoxiaojx in #​507)

  • Fixed when tsconfig: true is used (default config file) and no tsconfig.json exists. (by @​xiaoxiaojx in #​502)

  • Apply the extensionAlias option to the imports field to be align with typescript resolution. (by @​alexander-akait in #​549)

  • Improved performance of the many plugins. (by @​alexander-akait in #​529)

  • Replace the Set<string>-based resolver stack with a singly-linked StackEntry class that exposes a Set-compatible API. (by @​xiaoxiaojx in #​526)

    Each doResolve call now prepends a single linked-list node instead of cloning the entire Set, making stack push O(1) in time and memory. Recursion detection walks the linked list (O(n)), but because the stack is typically shallow this is much cheaper than cloning a Set per call.

  • Cache the result of stripJsonComments + JSON.parse in readJson using a WeakMap keyed by the raw file buffer. This avoids redundant comment-stripping and JSON parsing on every resolve call that reads tsconfig.json files (via stripComments: true), improving TsconfigPathsPlugin warm performance by ~20-35% depending on the depth of the extends chain. (by @​xiaoxiaojx in #​524)

  • Avoid OOM in CachedInputFileSystem when duration is Infinity. (by @​alexander-akait in #​527)

v5.20.1

Compare Source

Patch Changes

v5.20.0

Compare Source

Features
  • Added the baseUrl option to override the tsconfig.json's baseUrl
  • Enabled trailing commas support for JSONC
Fixes
  • Detect circular extends to prevent infinite loop in tsconfig.json
  • Support JSONC comments in tsconfig.json

v5.19.0

Compare Source

Features
  • Added TsconfigPathsPlugin (replacement for tsconfig-paths-webpack-plugin) .

v5.18.4

Compare Source

Fixes
  • Allow subpath imports that start with #/
  • Handle file: schema

v5.18.3

Compare Source

Fixes
  • Fixed nonsensible intersection in types
Performance
  • Decreased initial loading time

v5.18.2

Compare Source

Fixes
  • [Types] FileSystem type

v5.18.1

Compare Source

Perf
  • Fast path for parsing requests without \0

v5.18.0

Compare Source

Features
  • Added wildcards support for aliases

v5.17.1

Compare Source

Fixes
  • fix: exports and imports array target resolving
Perf
  • avoid creating a new array inside doResolve

v5.17.0

Compare Source

Features
  • Allow default condition to be anywhere

v5.16.1

Compare Source

Bugfixes

  • use cache for exports and imports plugins

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from 51d9d75 to 3fec79e Compare March 2, 2025 19:53
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.16.1 Update dependency enhanced-resolve to v5.18.1 Mar 2, 2025
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from 3fec79e to edec67d Compare June 24, 2025 06:50
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.18.1 Update dependency enhanced-resolve to v5.18.2 Jun 24, 2025
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from edec67d to b5dd208 Compare August 7, 2025 00:12
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.18.2 Update dependency enhanced-resolve to v5.18.3 Aug 7, 2025
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.18.3 Update dependency enhanced-resolve to v5.18.4 Dec 11, 2025
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from b5dd208 to e0640c6 Compare December 11, 2025 19:54
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.18.4 Update dependency enhanced-resolve to v5.19.0 Feb 3, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from e0640c6 to c0ae39c Compare February 3, 2026 16:54
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.19.0 Update dependency enhanced-resolve to v5.20.0 Feb 28, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from c0ae39c to c289cb5 Compare February 28, 2026 13:11
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from c289cb5 to 1a20d8a Compare March 17, 2026 01:21
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.20.0 Update dependency enhanced-resolve to v5.20.1 Mar 17, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from 1a20d8a to 532e63b Compare March 27, 2026 12:31
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.20.1 Update dependency enhanced-resolve to v5.21.0 Apr 23, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from 532e63b to cbd991a Compare April 23, 2026 20:10
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from cbd991a to e8661d7 Compare May 7, 2026 22:12
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.21.0 Update dependency enhanced-resolve to v5.21.1 May 7, 2026
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.21.1 Update dependency enhanced-resolve to v5.21.2 May 8, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from e8661d7 to adfad2d Compare May 8, 2026 13:12
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.21.2 Update dependency enhanced-resolve to v5.21.3 May 11, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from adfad2d to bb9f4f2 Compare May 11, 2026 17:47
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from bb9f4f2 to f879862 Compare May 18, 2026 20:34
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.21.3 Update dependency enhanced-resolve to v5.21.4 May 18, 2026
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.21.4 Update dependency enhanced-resolve to v5.21.5 May 19, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch 2 times, most recently from 8f97fb1 to 86baccd Compare May 20, 2026 17:25
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.21.5 Update dependency enhanced-resolve to v5.21.6 May 20, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from 86baccd to 913d365 Compare May 22, 2026 10:01
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.21.6 Update dependency enhanced-resolve to v5.22.0 May 22, 2026
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.22.0 Update dependency enhanced-resolve to v5.22.1 May 28, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch 2 times, most recently from dc43891 to a39cd82 Compare June 3, 2026 21:54
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.22.1 Update dependency enhanced-resolve to v5.22.2 Jun 3, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from a39cd82 to 783ed5b Compare June 5, 2026 16:30
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.22.2 Update dependency enhanced-resolve to v5.23.0 Jun 5, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from 783ed5b to c9c4c70 Compare June 11, 2026 17:55
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.23.0 Update dependency enhanced-resolve to v5.24.0 Jun 11, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from c9c4c70 to 8110671 Compare June 24, 2026 17:03
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.24.0 Update dependency enhanced-resolve to v5.24.1 Jun 24, 2026
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.24.1 Update dependency enhanced-resolve to v5.24.2 Jul 6, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from 8110671 to 2239783 Compare July 6, 2026 12:12
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from 2239783 to 6b28f3d Compare July 20, 2026 10:14
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.24.2 Update dependency enhanced-resolve to v5.24.3 Jul 20, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from 6b28f3d to 85d545a Compare July 28, 2026 20:54
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.24.3 Update dependency enhanced-resolve to v5.24.4 Jul 28, 2026
@renovate
renovate Bot force-pushed the renovate/enhanced-resolve-5.x branch from 85d545a to ffb516d Compare July 30, 2026 11:38
@renovate renovate Bot changed the title Update dependency enhanced-resolve to v5.24.4 Update dependency enhanced-resolve to v5.24.5 Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

0 participants