unstale

npm / dependency-cruiser

dependency-cruiser

What changed in dependency-cruiser 10 to 18, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-23.

25 breaking2 deprecations11 new APIs and options7 performance14 behavior and defaults10 tooling16 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

dependency-cruiser 1829 changes

Breaking changes 3

  • Report values are inserted as-is instead of expanding $& and similar replacement patterns.

    18.8.0release notes

  • The dot-webpage reporter is no longer experimental and replaces the name x-dot-webpage.

    18.3.0release notes

  • Support for Node.js 20 and 25 was dropped, so projects using those versions must upgrade.

    18.0.0release notes

Deprecations 1

  • The depcruise-baseline command is deprecated in favor of dependency-cruiser --baseline.

    18.3.0release notes

New APIs and options 5

  • The new baseline-mode value format sorts the baseline so future diffs are easier to read after manual edits.

    18.4.0release notes

  • Set baseline.staleEntriesSeverity to error to make the err, null, azure-devops and teamcity reporters exit with a non-zero code when the baseline contains stale entries.

    18.4.0release notes

  • Exposes baseline functionality as a regular dependency-cruiser option, with the same functionality as depcruise-baseline.

    18.3.0release notes

  • Updating the baseline can now remove fixed violations without adding new ones.

    18.3.0release notes

  • Configurations can now be written in TypeScript.

    18.2.0release notes

Performance 1

  • Cycle detection skips searching dependencies that cannot be part of a cycle, making detection faster.

    18.8.0release notes

Behavior and default changes 7

  • swc can handle all ts* extension variants.

    18.7.0release notes

  • Import extraction now supports imports inside module and namespace blocks.

    18.5.0release notes

  • The err, err-html and markdown reporters now show the number of stale entries in the baseline.

    18.4.0release notes

  • Baseline updates now show how many violations are new, unchanged, or removed.

    18.3.0release notes

  • Nested .gitignore files are now taken into account.

    18.2.0release notes

  • dependency-cruiser now warns at runtime when TypeScript, Babel, or SWC is needed but a usable compiler is not present.

    18.1.0release notes

  • The report's table heads are now sticky.

    18.1.0release notes

Tooling 4

  • Extraction now supports TypeScript 7.1's native compiler, currently with the TypeScript 7.1 beta.

    18.8.0release notes

  • The markdown report adds a baseline stale table.

    18.5.0release notes

  • The swc compiler can now parse tsx and jsx.

    18.3.0release notes

  • The swc compiler now recognizes type-only imports.

    18.3.0release notes

Fixes and other changes 8

  • Output no longer starts with an empty first line when its first word is wider than the wrap width.

    18.8.0release notes

  • Correctly handles bundledDependencies: true during extraction and resolution.

    18.7.2release notes

  • Passes the file name to the TypeScript transpiler to prevent it choking on imports from './module'.

    18.7.1release notes

  • Resolves tsconfig paths without baseUrl from the tsconfig directory.

    18.7.1release notes

  • Warnings are more precise: dependency-cruiser no longer reports a missing TypeScript compiler when installed swc is sufficient for the configured features.

    18.7.0release notes

  • Svelte components that use top-level await can now be compiled.

    18.6.0release notes

  • Finds the SWC Visitor when Bun hands over the default export, fixing extraction in that case.

    18.3.1release notes

  • The graph summary is now more deterministic.

    18.0.0release notes

dependency-cruiser 1722 changes

Breaking changes 2

  • AJV is no longer a runtime dependency, reducing dependency management and making installation faster.

    17.3.3release notes

  • Support for Node.js 18, 21, and 23 was dropped; supported versions are ^20.12, ^22, and >=24.

    17.0.0release notes

New APIs and options 3

  • Adds a configuration option for err-* and markdown reporters to show unresolved module names in the to-part of violations.

    17.4.0release notes

  • Adds the ancestor matcher for dependency-cruiser configuration.

    17.2.0release notes

  • Adds a suffix option for clickable links.

    17.1.0release notes

Performance 5

  • The reachables algorithm runs 1.3–1.5x faster, potentially improving runs with reachables in the rule set.

    17.3.3release notes

  • Regex compilations are cached throughout dependency-cruiser, making validation 1.5–2.5x faster.

    17.3.3release notes

  • JSON schemas are pre-compiled at build time, making the validation step 10x faster.

    17.3.3release notes

  • Performance optimizations make runs on TypeScript sources faster.

    17.3.3release notes

  • Algorithm updates improve performance.

    17.3.1release notes

Behavior and default changes 3

  • Enriches violations with the unresolved module name and the dependency types.

    17.4.0release notes

  • Dependents are now analyzed when --reaches or --focus are the only reason to do so.

    17.3.7release notes

  • The ndjson listener output now includes runId and user and system totals.

    17.3.6release notes

Tooling 4

  • Adds a basic consistency check for TypeScript and Babel features against transpiler availability.

    17.4.0release notes

  • Dependency-cruiser can now be used with TypeScript v6.

    17.3.9release notes

  • Dependency-cruiser now detects imports done with process.getBuiltinModule.

    17.3.0release notes

  • Working with bun modules is easier; bun modules were already supported.

    17.1.0release notes

