unstale

npm / dts-bundle-generator

dts-bundle-generator

What changed in dts-bundle-generator 7 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

12 breaking5 new APIs and options1 performance4 behavior and defaults2 tooling18 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

dts-bundle-generator 1024 changes

Breaking changes 7

  • Boolean options no longer accept values; for example, --sort=false is now an error.

    10.0.0release notes

  • Invalid options are now reported in commander’s format.

    10.0.0release notes

  • The package is now an ES module. It can still be loaded with require() from CommonJS on Node.js 24.

    10.0.0release notes

  • Deep imports of package files no longer work; only the main entry point and config schema types can be imported.

    10.0.0release notes

  • This option is disabled by default, so a node is exported only if it is exported from the root source file.

    10.0.0release notes

  • The minimum supported Node.js version is now 24.

    10.0.0release notes

  • The minimum supported TypeScript version is now 5.4, and the supported range is capped at <7.

    10.0.0release notes

New APIs and options 5

  • Keep unresolved import() types as-is and print a warning instead of failing; the config-file equivalent is compilationOptions.allowUnresolvedImportTypes.

    10.0.0release notes

  • Use a separate tsconfig to validate generated files; the config-file equivalent is checkConfigPath.

    10.0.0release notes

  • When enabled, generation fails if a referenced type cannot be exported because it was renamed to avoid a name collision.

    10.0.0release notes

  • A short flag for --help is now available.

    10.0.0release notes

  • A short flag for --version is now available.

    10.0.0release notes

Performance 1

  • Performance is improved for projects with many exports.

    10.0.0release notes

Behavior and default changes 3

  • Config files can now be ES modules with a default export, in addition to CommonJS.

    10.0.0release notes

  • Namespaces declared with the module keyword are now printed as namespace.

    10.0.0release notes

  • JSDoc comments are stripped from top-level exports that aren't exported directly.

    10.0.0release notes

Tooling 2

Fixes and other changes 6

  • Duplicated augmented types are handled correctly; interfaces, classes, and augmented enums or namespaces in ambient modules are no longer incorrectly renamed.

    10.0.0release notes

  • An error bundling with axios 1.7.8 involving named imports of export = module members is fixed.

    10.0.0release notes

  • A TS5055 regression with checkJs enabled and declarations of JS files is fixed.

    10.0.0release notes

  • Compatibility with the esModuleInterop compiler flag is fixed.

    10.0.0release notes

  • References now point to the correct variable when names declared in nested scopes shadow them.

    10.0.0release notes

  • Incorrect renaming of express's Request and Response types is fixed.

    10.0.0release notes

dts-bundle-generator 97 changes

Behavior and default changes 1

  • Declarations originally exported with default are emitted via a re-export, such as export { name as default }, rather than directly.

    9.0.0release notes

Fixes and other changes 6

  • Handling of double-underscored names in exports was fixed.

    9.0.0release notes

  • Bundles are no longer invalid when the code uses import as statements.

    9.0.0release notes

  • Nodes with the same name in a bundle are automatically renamed with a $NUM suffix to avoid clashing and accidental declaration merging.

    9.0.0release notes

  • Handling of re-exports with a namespace was corrected.

    9.0.0release notes

  • Inlining a library with namespaced imports/exports now inlines export statements.

    9.0.0release notes

  • Incorrect handling of namespaced imports/exports was fixed.

    9.0.0release notes

dts-bundle-generator 87 changes

Breaking changes 2

  • The minimum supported TypeScript version changed from 4.0 to 5.0.

    8.0.0release notes

  • The default behavior changed for unquoted module ModuleName statements.

    8.0.0release notes

Fixes and other changes 5

  • Fixed removal of some types when they are used in an ambient context.

    8.0.0release notes

  • Fixed statements not being inlined when they are used only in declare global statements.

    8.0.0release notes

  • Fixed incorrect output when renaming while re-exporting the default export without a name.

    8.0.0release notes

  • Fixed the export state of referenced namespaces and modules.

    8.0.0release notes

  • Fixed imports being lost when importing ESM-like modules without a default export using commonjs import or esm import default.

    8.0.0release notes

dts-bundle-generator 74 changes

Breaking changes 3

  • The minimum supported NodeJS version changed from 12 to 14.

    7.0.0release notes

  • The minimum supported TypeScript version changed from 3.0 to 4.5.

    7.0.0release notes

  • The compilation target changed from es5 to es2020; modules remain commonjs.

    7.0.0release notes

Fixes and other changes 1

  • Support for non-relative imports was improved in projects with a baseUrl.

    7.0.0release notes