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 initdts-bundle-generator 1024 changes
Breaking changes 7
Boolean options no longer accept values; for example, --sort=false is now an error.
Invalid options are now reported in commander’s format.
The package is now an ES module. It can still be loaded with require() from CommonJS on Node.js 24.
Deep imports of package files no longer work; only the main entry point and config schema types can be imported.
This option is disabled by default, so a node is exported only if it is exported from the root source file.
The minimum supported Node.js version is now 24.
The minimum supported TypeScript version is now 5.4, and the supported range is capped at <7.
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.
Use a separate tsconfig to validate generated files; the config-file equivalent is checkConfigPath.
When enabled, generation fails if a referenced type cannot be exported because it was renamed to avoid a name collision.
A short flag for --help is now available.
A short flag for --version is now available.
Performance 1
Performance is improved for projects with many exports.
Behavior and default changes 3
Config files can now be ES modules with a default export, in addition to CommonJS.
Namespaces declared with the module keyword are now printed as namespace.
JSDoc comments are stripped from top-level exports that aren't exported directly.
Tooling 2
The help layout changed slightly.
TypeScript 6 is now supported.
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.
An error bundling with axios 1.7.8 involving named imports of export = module members is fixed.
A TS5055 regression with checkJs enabled and declarations of JS files is fixed.
Compatibility with the esModuleInterop compiler flag is fixed.
References now point to the correct variable when names declared in nested scopes shadow them.
Incorrect renaming of express's Request and Response types is fixed.
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.
Fixes and other changes 6
Handling of double-underscored names in exports was fixed.
Bundles are no longer invalid when the code uses import as statements.
Nodes with the same name in a bundle are automatically renamed with a $NUM suffix to avoid clashing and accidental declaration merging.
Handling of re-exports with a namespace was corrected.
Inlining a library with namespaced imports/exports now inlines export statements.
Incorrect handling of namespaced imports/exports was fixed.
dts-bundle-generator 87 changes
Breaking changes 2
The minimum supported TypeScript version changed from 4.0 to 5.0.
The default behavior changed for unquoted
module ModuleNamestatements.
Fixes and other changes 5
Fixed removal of some types when they are used in an ambient context.
Fixed statements not being inlined when they are used only in declare global statements.
Fixed incorrect output when renaming while re-exporting the default export without a name.
Fixed the export state of referenced namespaces and modules.
Fixed imports being lost when importing ESM-like modules without a default export using commonjs import or esm import default.
dts-bundle-generator 74 changes
Breaking changes 3
The minimum supported NodeJS version changed from 12 to 14.
The minimum supported TypeScript version changed from 3.0 to 4.5.
The compilation target changed from es5 to es2020; modules remain commonjs.
Fixes and other changes 1
Support for non-relative imports was improved in projects with a baseUrl.