Fixes and other changes 5

  • Retains Svelte 5+ dependencies used exclusively outside <script> sections during extraction.

    17.3.8release notes

  • The flat dot reporter now respects collapse patterns.

    17.3.6release notes

  • Extraction works again when TypeScript is not installed.

    17.3.4release notes

  • Fixes tsconfig not working when using the API.

    17.3.0release notes

  • Calls ITranspilerWrapper.isAvailable() correctly in the Svelte pre process.

    17.2.0release notes

dependency-cruiser 169 changes

Breaking changes 4

  • Alias type derivation is more correct and precise, which can cause rules on aliased dependency types to report issues not reported by previous versions.

    16.0.0release notes

  • Cycle entries change from module-name strings to objects containing each module name and its dependency types from the previous module in the cycle.

    16.0.0release notes

  • Cycle restrictions can match dependency types as well as module paths; via and viaOnly now take objects with path, pathNot, dependencyTypes, and dependencyTypesNot properties.

    16.0.0release notes

  • Reachability routes change from module-name strings to objects containing each module name and its dependency types from the previous module in the route.

    16.0.0release notes

Deprecations 1

  • The old notation for via and viaOnly continues to work but is deprecated.

    16.0.0release notes

New APIs and options 1

  • Adds dependency types for triple-slash references, imports, dynamic imports, exports, and pre-compilation-only dependencies, enabling rules and styling to distinguish them.

    16.0.0release notes

Behavior and default changes 1

Fixes and other changes 2

  • Files and stdout now end with a trailing newline.

    16.0.0release notes

  • Detects type-only dependencies written inline in import and export braces, such as import { type SomeType }.

    16.0.0release notes

dependency-cruiser 153 changes

Breaking changes 1

  • Subpath imports are now labeled alias and alias-subpath-import instead of undetermined; rules checking undetermined may need updating.

    15.0.0release notes

New APIs and options 1

  • The real dependency type is available alongside aliases. Rules that explicitly check dependencyTypes continue to work and may uncover transgressions missed by earlier versions.

    15.0.0release notes

Behavior and default changes 1

  • Reports link to npmjs for npm modules and nodejs.org for Node modules.

    15.0.0release notes

dependency-cruiser 141 changes

Breaking changes 1

  • The minimum supported Node.js version is now 18.17; Node.js 16 and 19 are no longer supported.

    14.0.0release notes

dependency-cruiser 1313 changes

Breaking changes 9

  • When a default-named configuration file exists, the CLI uses it without requiring --config; pass --no-config to run without a configuration file.

    13.0.0release notes

  • Configuration utility interfaces are now asynchronous, except for the utility to extract TypeScript configurations.

    13.0.0release notes

  • The cruise API is now asynchronous, so callers must await it.

    13.0.0release notes

  • The fourth parameter is now an object that can contain a tsConfig, a babelConfig, or both, instead of being reserved for a normalized TypeScript configuration.

    13.0.0release notes

  • The API is ESM-only and can only be called from ESM code.

    13.0.0release notes

  • The format API is now asynchronous.

    13.0.0release notes

  • On Windows, glob patterns must use forward slashes because the updated node-glob no longer accepts backslashes as path separators.

    13.0.0release notes

  • Node.js 14 is no longer supported; users who cannot move to higher versions can keep using dependency-cruiser v12.

    13.0.0release notes

  • Yarn 1 Plug'n Play is no longer supported; Yarn 2 and 3 Plug'n Play remain supported.

    13.0.0release notes

New APIs and options 1

Performance 1

  • Lazy loading reporters, initialization, caching, and other code reduces startup time; deferring analytical modules also speeds up runs served entirely from cache.

    13.0.0release notes

Behavior and default changes 2

  • Configurations for dependency-cruiser, Babel, and webpack can now use ESM; previously supported formats remain supported.

    13.0.0release notes

  • Dot reporters now display dynamic dependencies as dotted lines by default, distinguishing them from regular dependencies.

    13.0.0release notes

dependency-cruiser 124 changes

Breaking changes 2

  • Support for Node 12 and 17 was dropped; dependency-cruiser supports Node ^14, ^16 and >=18.

    12.0.0release notes

  • Reporters that emit stability metrics as values from 0–100 now include a percentage sign.

    12.0.0release notes

Tooling 2

  • dependency-cruiser adds support for the .d.cts extension.

    12.0.0release notes

  • dependency-cruiser adds support for the .d.mts extension.

    12.0.0release notes

dependency-cruiser 112 changes

Breaking changes 2

  • .d.ts is now consistently treated as a separate extension, which can cause rules touching .d.ts modules to be triggered when only .d.ts was specified.

    11.0.0release notes

  • TypeScript in Vue single-file components is now supported, so rules that touch those components might be triggered when they were not before.

    11.0.0release notes

dependency-cruiser 102 changes

Breaking changes 1

  • dependency-cruiser now supports Node.js ^12.20, ^14 and >=16, dropping support for earlier versions.

    10.0.0release notes

Fixes and other changes 1

  • In rules with dependents, pathNot in the from part is now correctly treated as an exclusion rather than as a regular path.

    10.0.0release notes