npm / @microsoft/api-extractor
@microsoft/api-extractor
What changed in @microsoft/api-extractor 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
4 breaking2 new APIs and options1 tooling5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@microsoft/api-extractor 712 changes
Breaking changes 4
Reports an unresolved relative path in an inline import() type instead of silently emitting an unusable path into the .d.ts rollup.
CommonJS output is now under lib-commonjs instead of lib.
DTS output is now under lib-dts instead of lib.
ESM output is now under lib-esm instead of lib.
New APIs and options 2
Adds a setting that prints a diff of changes to API report files (*.api.md) in build logs.
Adds a CLI flag that prints a diff of changes to API report files (*.api.md).
Tooling 1
Support was added for the new d.ts extension format when using TypeScript moduleResolution bundler or nodenext.
Fixes and other changes 5
Fixes empty lines appearing in DTS rollups in place of API items that were trimmed.
The package exports this subpath, making it importable.
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.
Fixes incorrect parameter names for destructured parameters.
Fixes missing export keywords for namespace re-exports that produced invalid TypeScript output.