# What changed in @microsoft/api-extractor

> 12 changes in @microsoft/api-extractor 7 from its official release notes, upgrade guides and advisories: 4 breaking, 2 new APIs and options. Each one cited. Sources checked 2026-10-21. HTML: https://unstale.sh/npm/@microsoft/api-extractor/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @microsoft/api-extractor 7

### Breaking changes

- Reports an unresolved relative path in an inline import() type instead of silently emitting an unusable path into the .d.ts rollup. (7.59.0) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7590)
- CommonJS output is now under lib-commonjs instead of lib. (7.57.0) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7570)
- DTS output is now under lib-dts instead of lib. (7.57.0) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7570)
- ESM output is now under lib-esm instead of lib. (7.57.0) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7570)

### New APIs and options

- Adds a setting that prints a diff of changes to API report files (*.api.md) in build logs. (7.54.0) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7540)
- Adds a CLI flag that prints a diff of changes to API report files (*.api.md). (7.54.0) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7540)

### Tooling

- Support was added for the new d.ts extension format when using TypeScript moduleResolution bundler or nodenext. (7.58.8) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7588)

### Fixes and other changes

- Fixes empty lines appearing in DTS rollups in place of API items that were trimmed. (7.58.6) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7586)
- The package exports this subpath, making it importable. (7.57.3) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7573)
- Adds the node condition before import so Node.js uses the CJS output, which handles extensionless imports, while bundlers continue to use ESM via import. (7.57.1) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7571)
- Fixes incorrect parameter names for destructured parameters. (7.56.0) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7560)
- Fixes missing export keywords for namespace re-exports that produced invalid TypeScript output. (7.55.5) — [release notes](https://github.com/microsoft/rushstack/blob/9b27e7ab3c987fdf023e10fa326cba4c1020bf9a/apps/api-extractor/CHANGELOG.md#7555)
